================================================================================ ClassNotify Audit Source Snapshot SnapshotId: 20260925-235800-RC13PASS GeneratedAt: 2026-09-25T23:57:42.5595962+08:00 Version: 2.5.0 SourceFiles: 359 ArchiveFiles: 360 ArchiveSha256: B1470BE9D889C6A66173E8F136DBE1F2728EFB3A8E4C141DBD77B5138C2D3C88 ================================================================================ ================================================================================ FILE: AUDIT_BUILD_RESULTS.md ================================================================================ # Android 构建与单元测试验收记录 (P1 第六批收口终版) ## 构建环境 - **宿主机架构**:Windows 11 ARM64 (`aarch64`) / Oracle Cloud Infrastructure 虚拟机 (Red Hat VirtIO) - **JDK 版本**:Microsoft OpenJDK 17 (`17.0.20.101-hotspot`) - **Android SDK 路径**:`C:\Android` - **Compile SDK**:`34` (Android 14) - **Target SDK**:`34` - **Min SDK**:`26` - **Build Tools**:`34.0.0` - **Gradle 版本**:`Gradle 8.4` (通过自带 `gradlew.bat`) ## 单元测试命令与实测结果 ```cmd .\gradlew.bat testDebugUnitTest ``` - **Result**: `BUILD SUCCESSFUL` - **Actionable Tasks**: `88 actionable tasks: 88 executed` - **测试用例明细 (14 passed, 0 failed, 0 error, 100% pass rate)**: - `com.classnotify.app.AuthInterceptorTest` (3/3): - `intercept_addsBearerToken_whenTokenAvailable` (Passed) - `intercept_proceedsWithoutBearer_whenTokenNull` (Passed) - `intercept_on401Unauthorized_triggersSessionExpiredCallback` (Passed) - `com.classnotify.app.LoginViewModelTest` (4/4): - `login_withBlankFields_setsErrorStateImmediately` (Passed) - `login_withValidCredentials_transitionsToSuccessState` (Passed) - `login_withInvalidCredentials_transitionsToErrorState` (Passed) - `factory_createsLoginViewModelInstance` (Passed) - `com.classnotify.app.SecureTokenStoreTest` (1/1): - `cryptoFailure_neverFallsBackToPlaintextSharedPreferencesOnDisk` (Passed) - `com.classnotify.app.SignalRManagerTest` (6/6): - `testA_connectLifecycle_transitionsFromDisconnectedToConnected` (Passed) - `testB_onClosed_transitionsToReconnectingAndRecovers` (Passed) - `testC_duplicateConnect_onlyCreatesSingleActiveConnection` (Passed) - `testD_disconnectDuringReconnect_cancelsSupervisorAndResetsState` (Passed) - `testE_networkRecovery_triggersReconnectWhenDisconnected` (Passed - 真实模拟连接中断 -> 重试失败阻断 -> 网络恢复通知触发 -> 新建连接并恢复 Connected) - `testF_tokenDisappears_reconnectDoesNotLoopOrEstablishHub` (Passed) ## 插桩测试套件 (androidTest) - `com.classnotify.app.SecureTokenStoreInstrumentedTest`: 硬件 Keystore / EncryptedSharedPreferences (AES-256 GCM + SIV) 存取、清理与旧明文彻底清除验证 - `com.classnotify.app.StartupNavigationInstrumentedTest`: 无有效 Token 时冷启动停留在登录页面与 UI 控件断言 - **测试包编译状态**:`packageDebugAndroidTest` 成功生成 `app-debug-androidTest.apk` ## APK 构建命令与产物信息 ```cmd .\gradlew.bat assembleDebug assembleRelease ``` - **Debug APK**: - 路径: `src/Android/ClassNotify.Android/app/build/outputs/apk/debug/app-debug.apk` - 大小: `18,160,032` 字节 (`17.32 MB`) - SHA256: `5D2E96E2C50EA416690916DCA1C69980362FEE21851046B6EE1766BB76049FE4` - **Release APK**: - 路径: `src/Android/ClassNotify.Android/app/build/outputs/apk/release/app-release-unsigned.apk` - 大小: `12,082,091` 字节 (`11.52 MB`) - SHA256: `E79205B463A6A84CD864ABF72C9CE4F9CE03E889DFFC7A0937225AFE525485FB` - Release 签名: `NOT CONFIGURED` (当前为 unsigned 产物,未配置生产密钥库签名) ## 敏感信息扫描 (Release Source & APK) - `teacher123`: Source 0 matches, APK 0 matches - `admin888`: Source 0 matches, APK 0 matches - `Authorization: Bearer `: 0 matches - `JWT signing key / Secret`: 0 matches ## 宿主机设备与模拟器环境 - **adb devices**: `List of devices attached` (空) - **环境客观约束说明**: 宿主机为 Oracle Cloud Windows 11 ARM64 (`aarch64`) 虚拟服务器。Google Android SDK 官方未对 Windows ARM64 分发原生 emulator 二进制。由于云端虚拟机无本地物理 USB 直通,若需在真机执行 `connectedDebugAndroidTest` 与物理交互,需由客户端通过 ADB over TCP/IP (`adb connect`) 或反向 SSH 隧道接入。 --- # Windows 边缘凭据与 IPC 纵深防御验收记录 (P1 第八批收口终版) ## 构建与测试环境 - **宿主机架构**:Windows 11 ARM64 (`aarch64`) - **.NET SDK 版本**:.NET 8.0.425 - **构建配置**:Release / Any CPU & win-x64 - **受保护凭据路径**:`C:\ProgramData\ClassNotify\device_credentials.json` - **命名管道名称**:`\\.\pipe\ClassNotify_Ipc_Pipe` ## 一、P1 Batch 8 核心整改落地与防御矩阵 | 风险/攻击面 | 原有缺陷/脆弱点 | P1 Batch 8 落地防御措施 | 验收结果 | | :--- | :--- | :--- | :--- | | **设备凭据持久化** | 明文 JSON 存储在 `C:\ProgramData\ClassNotify\` 下,任何低权限本地用户均可读取 | 1. 采用 Windows DPAPI `LocalMachine` 对称加密存储
2. 首次读取自动平滑迁移旧明文并覆写为密文
3. 设置严格 NTFS ACL:仅 `SYSTEM` 与 `Administrators` 具备 FullControl,禁用继承,非特权用户 `Users` 组零权限 | **PASS** | | **跨身份安装与升级** | Setup(管理员)激活写盘与 Service(LocalSystem)读取身份不一致 | DPAPI `DataProtectionScope.LocalMachine` 确保管理员与服务均可解密;升级或重试不丢失凭据,免消耗新激活码 | **PASS** | | **同一登录用户伪造 IPC** | 命名管道虽有 Pipe ACL,但同处于交互式 Session 的恶意进程可用任意 PID 伪造 `hello` 握手 | 1. Service 在通过 `CreateProcessAsUser` 拉起 Client 时生成 128-bit 临时 Launch Token (`--ipc-token`)
2. Client 必须在 Protocol Version 2 发送对应 Token
3. Service 通过 Win32 `GetNamedPipeClientProcessId` 强校验对端 PID、会话及进程白名单 | **PASS** | | **旧协议向后兼容攻击** | 攻击者发送旧版 Protocol 1 hello(不带 Token)试图绕过验证 | Service 强制要求 Protocol Version >= 2 并携带有效 Token,立即断开并丢弃任何 Protocol 1 握手 | **PASS** | | **Client 崩溃/重启轮转** | 客户端被恶意终止或崩溃后,旧 Token 未失效导致重放风险 | Watchdog 重启或进程退出时原子轮转新 Token;旧 Token 立即从 Service 授权表注销;重新启动后无死锁且自动重连 | **PASS** | ## 二、测试套件实测命令与结果 ### 1. 边缘安全专用测试套件 (`ClassNotify.EdgeSecurityTests`) ```cmd dotnet run --project tests/ClassNotify.EdgeSecurityTests/ClassNotify.EdgeSecurityTests.csproj -c Release ``` - **Result**: `13 Passed, 0 Failed` (100% Pass Rate) 1. `[PASS]` Credential: Legacy Plaintext JSON Auto-Migration 2. `[PASS]` Credential: DPAPI LocalMachine Encryption Verification 3. `[PASS]` Credential: Hardened NTFS File ACL Protection 4. `[PASS]` Credential: ACL Fail-Closed & Temp Cleanup Verification 5. `[PASS]` Credential: Strict ACL Allowlist Invariant Rejects Arbitrary SIDs 6. `[PASS]` Setup: StartupManager Cleans Legacy Run & Scheduled Tasks 7. `[PASS]` NamedPipe: Rejects Legacy Protocol 1 Public Hello Without Token 8. `[PASS]` NamedPipe: Rejects Handshake With Invalid Launch Token 9. `[PASS]` NamedPipe: Rejects Handshake With Mismatched Process Name 10. `[PASS]` NamedPipe: Accepts Valid Protocol 2 Launch Token & PID 11. `[PASS]` NamedPipe: Token Rotation & Reconnection Verification 12. `[PASS]` NamedPipe: SessionLauncher Fallback Fail-Closed Verification 13. `[PASS]` NamedPipe: Zero Secret Token Leakage In Audit Logs ### 针对 ChatGPT 独立审查反馈的整改闭环 (Round 1 & Round 2 收口) 1. **Service 成为 Client 唯一可信启动者,彻底清除 Setup 自启动与计划任务竞争**: - Setup 移除 `EnableStartup(clientExe)` 与 `LaunchClientInCurrentSession(clientExe)`; - `StartupManager.CleanupLegacyStartupEntries()` 主动清理 `HKLM\Run`、`HKCU\Run` 及所有历史计划任务(`ClassNotifyClient`, `ClassNotify_Client_UI`, `ClassNotify`),避免无 Token 客户端提前抢占单例 Mutex 导致 IPC 握手异常与看门狗误杀; - 增加 `Test_Setup_StartupManager_CleansLegacyEntries` 实机测试。 2. **运维 PowerShell 脚本安全模型对齐与废弃收口**: - `src/Scripts/Install-ClassNotify.ps1` 彻底删除明文落盘参数 `DeviceToken` 与计划任务,仅注册服务,客户端统一由服务守护拉起; - `src/Scripts/Repair-ClassNotify.ps1` 不再直接调用 `Start-Process` 拉起无 Token 客户端,改为由守护服务看门狗恢复; - 历史原型 `WindowsClient/Install-ClassNotify.ps1` 标记为 `[DEPRECATED]` 并中止执行。 3. **字面意义上的“Zero Secret Token Leakage”**: - 移除 `SessionLauncher` 与 `NamedPipeServer` 中仅剩的 3 处 `TokenPrefix` 截断输出; - 日志严格仅输出 `PID` 与 `SessionId`,任何 Token、完整字符串或前缀均零出现; - `Test_NamedPipe_HandshakeLog_ZeroTokenLeakage` 强化断言:非法握手与合法授权均断言 Token 与其前缀零泄露。 4. **NTFS ACL Verifier 实施严格白名单不变量**: - `VerifyHardenedFileAcl` 强制断言每一个 Allow ACE 必须严格等于 `SYSTEM` 或 `Administrators`,且必须具备 `FileSystemRights.FullControl`; - 任何第三方未授权 SID(无论普通用户、Everyone 还是 AuthenticatedUsers)只要出现 Allow 即刻抛出异常拒绝; - 增加 `Test_NTFS_Acl_StrictAllowlist_RejectsArbitrarySid` 测试。 ### 2. 认证与密钥安全性回归测试 (`ClassNotify.AuthTests`) ```cmd dotnet run --project tests/ClassNotify.AuthTests/ClassNotify.AuthTests.csproj -c Release ``` - **Result**: `12 Passed, 0 Failed` (100% Pass Rate) ### 3. 速率限制与租户隔离回归测试 (`ClassNotify.RateLimitTests`) ```cmd dotnet run --project tests/ClassNotify.RateLimitTests/ClassNotify.RateLimitTests.csproj -c Release ``` - **Result**: `3 Passed, 0 Failed` (100% Pass Rate) ### 4. 解决方案全量编译检查 (`ClassNotify.sln`) ```cmd dotnet build ClassNotify.sln -c Release dotnet build src/Windows/ClassNotify.Setup/ClassNotify.Setup.csproj -c Release ``` - **Result**: `0 Warning(s), 0 Error(s)` --- # 消息挂起、TTL、补发与去重验收记录 (P1 第九批收口终版) ## 构建与测试环境 - **宿主机架构**:Windows 11 ARM64 (`aarch64`) - **.NET SDK 版本**:.NET 8.0.425 - **数据库**:PostgreSQL 16 (运行在远程 Oracle VPS,通过 SSH 隧道直连集成测试) - **构建配置**:Release / Any CPU ## 一、P1 Batch 9 核心整改落地与防御矩阵 | 模块 / 攻击面与风险 | 原有缺陷 / 脆弱点 | P1 Batch 9 落地防御与工程实现 | 验收结果 | | :--- | :--- | :--- | :--- | | **管道写入即时断开与缓冲丢包 (Reviewer R3 专项)** | Pipe `WriteUtf8Async` 返回 `bool`。若客户端在发送瞬间断开,旧逻辑直接忽略返回值导致消息丢失;Flush 过程中若第 2 条失败,后续消息全部丢弃 | 引入 `ClientNotificationBuffer` 生产级缓冲区,严格检查管道写入布尔值。写入失败 (`false`) 或未连接即刻回退至挂起队列;`FlushAsync` 遭遇断开时原子保留未发送项并中止冲刷,重连后保持消息顺序完整投递 | **PASS** | | **真实 PostgreSQL 迁移与历史数据兼容 (Reviewer R3 专项)** | 缺乏针对真实 PostgreSQL 的历史数据迁移集成测试,存在表结构或索引兼容性盲区 | 编写真实 PostgreSQL 迁移测试:新建隔离 DB,应用 Batch 8 初始迁移,灌入无 `ExpiresAt` 历史记录,执行 `Database.MigrateAsync()` 升级到 Batch 9,强校验 `ExpiresAt`/`Voice`/`Shake`/`DurationSeconds` 字段、复合索引、数据不丢、SQL 回填 (`ExpiresAt = CreatedAt`),并验证运行时 `SecurityService` 过滤抑制 | **PASS** | | **过期消息抑制与 TTL 边界** | 离线过久重连的设备可能收到大量已失效告警 | 引入 `ExpiresAt` 与服务端强时钟校验。离线补发与实时拉取严格过滤 `ExpiresAt <= DateTime.UtcNow` 记录,自动标记为 `Expired` 且绝不下发至客户端 | **PASS** | | **客户端与服务端双向幂等去重** | 网络重试或重连可能导致同一次广播被多次弹窗或重复入库 | 服务端以 `NotificationId` + `DeviceId` 为唯一 Receipt 约束;客户端与 Service 维护基于 Sliding Memory Cache 的消息去重,已消费消息直接 ACK 并不再重复弹出 Toast/弹窗 | **PASS** | ## 二、测试套件实测命令与结果 ### 1. 消息投递与挂起恢复测试套件 (`ClassNotify.DeliveryTests`) ```cmd dotnet run --project tests/ClassNotify.DeliveryTests/ClassNotify.DeliveryTests.csproj -c Release ``` - **Result**: `15 Passed, 0 Failed` (100% Pass Rate) 1. `[PASS]` Test_Online_ImmediateDelivery_And_Ack 2. `[PASS]` Test_Offline_EnqueuePending_And_CatchUp_On_Connect 3. `[PASS]` Test_Expired_Notification_Not_Delivered 4. `[PASS]` Test_Exact_TTL_Boundary_Behavior 5. `[PASS]` Test_Duplicate_Notification_Deduplication 6. `[PASS]` Test_Large_Message_Delivery_Integrity 7. `[PASS]` Test_Transient_Wpf_Unavailable_Does_Not_Drop_Message_And_Delivers_On_Connect (Direct ClientNotificationBuffer) 8. `[PASS]` Test_Concurrent_Notifications_Ordering_And_Delivery 9. `[PASS]` Test_Multi_Device_Independent_Receipt_State 10. `[PASS]` Test_Security_Service_Pending_CatchUp_Integration 11. `[PASS]` Test_Security_Service_Expired_Notification_Suppressed_Integration 12. `[PASS]` Test_EF_Migration_Script_Batch8_To_Batch9_Schema_Verification 13. `[PASS]` Test_Pipe_Send_Returns_False_Mid_Send_Recovers_And_Delivers_On_Next_Connect 14. `[PASS]` Test_PostgreSQL_Batch8_To_Batch9_Migration_Integration_With_Legacy_Data 15. `[PASS]` Test_Client_Side_Deduplication_And_Replay_Suppression ### 2. 安全与边缘凭据回归测试 (`ClassNotify.EdgeSecurityTests`) ```cmd dotnet run --project tests/ClassNotify.EdgeSecurityTests/ClassNotify.EdgeSecurityTests.csproj -c Release ``` - **Result**: `13 Passed, 0 Failed` (100% Pass Rate) ### 3. 认证与令牌回归测试 (`ClassNotify.AuthTests`) ```cmd dotnet run --project tests/ClassNotify.AuthTests/ClassNotify.AuthTests.csproj -c Release ``` - **Result**: `12 Passed, 0 Failed` (100% Pass Rate) ### 4. 速率限制回归测试 (`ClassNotify.RateLimitTests`) ```cmd dotnet run --project tests/ClassNotify.RateLimitTests/ClassNotify.RateLimitTests.csproj -c Release ``` - **Result**: `3 Passed, 0 Failed` (100% Pass Rate) ### 5. 解决方案全量 Release 编译 ```cmd dotnet build ClassNotify.sln -c Release ``` - **Result**: `0 Warning(s), 0 Error(s)` --- ## 三、针对 ChatGPT 审查员 Round 3 阻断项专项整改闭环 (Round 4 终版) ### 1. PostgreSQL 凭据泄露应急轮换与安全纵深防御 - **紧急轮换与旧密码作废**: - 远程 Oracle VPS 生产环境立即执行密码轮换,将泄露的旧密码 [REVOKED_DB_PASSWORD_REDACTED] 彻底作废; - 实测验证:使用旧密码连接立即返回 `FATAL: password authentication failed for user "classnotify"` (100% 拒绝); - 生成 256-bit 随机密码更新至 `/etc/classnotify/classnotify.env`(严格 600 权限),重启 `classnotify.service`,服务状态确认 `active (running)`。 - **权限最小化与测试隔离角色**: - 生产应用角色 `classnotify` 剥离 `CREATEDB` 权限 (`ALTER USER classnotify NOCREATEDB;`),实测 `CREATE DATABASE` 返回 `permission denied`; - 独立创建专用测试角色 `classnotify_test` 并赋予 `CREATEDB`,仅供集成测试动态建库。 - **源码与脚本零明文凭据**: - `tests/ClassNotify.DeliveryTests/Program.cs` 与 `tests/BenchmarkRunner/Program.cs` 彻底剔除硬编码连接串与密码,统一通过环境变量 `CLASSNOTIFY_TEST_DB_CONNECTION` 读取; - 全仓库深度 Grep 扫描:敏感凭据零出现; - 发布脚本 `Publish-AuditSnapshot.ps1` 增加自动正则脱敏(`Password=[^;\r\n"']+` -> `Password=` 与密钥特征消除),杜绝任何凭据进入公开快照。 ### 2. ClientNotificationBuffer 严格 FIFO 保序与单一调度器重构 - **单一并发锁**:引入 `SemaphoreSlim(1,1)` 确保 `Flush` 与 `DeliverOrBuffer` 串行原子操作,杜绝并发交叉; - **原子 Peek-then-Dequeue**:冲刷时改用 `TryPeek`,仅在管道写入确切返回 `true` 时才出队;若写入失败 (`false` / 破裂管道),首项保留在队首并立即中止冲刷,绝对不会把失败项错误塞入队尾破坏 FIFO 顺序; - **Backlog 阻塞屏障**:在 `DeliverOrBufferAsync` 中,若当前队列存在未投递积压 (`!_pendingQueue.IsEmpty`),新消息强制追加至队尾,绝不绕过旧消息插队直接发送; - **端到端断言测试强化**: - `Test_Pipe_Send_Returns_False_Mid_Send_Recovers_And_Delivers_On_Next_Connect` 全面升级: 1. 断言冲刷失败后快照精确保持 `[m2, m3]`; 2. 断言积压期间新通知 `m4` 到达后快照精确为 `[m2, m3, m4]`; 3. 断言跨断线/重连的全生命周期客户端接收事件序列精确严格等于 `[m1, m2, m3, m4]`! ================================================================================ FILE: AUDIT_FILE_TREE.txt ================================================================================ ================================================================================ ClassNotify Audit Source Tree Manifest Generated: 2026-09-25 23:57:40 +08:00 ================================================================================ AUDIT_BUILD_RESULTS.md 16.43 KB build_installer.ps1 4.36 KB ClassNotify.sln 5.06 KB implementation_plan.md 11.34 KB ops/caddy/classnotify.caddy 2.64 KB ops/classnotify-backup.sh 2.49 KB ops/classnotify-db-backup.sh 2.04 KB ops/classnotify-healthcheck.sh 5.09 KB ops/classnotify-offsite-backup.sh 4.1 KB ops/classnotify-restore-gate.sh 4.72 KB ops/deploy_caddy.sh 6.76 KB ops/deploy_server.sh 8.71 KB ops/deploy_systemd_unit.sh 6.81 KB ops/Deploy-CaddyConfig.ps1 4.44 KB ops/Deploy-SystemdUnit.ps1 4.92 KB ops/schema.sql 16.66 KB ops/setup_vps_jwt.sh 0.73 KB ops/systemd/classnotify-healthcheck.service 0.25 KB ops/systemd/classnotify-healthcheck.timer 0.16 KB ops/test_p1_batch4_vps.sh 7.64 KB ops/verify-production-config.sh 5.84 KB packaging_p2/build_p2_installer.ps1 6.42 KB packaging_p2/ClassNotifySetup_p2.iss 10.03 KB packaging_p2/generate_manifest.js 1.44 KB packaging_p2/sealed_payload_manifest.json 120.18 KB PRODUCTION_TEST_DATA_AUDIT.md 5.73 KB Publish-AuditSnapshot.ps1 26.38 KB README.md 12.44 KB schema.sql 19.25 KB src/Android/ClassNotify.Android/app/build.gradle.kts 3.49 KB src/Android/ClassNotify.Android/app/src/androidTest/java/com/classnotify/app/SecureTokenStoreInstrumentedTest.kt 2.18 KB src/Android/ClassNotify.Android/app/src/androidTest/java/com/classnotify/app/StartupNavigationInstrumentedTest.kt 1.04 KB src/Android/ClassNotify.Android/app/src/main/AndroidManifest.xml 1.27 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ClassNotifyApp.kt 4.03 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/api/AuthInterceptor.kt 0.79 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/api/ClassNotifyApi.kt 1.1 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/api/SignalRManager.kt 9.21 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/AckStatus.kt 0.3 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/AuthModels.kt 0.87 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/ClassroomModels.kt 0.84 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/NotificationModels.kt 1.83 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/network/NetworkMonitor.kt 3.58 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/repository/AuthRepository.kt 5.94 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/repository/NotificationRepository.kt 2.46 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/security/TokenStore.kt 3.5 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/MainActivity.kt 8.72 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/login/LoginScreen.kt 7.19 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/login/LoginViewModel.kt 2.22 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/teacher/TeacherMainScreen.kt 21.47 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/teacher/TeacherViewModel.kt 8.81 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/theme/Color.kt 0.6 KB src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/theme/Theme.kt 1.26 KB src/Android/ClassNotify.Android/app/src/main/res/drawable/ic_launcher_foreground.xml 0.38 KB src/Android/ClassNotify.Android/app/src/main/res/mipmap/ic_launcher.xml 0.46 KB src/Android/ClassNotify.Android/app/src/main/res/mipmap/ic_launcher_round.xml 0.49 KB src/Android/ClassNotify.Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml 0.26 KB src/Android/ClassNotify.Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml 0.26 KB src/Android/ClassNotify.Android/app/src/main/res/values/colors.xml 0.12 KB src/Android/ClassNotify.Android/app/src/main/res/values/strings.xml 0.07 KB src/Android/ClassNotify.Android/app/src/main/res/values/themes.xml 0.28 KB src/Android/ClassNotify.Android/app/src/main/res/xml/backup_rules.xml 0.21 KB src/Android/ClassNotify.Android/app/src/main/res/xml/data_extraction_rules.xml 0.44 KB src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/AuthInterceptorTest.kt 3.01 KB src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/LoginViewModelTest.kt 3.45 KB src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/SecureTokenStoreTest.kt 1.72 KB src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/SignalRManagerTest.kt 8.24 KB src/Android/ClassNotify.Android/build.gradle.kts 0.24 KB src/Android/ClassNotify.Android/gradle.properties 0.13 KB src/Android/ClassNotify.Android/gradle/wrapper/gradle-wrapper.jar 62.23 KB src/Android/ClassNotify.Android/gradle/wrapper/gradle-wrapper.properties 0.24 KB src/Android/ClassNotify.Android/gradlew 8.51 KB src/Android/ClassNotify.Android/gradlew.bat 2.73 KB src/Android/ClassNotify.Android/local.properties 0.02 KB src/Android/ClassNotify.Android/README.md 1.93 KB src/Android/ClassNotify.Android/settings.gradle.kts 0.52 KB src/Scripts/Install-ClassNotify.ps1 3.83 KB src/Scripts/Repair-ClassNotify.ps1 3.74 KB src/Scripts/SelfCheck.ps1 1.46 KB src/Scripts/Uninstall-ClassNotify.ps1 1.08 KB src/Server/Caddyfile 0.28 KB src/Server/ClassNotify.Server/ClassNotify.Server.csproj 1.08 KB src/Server/ClassNotify.Server/Configuration/DeviceVersionPolicyOptions.cs 1.86 KB src/Server/ClassNotify.Server/Configuration/JwtOptions.cs 0.29 KB src/Server/ClassNotify.Server/Configuration/RateLimitOptions.cs 0.23 KB src/Server/ClassNotify.Server/Configuration/SupportBundleOptions.cs 0.95 KB src/Server/ClassNotify.Server/Controllers/AdminController.cs 25.46 KB src/Server/ClassNotify.Server/Controllers/AuthController.cs 1.47 KB src/Server/ClassNotify.Server/Controllers/DeviceCommandController.cs 5.31 KB src/Server/ClassNotify.Server/Controllers/DeviceController.cs 14.56 KB src/Server/ClassNotify.Server/Controllers/DeviceSupportBundlesController.cs 20.82 KB src/Server/ClassNotify.Server/Controllers/FleetController.cs 0.97 KB src/Server/ClassNotify.Server/Controllers/HealthDiagnosticsController.cs 9.47 KB src/Server/ClassNotify.Server/Controllers/NotificationController.cs 10.88 KB src/Server/ClassNotify.Server/Controllers/SchoolAdminController.cs 9.65 KB src/Server/ClassNotify.Server/Controllers/SelfCheckBatchesController.cs 4.27 KB src/Server/ClassNotify.Server/Controllers/SupportBundlesController.cs 7.58 KB src/Server/ClassNotify.Server/Data/ClassNotifyDbContext.cs 14.32 KB src/Server/ClassNotify.Server/Data/ClassNotifyDbContextFactory.cs 0.87 KB src/Server/ClassNotify.Server/Data/DbInitializer.cs 5.3 KB src/Server/ClassNotify.Server/Data/JsonMigrationService.cs 14.18 KB src/Server/ClassNotify.Server/Data/Migrations/20260920225928_InitialPostgreSql.cs 16.57 KB src/Server/ClassNotify.Server/Data/Migrations/20260920225928_InitialPostgreSql.Designer.cs 17.73 KB src/Server/ClassNotify.Server/Data/Migrations/20260922000000_AddNotificationExpiresAtAndPendingIndex.cs 2.76 KB src/Server/ClassNotify.Server/Data/Migrations/20260922000000_AddNotificationExpiresAtAndPendingIndex.Designer.cs 17.84 KB src/Server/ClassNotify.Server/Data/Migrations/20260922120000_AddDeviceCommandsTable.cs 3.53 KB src/Server/ClassNotify.Server/Data/Migrations/20260922120000_AddDeviceCommandsTable.Designer.cs 20.71 KB src/Server/ClassNotify.Server/Data/Migrations/20260922130000_AddDeviceCommandDurationMs.cs 0.74 KB src/Server/ClassNotify.Server/Data/Migrations/20260922130000_AddDeviceCommandDurationMs.Designer.cs 22.06 KB src/Server/ClassNotify.Server/Data/Migrations/20260924165851_AddReliabilityBaselineAndCorrelation.cs 5.64 KB src/Server/ClassNotify.Server/Data/Migrations/20260924165851_AddReliabilityBaselineAndCorrelation.Designer.cs 28.62 KB src/Server/ClassNotify.Server/Data/Migrations/20260925122539_AddDeviceSelfCheckBatch.cs 6.52 KB src/Server/ClassNotify.Server/Data/Migrations/20260925122539_AddDeviceSelfCheckBatch.Designer.cs 32.15 KB src/Server/ClassNotify.Server/Data/Migrations/20260925141051_AddDeviceSupportBundle.cs 5.68 KB src/Server/ClassNotify.Server/Data/Migrations/20260925141051_AddDeviceSupportBundle.Designer.cs 36.94 KB src/Server/ClassNotify.Server/Data/Migrations/ClassNotifyDbContextModelSnapshot.cs 37.07 KB src/Server/ClassNotify.Server/Dockerfile 0.63 KB src/Server/ClassNotify.Server/Domain/Diagnostics/DiagnosticsDto.cs 1 KB src/Server/ClassNotify.Server/Domain/Entities/Entities.cs 14.88 KB src/Server/ClassNotify.Server/Hubs/DeviceHub.cs 14.46 KB src/Server/ClassNotify.Server/Hubs/TeacherHub.cs 1.34 KB src/Server/ClassNotify.Server/Infrastructure/Correlation/CorrelationContext.cs 0.26 KB src/Server/ClassNotify.Server/Infrastructure/Correlation/CorrelationMiddleware.cs 1.51 KB src/Server/ClassNotify.Server/Infrastructure/Logging/LoggingExtensions.cs 0.71 KB src/Server/ClassNotify.Server/Program.cs 15.57 KB src/Server/ClassNotify.Server/publish/ClassNotify.Server.deps.json 39.35 KB src/Server/ClassNotify.Server/publish/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish/publish_arm64/ClassNotify.Server.deps.json 87.96 KB src/Server/ClassNotify.Server/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.55 KB src/Server/ClassNotify.Server/publish/web.config 0.55 KB src/Server/ClassNotify.Server/publish/wwwroot/assets/index-Cw4C71zT.js 397.02 KB src/Server/ClassNotify.Server/publish/wwwroot/assets/index-DYQz3G89.css 35.49 KB src/Server/ClassNotify.Server/publish/wwwroot/index.html 0.96 KB src/Server/ClassNotify.Server/publish_arm64/ClassNotify.Server 71.02 KB src/Server/ClassNotify.Server/publish_arm64/ClassNotify.Server.deps.json 39.41 KB src/Server/ClassNotify.Server/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish/ClassNotify.Server.deps.json 39.35 KB src/Server/ClassNotify.Server/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json 87.96 KB src/Server/ClassNotify.Server/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.55 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/ClassNotify.Server.deps.json 39.41 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/ClassNotify.Server.deps.json 39.35 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json 87.96 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.55 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.deps.json 39.41 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.deps.json 39.35 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json 87.96 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.55 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.deps.json 39.41 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.deps.json 39.35 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json 87.96 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.55 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.deps.json 39.41 KB src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json 0.54 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-3MzGc3jc.js 404.99 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-9-x0O3AO.js 402.93 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-BJNbsTE0.js 399.12 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-BTx44Hl3.css 36.57 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-C6huwYfG.js 405.31 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-CafB9-BO.css 36.45 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-CE0K_TwQ.css 33.58 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-CLUQgLev.js 372.41 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-Cw4C71zT.js 397.02 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-DmNDljc3.css 36.08 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-D-Vcu7vf.css 35.66 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-DYQz3G89.css 35.49 KB src/Server/ClassNotify.Server/publish_arm64/wwwroot/index.html 0.96 KB src/Server/ClassNotify.Server/Services/DeviceCommandTimeoutWorker.cs 4.65 KB src/Server/ClassNotify.Server/Services/DevicePresenceService.cs 1.04 KB src/Server/ClassNotify.Server/Services/DeviceVersionEvaluator.cs 3.16 KB src/Server/ClassNotify.Server/Services/FleetVersionService.cs 7.21 KB src/Server/ClassNotify.Server/Services/ISecurityService.cs 5.5 KB src/Server/ClassNotify.Server/Services/ISelfCheckBatchService.cs 1.51 KB src/Server/ClassNotify.Server/Services/ISupportBundleService.cs 7.48 KB src/Server/ClassNotify.Server/Services/IVisualReceiptService.cs 0.75 KB src/Server/ClassNotify.Server/Services/OperationalHealthState.cs 0.4 KB src/Server/ClassNotify.Server/Services/SecurityService.cs 90.81 KB src/Server/ClassNotify.Server/Services/SelfCheckBatchReconciler.cs 3.67 KB src/Server/ClassNotify.Server/Services/SelfCheckBatchService.cs 20.88 KB src/Server/ClassNotify.Server/Services/SelfCheckDispatchWorker.cs 7.04 KB src/Server/ClassNotify.Server/Services/SupportBundleCleanupWorker.cs 10.39 KB src/Server/ClassNotify.Server/Services/SupportBundleDispatchWorker.cs 6.41 KB src/Server/ClassNotify.Server/Services/SupportBundlePathResolver.cs 2.2 KB src/Server/ClassNotify.Server/Services/SupportBundleService.cs 22.73 KB src/Server/ClassNotify.Server/Services/VisualReceiptCleanupWorker.cs 1.77 KB src/Server/ClassNotify.Server/Services/VisualReceiptService.cs 14.53 KB src/Server/ClassNotify.Server/wwwroot/assets/index-CmrflHx9.js 467.62 KB src/Server/ClassNotify.Server/wwwroot/assets/index-TSELHymJ.css 48.86 KB src/Server/ClassNotify.Server/wwwroot/index.html 0.96 KB src/Server/classnotify.service 0.56 KB src/Server/docker-compose.yml 0.55 KB src/Shared/ClassNotify.Shared/ClassNotify.Shared.csproj 0.24 KB src/Shared/ClassNotify.Shared/Contracts/IDeviceHubClient.cs 1 KB src/Shared/ClassNotify.Shared/Contracts/ITeacherHubClient.cs 1.17 KB src/Shared/ClassNotify.Shared/Enums/AckStatus.cs 0.61 KB src/Shared/ClassNotify.Shared/Enums/DeviceOnlineState.cs 0.42 KB src/Shared/ClassNotify.Shared/Enums/FleetVersionStatus.cs 0.21 KB src/Shared/ClassNotify.Shared/Enums/NotificationType.cs 0.41 KB src/Shared/ClassNotify.Shared/Ipc/IpcMessage.cs 0.62 KB src/Shared/ClassNotify.Shared/Models/AckReceiptDto.cs 0.96 KB src/Shared/ClassNotify.Shared/Models/AdminDtos.cs 7.57 KB src/Shared/ClassNotify.Shared/Models/DeviceActivationRequestDto.cs 0.73 KB src/Shared/ClassNotify.Shared/Models/DeviceActivationResultDto.cs 0.44 KB src/Shared/ClassNotify.Shared/Models/DeviceCommandDto.cs 3.2 KB src/Shared/ClassNotify.Shared/Models/DeviceCredentials.cs 0.57 KB src/Shared/ClassNotify.Shared/Models/DeviceHealthReportDto.cs 1.86 KB src/Shared/ClassNotify.Shared/Models/DeviceHeartbeatDto.cs 1.3 KB src/Shared/ClassNotify.Shared/Models/DeviceSelfCheckBatchDtos.cs 6.14 KB src/Shared/ClassNotify.Shared/Models/DeviceSelfCheckModels.cs 2.07 KB src/Shared/ClassNotify.Shared/Models/DeviceStatusDto.cs 0.59 KB src/Shared/ClassNotify.Shared/Models/FleetVersionDtos.cs 1.82 KB src/Shared/ClassNotify.Shared/Models/NotificationDto.cs 2.08 KB src/Shared/ClassNotify.Shared/Models/NotificationReceiptStatuses.cs 0.76 KB src/Shared/ClassNotify.Shared/Models/SupportBundleModels.cs 6.15 KB src/Shared/ClassNotify.Shared/Models/TeacherLoginDto.cs 0.64 KB src/Shared/ClassNotify.Shared/Models/VisualReceiptModels.cs 0.88 KB src/Shared/ClassNotify.Shared/Services/ClientNotificationBuffer.cs 6.62 KB src/Shared/ClassNotify.Shared/Services/ClientNotificationDeduplicator.cs 3.35 KB src/Shared/ClassNotify.Shared/Services/DeviceCommandDeduplicator.cs 8.38 KB src/Web/ClassNotify.Web/index.html 0.86 KB src/Web/ClassNotify.Web/package.json 0.91 KB src/Web/ClassNotify.Web/package-lock.json 139.91 KB src/Web/ClassNotify.Web/postcss.config.js 0.08 KB src/Web/ClassNotify.Web/run_web_ack_e2e.mjs 7.8 KB src/Web/ClassNotify.Web/src/api/client.ts 14.51 KB src/Web/ClassNotify.Web/src/App.tsx 4.48 KB src/Web/ClassNotify.Web/src/components/Navbar.tsx 18.68 KB src/Web/ClassNotify.Web/src/components/RealtimeStatusBadge.tsx 1.56 KB src/Web/ClassNotify.Web/src/components/RoleRoute.tsx 0.93 KB src/Web/ClassNotify.Web/src/components/ui/CopyButton.tsx 1.6 KB src/Web/ClassNotify.Web/src/components/ui/index.ts 0.23 KB src/Web/ClassNotify.Web/src/components/ui/Modal.tsx 3.64 KB src/Web/ClassNotify.Web/src/components/ui/PageHeader.tsx 0.92 KB src/Web/ClassNotify.Web/src/components/ui/RowActionMenu.tsx 2.61 KB src/Web/ClassNotify.Web/src/components/ui/SearchInput.tsx 1.18 KB src/Web/ClassNotify.Web/src/components/ui/StatCard.tsx 0.98 KB src/Web/ClassNotify.Web/src/components/ui/StatusBadge.tsx 1.7 KB src/Web/ClassNotify.Web/src/components/ui/StatusTabs.tsx 1.49 KB src/Web/ClassNotify.Web/src/context/AuthContext.tsx 3.57 KB src/Web/ClassNotify.Web/src/index.css 0.49 KB src/Web/ClassNotify.Web/src/main.tsx 0.23 KB src/Web/ClassNotify.Web/src/pages/admin/ActivationCodes.tsx 21.06 KB src/Web/ClassNotify.Web/src/pages/admin/AdminDashboard.tsx 18.69 KB src/Web/ClassNotify.Web/src/pages/admin/DeviceManagement.tsx 37.34 KB src/Web/ClassNotify.Web/src/pages/admin/EmergencyBroadcast.tsx 23.93 KB src/Web/ClassNotify.Web/src/pages/admin/FleetVersionDashboard.tsx 21.87 KB src/Web/ClassNotify.Web/src/pages/admin/HistoryAudit.tsx 6.68 KB src/Web/ClassNotify.Web/src/pages/admin/SelfCheckBatchDetail.tsx 34.23 KB src/Web/ClassNotify.Web/src/pages/admin/SelfCheckBatchHistory.tsx 8.06 KB src/Web/ClassNotify.Web/src/pages/admin/TenantManagement.tsx 16.71 KB src/Web/ClassNotify.Web/src/pages/admin/UserManagement.tsx 22.61 KB src/Web/ClassNotify.Web/src/pages/Login.tsx 4.83 KB src/Web/ClassNotify.Web/src/pages/school/ClassManagement.tsx 13.54 KB src/Web/ClassNotify.Web/src/pages/school/SchoolActivationCodes.tsx 11.04 KB src/Web/ClassNotify.Web/src/pages/school/SchoolDashboard.tsx 10.99 KB src/Web/ClassNotify.Web/src/pages/school/TeacherManagement.tsx 17.3 KB src/Web/ClassNotify.Web/src/pages/teacher/TeacherConsole.tsx 43.13 KB src/Web/ClassNotify.Web/src/realtime/SessionManager.ts 0.73 KB src/Web/ClassNotify.Web/src/realtime/TeacherRealtime.ts 7.54 KB src/Web/ClassNotify.Web/src/test/RouteGuard.test.tsx 4.06 KB src/Web/ClassNotify.Web/src/test/SchoolActivationCodes.test.tsx 2.89 KB src/Web/ClassNotify.Web/src/test/SchoolDashboardRealtime.test.tsx 4.58 KB src/Web/ClassNotify.Web/src/test/setup.ts 0.04 KB src/Web/ClassNotify.Web/src/test/TeacherConsole.test.tsx 6.86 KB src/Web/ClassNotify.Web/src/test/TeacherRealtime.test.ts 6.53 KB src/Web/ClassNotify.Web/src/types/index.ts 7.42 KB src/Web/ClassNotify.Web/tailwind.config.js 0.49 KB src/Web/ClassNotify.Web/tsconfig.json 0.66 KB src/Web/ClassNotify.Web/vite.config.ts 0.68 KB src/Web/ClassNotify.Web/vitest.config.ts 0.34 KB src/Windows/ClassNotify.Client/app.manifest 0.75 KB src/Windows/ClassNotify.Client/App.xaml 0.26 KB src/Windows/ClassNotify.Client/App.xaml.cs 4.64 KB src/Windows/ClassNotify.Client/ClassNotify.Client.csproj 0.64 KB src/Windows/ClassNotify.Client/MainWindow.xaml 4.92 KB src/Windows/ClassNotify.Client/MainWindow.xaml.cs 3.77 KB src/Windows/ClassNotify.Client/Services/AudioTtsService.cs 2.37 KB src/Windows/ClassNotify.Client/Services/IpcClient.cs 13.26 KB src/Windows/ClassNotify.Client/Services/SimpleVisualReceipt.cs 4.01 KB src/Windows/ClassNotify.Service/appsettings.json 0.29 KB src/Windows/ClassNotify.Service/ClassNotify.Service.csproj 0.94 KB src/Windows/ClassNotify.Service/Diagnostics/SupportBundleCollector.cs 11.35 KB src/Windows/ClassNotify.Service/Diagnostics/SupportEventRecorder.cs 1.62 KB src/Windows/ClassNotify.Service/Ipc/NamedPipeServer.cs 22.04 KB src/Windows/ClassNotify.Service/Program.cs 1.38 KB src/Windows/ClassNotify.Service/Services/DeviceCredentialProtector.cs 8.36 KB src/Windows/ClassNotify.Service/Services/DeviceCredentialsManager.cs 1.46 KB src/Windows/ClassNotify.Service/Services/SessionLauncher.cs 8.8 KB src/Windows/ClassNotify.Service/Workers/ClientWatchdogWorker.cs 11.37 KB src/Windows/ClassNotify.Service/Workers/SignalRWorker.cs 50.75 KB src/Windows/ClassNotify.Setup/app.manifest 0.69 KB src/Windows/ClassNotify.Setup/App.xaml 3.92 KB src/Windows/ClassNotify.Setup/App.xaml.cs 8.2 KB src/Windows/ClassNotify.Setup/ClassNotify.Setup.csproj 1.01 KB src/Windows/ClassNotify.Setup/MainWindow.xaml 10.59 KB src/Windows/ClassNotify.Setup/MainWindow.xaml.cs 9.53 KB src/Windows/ClassNotify.Setup/Services/ActivationService.cs 3.74 KB src/Windows/ClassNotify.Setup/Services/DeploymentService.cs 8.86 KB src/Windows/ClassNotify.Setup/Services/RegistryUninstallManager.cs 1.21 KB src/Windows/ClassNotify.Setup/Services/SelfCheckService.cs 3.67 KB src/Windows/ClassNotify.Setup/Services/StartupManager.cs 2.19 KB src/Windows/ClassNotify.Setup/Services/UninstallManager.cs 1.82 KB src/Windows/ClassNotify.Setup/Services/WindowsServiceManager.cs 4.5 KB src/Windows/ClassNotify.Setup/UninstallWindow.xaml 4.16 KB src/Windows/ClassNotify.Setup/UninstallWindow.xaml.cs 1.35 KB test_p0_fixes.ps1 4.81 KB test_vps_security.ps1 2.82 KB tests/BenchmarkRunner/BenchmarkRunner.csproj 0.65 KB tests/BenchmarkRunner/Program.cs 11.46 KB tests/build_rc4_final_dossier.ps1 10.02 KB tests/ClassNotify.AuthTests/ClassNotify.AuthTests.csproj 0.65 KB tests/ClassNotify.AuthTests/Program.cs 15.62 KB tests/ClassNotify.CommandTests/ClassNotify.CommandTests.csproj 0.82 KB tests/ClassNotify.CommandTests/Program.cs 69.69 KB tests/ClassNotify.DeliveryTests/ClassNotify.DeliveryTests.csproj 0.74 KB tests/ClassNotify.DeliveryTests/Program.cs 74.29 KB tests/ClassNotify.EdgeSecurityTests/ClassNotify.EdgeSecurityTests.csproj 0.95 KB tests/ClassNotify.EdgeSecurityTests/Program.cs 31.94 KB tests/ClassNotify.FleetTests/ClassNotify.FleetTests.csproj 0.93 KB tests/ClassNotify.FleetTests/Program.cs 21.89 KB tests/ClassNotify.FleetTests/SelfCheckBatchTests.cs 46.31 KB tests/ClassNotify.FleetTests/SupportBundlePhase1Tests.cs 35.92 KB tests/ClassNotify.FleetTests/SupportBundlePhase2Tests.cs 62.67 KB tests/ClassNotify.FleetTests/SupportBundlePhase3Tests.cs 52.28 KB tests/ClassNotify.RateLimitTests/ClassNotify.RateLimitTests.csproj 0.65 KB tests/ClassNotify.RateLimitTests/Program.cs 15.89 KB tests/ClassNotify.SetupTests/ClassNotify.SetupTests.csproj 0.39 KB tests/ClassNotify.SetupTests/Program.cs 6.93 KB tests/credentials_backup.bin 0.47 KB tests/resume_rc3_reboot.ps1 23.51 KB tests/test_command_real_e2e.ps1 10.82 KB tests/test_p1_batch4_security.ps1 8.66 KB tests/test_p23_supplemental_suite.ps1 15.04 KB tests/test_p25_rc0_closure_gates.ps1 28.07 KB tests/test_rc1_install_upgrade.ps1 17.59 KB tests/test_rc2_core_e2e.ps1 32.21 KB tests/test_rc2_install_upgrade.ps1 22.89 KB tests/test_rc2_supplemental_a.ps1 16.19 KB tests/test_rc2_supplemental_b.ps1 36.85 KB tests/test_rc2_supplemental_c.ps1 27.96 KB tests/test_rc3_cloud_recovery.ps1 37.46 KB tests/test_rc3_endpoint_recovery.ps1 34.06 KB tests/test_rc3_reboot_recovery.ps1 6.41 KB tests/test_rc4_backup_restore.ps1 25.86 KB tests/test_rc4_deploy_rollback.ps1 38.9 KB tests/test_rc5_security_gate.ps1 57.67 KB tests/test_snapshot_sanitizer.ps1 7.33 KB tests/test_upgrade_quiesce_regression.ps1 1.68 KB tests/verify_visual_receipt_suite.ps1 12.67 KB tests/VisualReceiptFailSilentTest/Program.cs 0.67 KB tests/VisualReceiptFailSilentTest/VisualReceiptFailSilentTest.csproj 0.39 KB update_vps.ps1 6.25 KB walkthrough.md 8.46 KB -------------------------------------------------------------------------------- Total Files: 358 | Total Uncompressed Size: 7.27 MB -------------------------------------------------------------------------------- ================================================================================ FILE: AUDIT_README.md ================================================================================ # ClassNotify Codebase Snapshot Version: 2.5.0 ReleaseId: 20260925-235800-RC13PASS Reliability baseline, full correlationId tracing, device version inventory, and device self-checks. ================================================================================ FILE: build_installer.ps1 ================================================================================ # ============================================================================== # ClassNotifySetup.exe Build Script (Self-Contained Single-File) # ============================================================================== $ErrorActionPreference = "Stop" $dotnet = "C:\Program Files\dotnet\dotnet.exe" $root = $PSScriptRoot Write-Host "==========================================================" -ForegroundColor Cyan Write-Host " ClassNotify Installer Build Starting (Milestone 3)" -ForegroundColor Cyan Write-Host "==========================================================" -ForegroundColor Cyan # 1. Directories $stagingDir = Join-Path $root "staging" $serviceStaging = Join-Path $stagingDir "service" $clientStaging = Join-Path $stagingDir "client" $payloadStaging = Join-Path $stagingDir "payload" $distDir = Join-Path $root "dist" $resourcesDir = Join-Path $root "src\Windows\ClassNotify.Setup\Resources" $payloadZip = Join-Path $resourcesDir "payload.zip" if (Test-Path $stagingDir) { Remove-Item $stagingDir -Recurse -Force } if (Test-Path $distDir) { Remove-Item $distDir -Recurse -Force } New-Item -ItemType Directory -Path $serviceStaging -Force | Out-Null New-Item -ItemType Directory -Path $clientStaging -Force | Out-Null New-Item -ItemType Directory -Path $payloadStaging -Force | Out-Null New-Item -ItemType Directory -Path $resourcesDir -Force | Out-Null New-Item -ItemType Directory -Path $distDir -Force | Out-Null # 2. Publish Windows Service (win-x64, self-contained) Write-Host "`n[1/4] Publishing ClassNotify.Service (win-x64, self-contained)..." -ForegroundColor Yellow $serviceProj = Join-Path $root "src\Windows\ClassNotify.Service\ClassNotify.Service.csproj" & $dotnet publish $serviceProj -c Release -r win-x64 --self-contained true -o $serviceStaging if ($LASTEXITCODE -ne 0) { throw "ClassNotify.Service publish failed" } # 3. Publish WPF Client (win-x64, self-contained) Write-Host "`n[2/4] Publishing ClassNotify.Client (win-x64, self-contained)..." -ForegroundColor Yellow $clientProj = Join-Path $root "src\Windows\ClassNotify.Client\ClassNotify.Client.csproj" & $dotnet publish $clientProj -c Release -r win-x64 --self-contained true -o $clientStaging if ($LASTEXITCODE -ne 0) { throw "ClassNotify.Client publish failed" } if (Test-Path "$clientStaging\runtimes\win\lib\net8.0\System.Speech.dll") { Copy-Item "$clientStaging\runtimes\win\lib\net8.0\System.Speech.dll" "$clientStaging\System.Speech.dll" -Force } # 4. Assemble payload and compress to payload.zip Write-Host "`n[3/4] Assembling and compressing payload.zip..." -ForegroundColor Yellow Copy-Item -Path $serviceStaging -Destination (Join-Path $payloadStaging "Service") -Recurse -Force Copy-Item -Path $clientStaging -Destination (Join-Path $payloadStaging "Client") -Recurse -Force if (Test-Path $payloadZip) { Remove-Item $payloadZip -Force } Compress-Archive -Path "$payloadStaging\*" -DestinationPath $payloadZip -CompressionLevel Optimal $zipSize = (Get-Item $payloadZip).Length / 1MB Write-Host " payload.zip generated: $([math]::Round($zipSize, 2)) MB" -ForegroundColor Green # 5. Publish ClassNotify.Setup (Single-File, win-x64, self-contained) Write-Host "`n[4/4] Packaging ClassNotifySetup.exe (Single-File Self-Contained)..." -ForegroundColor Yellow $setupProj = Join-Path $root "src\Windows\ClassNotify.Setup\ClassNotify.Setup.csproj" & $dotnet publish $setupProj -c Release -r win-x64 --self-contained true ` -p:PublishSingleFile=true ` -p:IncludeNativeLibrariesForSelfExtract=true ` -p:EnableCompressionInSingleFile=true ` -o $distDir if ($LASTEXITCODE -ne 0) { throw "ClassNotify.Setup packaging failed" } # 6. Rename to delivery name $builtExe = Join-Path $distDir "ClassNotify.Setup.exe" $finalExe = Join-Path $distDir "ClassNotifySetup.exe" if (Test-Path $builtExe) { Move-Item -Path $builtExe -Destination $finalExe -Force } $fileInfo = Get-Item $finalExe $finalSize = [math]::Round($fileInfo.Length / 1MB, 2) Write-Host "`n==========================================================" -ForegroundColor Green Write-Host " ClassNotifySetup.exe Built Successfully!" -ForegroundColor Green Write-Host " Path: $($fileInfo.FullName)" -ForegroundColor Green Write-Host " Size: $finalSize MB" -ForegroundColor Green Write-Host " Delivery Ready: Fully Self-Contained (No .NET SDK/Runtime Needed)" -ForegroundColor Green Write-Host "==========================================================" -ForegroundColor Green ================================================================================ FILE: ClassNotify.sln ================================================================================ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.8.34330.188 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassNotify.Shared", "src\Shared\ClassNotify.Shared\ClassNotify.Shared.csproj", "{A1B2C3D4-E5F6-4A7B-8C9D-0E1F2A3B4C5D}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassNotify.Server", "src\Server\ClassNotify.Server\ClassNotify.Server.csproj", "{B2C3D4E5-F6A7-4B8C-9D0E-1F2A3B4C5D6E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassNotify.Service", "src\Windows\ClassNotify.Service\ClassNotify.Service.csproj", "{C3D4E5F6-A7B8-4C9D-0E1F-2A3B4C5D6E7F}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassNotify.Client", "src\Windows\ClassNotify.Client\ClassNotify.Client.csproj", "{D4E5F6A7-B8C9-4D0E-1F2A-3B4C5D6E7F80}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{4983000A-888B-4A13-AACB-4E5D168BA867}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassNotify.AuthTests", "tests\ClassNotify.AuthTests\ClassNotify.AuthTests.csproj", "{5C1FFD9F-A66A-4002-80EC-029AC9EDF045}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassNotify.RateLimitTests", "tests\ClassNotify.RateLimitTests\ClassNotify.RateLimitTests.csproj", "{E6896AF3-B26F-4ADD-9F2D-ECAACB17FBA6}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassNotify.DeliveryTests", "tests\ClassNotify.DeliveryTests\ClassNotify.DeliveryTests.csproj", "{F1A2B3C4-D5E6-4F7A-8B9C-0D1E2F3A4B5C}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassNotify.CommandTests", "tests\ClassNotify.CommandTests\ClassNotify.CommandTests.csproj", "{82B7D11D-26F9-4B64-BEFF-D42397019651}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A1B2C3D4-E5F6-4A7B-8C9D-0E1F2A3B4C5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A1B2C3D4-E5F6-4A7B-8C9D-0E1F2A3B4C5D}.Debug|Any CPU.Build.0 = Debug|Any CPU {A1B2C3D4-E5F6-4A7B-8C9D-0E1F2A3B4C5D}.Release|Any CPU.ActiveCfg = Release|Any CPU {A1B2C3D4-E5F6-4A7B-8C9D-0E1F2A3B4C5D}.Release|Any CPU.Build.0 = Release|Any CPU {B2C3D4E5-F6A7-4B8C-9D0E-1F2A3B4C5D6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B2C3D4E5-F6A7-4B8C-9D0E-1F2A3B4C5D6E}.Debug|Any CPU.Build.0 = Debug|Any CPU {B2C3D4E5-F6A7-4B8C-9D0E-1F2A3B4C5D6E}.Release|Any CPU.ActiveCfg = Release|Any CPU {B2C3D4E5-F6A7-4B8C-9D0E-1F2A3B4C5D6E}.Release|Any CPU.Build.0 = Release|Any CPU {C3D4E5F6-A7B8-4C9D-0E1F-2A3B4C5D6E7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C3D4E5F6-A7B8-4C9D-0E1F-2A3B4C5D6E7F}.Debug|Any CPU.Build.0 = Debug|Any CPU {C3D4E5F6-A7B8-4C9D-0E1F-2A3B4C5D6E7F}.Release|Any CPU.ActiveCfg = Release|Any CPU {C3D4E5F6-A7B8-4C9D-0E1F-2A3B4C5D6E7F}.Release|Any CPU.Build.0 = Release|Any CPU {D4E5F6A7-B8C9-4D0E-1F2A-3B4C5D6E7F80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {D4E5F6A7-B8C9-4D0E-1F2A-3B4C5D6E7F80}.Debug|Any CPU.Build.0 = Debug|Any CPU {D4E5F6A7-B8C9-4D0E-1F2A-3B4C5D6E7F80}.Release|Any CPU.ActiveCfg = Release|Any CPU {D4E5F6A7-B8C9-4D0E-1F2A-3B4C5D6E7F80}.Release|Any CPU.Build.0 = Release|Any CPU {5C1FFD9F-A66A-4002-80EC-029AC9EDF045}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5C1FFD9F-A66A-4002-80EC-029AC9EDF045}.Debug|Any CPU.Build.0 = Debug|Any CPU {5C1FFD9F-A66A-4002-80EC-029AC9EDF045}.Release|Any CPU.ActiveCfg = Release|Any CPU {5C1FFD9F-A66A-4002-80EC-029AC9EDF045}.Release|Any CPU.Build.0 = Release|Any CPU {E6896AF3-B26F-4ADD-9F2D-ECAACB17FBA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E6896AF3-B26F-4ADD-9F2D-ECAACB17FBA6}.Debug|Any CPU.Build.0 = Debug|Any CPU {E6896AF3-B26F-4ADD-9F2D-ECAACB17FBA6}.Release|Any CPU.ActiveCfg = Release|Any CPU {E6896AF3-B26F-4ADD-9F2D-ECAACB17FBA6}.Release|Any CPU.Build.0 = Release|Any CPU {F1A2B3C4-D5E6-4F7A-8B9C-0D1E2F3A4B5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F1A2B3C4-D5E6-4F7A-8B9C-0D1E2F3A4B5C}.Debug|Any CPU.Build.0 = Debug|Any CPU {F1A2B3C4-D5E6-4F7A-8B9C-0D1E2F3A4B5C}.Release|Any CPU.ActiveCfg = Release|Any CPU {F1A2B3C4-D5E6-4F7A-8B9C-0D1E2F3A4B5C}.Release|Any CPU.Build.0 = Release|Any CPU {82B7D11D-26F9-4B64-BEFF-D42397019651}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {82B7D11D-26F9-4B64-BEFF-D42397019651}.Debug|Any CPU.Build.0 = Debug|Any CPU {82B7D11D-26F9-4B64-BEFF-D42397019651}.Release|Any CPU.ActiveCfg = Release|Any CPU {82B7D11D-26F9-4B64-BEFF-D42397019651}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {5C1FFD9F-A66A-4002-80EC-029AC9EDF045} = {4983000A-888B-4A13-AACB-4E5D168BA867} {E6896AF3-B26F-4ADD-9F2D-ECAACB17FBA6} = {4983000A-888B-4A13-AACB-4E5D168BA867} {F1A2B3C4-D5E6-4F7A-8B9C-0D1E2F3A4B5C} = {4983000A-888B-4A13-AACB-4E5D168BA867} {82B7D11D-26F9-4B64-BEFF-D42397019651} = {4983000A-888B-4A13-AACB-4E5D168BA867} EndGlobalSection EndGlobal ================================================================================ FILE: implementation_plan.md ================================================================================ # Implementation Plan - P1 Batch 10: Remote Command Reliability, Idempotency & Audit Trail ## Goal Description Transition from notification delivery (Batch 9 - sealed) to remote maintenance command execution reliability (Batch 10). Build an end-to-end traceable, idempotent, device/tenant-isolated remote command control plane for classroom terminals (Windows Service), supporting: - Safe maintenance commands: `SelfCheck`, `RestartClient`, `Reconnect`, `RefreshConfig`. - End-to-end immutable `CommandId` (`cmd_xxxxx`). - PostgreSQL persistence (`DeviceCommands` table) with formal status lifecycle: `Pending`, `Dispatched`, `Succeeded`, `Failed`, `TimedOut`, `Expired`. - Short-lived TTL policy (1–5 minutes) preventing stale commands from executing upon late reconnect. - Windows Service client-side command deduplication (`DeviceCommandDeduplicator`). - Real-time Web feedback via SignalR and strict error sanitization. - Comprehensive automated test suite (unit/integration) and real production-like E2E physical execution. --- ## User Review Required > [!IMPORTANT] > **Strict Security & Architectural Boundaries (Reviewer Invariants)**: > 1. **Zero modifications to Batch 9 Notification / Delivery code**: The notification path is sealed and must remain untouched. > 2. **Fixed Command Whitelist**: Only 4 safe commands are allowed (`SelfCheck`, `RestartClient`, `Reconnect`, `RefreshConfig`). Arbitrary script or shell execution (`PowerShell`, `CMD`, `RunProgram`, `DownloadAndExecute`) is strictly prohibited. > 3. **Zero External Brokers**: No Redis, Kafka, RabbitMQ, or Quartz. Timeout and lifecycle states will be handled natively via PostgreSQL and lightweight background services. > 4. **Tenant & Device Isolation**: Strict server-side verification of caller tenant, device ownership, and command ID matching. Devices cannot report results for commands they do not own. --- ## Proposed Changes ### Component 1: Shared Models & Contracts (`ClassNotify.Shared`) #### [NEW] [`DeviceCommandDto.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Shared/ClassNotify.Shared/Models/DeviceCommandDto.cs) - `DeviceCommandDto`: `CommandId`, `TenantId`, `DeviceId`, `CommandType`, `Parameters`, `CreatedAt`, `ExpiresAt`. - `DeviceCommandResultDto`: `CommandId`, `DeviceId`, `Status` (`Succeeded`, `Failed`, `TimedOut`, `Expired`), `ResultCode`, `ResultMessage`, `ExecutionDurationMs`, `Timestamp`. - `DeviceCommandType` enum / string constants: `SelfCheck`, `RestartClient`, `Reconnect`, `RefreshConfig`. - `DeviceCommandStatus`: `Pending`, `Dispatched`, `Succeeded`, `Failed`, `TimedOut`, `Expired`. #### [NEW] [`DeviceCommandDeduplicator.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Shared/ClassNotify.Shared/Services/DeviceCommandDeduplicator.cs) - Dedicated sliding memory cache using `ConcurrentDictionary` with maximum capacity bounds and automatic pruning. - Distinct from `ClientNotificationDeduplicator` to preserve semantic isolation. - Ensures a received `CommandId` executes at most once on the terminal, returning the cached execution result on duplicate redelivery. #### [MODIFY] [`IDeviceHubClient.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Shared/ClassNotify.Shared/Contracts/IDeviceHubClient.cs) - Upgrade `ReceiveRemoteCommand` contract from untracked strings to strongly typed: ```csharp Task ReceiveRemoteCommand(DeviceCommandDto command); ``` #### [MODIFY] [`ITeacherHubClient.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Shared/ClassNotify.Shared/Contracts/ITeacherHubClient.cs) - Add real-time command tracking events: ```csharp Task OnDeviceCommandStatusChanged(DeviceCommandResultDto result); ``` --- ### Component 2: Server Domain & Database (`ClassNotify.Server`) #### [NEW] [`DeviceCommand.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Server/ClassNotify.Server/Domain/Entities/DeviceCommand.cs) - Database entity mapped to PostgreSQL table `DeviceCommands`: * `Id` (`cmd_...`, Primary Key, max length 100) * `TenantId` (Foreign Key -> `Tenants`, Cascade) * `DeviceId` (Foreign Key -> `Devices`, Cascade) * `CommandType` (max length 50) * `Parameters` (nullable text) * `CreatedBy` (username / teacher ID) * `CreatedAt` (DateTimeOffset) * `ExpiresAt` (DateTimeOffset) * `StartedAt` (nullable DateTimeOffset) * `CompletedAt` (nullable DateTimeOffset) * `Status` (`Pending`, `Dispatched`, `Succeeded`, `Failed`, `TimedOut`, `Expired`) * `ResultCode` (nullable int) * `ResultMessage` (nullable varchar 1000) #### [MODIFY] [`ClassNotifyDbContext.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Server/ClassNotify.Server/Data/ClassNotifyDbContext.cs) - Add `DbSet DeviceCommands` and composite indexes: * `IX_DeviceCommands_TenantId_DeviceId_CreatedAt` * `IX_DeviceCommands_DeviceId_Status` * `IX_DeviceCommands_Status_ExpiresAt` #### [NEW] EF Migration: `20260922120000_AddDeviceCommandsTable.cs` - Generates `DeviceCommands` table and indexes for PostgreSQL. #### [MODIFY] [`ISecurityService.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Server/ClassNotify.Server/Services/ISecurityService.cs) & [`SecurityService.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Server/ClassNotify.Server/Services/SecurityService.cs) - Add remote command methods: * `CreateDeviceCommandAsync(string tenantId, string deviceId, string commandType, string? parameters, string createdBy, TimeSpan? ttl = null)` * `RecordCommandResultAsync(string connectionId, DeviceCommandResultDto result)` * `GetPendingCommandsForDeviceAsync(string deviceId)` (with automatic expiry check) * `GetDeviceCommandAsync(string tenantId, string commandId)` * `GetDeviceCommandHistoryAsync(string tenantId, string deviceId, int limit = 20)` * `SweepExpiredCommandsAsync()` #### [MODIFY] [`DeviceHub.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Server/ClassNotify.Server/Hubs/DeviceHub.cs) - On terminal reconnect: check active `Pending` / `Dispatched` commands within TTL (`ExpiresAt > UtcNow`). If within TTL, push to device; if expired, transition to `Expired`. - Implement `ReportCommandResult(DeviceCommandResultDto result)`: * Verify `Context.ConnectionId` belongs to authenticated device and tenant. * Verify `CommandId` was issued to this exact device and tenant. * Persist final status, completed timestamp, result code, and sanitized message. * Broadcast `OnDeviceCommandStatusChanged` to the tenant's teachers/admin group. #### [NEW] [`DeviceCommandController.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Server/ClassNotify.Server/Controllers/DeviceCommandController.cs) - `POST /api/device-command/send`: * Validates JWT claims (`TenantId`). * Validates target device belongs to caller tenant. * Enforces command whitelist. * Generates unique `cmd_...` ID. * Dispatches immediately via SignalR if online, or records pending for short-lived catch-up. - `GET /api/device-command/{commandId}`: Query specific command status. - `GET /api/device-command/history`: Query device command audit trail. --- ### Component 3: Windows Service (`ClassNotify.Service`) #### [MODIFY] [`SignalRWorker.cs`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/src/Windows/ClassNotify.Service/Workers/SignalRWorker.cs) - Integrate `DeviceCommandDeduplicator`. - Handle `ReceiveRemoteCommand(DeviceCommandDto command)`: * Step 1: TTL Check. If `command.ExpiresAt <= DateTimeOffset.UtcNow`, discard and report `Expired`. * Step 2: Idempotency Check. If `_commandDeduplicator.TryBeginExecution(command.CommandId)` fails, return cached result or skip. * Step 3: Dispatch to safe command executors: - `SelfCheck`: Runs `ExecuteSelfCheckAsync()`, packs health indicators into sanitized result, reports `Succeeded`. - `RestartClient`: Terminates existing client process safely, re-launches via `SessionLauncher.LaunchProcessInActiveUserSession` with fresh IPC token, reports `Succeeded`. - `Reconnect`: Triggers SignalR reconnect sequence asynchronously, reports `Succeeded`. - `RefreshConfig`: Reloads credentials from DPAPI storage, verifies validity, reports `Succeeded`. * Step 4: Report result back to server via `await _hubConnection.InvokeAsync("ReportCommandResult", resultDto)`. * Step 5: Catch unhandled exceptions, sanitize messages (strip stack traces, file paths, and tokens), and report `Failed`. --- ### Component 4: Test Suites & E2E Validation (`ClassNotify.DeliveryTests` & `ClassNotify.CommandTests`) #### [NEW] [`ClassNotify.CommandTests`](file:///C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/tests/ClassNotify.CommandTests) Dedicated test suite verifying all 13 reviewer-required scenarios: 1. Online device receives command, executes once, reports `Succeeded`. 2. Offline device within TTL receives catch-up command on reconnect, executes once. 3. Offline device past TTL reconnects, command is suppressed and marked `Expired`. 4. Duplicate delivery of same `CommandId` 3 times produces exactly 1 actual execution (deduplication). 5. SignalR reconnection does not re-execute completed command. 6. Tenant A cannot send command to Tenant B device (cross-tenant rejection). 7. Device A cannot report result for Device B's command (anti-spoofing). 8. Forged / non-existent `CommandId` result is rejected. 9. Execution failure reports `Failed` with sanitized error message. 10. Unacknowledged dispatched command transitions to `TimedOut` after expiry. 11. Server restart preserves pending command state. 12. Device restart suppresses expired commands. 13. Result duplicate submission is strictly idempotent. #### [NEW] Real Production-like E2E Verification Script (`test_command_real_e2e.ps1`) - Spins up Server with PostgreSQL and live Windows Service. - Dispatches real `SelfCheck` command via REST API. - Asserts Service receives SignalR dispatch, executes local self-check, reports `DeviceCommandResultDto`. - Asserts Server updates PostgreSQL status to `Succeeded`. - Asserts Web SignalR client receives real-time `Succeeded` event. - Measures and logs: `CommandId`, `DeviceId`, `SentAt`, `ReceivedAt`, `CompletedAt`, `FinalStatus`, `TotalLatencyMs`. --- ## Verification Plan ### Automated Tests ```powershell # 1. Run new Command reliability test suite $env:CLASSNOTIFY_TEST_DB_CONNECTION="Host=127.0.0.1;Port=5432;Database=postgres;Username=classnotify_test;Password=;" dotnet run --project tests/ClassNotify.CommandTests/ClassNotify.CommandTests.csproj -c Release # 2. Run real E2E verification powershell.exe -ExecutionPolicy Bypass -File .\tests\test_command_real_e2e.ps1 # 3. Regression test suites dotnet run --project tests/ClassNotify.DeliveryTests/ClassNotify.DeliveryTests.csproj -c Release dotnet run --project tests/ClassNotify.EdgeSecurityTests/ClassNotify.EdgeSecurityTests.csproj -c Release dotnet run --project tests/ClassNotify.AuthTests/ClassNotify.AuthTests.csproj -c Release dotnet run --project tests/ClassNotify.RateLimitTests/ClassNotify.RateLimitTests.csproj -c Release # 4. Full solution build dotnet build ClassNotify.sln -c Release ``` ### Reviewer Gate - Publish new immutable snapshot with `Publish-AuditSnapshot.ps1`. - Submit to ChatGPT independent review thread for audit until `REVIEW_STATUS: APPROVED`. ================================================================================ FILE: ops/caddy/classnotify.caddy ================================================================================ # ============================================================================== # ClassNotify Production Caddy Configuration Snippet # Hosts: classnotify.paradise.eu.org, audit.paradise.eu.org # Reverse Proxy to Kestrel (127.0.0.1:5000) & Immutable Audit Storage # ============================================================================== audit.paradise.eu.org { @latest path /manifest.json /latest-source.txt /latest.zip /AUDIT_FILE_TREE.txt /AUDIT_README.md /AUDIT_BUILD_RESULTS.md /P1_RC1_BUILD_MANIFEST.json handle @latest { root * /srv/classnotify-audit header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" header Pragma "no-cache" header Expires "0" @latestText path /latest-source.txt /AUDIT_FILE_TREE.txt /AUDIT_README.md /AUDIT_BUILD_RESULTS.md header @latestText Content-Type "text/plain; charset=utf-8" file_server } handle_path /release-candidates/* { root * /srv/classnotify-audit/release-candidates header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /rc1/* { root * /srv/classnotify-audit/rc1 header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /snapshot/* { root * /srv/classnotify-audit/releases header Cache-Control "public, max-age=31536000, immutable" @snapshotText path *.txt *.md header @snapshotText Content-Type "text/plain; charset=utf-8" file_server } respond 404 } classnotify.paradise.eu.org { handle_path /audit-sec-9a7f8b2c4e/release-candidates/* { root * /srv/classnotify-audit/release-candidates header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /audit-sec-9a7f8b2c4e/snapshot/* { root * /srv/classnotify-audit/releases header Cache-Control "public, max-age=31536000, immutable" @snapshotText path *.txt *.md header @snapshotText Content-Type "text/plain; charset=utf-8" file_server } handle_path /audit-sec-9a7f8b2c4e/rc1/* { root * /srv/classnotify-audit/rc1 header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /audit-sec-9a7f8b2c4e/* { root * /srv/classnotify-audit @allowed path /latest.zip /latest-source.txt /manifest.json /AUDIT_FILE_TREE.txt /AUDIT_README.md /AUDIT_BUILD_RESULTS.md /P1_RC1_BUILD_MANIFEST.json @sourceText { path /latest-source.txt path /AUDIT_FILE_TREE.txt path /AUDIT_README.md path /AUDIT_BUILD_RESULTS.md } header @sourceText Content-Type "text/plain; charset=utf-8" handle @allowed { header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" header Pragma "no-cache" header Expires "0" file_server } respond 404 } reverse_proxy 127.0.0.1:5000 } ================================================================================ FILE: ops/classnotify-backup.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify P2.5 Automated PostgreSQL Backup with Operational Health Status # Target: Tokyo VPS Local Retained Backups (/var/backups/classnotify) # Format: PostgreSQL Custom Archive (-Fc) # Retention: 14 daily backups, 4 weekly snapshots # Health: Writes /var/lib/classnotify/ops/backup-status.json for /api/health/diagnostics # ============================================================================== set -euo pipefail BACKUP_DIR="/var/backups/classnotify" DAILY_DIR="${BACKUP_DIR}/daily" WEEKLY_DIR="${BACKUP_DIR}/weekly" STATUS_DIR="/var/lib/classnotify/ops" STATUS_FILE="${STATUS_DIR}/backup-status.json" mkdir -p "${DAILY_DIR}" "${WEEKLY_DIR}" "${STATUS_DIR}" chown -R postgres:postgres "${BACKUP_DIR}" TIMESTAMP=$(date +"%Y%m%d_%H%M%S") DAILY_FILE="${DAILY_DIR}/classnotify_${TIMESTAMP}.dump" echo "[$(date -u +"%Y-%m-%dT%H:%M:%SZ")] Starting ClassNotify PostgreSQL backup (custom format -Fc)..." # Dump via postgres superuser sudo -u postgres pg_dump -d classnotify -Fc -f "${DAILY_FILE}" FILESIZE=$(stat -c%s "${DAILY_FILE}" 2>/dev/null || stat -f%z "${DAILY_FILE}" 2>/dev/null || wc -c < "${DAILY_FILE}") if [ "${FILESIZE}" -lt 500 ]; then echo "ERROR: Backup file ${DAILY_FILE} is abnormally small (${FILESIZE} bytes)!" >&2 exit 1 fi chmod 600 "${DAILY_FILE}" NOW_UTC=$(date -u +"%Y-%m-%dT%H:%M:%SZ") echo "[${NOW_UTC}] Daily custom backup created: ${DAILY_FILE} (${FILESIZE} bytes)" # If Sunday (day 7), create weekly snapshot DAY_OF_WEEK=$(date +%u) if [ "${DAY_OF_WEEK}" -eq 7 ]; then WEEKLY_FILE="${WEEKLY_DIR}/classnotify_weekly_${TIMESTAMP}.dump" cp "${DAILY_FILE}" "${WEEKLY_FILE}" echo "[${NOW_UTC}] Weekly snapshot created: ${WEEKLY_FILE}" fi # Retention policy: retain last 14 daily backups find "${DAILY_DIR}" -type f -name "classnotify_*.dump" -mtime +14 -delete 2>/dev/null || true # Retention policy: retain last 4 weekly backups (28 days) find "${WEEKLY_DIR}" -type f -name "classnotify_weekly_*.dump" -mtime +28 -delete 2>/dev/null || true # Write operational health status file for /api/health/diagnostics TMP_STATUS="${STATUS_FILE}.tmp" cat < "${TMP_STATUS}" { "lastSuccessUtc": "${NOW_UTC}", "backupFile": "${DAILY_FILE}", "sizeBytes": ${FILESIZE}, "format": "pg_dump_custom_fc", "status": "Healthy" } EOF mv "${TMP_STATUS}" "${STATUS_FILE}" chmod 644 "${STATUS_FILE}" echo "[${NOW_UTC}] ClassNotify PostgreSQL backup completed and health status updated." exit 0 ================================================================================ FILE: ops/classnotify-db-backup.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify Automated PostgreSQL Database Backup Script # Target: Oracle VPS Local Retained Backups (/var/backups/classnotify) # Retention: 7 daily backups, 4 weekly snapshots # ============================================================================== set -euo pipefail BACKUP_DIR="/var/backups/classnotify" DAILY_DIR="${BACKUP_DIR}/daily" WEEKLY_DIR="${BACKUP_DIR}/weekly" mkdir -p "${DAILY_DIR}" "${WEEKLY_DIR}" TIMESTAMP=$(date +"%Y%m%d_%H%M%S") DAILY_FILE="${DAILY_DIR}/classnotify_${TIMESTAMP}.sql.gz" echo "[$(date)] Starting ClassNotify PostgreSQL backup..." # Extract password from /etc/classnotify/classnotify.env if available, or dump via postgres user if [ -f "/etc/classnotify/classnotify.env" ]; then ENV_STR=$(grep "ConnectionStrings__DefaultConnection=" /etc/classnotify/classnotify.env | cut -d'=' -f2-) DB_PASS=$(echo "${ENV_STR}" | sed -n 's/.*Password=\([^;]*\).*/\1/p') PGPASSWORD="${DB_PASS}" pg_dump -h 127.0.0.1 -U classnotify -d classnotify | gzip -9 > "${DAILY_FILE}" else sudo -u postgres pg_dump classnotify | gzip -9 > "${DAILY_FILE}" fi FILESIZE=$(stat -c%s "${DAILY_FILE}") if [ "${FILESIZE}" -lt 100 ]; then echo "ERROR: Backup file ${DAILY_FILE} is abnormally small (${FILESIZE} bytes)!" >&2 exit 1 fi echo "[$(date)] Daily backup created: ${DAILY_FILE} (${FILESIZE} bytes)" # If Sunday (day 7), create weekly snapshot DAY_OF_WEEK=$(date +%u) if [ "${DAY_OF_WEEK}" -eq 7 ]; then WEEKLY_FILE="${WEEKLY_DIR}/classnotify_weekly_${TIMESTAMP}.sql.gz" cp "${DAILY_FILE}" "${WEEKLY_FILE}" echo "[$(date)] Weekly snapshot created: ${WEEKLY_FILE}" fi # Retention policy: retain last 7 daily backups find "${DAILY_DIR}" -type f -name "classnotify_*.sql.gz" -mtime +7 -exec rm -f {} + # Retention policy: retain last 4 weekly backups (28 days) find "${WEEKLY_DIR}" -type f -name "classnotify_weekly_*.sql.gz" -mtime +28 -exec rm -f {} + echo "[$(date)] ClassNotify PostgreSQL backup completed successfully." exit 0 ================================================================================ FILE: ops/classnotify-healthcheck.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify System Health Check & Resource Monitor # Executed every 5 minutes by systemd timer # ============================================================================== set -euo pipefail MONITOR_ENV="/etc/classnotify/monitor.env" if [ -f "${MONITOR_ENV}" ]; then source "${MONITOR_ENV}" fi ALERT_URL="${ALERT_WEBHOOK_URL:-}" STATUS_ALL="OK" ERROR_DETAILS=() echo "==========================================================" echo " ClassNotify Health Check: $(date -u +'%Y-%m-%d %H:%M:%S UTC')" echo "==========================================================" # 1. Check Service Status: classnotify.service if systemctl is-active --quiet classnotify.service; then echo "[PASS] classnotify.service: active" else echo "[FAIL] classnotify.service: INACTIVE" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("classnotify.service is not active") fi # 2. Check Service Status: postgresql.service if systemctl is-active --quiet postgresql.service; then echo "[PASS] postgresql.service: active" else echo "[FAIL] postgresql.service: INACTIVE" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("postgresql.service is not active") fi # 3. Check Service Status: caddy.service if systemctl is-active --quiet caddy.service; then echo "[PASS] caddy.service: active" else echo "[FAIL] caddy.service: INACTIVE" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("caddy.service is not active") fi # 4. Check HTTP Health Endpoint (/api/health) HEALTH_JSON=$(curl -s -m 5 http://127.0.0.1:5000/api/health || true) SRV_STATUS=$(echo "${HEALTH_JSON}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${SRV_STATUS}" = "Healthy Connected" ]; then echo "[PASS] /api/health: Healthy, database: Connected" else echo "[FAIL] /api/health: status '${SRV_STATUS}'" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("/api/health returned '${SRV_STATUS}'") fi # 5. Check Disk Usage DISK_ROOT=$(df -P / | tail -n 1 | awk '{print $5}' | tr -d '%') DISK_BAK=$(df -P /var/backups | tail -n 1 | awk '{print $5}' | tr -d '%') MAX_DISK=$(( DISK_ROOT > DISK_BAK ? DISK_ROOT : DISK_BAK )) if [ "${MAX_DISK}" -lt 75 ]; then echo "[PASS] Disk Usage: ${MAX_DISK}% (threshold: <75% OK)" elif [ "${MAX_DISK}" -le 85 ]; then echo "[WARN] Disk Usage: ${MAX_DISK}% (threshold: 75-85% WARN)" if [ "${STATUS_ALL}" != "CRITICAL" ]; then STATUS_ALL="WARN"; fi else echo "[FAIL] Disk Usage: ${MAX_DISK}% (threshold: >85% CRITICAL)" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("Disk usage ${MAX_DISK}% exceeds critical threshold 85%") fi # 6. Check Database Backup Freshness & Integrity DAILY_DIR="/var/backups/classnotify/daily" LATEST_BACKUP=$(ls -t "${DAILY_DIR}"/classnotify_*.sql.gz 2>/dev/null | head -n 1 || true) if [ -n "${LATEST_BACKUP}" ] && [ -f "${LATEST_BACKUP}" ]; then NOW_TS=$(date +%s) FILE_TS=$(stat -c %Y "${LATEST_BACKUP}") AGE_SEC=$(( NOW_TS - FILE_TS )) AGE_HOURS=$(( AGE_SEC / 3600 )) FILE_SIZE=$(stat -c %s "${LATEST_BACKUP}") UNCOMP_SIZE=$(zcat "${LATEST_BACKUP}" 2>/dev/null | wc -c || echo 0) echo "Latest Backup: $(basename "${LATEST_BACKUP}")" echo " Backup Age: ${AGE_HOURS} hours (threshold: <26h OK)" echo " Backup Size: ${FILE_SIZE} bytes compressed (${UNCOMP_SIZE} bytes uncompressed)" if [ "${AGE_HOURS}" -ge 26 ]; then echo "[FAIL] Backup age ${AGE_HOURS}h exceeds 26-hour limit!" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("Latest backup is ${AGE_HOURS} hours old (> 26h)") else echo "[PASS] Backup age is within 26 hours" fi # Raw dump must be at least 10KB (10240 bytes) if [ "${UNCOMP_SIZE}" -lt 10240 ] && [ "${FILE_SIZE}" -lt 10240 ]; then echo "[FAIL] Backup size is abnormally small (< 10KB)!" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("Backup size abnormally small: ${FILE_SIZE} bytes") else echo "[PASS] Backup size is healthy (>= 10KB uncompressed data)" fi else echo "[FAIL] No daily backups found in ${DAILY_DIR}!" STATUS_ALL="CRITICAL" ERROR_DETAILS+=("No database backups found") fi echo "==========================================================" echo "Health Check Summary: ${STATUS_ALL}" echo "==========================================================" if [ "${STATUS_ALL}" = "CRITICAL" ]; then ERR_MSG=$(printf "; %s" "${ERROR_DETAILS[@]}") ERR_MSG="${ERR_MSG:2}" logger -p local0.crit -t classnotify-healthcheck "HEALTHCHECK CRITICAL: ${ERR_MSG}" if [ -n "${ALERT_URL}" ]; then echo "Sending webhook alert to ${ALERT_URL}..." curl -s -X POST "${ALERT_URL}" \ -H "Content-Type: application/json" \ -d "{\"service\":\"ClassNotify\",\"status\":\"CRITICAL\",\"errors\":\"${ERR_MSG}\"}" || true else echo "External alert destination not configured" fi exit 1 elif [ "${STATUS_ALL}" = "WARN" ]; then logger -p local0.warn -t classnotify-healthcheck "HEALTHCHECK WARNING" exit 0 else echo "All monitored subsystems healthy." exit 0 fi ================================================================================ FILE: ops/classnotify-offsite-backup.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify Off-site Database Backup Script (rclone / Object Storage) # Reads configuration strictly from /etc/classnotify/backup.env (chmod 600) # ============================================================================== set -euo pipefail BACKUP_ENV="/etc/classnotify/backup.env" LOCAL_BACKUP_DIR="/var/backups/classnotify/daily" echo "==========================================================" echo " ClassNotify Off-site Database Backup Runner " echo "==========================================================" if [ ! -f "${BACKUP_ENV}" ]; then echo "WARNING: ${BACKUP_ENV} does not exist. Creating secure template..." cat << 'EOF' > "${BACKUP_ENV}" # ClassNotify Off-site Backup Configuration # Permissions must be strictly 600 root:root CLASSNOTIFY_OFFSITE_REMOTE= CLASSNOTIFY_OFFSITE_PATH= EOF chmod 600 "${BACKUP_ENV}" chown root:root "${BACKUP_ENV}" fi # Read configurations source "${BACKUP_ENV}" # Find newest local backup LATEST_BACKUP=$(ls -t "${LOCAL_BACKUP_DIR}"/classnotify_*.sql.gz 2>/dev/null | head -n 1 || true) if [ -z "${LATEST_BACKUP}" ] || [ ! -f "${LATEST_BACKUP}" ]; then echo "ERROR: No local backup files found in ${LOCAL_BACKUP_DIR}!" >&2 exit 1 fi LOCAL_SIZE=$(stat -c%s "${LATEST_BACKUP}") LOCAL_SHA256=$(sha256sum "${LATEST_BACKUP}" | awk '{print $1}') echo "Latest Local Backup: $(basename "${LATEST_BACKUP}") (${LOCAL_SIZE} bytes)" echo "Local SHA256: ${LOCAL_SHA256}" # Check for offsite configuration REMOTE="${CLASSNOTIFY_OFFSITE_REMOTE:-}" DEST_PATH="${CLASSNOTIFY_OFFSITE_PATH:-}" if [ -z "${REMOTE}" ] || [ -z "${DEST_PATH}" ]; then echo "" echo "==========================================================" echo "OFFSITE BACKUP STATUS:" echo "BLOCKED - external storage credentials required" echo "Details: CLASSNOTIFY_OFFSITE_REMOTE or CLASSNOTIFY_OFFSITE_PATH not configured in ${BACKUP_ENV}" echo "==========================================================" exit 0 fi if ! command -v rclone &> /dev/null; then echo "" echo "==========================================================" echo "OFFSITE BACKUP STATUS:" echo "BLOCKED - external storage credentials required" echo "Details: rclone is not installed on this host" echo "==========================================================" exit 0 fi echo "Syncing $(basename "${LATEST_BACKUP}") to remote ${REMOTE}:${DEST_PATH}..." rclone copy "${LATEST_BACKUP}" "${REMOTE}:${DEST_PATH}" # Verification REMOTE_FILE="${DEST_PATH}/$(basename "${LATEST_BACKUP}")" echo "Verifying remote object existence: ${REMOTE}:${REMOTE_FILE}..." rclone lsf "${REMOTE}:${REMOTE_FILE}" echo "Downloading test copy from remote for restoration drill..." RESTORE_TEST_DIR="/tmp/classnotify_offsite_verify" mkdir -p "${RESTORE_TEST_DIR}" rclone copy "${REMOTE}:${REMOTE_FILE}" "${RESTORE_TEST_DIR}" DOWNLOADED_BACKUP="${RESTORE_TEST_DIR}/$(basename "${LATEST_BACKUP}")" DOWN_SHA256=$(sha256sum "${DOWNLOADED_BACKUP}" | awk '{print $1}') if [ "${LOCAL_SHA256}" != "${DOWN_SHA256}" ]; then echo "ERROR: Checksum mismatch! Local: ${LOCAL_SHA256}, Downloaded: ${DOWN_SHA256}" >&2 rm -rf "${RESTORE_TEST_DIR}" exit 1 fi echo "Checksum verification passed: ${DOWN_SHA256}" # Restoration test against temporary DB classnotify_restore_test echo "Performing restoration drill into classnotify_restore_test..." sudo -u postgres dropdb --if-exists classnotify_restore_test sudo -u postgres createdb classnotify_restore_test gunzip -c "${DOWNLOADED_BACKUP}" | sudo -u postgres psql -d classnotify_restore_test -q TABLE_COUNT=$(sudo -u postgres psql -d classnotify_restore_test -t -c "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'public';") echo "Restored table count: ${TABLE_COUNT}" sudo -u postgres dropdb classnotify_restore_test rm -rf "${RESTORE_TEST_DIR}" echo "==========================================================" echo "OFFSITE BACKUP STATUS:" echo "SUCCESS - verified and restore-tested" echo "==========================================================" exit 0 ================================================================================ FILE: ops/classnotify-restore-gate.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify P2.5 PostgreSQL Real Restore Gate Script # Purpose: Automatically tests that the latest backup dump can be successfully # restored into a temporary DB and that all relational integrity checks pass. # ============================================================================== set -euo pipefail BACKUP_FILE="${1:-}" if [ -z "${BACKUP_FILE}" ]; then # Try reading from backup-status.json STATUS_FILE="/var/lib/classnotify/ops/backup-status.json" if [ -f "${STATUS_FILE}" ]; then BACKUP_FILE=$(grep -o '"backupFile": *"[^"]*"' "${STATUS_FILE}" | cut -d'"' -f4 || true) fi # Fallback to newest dump file in daily directory if [ -z "${BACKUP_FILE}" ] || [ ! -f "${BACKUP_FILE}" ]; then BACKUP_FILE=$(find /var/backups/classnotify/daily/ -type f -name "classnotify_*.dump" 2>/dev/null | sort -r | head -n 1 || true) fi fi if [ -z "${BACKUP_FILE}" ] || [ ! -f "${BACKUP_FILE}" ]; then echo "[RESTORE GATE] ERROR: No valid backup dump file found to test restore!" >&2 exit 1 fi echo "==========================================================" echo " ClassNotify P2.5 Production Restore Gate " echo " Target Backup: ${BACKUP_FILE} " echo " File Size: $(stat -c%s "${BACKUP_FILE}" 2>/dev/null || stat -f%z "${BACKUP_FILE}" 2>/dev/null || wc -c < "${BACKUP_FILE}") bytes" echo "==========================================================" TEMP_DB="classnotify_gate_test_$$" PG_CMD="sudo -u postgres psql -d ${TEMP_DB} -t -A -c" cleanup() { echo "[RESTORE GATE] Cleaning up temporary database ${TEMP_DB}..." sudo -u postgres psql -c "DROP DATABASE IF EXISTS \"${TEMP_DB}\";" 2>/dev/null || true } trap cleanup EXIT echo "[RESTORE GATE] Step 1: Creating isolated temporary database ${TEMP_DB}..." sudo -u postgres psql -c "CREATE DATABASE \"${TEMP_DB}\";" echo "[RESTORE GATE] Step 2: Executing pg_restore from ${BACKUP_FILE}..." sudo -u postgres pg_restore -d "${TEMP_DB}" --no-owner "${BACKUP_FILE}" || { RET=$? # pg_restore exit code 1 means warnings (e.g. non-critical schema notices), code >= 2 is fatal error if [ "$RET" -gt 1 ]; then echo "[RESTORE GATE] ERROR: pg_restore failed with fatal exit code ${RET}" >&2 exit 1 fi } echo "[RESTORE GATE] Step 3: Verifying restored schema and data integrity..." # Check essential tables exist TABLES=$($PG_CMD "SELECT count(*) FROM information_schema.tables WHERE table_schema = 'public' AND table_name IN ('Tenants', 'Classrooms', 'Users', 'Devices', 'Notifications', 'NotificationReceipts');") if [ "${TABLES}" -lt 6 ]; then echo "[RESTORE GATE] FAILED: Missing core tables in restored database (Found: ${TABLES}/6)" >&2 exit 1 fi echo "[PASS] Core tables restored: ${TABLES}/6 present." # Check entity counts TENANT_COUNT=$($PG_CMD "SELECT count(*) FROM \"Tenants\";") DEVICE_COUNT=$($PG_CMD "SELECT count(*) FROM \"Devices\";") USER_COUNT=$($PG_CMD "SELECT count(*) FROM \"Users\";") NOTIF_COUNT=$($PG_CMD "SELECT count(*) FROM \"Notifications\";") RCPT_COUNT=$($PG_CMD "SELECT count(*) FROM \"NotificationReceipts\";") echo "[PASS] Restored Entity Summary: Tenants=${TENANT_COUNT}, Devices=${DEVICE_COUNT}, Users=${USER_COUNT}, Notifications=${NOTIF_COUNT}, Receipts=${RCPT_COUNT}" # Step 4: Relational Integrity & Zero Orphan Check ORPHAN_COUNT=$($PG_CMD "SELECT count(*) FROM \"NotificationReceipts\" r LEFT JOIN \"Notifications\" n ON r.\"NotificationId\" = n.\"Id\" WHERE n.\"Id\" IS NULL;") if [ "${ORPHAN_COUNT}" -ne 0 ]; then echo "[RESTORE GATE] FAILED: Found ${ORPHAN_COUNT} orphan notification receipts in restored DB!" >&2 exit 1 fi echo "[PASS] Referential integrity: Zero orphan receipts verified (${ORPHAN_COUNT} orphans)." # Step 5: CorrelationId column verification CORR_COL=$($PG_CMD "SELECT count(*) FROM information_schema.columns WHERE table_name = 'Notifications' AND column_name = 'CorrelationId';") if [ "${CORR_COL}" -lt 1 ]; then echo "[RESTORE GATE] WARNING: Notifications.CorrelationId column not found in restored schema." else echo "[PASS] Traceability verification: Notifications.CorrelationId schema verified." fi # Step 6: Visual receipt reconciliation check # Images themselves are not dumped into Postgres. Any missing visual receipts on disk are reconcilable. VR_EXPIRED=$($PG_CMD "SELECT count(*) FROM \"NotificationReceipts\" WHERE \"VisualReceiptState\" = 'Expired';") echo "[PASS] Visual receipt baseline: ${VR_EXPIRED} receipts in Expired state." echo "==========================================================" echo " RESTORE GATE RESULT: PASSED (Database is fully restorable)" echo "==========================================================" exit 0 ================================================================================ FILE: ops/deploy_caddy.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify Caddy Deployment with Candidate Pre-Validation & Auto-Rollback # Usage: ./deploy_caddy.sh # Exit codes: # 0 = Caddy Deploy SUCCESS # 11 = Caddy Deploy FAILED (Health Gate Failed, Rollback SUCCEEDED) # 21 = Caddy Deploy FAILED and Rollback FAILED # 31 = Candidate Validation FAILED (Production Untouched) # ============================================================================== set -euo pipefail CANDIDATE_SNIPPET="${1:-/tmp/classnotify.caddy.candidate}" CADDYFILE="/etc/caddy/Caddyfile" PROD_SNIPPET="/etc/caddy/classnotify.caddy" BACKUP_DIR="/etc/caddy/backups" echo "==========================================================" echo " ClassNotify Caddy Deployment & Pre-Validation Guard " echo "==========================================================" if [ ! -f "${CANDIDATE_SNIPPET}" ]; then echo "ERROR: Candidate snippet ${CANDIDATE_SNIPPET} not found!" >&2 exit 1 fi # 1. Build candidate full Caddyfile without touching production files echo "[1/4] Constructing candidate Caddyfile for pre-validation..." CANDIDATE_CADDYFILE="/tmp/Caddyfile.candidate" # Replace the import path in Caddyfile with candidate snippet path if grep -q "import /etc/caddy/classnotify.caddy" "${CADDYFILE}"; then sed 's|import /etc/caddy/classnotify.caddy|import '"${CANDIDATE_SNIPPET}"'|' "${CADDYFILE}" > "${CANDIDATE_CADDYFILE}" else # In case import directive was missing, construct it safely cat "${CADDYFILE}" > "${CANDIDATE_CADDYFILE}" echo -e "\nimport ${CANDIDATE_SNIPPET}\n" >> "${CANDIDATE_CADDYFILE}" fi # 2. Run Caddy Pre-Validation on candidate configuration echo "[2/4] Executing 'caddy validate' on candidate configuration..." if ! caddy validate --adapter caddyfile --config "${CANDIDATE_CADDYFILE}"; then echo "" echo "==========================================================" echo "ERROR: Candidate Caddy configuration validation FAILED!" echo "Production /etc/caddy/Caddyfile and classnotify.caddy are 100% UNTOUCHED." echo "CADDY_VALIDATION=FAILED" echo "==========================================================" rm -f "${CANDIDATE_CADDYFILE}" "${CANDIDATE_SNIPPET}" exit 31 fi echo " Candidate validation PASSED! (Production untouched so far)" # 3. Validation passed: Create backup and atomically activate echo "[3/4] Creating configuration backup and atomically replacing snippet..." mkdir -p "${BACKUP_DIR}" TS=$(date +%Y%m%d_%H%M%S) cp "${CADDYFILE}" "${BACKUP_DIR}/Caddyfile.${TS}" if [ -f "${PROD_SNIPPET}" ]; then cp "${PROD_SNIPPET}" "${BACKUP_DIR}/classnotify.caddy.${TS}" fi # Atomically deploy snippet cp "${CANDIDATE_SNIPPET}" "${PROD_SNIPPET}.new" chmod 644 "${PROD_SNIPPET}.new" mv -Tf "${PROD_SNIPPET}.new" "${PROD_SNIPPET}" # Reload Caddy systemctl reload caddy echo " Caddy reloaded with new configuration." # 4. Post-Reload Health Gate echo "[4/4] Executing Post-Reload Business Health Gate..." HEALTH_PASS=0 for i in $(seq 1 5); do sleep 2 echo " Health Gate attempt $i/5..." # Check 1: Main SPA page HTTP_MAIN=$(curl -s -o /dev/null -w "%{http_code}" https://classnotify.paradise.eu.org/ || true) if [ "${HTTP_MAIN}" != "200" ]; then echo " Main Web SPA returned HTTP ${HTTP_MAIN} (expected 200)" continue fi # Check 2: API Health HEALTH_JSON=$(curl -s -m 5 https://classnotify.paradise.eu.org/api/health || true) HEALTH_STATUS=$(echo "${HEALTH_JSON}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${HEALTH_STATUS}" != "Healthy Connected" ]; then echo " API Health check returned: '${HEALTH_STATUS}'" continue fi # Check 3: Audit Manifest AUDIT_HTTP=$(curl -s -o /dev/null -w "%{http_code}" https://audit.paradise.eu.org/manifest.json || true) if [ "${AUDIT_HTTP}" != "200" ]; then echo " Audit manifest returned HTTP ${AUDIT_HTTP} (expected 200)" continue fi # Check 4: SignalR Negotiation Endpoint SIG_RESP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "https://classnotify.paradise.eu.org/hubs/device/negotiate?negotiateVersion=1" || true) if [ "${SIG_RESP_CODE}" = "502" ] || [ "${SIG_RESP_CODE}" = "503" ] || [ "${SIG_RESP_CODE}" = "404" ]; then echo " SignalR negotiation failed with HTTP ${SIG_RESP_CODE}" continue fi echo " Health Gate PASSED! All endpoints verified." HEALTH_PASS=1 break done # Branch on post-reload health if [ "${HEALTH_PASS}" -eq 1 ]; then rm -f "${CANDIDATE_CADDYFILE}" "${CANDIDATE_SNIPPET}" echo "" echo "==========================================================" echo "CADDY_DEPLOY=SUCCESS" echo "SNIPPET_SHA256=$(sha256sum "${PROD_SNIPPET}" | awk '{print $1}')" echo "==========================================================" exit 0 else echo "" echo "==========================================================" echo "=== [CRITICAL] Post-Reload Health Gate Failed! Initiating Rollback ===" echo "==========================================================" # Rollback to backup if [ -f "${BACKUP_DIR}/classnotify.caddy.${TS}" ]; then echo "Restoring classnotify.caddy from backup..." cp "${BACKUP_DIR}/classnotify.caddy.${TS}" "${PROD_SNIPPET}.new" mv -Tf "${PROD_SNIPPET}.new" "${PROD_SNIPPET}" fi if [ -f "${BACKUP_DIR}/Caddyfile.${TS}" ]; then echo "Restoring Caddyfile from backup..." cp "${BACKUP_DIR}/Caddyfile.${TS}" "${CADDYFILE}.new" mv -Tf "${CADDYFILE}.new" "${CADDYFILE}" fi # Validate and reload restored configuration caddy validate --adapter caddyfile --config "${CADDYFILE}" systemctl reload caddy echo " Restored previous Caddy configuration and reloaded." # Verify rollback health sleep 2 R_MAIN=$(curl -s -o /dev/null -w "%{http_code}" https://classnotify.paradise.eu.org/ || true) R_HEALTH=$(curl -s -m 5 https://classnotify.paradise.eu.org/api/health || true) R_STATUS=$(echo "${R_HEALTH}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''))" 2>/dev/null || true) rm -f "${CANDIDATE_CADDYFILE}" "${CANDIDATE_SNIPPET}" if [ "${R_MAIN}" = "200" ] && [ "${R_STATUS}" = "Healthy" ]; then echo "" echo "CADDY_DEPLOY=FAILED" echo "CADDY_ROLLBACK=SUCCESS" echo "FINAL_HEALTH=Healthy" echo "==========================================================" exit 11 else echo "" echo "CADDY_DEPLOY=FAILED" echo "CADDY_ROLLBACK=FAILED" echo "FINAL_HEALTH=Unhealthy" echo "==========================================================" exit 21 fi fi ================================================================================ FILE: ops/deploy_server.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify Atomic Release Deployment & Automated Rollback Controller # Usage: ./deploy_server.sh # Exit codes: # 0 = Deployment SUCCESS # 10 = Deployment FAILED, Rollback SUCCEEDED and Health Verified # 20 = Deployment FAILED and Rollback FAILED (Critical Incident) # 30 = Archive SHA256 Mismatch (Untrusted / Corrupted Package) # ============================================================================== set -euo pipefail RELEASE_ID="$1" TARBALL="$2" EXPECTED_SHA256="${3:-}" BASE_DIR="/var/www/classnotify" RELEASES_DIR="${BASE_DIR}/releases" CURRENT_LINK="${BASE_DIR}/current" TARGET_DIR="${RELEASES_DIR}/${RELEASE_ID}" echo "==========================================================" echo " ClassNotify Atomic Server Deployment: ${RELEASE_ID}" echo "==========================================================" # 1. Verification of inputs if [ -z "${RELEASE_ID}" ] || [ -z "${TARBALL}" ] || [ -z "${EXPECTED_SHA256}" ]; then echo "ERROR: Missing required arguments. Usage: $0 " >&2 exit 1 fi if [ ! -f "${TARBALL}" ]; then echo "ERROR: Tarball archive ${TARBALL} not found!" >&2 exit 1 fi # 2. Server-side SHA256 Package Integrity Verification echo "[1/6] Verifying release package SHA256 integrity..." ACTUAL_SHA256=$(sha256sum "${TARBALL}" | awk '{print tolower($1)}') NORM_EXPECTED=$(echo "${EXPECTED_SHA256}" | tr '[:upper:]' '[:lower:]') if [ "${ACTUAL_SHA256}" != "${NORM_EXPECTED}" ]; then echo "ERROR: release archive SHA256 mismatch!" >&2 echo " Expected SHA256: ${NORM_EXPECTED}" >&2 echo " Actual SHA256: ${ACTUAL_SHA256}" >&2 rm -f "${TARBALL}" exit 30 fi echo " SHA256 Verified: ${ACTUAL_SHA256}" mkdir -p "${RELEASES_DIR}" if [ -d "${TARGET_DIR}" ]; then echo "ERROR: Target release directory ${TARGET_DIR} already exists!" >&2 exit 1 fi # 3. Extract into isolated target directory echo "[2/6] Extracting release package to ${TARGET_DIR}..." mkdir -p "${TARGET_DIR}" tar -xzf "${TARBALL}" -C "${TARGET_DIR}" rm -f "${TARBALL}" echo "${RELEASE_ID}" > "${TARGET_DIR}/release.txt" # Ensure www-data ownership chown -R www-data:www-data "${TARGET_DIR}" # Verify binary integrity if [ ! -f "${TARGET_DIR}/ClassNotify.Server.dll" ]; then echo "ERROR: Critical binary ClassNotify.Server.dll missing in release package!" >&2 rm -rf "${TARGET_DIR}" exit 1 fi # 4. Record existing active release for potential rollback echo "[3/6] Recording previous active release..." OLD_RELEASE="" if [ -L "${CURRENT_LINK}" ]; then OLD_RELEASE=$(readlink -f "${CURRENT_LINK}" 2>/dev/null || true) fi echo " Previous release: ${OLD_RELEASE:-}" # 5. Atomically switch 'current' symlink echo "[4/6] Atomically updating current symlink..." START_TIME=$(date +%s%3N) ln -sfn "${TARGET_DIR}" "${BASE_DIR}/current.new" mv -Tf "${BASE_DIR}/current.new" "${CURRENT_LINK}" # 6. Restart service and perform Health Gate validation echo "[5/6] Restarting classnotify.service and executing Health Gate..." systemctl restart classnotify HEALTH_PASS=0 for i in $(seq 1 10); do sleep 2 echo " Health Gate check (attempt $i/10)..." # Layer 1: Local Kestrel Health Endpoint LOCAL_RESP=$(curl -s -m 5 http://127.0.0.1:5000/api/health || true) LOCAL_STATUS=$(echo "${LOCAL_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${LOCAL_STATUS}" != "Healthy Connected" ]; then echo " Local endpoint waiting: '${LOCAL_STATUS}'" continue fi # Layer 2: Public HTTPS Health Endpoint through Caddy PUBLIC_RESP=$(curl -s -m 5 https://classnotify.paradise.eu.org/api/health || true) PUBLIC_STATUS=$(echo "${PUBLIC_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${PUBLIC_STATUS}" = "Healthy Connected" ]; then echo " Health Gate PASSED: Both Local and Public endpoints reporting Healthy and Connected." HEALTH_PASS=1 break else echo " Public endpoint waiting: '${PUBLIC_STATUS}'" fi done END_TIME=$(date +%s%3N) DOWNTIME_MS=$(( END_TIME - START_TIME )) # 7. Branch on health gate result if [ "${HEALTH_PASS}" -eq 1 ]; then echo "[6/6] Deployment Successful! Pruning old releases..." # Release Retention Policy: keep latest 5 releases, never delete current or previous cd "${RELEASES_DIR}" for dir in $(ls -dt */ 2>/dev/null | tail -n +6); do REL_NAME="${dir%/}" FULL_PATH="${RELEASES_DIR}/${REL_NAME}" if [ "${FULL_PATH}" != "${TARGET_DIR}" ] && [ "${FULL_PATH}" != "${OLD_RELEASE}" ]; then echo " Pruning old release: ${REL_NAME}" rm -rf "${FULL_PATH}" fi done echo "" echo "==========================================================" echo "DEPLOY SUCCESS" echo "RELEASE_ID=${RELEASE_ID}" echo "PREVIOUS_RELEASE_ID=$(basename "${OLD_RELEASE:-none}")" echo "CURRENT_SYMLINK=$(readlink -f "${CURRENT_LINK}")" echo "DEPLOYMENT_DOWNTIME_MS=${DOWNTIME_MS}" echo "==========================================================" exit 0 else echo "" echo "==========================================================" echo "=== [CRITICAL] Health Gate Failed! Initiating Rollback ===" echo "==========================================================" ROLLBACK_START=$(date +%s%3N) ROLLBACK_PASS=0 ROLLBACK_ATTEMPTS=0 if [ -n "${OLD_RELEASE}" ] && [ -d "${OLD_RELEASE}" ]; then echo "Reverting 'current' symlink to ${OLD_RELEASE}..." ln -sfn "${OLD_RELEASE}" "${BASE_DIR}/current.new" mv -Tf "${BASE_DIR}/current.new" "${CURRENT_LINK}" systemctl restart classnotify # Rigorous Rollback Health Gate Verification echo "Executing Rollback Health Gate validation..." for r_i in $(seq 1 10); do sleep 2 ROLLBACK_ATTEMPTS="${r_i}" echo " Rollback Health Gate check (attempt ${r_i}/10)..." R_LOCAL_RESP=$(curl -s -m 5 http://127.0.0.1:5000/api/health || true) R_LOCAL_STATUS=$(echo "${R_LOCAL_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${R_LOCAL_STATUS}" != "Healthy Connected" ]; then echo " Rollback local endpoint waiting: '${R_LOCAL_STATUS}'" continue fi R_PUB_RESP=$(curl -s -m 5 https://classnotify.paradise.eu.org/api/health || true) R_PUB_STATUS=$(echo "${R_PUB_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${R_PUB_STATUS}" = "Healthy Connected" ]; then echo " Rollback Health Gate PASSED: Old release verified Healthy and Connected." ROLLBACK_PASS=1 break else echo " Rollback public endpoint waiting: '${R_PUB_STATUS}'" fi done else echo "CRITICAL ERROR: No previous release available to restore!" fi ROLLBACK_END=$(date +%s%3N) ROLLBACK_DURATION_MS=$(( ROLLBACK_END - ROLLBACK_START )) # Mark broken release directory with .failed suffix if [ -d "${TARGET_DIR}" ]; then mv "${TARGET_DIR}" "${TARGET_DIR}.failed" echo "Marked broken release as ${TARGET_DIR}.failed" fi echo "" echo "==========================================================" if [ "${ROLLBACK_PASS}" -eq 1 ]; then echo "DEPLOY FAILED" echo "ROLLBACK_STATUS=SUCCESS" echo "BROKEN_RELEASE_ID=${RELEASE_ID}" echo "ROLLBACK_RELEASE=$(basename "${OLD_RELEASE:-none}")" echo "FINAL_ACTIVE_RELEASE=$(basename "$(readlink -f "${CURRENT_LINK}")")" echo "FINAL_HEALTH=Healthy" echo "ROLLBACK_HEALTH_ATTEMPTS=${ROLLBACK_ATTEMPTS}" echo "ROLLBACK_DURATION_MS=${ROLLBACK_DURATION_MS}" echo "==========================================================" exit 10 else echo "DEPLOY FAILED" echo "ROLLBACK_STATUS=FAILED" echo "BROKEN_RELEASE_ID=${RELEASE_ID}" echo "FINAL_ACTIVE_RELEASE=$(basename "$(readlink -f "${CURRENT_LINK}")")" echo "FINAL_HEALTH=Unhealthy" echo "ROLLBACK_DURATION_MS=${ROLLBACK_DURATION_MS}" echo "==========================================================" logger -p local0.crit -t classnotify-deploy "DEPLOYMENT AND ROLLBACK FAILED for release ${RELEASE_ID}" exit 20 fi fi ================================================================================ FILE: ops/deploy_systemd_unit.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify Systemd Unit Deployment & Auto-Rollback Guard # Usage: ./deploy_systemd_unit.sh # Exit codes: # 0 = Systemd Unit Deploy SUCCESS # 12 = Systemd Unit Deploy FAILED (Health Gate Failed, Rollback SUCCEEDED) # 22 = Systemd Unit Deploy FAILED and Rollback FAILED (Critical Incident) # 32 = Candidate Pre-Validation FAILED (Production Untouched) # ============================================================================== set -euo pipefail CANDIDATE_UNIT="${1:-/tmp/classnotify_candidate.service}" PROD_UNIT="/etc/systemd/system/classnotify.service" BACKUP_DIR="/etc/systemd/system/backups" echo "==========================================================" echo " ClassNotify Systemd Unit Deployment & Verification Guard" echo "==========================================================" if [ ! -f "${CANDIDATE_UNIT}" ]; then echo "ERROR: Candidate unit file ${CANDIDATE_UNIT} not found!" >&2 exit 1 fi # 1. Candidate Pre-Validation using systemd-analyze verify echo "[1/4] Executing 'systemd-analyze verify' on candidate unit..." VERIFY_OUTPUT="" set +e VERIFY_OUTPUT=$(systemd-analyze verify "${CANDIDATE_UNIT}" 2>&1) VERIFY_EXIT=$? set -e if [ "${VERIFY_EXIT}" -ne 0 ]; then echo "${VERIFY_OUTPUT}" echo "" echo "==========================================================" echo "ERROR: Candidate systemd unit validation FAILED (exit ${VERIFY_EXIT})!" echo "Production ${PROD_UNIT} is 100% UNTOUCHED." echo "SYSTEMD_PREVALIDATION=FAILED" echo "==========================================================" rm -f "${CANDIDATE_UNIT}" exit 32 fi echo " Candidate pre-validation PASSED! (Production untouched so far)" # 2. Validation passed: Create backup of current unit echo "[2/4] Creating unit backup and atomically activating candidate..." mkdir -p "${BACKUP_DIR}" TS=$(date +%Y%m%d_%H%M%S) BACKUP_FILE="${BACKUP_DIR}/classnotify.service.${TS}" if [ -f "${PROD_UNIT}" ]; then cp "${PROD_UNIT}" "${BACKUP_FILE}" echo " Backup saved: ${BACKUP_FILE}" fi # Atomically replace production unit cp "${CANDIDATE_UNIT}" "${PROD_UNIT}.new" chmod 644 "${PROD_UNIT}.new" mv -Tf "${PROD_UNIT}.new" "${PROD_UNIT}" # Reload systemd and restart service systemctl daemon-reload systemctl restart classnotify echo " Systemd reloaded and classnotify restarted with candidate unit." # 3. Post-Restart Health Gate (Local + Public) echo "[3/4] Executing Post-Activation Health Gate..." HEALTH_PASS=0 for i in $(seq 1 10); do sleep 2 echo " Health Gate check (attempt $i/10)..." # Layer 1: Local Kestrel Health Endpoint LOCAL_RESP=$(curl -s -m 5 http://127.0.0.1:5000/api/health || true) LOCAL_STATUS=$(echo "${LOCAL_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${LOCAL_STATUS}" != "Healthy Connected" ]; then echo " Local endpoint waiting: '${LOCAL_STATUS}'" continue fi # Layer 2: Public HTTPS Health Endpoint through Caddy PUBLIC_RESP=$(curl -s -m 5 https://classnotify.paradise.eu.org/api/health || true) PUBLIC_STATUS=$(echo "${PUBLIC_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${PUBLIC_STATUS}" = "Healthy Connected" ]; then echo " Health Gate PASSED: Both Local and Public endpoints reporting Healthy and Connected." HEALTH_PASS=1 break else echo " Public endpoint waiting: '${PUBLIC_STATUS}'" fi done # 4. Branch on health gate result if [ "${HEALTH_PASS}" -eq 1 ]; then rm -f "${CANDIDATE_UNIT}" echo "" echo "==========================================================" echo "SYSTEMD_DEPLOY=SUCCESS" echo "UNIT_SHA256=$(sha256sum "${PROD_UNIT}" | awk '{print toupper($1)}')" echo "==========================================================" exit 0 else echo "" echo "==========================================================" echo "=== [CRITICAL] Systemd Health Gate Failed! Initiating Rollback ===" echo "==========================================================" ROLLBACK_PASS=0 if [ -f "${BACKUP_FILE}" ]; then echo "Restoring ${PROD_UNIT} from backup ${BACKUP_FILE}..." cp "${BACKUP_FILE}" "${PROD_UNIT}.new" chmod 644 "${PROD_UNIT}.new" mv -Tf "${PROD_UNIT}.new" "${PROD_UNIT}" systemctl daemon-reload systemctl restart classnotify echo " Restored previous systemd unit and restarted service." # Verify rollback health echo "Executing Rollback Health Gate verification..." for r_i in $(seq 1 10); do sleep 2 echo " Rollback Health Gate check (attempt ${r_i}/10)..." R_LOCAL_RESP=$(curl -s -m 5 http://127.0.0.1:5000/api/health || true) R_LOCAL_STATUS=$(echo "${R_LOCAL_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${R_LOCAL_STATUS}" != "Healthy Connected" ]; then echo " Rollback local endpoint waiting: '${R_LOCAL_STATUS}'" continue fi R_PUB_RESP=$(curl -s -m 5 https://classnotify.paradise.eu.org/api/health || true) R_PUB_STATUS=$(echo "${R_PUB_RESP}" | python3 -c "import sys, json; data=json.load(sys.stdin); print(data.get('status',''), data.get('database',''))" 2>/dev/null || true) if [ "${R_PUB_STATUS}" = "Healthy Connected" ]; then echo " Rollback Health Gate PASSED: Unit restored, service Healthy and Connected." ROLLBACK_PASS=1 break else echo " Rollback public endpoint waiting: '${R_PUB_STATUS}'" fi done else echo "CRITICAL ERROR: No backup unit available to restore!" fi rm -f "${CANDIDATE_UNIT}" if [ "${ROLLBACK_PASS}" -eq 1 ]; then echo "" echo "==========================================================" echo "SYSTEMD_DEPLOY=FAILED" echo "SYSTEMD_ROLLBACK=SUCCESS" echo "FINAL_HEALTH=Healthy" echo "FINAL_UNIT_SHA256=$(sha256sum "${PROD_UNIT}" | awk '{print toupper($1)}')" echo "==========================================================" exit 12 else echo "" echo "==========================================================" echo "SYSTEMD_DEPLOY=FAILED" echo "SYSTEMD_ROLLBACK=FAILED" echo "FINAL_HEALTH=Unhealthy" echo "FINAL_UNIT_SHA256=$(sha256sum "${PROD_UNIT}" | awk '{print toupper($1)}')" echo "==========================================================" exit 22 fi fi ================================================================================ FILE: ops/Deploy-CaddyConfig.ps1 ================================================================================ # ============================================================================== # ClassNotify Caddy Configuration Deployment & Validation Script # ============================================================================== param ( [string]$VpsHost = "158.179.179.29", [string]$SshKey = "C:\Users\Administrator\.ssh\", [switch]$SyntaxFaultTest = $false, [switch]$UpstreamFaultTest = $false ) $ErrorActionPreference = "Stop" $root = $PSScriptRoot if (-not $root) { $root = Get-Location } Write-Host "==========================================================" -ForegroundColor Cyan Write-Host " ClassNotify Caddy Configuration Deployment Starting " -ForegroundColor Cyan Write-Host "==========================================================" -ForegroundColor Cyan $caddySnippet = Join-Path $root "caddy\classnotify.caddy" if (-not (Test-Path $caddySnippet)) { $caddySnippet = Join-Path $root "ops\caddy\classnotify.caddy" } if (-not (Test-Path $caddySnippet)) { throw "Caddy configuration snippet not found: $caddySnippet" } $deployScript = Join-Path $root "deploy_caddy.sh" if (-not (Test-Path $deployScript)) { $deployScript = Join-Path $root "ops\deploy_caddy.sh" } $stagingFile = Join-Path $root ".caddy_candidate" if (Test-Path $stagingFile) { Remove-Item $stagingFile -Force } if ($SyntaxFaultTest) { Write-Host "`n[FAULT INJECTION] Generating Candidate with INVALID SYNTAX..." -ForegroundColor Red $faultContent = @" classnotify.paradise.eu.org { INVALID_DIRECTIVE_BLOCK_SYNTAX_ERROR { unterminated block "@ [System.IO.File]::WriteAllText($stagingFile, $faultContent, [System.Text.Encoding]::UTF8) } elseif ($UpstreamFaultTest) { Write-Host "`n[FAULT INJECTION] Generating Candidate with WRONG UPSTREAM PORT (5999)..." -ForegroundColor Red $normalContent = [System.IO.File]::ReadAllText($caddySnippet, [System.Text.Encoding]::UTF8) $faultContent = $normalContent.Replace("127.0.0.1:5000", "127.0.0.1:5999") [System.IO.File]::WriteAllText($stagingFile, $faultContent, [System.Text.Encoding]::UTF8) } else { Copy-Item -Path $caddySnippet -Destination $stagingFile -Force } $snippetHash = (Get-FileHash $stagingFile -Algorithm SHA256).Hash.ToLower() Write-Host "Candidate snippet SHA256: $snippetHash" -ForegroundColor Cyan # 1. Upload candidate snippet and deploy script Write-Host "`n[1/3] Uploading candidate snippet and deploy script to VPS..." -ForegroundColor Yellow scp -i $SshKey -o StrictHostKeyChecking=no $stagingFile "root@${VpsHost}:/tmp/classnotify.caddy.candidate" scp -i $SshKey -o StrictHostKeyChecking=no $deployScript "root@${VpsHost}:/tmp/deploy_caddy.sh" if (Test-Path $stagingFile) { Remove-Item $stagingFile -Force } # 2. Execute remote deploy script Write-Host "`n[2/3] Executing candidate pre-validation and deployment on VPS..." -ForegroundColor Yellow $remoteCmd = "chmod +x /tmp/deploy_caddy.sh && /tmp/deploy_caddy.sh /tmp/classnotify.caddy.candidate" $prevEap = $ErrorActionPreference $ErrorActionPreference = "Continue" $caddyOutput = & ssh -i $SshKey -o StrictHostKeyChecking=no "root@${VpsHost}" $remoteCmd 2>&1 $caddyExitCode = $LASTEXITCODE $ErrorActionPreference = $prevEap Write-Host ($caddyOutput -join "`n") # 3. Interpret results based on test flags if ($SyntaxFaultTest) { if ($caddyExitCode -eq 31 -and ($caddyOutput -match "CADDY_VALIDATION=FAILED")) { Write-Host "`n[SYNTAX FAULT TEST VERIFIED] Invalid candidate rejected by caddy validate (exit code 31), production configuration untouched!" -ForegroundColor Green return } else { throw "Syntax fault test FAILED: Expected exit code 31, got $caddyExitCode" } } if ($UpstreamFaultTest) { if ($caddyExitCode -eq 11 -and ($caddyOutput -match "CADDY_ROLLBACK=SUCCESS") -and ($caddyOutput -match "FINAL_HEALTH=Healthy")) { Write-Host "`n[UPSTREAM FAULT TEST VERIFIED] Reload health gate failed, automated rollback executed, previous Caddy configuration restored!" -ForegroundColor Green return } elseif ($caddyExitCode -eq 21) { throw "CRITICAL: Caddy reload failed and rollback ALSO failed (exit code 21)!" } else { throw "Upstream fault test FAILED: Expected exit code 11 with verified rollback, got exit code $caddyExitCode" } } if ($caddyExitCode -eq 0) { Write-Host "`n[3/3] Caddy configuration deployed, validated, and verified successfully!" -ForegroundColor Green } else { throw "Caddy deployment failed with exit code $caddyExitCode" } ================================================================================ FILE: ops/Deploy-SystemdUnit.ps1 ================================================================================ # ============================================================================== # ClassNotify Systemd Unit Deployment & Verification Script # Target: Tokyo VPS (/etc/systemd/system/classnotify.service) # ============================================================================== param ( [string]$VpsHost = "158.179.179.29", [string]$SshKey = "C:\Users\Administrator\.ssh\", [switch]$FaultTest = $false, [switch]$SyntaxFaultTest = $false ) $ErrorActionPreference = "Stop" $root = $PSScriptRoot if (-not $root) { $root = Get-Location } Write-Host "==========================================================" -ForegroundColor Cyan Write-Host " ClassNotify Systemd Unit Deployment Starting " -ForegroundColor Cyan Write-Host "==========================================================" -ForegroundColor Cyan $sourceUnit = Join-Path $root "..\src\Server\classnotify.service" if (-not (Test-Path $sourceUnit)) { $sourceUnit = Join-Path $root "src\Server\classnotify.service" } if (-not (Test-Path $sourceUnit)) { throw "Source systemd unit file not found at: $sourceUnit" } $deployScript = Join-Path $root "deploy_systemd_unit.sh" if (-not (Test-Path $deployScript)) { $deployScript = Join-Path $root "ops\deploy_systemd_unit.sh" } if (-not (Test-Path $deployScript)) { throw "Deploy script not found at: $deployScript" } $stagingCandidate = Join-Path $root ".systemd_candidate" if (Test-Path $stagingCandidate) { Remove-Item $stagingCandidate -Force } if ($SyntaxFaultTest) { Write-Host "`n[FAULT INJECTION] Generating Candidate with INVALID SYNTAX..." -ForegroundColor Red $faultContent = @" INVALID_SECTION_DIRECTIVE_SYNTAX_ERROR MissingSection=true "@ [System.IO.File]::WriteAllText($stagingCandidate, $faultContent, [System.Text.Encoding]::UTF8) } elseif ($FaultTest) { Write-Host "`n[FAULT INJECTION] Generating Candidate with INVALID ExecStart (Broken Binary)..." -ForegroundColor Red $normalContent = [System.IO.File]::ReadAllText($sourceUnit, [System.Text.Encoding]::UTF8) $faultContent = $normalContent.Replace("ClassNotify.Server.dll", "ClassNotify.Broken.dll") [System.IO.File]::WriteAllText($stagingCandidate, $faultContent, [System.Text.Encoding]::UTF8) } else { Copy-Item -Path $sourceUnit -Destination $stagingCandidate -Force } $candidateHash = (Get-FileHash $stagingCandidate -Algorithm SHA256).Hash.ToUpper() Write-Host "Candidate unit SHA256: $candidateHash" -ForegroundColor Cyan # 1. Upload candidate unit and deploy script Write-Host "`n[1/3] Uploading candidate unit and deploy script to VPS..." -ForegroundColor Yellow scp -i $SshKey -o StrictHostKeyChecking=no $stagingCandidate "root@${VpsHost}:/tmp/classnotify_candidate.service" scp -i $SshKey -o StrictHostKeyChecking=no $deployScript "root@${VpsHost}:/tmp/deploy_systemd_unit.sh" if (Test-Path $stagingCandidate) { Remove-Item $stagingCandidate -Force } # 2. Execute remote deploy script Write-Host "`n[2/3] Executing candidate validation and deployment on VPS..." -ForegroundColor Yellow $remoteCmd = "chmod +x /tmp/deploy_systemd_unit.sh && /tmp/deploy_systemd_unit.sh /tmp/classnotify_candidate.service" $prevEap = $ErrorActionPreference $ErrorActionPreference = "Continue" $unitOutput = & ssh -i $SshKey -o StrictHostKeyChecking=no "root@${VpsHost}" $remoteCmd 2>&1 $unitExitCode = $LASTEXITCODE $ErrorActionPreference = $prevEap Write-Host ($unitOutput -join "`n") # 3. Interpret results based on test flags if ($SyntaxFaultTest) { if ($unitExitCode -eq 32 -and ($unitOutput -match "SYSTEMD_PREVALIDATION=FAILED")) { Write-Host "`n[SYNTAX FAULT TEST VERIFIED] Invalid candidate rejected by systemd-analyze verify (exit code 32), production unit untouched!" -ForegroundColor Green return } else { throw "Syntax fault test FAILED: Expected exit code 32, got $unitExitCode" } } if ($FaultTest) { if ($unitExitCode -eq 12 -and ($unitOutput -match "SYSTEMD_ROLLBACK=SUCCESS") -and ($unitOutput -match "FINAL_HEALTH=Healthy")) { Write-Host "`n[FAULT TEST VERIFIED] Activation health gate failed (exit code 12), automated rollback executed, previous unit restored and verified Healthy!" -ForegroundColor Green return } elseif ($unitExitCode -eq 32 -and ($unitOutput -match "SYSTEMD_PREVALIDATION=FAILED")) { Write-Host "`n[FAULT TEST VERIFIED] Pre-validation caught invalid candidate (exit code 32), production unit untouched and verified Healthy!" -ForegroundColor Green return } elseif ($unitExitCode -eq 22) { throw "CRITICAL: Systemd deployment failed and rollback ALSO failed (exit code 22)!" } else { throw "Fault test FAILED: Expected exit code 12 (or 32) with verified rollback, got exit code $unitExitCode" } } if ($unitExitCode -eq 0) { Write-Host "`n[3/3] Systemd unit deployed, reloaded, and verified successfully!" -ForegroundColor Green } else { throw "Systemd unit deployment failed with exit code $unitExitCode" } ================================================================================ FILE: ops/schema.sql ================================================================================ -- -- PostgreSQL database dump -- \restrict 72KM05IzNyW7A1TPKp4X6PDt23eMqgwTMDUiZru0Prf9RQcWtauAkd8x8zdv1UB -- Dumped from database version 16.15 (Ubuntu 16.15-1.pgdg22.04+2) -- Dumped by pg_dump version 16.15 (Ubuntu 16.15-1.pgdg22.04+2) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: public; Type: SCHEMA; Schema: -; Owner: postgres -- -- *not* creating schema, since initdb creates it ALTER SCHEMA public OWNER TO postgres; -- -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres -- COMMENT ON SCHEMA public IS ''; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: ActivationCodes; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."ActivationCodes" ( "Code" character varying(50) NOT NULL, "TenantId" text NOT NULL, "ClassroomId" character varying(50) NOT NULL, "ExpiresAt" timestamp with time zone NOT NULL, "IsUsed" boolean NOT NULL, "UsedAt" timestamp with time zone, "UsedByDeviceId" text, "InstallationId" character varying(100) ); ALTER TABLE public."ActivationCodes" OWNER TO classnotify; -- -- Name: Classrooms; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Classrooms" ( "Id" text NOT NULL, "TenantId" text NOT NULL, "DisplayName" character varying(100) NOT NULL, "Grade" character varying(50), "RoomNumber" character varying(50), "CreatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."Classrooms" OWNER TO classnotify; -- -- Name: DeviceCredentials; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."DeviceCredentials" ( "DeviceId" text NOT NULL, "InstallationId" character varying(100) NOT NULL, "DeviceTokenHash" text NOT NULL, "EncryptedRecoverableToken" text NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "RotatedAt" timestamp with time zone ); ALTER TABLE public."DeviceCredentials" OWNER TO classnotify; -- -- Name: Devices; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Devices" ( "Id" text NOT NULL, "TenantId" text NOT NULL, "ClassroomId" text NOT NULL, "DeviceTokenHash" text NOT NULL, "RawDeviceToken" text, "InstallationId" character varying(100), "Hostname" character varying(200), "IsActive" boolean NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "LastHeartbeatAt" timestamp with time zone ); ALTER TABLE public."Devices" OWNER TO classnotify; -- -- Name: DeviceCommands; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."DeviceCommands" ( "Id" character varying(100) NOT NULL, "TenantId" character varying(100) NOT NULL, "DeviceId" character varying(100) NOT NULL, "CommandType" character varying(50) NOT NULL, "Parameters" text, "CreatedBy" character varying(100) NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "ExpiresAt" timestamp with time zone NOT NULL, "StartedAt" timestamp with time zone, "CompletedAt" timestamp with time zone, "Status" character varying(50) NOT NULL, "ResultCode" integer, "ResultMessage" character varying(1000) ); ALTER TABLE public."DeviceCommands" OWNER TO classnotify; -- -- Name: MigrationMarkers; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."MigrationMarkers" ( "Id" character varying(100) NOT NULL, "MigratedAt" timestamp with time zone NOT NULL, "Details" text ); ALTER TABLE public."MigrationMarkers" OWNER TO classnotify; -- -- Name: NotificationReceipts; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."NotificationReceipts" ( "Id" character varying(100) NOT NULL, "NotificationId" character varying(100) NOT NULL, "DeviceId" character varying(100) NOT NULL, "Status" character varying(50) NOT NULL, "DeviceReceivedAt" timestamp with time zone, "DisplayedAt" timestamp with time zone, "AcknowledgedAt" timestamp with time zone, "FailedAt" timestamp with time zone, "FailureReason" character varying(500), "UpdatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."NotificationReceipts" OWNER TO classnotify; -- -- Name: Notifications; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Notifications" ( "Id" character varying(100) NOT NULL, "TenantId" text NOT NULL, "ClassroomId" character varying(50) NOT NULL, "SenderUserId" text, "SenderName" character varying(100) NOT NULL, "Message" text NOT NULL, "Title" character varying(200) NOT NULL, "Priority" character varying(50) NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "ExpiresAt" timestamp with time zone, "Voice" boolean DEFAULT true NOT NULL, "Shake" boolean DEFAULT true NOT NULL, "DurationSeconds" integer DEFAULT 15 NOT NULL ); ALTER TABLE public."Notifications" OWNER TO classnotify; -- -- Name: Tenants; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Tenants" ( "Id" text NOT NULL, "Name" character varying(200) NOT NULL, "IsActive" boolean NOT NULL, "CreatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."Tenants" OWNER TO classnotify; -- -- Name: Users; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Users" ( "Id" text NOT NULL, "TenantId" text NOT NULL, "Username" character varying(100) NOT NULL, "PasswordHash" text NOT NULL, "FullName" character varying(100) NOT NULL, "Role" character varying(50) NOT NULL, "CreatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."Users" OWNER TO classnotify; -- -- Name: __EFMigrationsHistory; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL ); ALTER TABLE public."__EFMigrationsHistory" OWNER TO classnotify; -- -- Name: ActivationCodes PK_ActivationCodes; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."ActivationCodes" ADD CONSTRAINT "PK_ActivationCodes" PRIMARY KEY ("Code"); -- -- Name: Classrooms PK_Classrooms; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Classrooms" ADD CONSTRAINT "PK_Classrooms" PRIMARY KEY ("TenantId", "Id"); -- -- Name: DeviceCredentials PK_DeviceCredentials; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCredentials" ADD CONSTRAINT "PK_DeviceCredentials" PRIMARY KEY ("DeviceId"); -- -- Name: Devices PK_Devices; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Devices" ADD CONSTRAINT "PK_Devices" PRIMARY KEY ("Id"); -- -- Name: DeviceCommands PK_DeviceCommands; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCommands" ADD CONSTRAINT "PK_DeviceCommands" PRIMARY KEY ("Id"); -- -- Name: MigrationMarkers PK_MigrationMarkers; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."MigrationMarkers" ADD CONSTRAINT "PK_MigrationMarkers" PRIMARY KEY ("Id"); -- -- Name: NotificationReceipts PK_NotificationReceipts; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."NotificationReceipts" ADD CONSTRAINT "PK_NotificationReceipts" PRIMARY KEY ("Id"); -- -- Name: Notifications PK_Notifications; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Notifications" ADD CONSTRAINT "PK_Notifications" PRIMARY KEY ("Id"); -- -- Name: Tenants PK_Tenants; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Tenants" ADD CONSTRAINT "PK_Tenants" PRIMARY KEY ("Id"); -- -- Name: Users PK_Users; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Users" ADD CONSTRAINT "PK_Users" PRIMARY KEY ("Id"); -- -- Name: __EFMigrationsHistory PK___EFMigrationsHistory; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."__EFMigrationsHistory" ADD CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId"); -- -- Name: IX_ActivationCodes_ClassroomId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_ActivationCodes_ClassroomId" ON public."ActivationCodes" USING btree ("ClassroomId"); -- -- Name: IX_ActivationCodes_Code; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_ActivationCodes_Code" ON public."ActivationCodes" USING btree ("Code"); -- -- Name: IX_ActivationCodes_InstallationId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_ActivationCodes_InstallationId" ON public."ActivationCodes" USING btree ("InstallationId"); -- -- Name: IX_ActivationCodes_TenantId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_ActivationCodes_TenantId" ON public."ActivationCodes" USING btree ("TenantId"); -- -- Name: IX_Classrooms_TenantId_Id; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Classrooms_TenantId_Id" ON public."Classrooms" USING btree ("TenantId", "Id"); -- -- Name: IX_DeviceCredentials_DeviceId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_DeviceCredentials_DeviceId" ON public."DeviceCredentials" USING btree ("DeviceId"); -- -- Name: IX_DeviceCredentials_InstallationId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_DeviceCredentials_InstallationId" ON public."DeviceCredentials" USING btree ("InstallationId"); -- -- Name: IX_Devices_Id; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_Devices_Id" ON public."Devices" USING btree ("Id"); -- -- Name: IX_Devices_InstallationId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_Devices_InstallationId" ON public."Devices" USING btree ("InstallationId") WHERE ("InstallationId" IS NOT NULL); -- -- Name: IX_Devices_TenantId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Devices_TenantId" ON public."Devices" USING btree ("TenantId"); -- -- Name: IX_Devices_TenantId_ClassroomId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Devices_TenantId_ClassroomId" ON public."Devices" USING btree ("TenantId", "ClassroomId"); -- -- Name: IX_DeviceCommands_DeviceId_Status; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_DeviceCommands_DeviceId_Status" ON public."DeviceCommands" USING btree ("DeviceId", "Status"); -- -- Name: IX_DeviceCommands_Status_ExpiresAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_DeviceCommands_Status_ExpiresAt" ON public."DeviceCommands" USING btree ("Status", "ExpiresAt"); -- -- Name: IX_DeviceCommands_TenantId_DeviceId_CreatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_DeviceCommands_TenantId_DeviceId_CreatedAt" ON public."DeviceCommands" USING btree ("TenantId", "DeviceId", "CreatedAt" DESC); -- -- Name: IX_NotificationReceipts_DeviceId_UpdatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_NotificationReceipts_DeviceId_UpdatedAt" ON public."NotificationReceipts" USING btree ("DeviceId", "UpdatedAt" DESC); -- -- Name: IX_NotificationReceipts_NotificationId_DeviceId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_NotificationReceipts_NotificationId_DeviceId" ON public."NotificationReceipts" USING btree ("NotificationId", "DeviceId"); -- -- Name: IX_NotificationReceipts_DeviceId_Status; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_NotificationReceipts_DeviceId_Status" ON public."NotificationReceipts" USING btree ("DeviceId", "Status"); -- -- Name: IX_Notifications_TenantId_ClassroomId_ExpiresAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Notifications_TenantId_ClassroomId_ExpiresAt" ON public."Notifications" USING btree ("TenantId", "ClassroomId", "ExpiresAt"); -- -- Name: IX_Notifications_ClassroomId_CreatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Notifications_ClassroomId_CreatedAt" ON public."Notifications" USING btree ("ClassroomId", "CreatedAt" DESC); -- -- Name: IX_Notifications_TenantId_CreatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Notifications_TenantId_CreatedAt" ON public."Notifications" USING btree ("TenantId", "CreatedAt" DESC); -- -- Name: IX_Users_TenantId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Users_TenantId" ON public."Users" USING btree ("TenantId"); -- -- Name: IX_Users_Username; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_Users_Username" ON public."Users" USING btree ("Username"); -- -- Name: ActivationCodes FK_ActivationCodes_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."ActivationCodes" ADD CONSTRAINT "FK_ActivationCodes_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE RESTRICT; -- -- Name: Classrooms FK_Classrooms_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Classrooms" ADD CONSTRAINT "FK_Classrooms_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE; -- -- Name: DeviceCommands FK_DeviceCommands_Devices_DeviceId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCommands" ADD CONSTRAINT "FK_DeviceCommands_Devices_DeviceId" FOREIGN KEY ("DeviceId") REFERENCES public."Devices"("Id") ON DELETE CASCADE; -- -- Name: DeviceCommands FK_DeviceCommands_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCommands" ADD CONSTRAINT "FK_DeviceCommands_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE; -- -- Name: Devices FK_Devices_Classrooms_TenantId_ClassroomId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Devices" ADD CONSTRAINT "FK_Devices_Classrooms_TenantId_ClassroomId" FOREIGN KEY ("TenantId", "ClassroomId") REFERENCES public."Classrooms"("TenantId", "Id") ON DELETE RESTRICT; -- -- Name: Devices FK_Devices_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Devices" ADD CONSTRAINT "FK_Devices_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE RESTRICT; -- -- Name: NotificationReceipts FK_NotificationReceipts_Devices_DeviceId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."NotificationReceipts" ADD CONSTRAINT "FK_NotificationReceipts_Devices_DeviceId" FOREIGN KEY ("DeviceId") REFERENCES public."Devices"("Id") ON DELETE CASCADE; -- -- Name: NotificationReceipts FK_NotificationReceipts_Notifications_NotificationId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."NotificationReceipts" ADD CONSTRAINT "FK_NotificationReceipts_Notifications_NotificationId" FOREIGN KEY ("NotificationId") REFERENCES public."Notifications"("Id") ON DELETE CASCADE; -- -- Name: Notifications FK_Notifications_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Notifications" ADD CONSTRAINT "FK_Notifications_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE; -- -- Name: Users FK_Users_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Users" ADD CONSTRAINT "FK_Users_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE RESTRICT; -- -- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres -- REVOKE USAGE ON SCHEMA public FROM PUBLIC; GRANT ALL ON SCHEMA public TO classnotify; -- -- PostgreSQL database dump complete -- \unrestrict 72KM05IzNyW7A1TPKp4X6PDt23eMqgwTMDUiZru0Prf9RQcWtauAkd8x8zdv1UB ================================================================================ FILE: ops/setup_vps_jwt.sh ================================================================================ #!/bin/bash set -e NEW_KEY=$(openssl rand -base64 64 | tr -d '\r\n') KEY_LEN=${#NEW_KEY} if [ "$KEY_LEN" -ge 64 ]; then sed -i '/^Jwt__/d' /etc/classnotify/classnotify.env echo "Jwt__SigningKey=${NEW_KEY}" >> /etc/classnotify/classnotify.env echo "Jwt__Issuer=ClassNotify.Server" >> /etc/classnotify/classnotify.env echo "Jwt__Audience=ClassNotify.Clients" >> /etc/classnotify/classnotify.env echo "Jwt__LifetimeDays=14" >> /etc/classnotify/classnotify.env chmod 600 /etc/classnotify/classnotify.env chown root:root /etc/classnotify/classnotify.env echo "SUCCESS: Key generated and injected on VPS (Key length: ${KEY_LEN} characters)" else echo "ERROR: generated key length invalid: ${KEY_LEN}" >&2 exit 1 fi ================================================================================ FILE: ops/systemd/classnotify-healthcheck.service ================================================================================ [Unit] Description=ClassNotify Health Check & Resource Monitor After=network.target postgresql.service classnotify.service [Service] Type=oneshot ExecStart=/usr/local/bin/classnotify-healthcheck.sh User=root StandardOutput=journal StandardError=journal ================================================================================ FILE: ops/systemd/classnotify-healthcheck.timer ================================================================================ [Unit] Description=Run ClassNotify Health Check every 5 minutes [Timer] OnBootSec=1min OnUnitActiveSec=5min Persistent=true [Install] WantedBy=timers.target ================================================================================ FILE: ops/test_p1_batch4_vps.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify P1 Batch 4 Linux VPS Security Verification Script # Executed directly on VPS to test live PostgreSQL, Kestrel, JWT, CORS, Logs # ============================================================================== set -euo pipefail PASS_COUNT=0 FAIL_COUNT=0 report_result() { local test_name="$1" local status="$2" local details="${3:-}" if [ "$status" -eq 0 ]; then echo -e "\e[32m[PASS]\e[0m $test_name" [ -n "$details" ] && echo -e " \e[90m$details\e[0m" PASS_COUNT=$((PASS_COUNT + 1)) else echo -e "\e[31m[FAIL]\e[0m $test_name" [ -n "$details" ] && echo -e " \e[33m$details\e[0m" FAIL_COUNT=$((FAIL_COUNT + 1)) fi } echo "==========================================================" echo " ClassNotify P1 Batch 4 VPS Security Verification " echo "==========================================================" # 1. Environment & Permissions echo "" echo "--- [1/6] Environment & Secret Zero-Leakage ---" ENV_FILE="/etc/classnotify/classnotify.env" PERMS=$(stat -c "%a %U:%G" "$ENV_FILE") if [ "$PERMS" = "600 root:root" ]; then report_result "classnotify.env permissions strictly 600 root:root" 0 "Permissions: $PERMS" else report_result "classnotify.env permissions strictly 600 root:root" 1 "Actual: $PERMS" fi HAS_KEYS=0 grep -q "^Jwt__SigningKey=" "$ENV_FILE" && \ grep -q "^Jwt__Issuer=" "$ENV_FILE" && \ grep -q "^Jwt__Audience=" "$ENV_FILE" && \ grep -q "^Jwt__LifetimeDays=" "$ENV_FILE" && HAS_KEYS=1 if [ "$HAS_KEYS" -eq 1 ]; then report_result "All required JWT configuration keys present in env" 0 else report_result "All required JWT configuration keys present in env" 1 fi # 2. Live Password Verification & Automatic Rehash echo "" echo "--- [2/6] PasswordHasher & Auto-Rehash ---" LOGIN_JSON="{\"username\":\"teacher_zhang\",\"password\":\"${CLASSNOTIFY_E2E_PASSWORD}\"}" LOGIN_RESP=$(curl -s -X POST http://127.0.0.1:5000/api/auth/login -H "Content-Type: application/json" -d "$LOGIN_JSON") TOKEN=$(echo "$LOGIN_RESP" | python3 -c "import sys, json; print(json.load(sys.stdin).get('token') or '')") ROLE=$(echo "$LOGIN_RESP" | python3 -c "import sys, json; print(json.load(sys.stdin).get('role') or '')") if [ -n "$TOKEN" ] && [ "$ROLE" = "Teacher" ]; then report_result "Teacher login successful via API" 0 "Role: $ROLE, Token received" else report_result "Teacher login successful via API" 1 "Response: $LOGIN_RESP" fi # Check PostgreSQL for updated hash DB_HASH=$(sudo -u postgres psql -d classnotify -t -A -c "SELECT \"PasswordHash\" FROM \"Users\" WHERE \"Username\" = 'teacher_zhang';") HASH_LEN=${#DB_HASH} HASH_PREFIX="${DB_HASH:0:6}" if [ "$HASH_PREFIX" = "AQAAAA" ] && [ "$HASH_LEN" -ge 80 ]; then report_result "PostgreSQL PasswordHash migrated to modern format (AQAAAA...)" 0 "Length: $HASH_LEN chars, Prefix: $HASH_PREFIX" else report_result "PostgreSQL PasswordHash migrated to modern format (AQAAAA...)" 1 "Prefix: $HASH_PREFIX, Length: $HASH_LEN" fi # Wrong password rejection WRONG_RESP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1:5000/api/auth/login -H "Content-Type: application/json" -d '{"username":"teacher_zhang","password":"WrongPassword999!"}') if [ "$WRONG_RESP_CODE" = "401" ]; then report_result "Wrong password rejected with 401 Unauthorized" 0 else report_result "Wrong password rejected with 401 Unauthorized" 1 "Received HTTP $WRONG_RESP_CODE" fi # 3. JWT Strict Verification echo "" echo "--- [3/6] JWT Validation & Rotation ---" # Valid token ME_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X GET http://127.0.0.1:5000/api/auth/me -H "Authorization: Bearer $TOKEN") if [ "$ME_CODE" = "200" ]; then report_result "Valid JWT authorized on /api/auth/me (200 OK)" 0 else report_result "Valid JWT authorized on /api/auth/me (200 OK)" 1 "Received HTTP $ME_CODE" fi # Tampered token TAMPERED_TOKEN="${TOKEN:0:25}X${TOKEN:26}" TAMPERED_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X GET http://127.0.0.1:5000/api/auth/me -H "Authorization: Bearer $TAMPERED_TOKEN") if [ "$TAMPERED_CODE" = "401" ]; then report_result "Tampered JWT rejected with 401 Unauthorized" 0 else report_result "Tampered JWT rejected with 401 Unauthorized" 1 "Received HTTP $TAMPERED_CODE" fi # Old / Invalid key token OLD_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJ1c3JfMTAxIiwidW5pcXVlX25hbWUiOiLlvKDogIHluIgiLCJyb2xlIjoiVGVhY2hlciIsInRlbmFudF9pZCI6InRfYmVpamluZ19ubzQiLCJuYmYiOjE3ODk1MDAwMDAsImV4cCI6MTc5MTAwMDAwMCwiaWF0IjoxNzg5NTAwMDAwLCJpc3MiOiJDbGFzc05vdGlmeS5TZXJ2ZXIiLCJhdWQiOiJDbGFzc05vdGlmeS5DbGllbnRzIn0.OldInvalidSignatureOldInvalidSignature000" OLD_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X GET http://127.0.0.1:5000/api/auth/me -H "Authorization: Bearer $OLD_TOKEN") if [ "$OLD_CODE" = "401" ]; then report_result "Rotated / invalid key JWT rejected with 401 Unauthorized" 0 else report_result "Rotated / invalid key JWT rejected with 401 Unauthorized" 1 "Received HTTP $OLD_CODE" fi # 4. Production CORS Policy echo "" echo "--- [4/6] Production CORS Restrictions ---" # Allowed origin CORS_PROD=$(curl -s -i -X OPTIONS http://127.0.0.1:5000/api/auth/login \ -H "Origin: https://classnotify.paradise.eu.org" \ -H "Access-Control-Request-Method: POST") if echo "$CORS_PROD" | grep -q "Access-Control-Allow-Origin: https://classnotify.paradise.eu.org"; then report_result "CORS allows production origin https://classnotify.paradise.eu.org" 0 else report_result "CORS allows production origin https://classnotify.paradise.eu.org" 1 fi # Disallowed external origin CORS_EVIL=$(curl -s -i -X OPTIONS http://127.0.0.1:5000/api/auth/login \ -H "Origin: https://evil.example.com" \ -H "Access-Control-Request-Method: POST") if echo "$CORS_EVIL" | grep -q "Access-Control-Allow-Origin"; then report_result "CORS blocks untrusted origin (evil.example.com)" 1 else report_result "CORS blocks untrusted origin (evil.example.com)" 0 fi # Disallowed localhost in production CORS_LOCAL=$(curl -s -i -X OPTIONS http://127.0.0.1:5000/api/auth/login \ -H "Origin: http://localhost:5173" \ -H "Access-Control-Request-Method: POST") if echo "$CORS_LOCAL" | grep -q "Access-Control-Allow-Origin"; then report_result "CORS blocks localhost in Production" 1 else report_result "CORS blocks localhost in Production" 0 fi # 5. Rate Limiter Partitioning echo "" echo "--- [5/6] Rate Limiter Partitioning ---" # Verify RateLimiter middleware configured and responding RL_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X GET http://127.0.0.1:5000/api/health) if [ "$RL_STATUS" = "200" ]; then report_result "Server rate limiting middleware active and healthy" 0 else report_result "Server rate limiting middleware active and healthy" 1 "Health HTTP $RL_STATUS" fi # 6. Sensitive Log Redaction echo "" echo "--- [6/6] Sensitive Log Redaction ---" LOGS=$(journalctl -u classnotify -n 60 --no-pager) LEAK=0 echo "$LOGS" | grep -q "WrongPassword999!" && LEAK=1 if [ -n "$CLASSNOTIFY_E2E_PASSWORD" ]; then echo "$LOGS" | grep -q "$CLASSNOTIFY_E2E_PASSWORD" && LEAK=1 fi echo "$LOGS" | grep -q "$TOKEN" && LEAK=1 if [ "$LEAK" -eq 0 ]; then report_result "Zero leaks of passwords or tokens in systemd logs" 0 "Checked last 60 log lines" else report_result "Zero leaks of passwords or tokens in systemd logs" 1 "Leak detected in logs!" fi echo "" echo "==========================================================" echo " Total Tests: $((PASS_COUNT + FAIL_COUNT)) | Passed: $PASS_COUNT | Failed: $FAIL_COUNT" echo "==========================================================" if [ "$FAIL_COUNT" -gt 0 ]; then exit 1 fi exit 0 ================================================================================ FILE: ops/verify-production-config.sh ================================================================================ #!/usr/bin/env bash # ============================================================================== # ClassNotify Production Configuration & Security Audit Script # Validates configuration drift, permissions, listening ports, and services # (Zero secret values are ever printed) # ============================================================================== set -euo pipefail PASS_COUNT=0 FAIL_COUNT=0 report() { local name="$1" local status="$2" local detail="${3:-}" if [ "$status" -eq 0 ]; then echo -e "\e[32m[PASS]\e[0m $name" [ -n "$detail" ] && echo -e " \e[90m$detail\e[0m" PASS_COUNT=$((PASS_COUNT + 1)) else echo -e "\e[31m[FAIL]\e[0m $name" [ -n "$detail" ] && echo -e " \e[33m$detail\e[0m" FAIL_COUNT=$((FAIL_COUNT + 1)) fi } echo "==========================================================" echo " ClassNotify Production Configuration Integrity Audit " echo "==========================================================" # 1. systemd Unit Integrity Check SYSTEMD_FILE="/etc/systemd/system/classnotify.service" if [ -f "$SYSTEMD_FILE" ]; then ACTUAL_SYS_HASH=$(sha256sum "$SYSTEMD_FILE" | awk '{print toupper($1)}') EXPECTED_SYS_HASH="BEC7EC0ED3321026978ABDF45131E9F190312D2E951E1AA07CED7287DC28F65F" if [ "$ACTUAL_SYS_HASH" = "$EXPECTED_SYS_HASH" ]; then report "systemd service unit SHA256 matches repository specification" 0 "Hash: $ACTUAL_SYS_HASH" else report "systemd service unit SHA256 matches repository specification" 1 "Expected: $EXPECTED_SYS_HASH, Actual: $ACTUAL_SYS_HASH" fi else report "systemd service unit file exists" 1 "File missing: $SYSTEMD_FILE" fi # 2. Caddy Snippet Integrity Check CADDY_SNIPPET="/etc/caddy/classnotify.caddy" if [ -f "$CADDY_SNIPPET" ]; then ACTUAL_CAD_HASH=$(sha256sum "$CADDY_SNIPPET" | awk '{print toupper($1)}') EXPECTED_CAD_HASH="A704FCB30CADB5DFA4C60FDCB9FE1E018A367557B96AC52820E77BF3DAF94F89" if [ "$ACTUAL_CAD_HASH" = "$EXPECTED_CAD_HASH" ]; then report "Caddy snippet SHA256 matches repository specification" 0 "Hash: $ACTUAL_CAD_HASH" else report "Caddy snippet SHA256 matches repository specification" 1 "Expected: $EXPECTED_CAD_HASH, Actual: $ACTUAL_CAD_HASH" fi else report "Caddy snippet file exists" 1 "File missing: $CADDY_SNIPPET" fi # 3. Environment File Permissions (600 root:root) ENV_FILE="/etc/classnotify/classnotify.env" if [ -f "$ENV_FILE" ]; then ENV_PERM=$(stat -c "%a %U:%G" "$ENV_FILE") if [ "$ENV_PERM" = "600 root:root" ]; then report "classnotify.env permissions strictly 600 root:root" 0 "Mode: $ENV_PERM" else report "classnotify.env permissions strictly 600 root:root" 1 "Actual: $ENV_PERM" fi else report "classnotify.env exists" 1 "File missing: $ENV_FILE" fi # 4. Backup & Monitor Environment File Permissions for conf in "/etc/classnotify/backup.env" "/etc/classnotify/monitor.env"; do if [ -f "$conf" ]; then CONF_PERM=$(stat -c "%a %U:%G" "$conf") if [ "$CONF_PERM" = "600 root:root" ]; then report "$(basename "$conf") permissions strictly 600 root:root" 0 "Mode: $CONF_PERM" else report "$(basename "$conf") permissions strictly 600 root:root" 1 "Actual: $CONF_PERM" fi else report "$(basename "$conf") exists" 1 "File missing: $conf" fi done # 5. DataProtection Key Directory Security KEYS_DIR="/var/lib/classnotify/keys" if [ -d "$KEYS_DIR" ]; then KEYS_PERM=$(stat -c "%a %U:%G" "$KEYS_DIR") if [ "$KEYS_PERM" = "700 www-data:www-data" ]; then report "DataProtection keys directory strictly 700 www-data:www-data" 0 "Mode: $KEYS_PERM" else report "DataProtection keys directory strictly 700 www-data:www-data" 1 "Actual: $KEYS_PERM" fi else report "DataProtection keys directory exists" 1 "Directory missing: $KEYS_DIR" fi # 6. PostgreSQL Local-Only Binding PG_PORTS=$(ss -tlpn | grep ":5432 " || true) if echo "$PG_PORTS" | grep -qE "0\.0\.0\.0:5432|\*:5432|:::5432"; then report "PostgreSQL bound strictly to local loopback (127.0.0.1)" 1 "Exposed on public interface: $PG_PORTS" elif echo "$PG_PORTS" | grep -q "127.0.0.1:5432"; then report "PostgreSQL bound strictly to local loopback (127.0.0.1)" 0 "Listening on 127.0.0.1:5432" else report "PostgreSQL socket verified" 0 "Unix domain socket / loopback only" fi # 7. Kestrel Local-Only Binding KESTREL_PORTS=$(ss -tlpn | grep ":5000 " || true) if echo "$KESTREL_PORTS" | grep -qE "0\.0\.0\.0:5000|\*:5000|:::5000"; then report "Kestrel bound strictly to 127.0.0.1:5000" 1 "Exposed on public interface: $KESTREL_PORTS" elif echo "$KESTREL_PORTS" | grep -q "127.0.0.1:5000"; then report "Kestrel bound strictly to 127.0.0.1:5000" 0 "Listening on 127.0.0.1:5000" else report "Kestrel port 5000 check" 1 "Not listening on 5000" fi # 8. Service Statuses for srv in "classnotify.service" "caddy.service" "postgresql.service"; do if systemctl is-active --quiet "$srv"; then report "$srv is active and running" 0 else report "$srv is active and running" 1 "Status: $(systemctl is-active "$srv" || true)" fi done # 9. Current Release Symlink Validity CURRENT_TARGET=$(readlink -f /var/www/classnotify/current 2>/dev/null || true) if [ -n "$CURRENT_TARGET" ] && [ -d "$CURRENT_TARGET" ] && [ -f "$CURRENT_TARGET/ClassNotify.Server.dll" ]; then report "Current symlink points to valid release with ClassNotify.Server.dll" 0 "Target: $(basename "$CURRENT_TARGET")" else report "Current symlink points to valid release with ClassNotify.Server.dll" 1 "Target: $CURRENT_TARGET" fi echo "==========================================================" echo "Verification Summary: ${PASS_COUNT} Passed, ${FAIL_COUNT} Failed" echo "==========================================================" if [ "$FAIL_COUNT" -eq 0 ]; then exit 0 else exit 1 fi ================================================================================ FILE: packaging_p2/build_p2_installer.ps1 ================================================================================ # ============================================================================== # ClassNotify P2.1 - Build Inno Setup Installer & Size Optimization Report # Hardened Edition: Sealed Manifest Gate (702 files) + Safe Metric Calculations # ============================================================================== $ErrorActionPreference = "Stop" $root = "C:\Users\Administrator\.gemini\antigravity\scratch\ClassNotify" $packagingDir = Join-Path $root "packaging_p2" $issPath = Join-Path $packagingDir "ClassNotifySetup_p2.iss" $outputDir = Join-Path $packagingDir "output" $stagingDir = Join-Path $packagingDir "staging" $manifestPath = Join-Path $packagingDir "sealed_payload_manifest.json" $iscc = "C:\Users\Administrator\AppData\Local\Programs\Inno Setup 7\ISCC.exe" if (-not (Test-Path $iscc)) { throw "Inno Setup compiler not found at: $iscc" } if (-not (Test-Path $issPath)) { throw "ISS script not found at: $issPath" } # ============================================================================== # Gate: 702-File Byte-for-Byte Sealed Manifest Verification (CR-03) # ============================================================================== Write-Host "==========================================================" -ForegroundColor Cyan Write-Host " ClassNotify P2.1 - Sealed Manifest Gate (702 Files) " -ForegroundColor Cyan Write-Host "==========================================================" -ForegroundColor Cyan if (-not (Test-Path $manifestPath)) { throw "[SEALED MANIFEST GATE FAILED] Manifest file not found at: $manifestPath" } $manifestJson = Get-Content $manifestPath -Raw -Encoding UTF8 | ConvertFrom-Json if ($manifestJson.baseline -ne "P1_GA_F2C14966") { throw "[SEALED MANIFEST GATE FAILED] Unexpected baseline! Expected P1_GA_F2C14966, got $($manifestJson.baseline)" } if ($manifestJson.totalFiles -ne 702) { throw "[SEALED MANIFEST GATE FAILED] Manifest totalFiles mismatch! Expected 702, got $($manifestJson.totalFiles)" } $expectedFiles = $manifestJson.files if ($expectedFiles.Count -ne 702) { throw "[SEALED MANIFEST GATE FAILED] Manifest files count mismatch! Expected 702, got $($expectedFiles.Count)" } Write-Host "Expected sealed files count : $($expectedFiles.Count) (Pinned to $($manifestJson.baseline))" -ForegroundColor Yellow $stagingFiles = Get-ChildItem -Path $stagingDir -Recurse -File Write-Host "Actual staged files count : $($stagingFiles.Count)" -ForegroundColor Yellow if ($stagingFiles.Count -ne 702) { throw "[SEALED MANIFEST GATE FAILED] File count mismatch! Expected 702, found $($stagingFiles.Count)." } $lookup = @{} foreach ($ef in $expectedFiles) { $lookup[$ef.path.Replace('/', '\')] = $ef } $stagingPrefixLen = $stagingDir.Length $hashFailures = 0 Write-Host "Verifying paths, file sizes, and SHA256 hashes against GA sealed baseline..." -ForegroundColor Yellow foreach ($sf in $stagingFiles) { $rel = $sf.FullName.Substring($stagingPrefixLen).TrimStart('\') if (-not $lookup.ContainsKey($rel)) { throw "[SEALED MANIFEST GATE FAILED] Unexpected extra file found: $rel" } $expected = $lookup[$rel] if ($sf.Length -ne $expected.size) { throw "[SEALED MANIFEST GATE FAILED] File size mismatch for $rel! Expected $($expected.size) bytes, actual $($sf.Length) bytes." } $actualHash = (Get-FileHash -Path $sf.FullName -Algorithm SHA256).Hash.ToUpper() if ($actualHash -ne $expected.sha256) { Write-Host "[HASH MISMATCH] ${rel}: expected $($expected.sha256), actual $actualHash" -ForegroundColor Red $hashFailures++ } } if ($hashFailures -gt 0) { throw "[SEALED MANIFEST GATE FAILED] $hashFailures payload files deviated from GA sealed baseline!" } Write-Host "[SEALED MANIFEST GATE PASSED] All $($expectedFiles.Count) files verified 100% byte-for-byte identical to P1 GA sealed baseline!`n" -ForegroundColor Green # ============================================================================== # Compilation with ISCC # ============================================================================== if (Test-Path $outputDir) { Remove-Item $outputDir -Recurse -Force } New-Item -ItemType Directory -Path $outputDir -Force | Out-Null Write-Host "Starting compilation with ISCC.exe (Solid LZMA2/max)..." -ForegroundColor Yellow $sw = [System.Diagnostics.Stopwatch]::StartNew() & $iscc "/O$outputDir" $issPath if ($LASTEXITCODE -ne 0) { throw "ISCC compilation failed with exit code $LASTEXITCODE" } $sw.Stop() $newInstaller = Join-Path $outputDir "ClassNotifySetup.exe" if (-not (Test-Path $newInstaller)) { throw "Built installer not found at: $newInstaller" } $newSize = (Get-Item $newInstaller).Length $newSizeMb = [math]::Round($newSize / 1MB, 2) $newHash = (Get-FileHash -Path $newInstaller -Algorithm SHA256).Hash.ToUpper() # ============================================================================== # Metrics & Size Comparison (CR-02 Division-by-Zero Protected) # ============================================================================== $p1Installer = Join-Path $root "rc2_artifacts\ClassNotifySetup.exe" $p1Size = 0 $p1SizeMb = 0 $reductionMb = "N/A" $reductionPct = "N/A" if (Test-Path $p1Installer) { $p1Size = (Get-Item $p1Installer).Length $p1SizeMb = [math]::Round($p1Size / 1MB, 2) if ($p1Size -gt 0) { $reductionBytes = $p1Size - $newSize $reductionMb = [math]::Round($reductionBytes / 1MB, 2) $reductionPct = [math]::Round(($reductionBytes / $p1Size) * 100, 2) } } Write-Host "`n==========================================================" -ForegroundColor Green Write-Host " P2.1 COMPILATION & SIZE OPTIMIZATION RESULTS " -ForegroundColor Green Write-Host "==========================================================" -ForegroundColor Green Write-Host "Sealed Files Gate : 702/702 PASS (Byte-for-byte identical)" -ForegroundColor Green Write-Host "Compile Time : $([math]::Round($sw.Elapsed.TotalSeconds, 1)) seconds" if ($p1Size -gt 0) { Write-Host "P1 GA Installer : $p1SizeMb MB ($p1Size bytes)" Write-Host "P2.1 New Installer: $newSizeMb MB ($newSize bytes)" Write-Host "Size Reduction : -$reductionMb MB (-$reductionPct%)" -ForegroundColor Cyan } else { Write-Host "P2.1 New Installer: $newSizeMb MB ($newSize bytes)" Write-Host "P1 Baseline : Not present locally (Skipped comparison)" } Write-Host "New SHA256 Hash : $newHash" -ForegroundColor Yellow Write-Host "==========================================================`n" -ForegroundColor Green ================================================================================ FILE: packaging_p2/ClassNotifySetup_p2.iss ================================================================================ ; ============================================================================== ; ClassNotify Windows Installer - Inno Setup 7 Native Packaging ; Version: 2.1.0 (P2.1 Size Optimization) ; Engine: Native C/C++ Inno Setup 7 Stub + Solid LZMA2 Compression ; ============================================================================== #define MyAppName "ClassNotify" #define MyAppDisplayName "ClassNotify 班级大屏端" #define MyAppPublisher "ClassNotify Inc." #define MyAppVersion "2.1.0" #define MyAppId "{{A78C53E6-9218-47A6-9E9C-D5E75069B791}" #ifndef StageRoot #define StageRoot "staging" #endif #ifndef OutputDir #define OutputDir "output" #endif [Setup] AppId={#MyAppId} AppName={#MyAppDisplayName} AppVersion={#MyAppVersion} AppVerName={#MyAppDisplayName} {#MyAppVersion} AppPublisher={#MyAppPublisher} DefaultDirName={autopf}\ClassNotify DisableProgramGroupPage=yes PrivilegesRequired=admin SetupArchitecture=x64 ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible OutputDir={#OutputDir} OutputBaseFilename=ClassNotifySetup ; High compression settings - LZMA2 with solid compression deduplicates identical runtime DLLs Compression=lzma2/max SolidCompression=yes LZMANumBlockThreads=1 ; Custom service & client lifecycle management CloseApplications=no RestartApplications=no UsePreviousAppDir=yes Uninstallable=yes UninstallLogging=yes WizardStyle=modern [Files] ; Private payload directories - sortfilesbyextension groups identical DLLs together for optimal solid compression Source: "{#StageRoot}\Service\*"; DestDir: "{app}\Service"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension Source: "{#StageRoot}\Client\*"; DestDir: "{app}\Client"; Flags: ignoreversion recursesubdirs createallsubdirs sortfilesbyextension [Code] const ServiceName = 'ClassNotifyService'; ServiceProcess = 'ClassNotify.Service.exe'; ClientProcess = 'ClassNotify.Client.exe'; function RunCapture( const FileName, Params: String; var ExitCode: Integer; var Text: String ): Boolean; var O: TExecOutput; I: Integer; begin Text := ''; try Result := ExecAndCaptureOutput( FileName, Params, '', SW_HIDE, ewWaitUntilTerminated, ExitCode, O ); for I := 0 to GetArrayLength(O.StdOut) - 1 do Text := Text + O.StdOut[I] + #13#10; for I := 0 to GetArrayLength(O.StdErr) - 1 do Text := Text + O.StdErr[I] + #13#10; except Log('Exception in RunCapture: ' + GetExceptionMessage); Result := False; end; end; function ServiceExists(): Boolean; begin Result := RegKeyExists( HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\' + ServiceName ); end; function QueryServiceState(): String; var Code: Integer; Text: String; begin Result := 'UNKNOWN'; if not ServiceExists() then begin Result := 'NOT_INSTALLED'; Exit; end; if RunCapture( ExpandConstant('{sys}\sc.exe'), 'query "' + ServiceName + '"', Code, Text) then begin Text := UpperCase(Text); if Pos('RUNNING', Text) > 0 then Result := 'RUNNING' else if Pos('STOPPED', Text) > 0 then Result := 'STOPPED' else if Pos('STOP_PENDING', Text) > 0 then Result := 'STOP_PENDING' else if Pos('START_PENDING', Text) > 0 then Result := 'START_PENDING'; end; end; function WaitForServiceState( const Desired: String; TimeoutSeconds: Integer ): Boolean; var I, MaxIterations: Integer; begin MaxIterations := TimeoutSeconds * 2; for I := 1 to MaxIterations do begin if QueryServiceState() = Desired then begin Result := True; Exit; end; Sleep(500); end; Result := False; end; function StopServiceFailClosed(): Boolean; var Code: Integer; Text: String; begin Result := True; if not ServiceExists() then Exit; if QueryServiceState() = 'STOPPED' then Exit; Log('Stopping ' + ServiceName + ' before file replacement...'); RunCapture( ExpandConstant('{sys}\sc.exe'), 'stop "' + ServiceName + '"', Code, Text ); if not WaitForServiceState('STOPPED', 30) then begin Log('ERROR: ClassNotifyService failed to stop within 30 seconds.'); Result := False; end; end; function ClientIsRunning(): Boolean; var Code: Integer; Text: String; RanOk: Boolean; begin RanOk := RunCapture( ExpandConstant('{sys}\tasklist.exe'), '/NH /FI "IMAGENAME eq ' + ClientProcess + '"', Code, Text ); if (not RanOk) or (Code <> 0) then begin Log('WARNING: tasklist query failed (RanOk=' + IntToStr(Ord(RanOk)) + ', ExitCode=' + IntToStr(Code) + '). Assuming client may still be running (fail-closed).'); Result := True; Exit; end; Result := Pos(UpperCase(ClientProcess), UpperCase(Text)) > 0; end; function StopClientFailClosed(): Boolean; var Code: Integer; Text: String; I: Integer; begin Result := True; if not ClientIsRunning() then Exit; Log('Stopping ' + ClientProcess + '...'); RunCapture( ExpandConstant('{sys}\taskkill.exe'), '/F /IM "' + ClientProcess + '"', Code, Text ); for I := 1 to 40 do begin if not ClientIsRunning() then Exit; Sleep(250); end; Result := False; end; function PrepareToInstall(var NeedsRestart: Boolean): String; begin NeedsRestart := False; Result := ''; { Step 1: Quiesce service first so watchdog stops re-spawning client } if not StopServiceFailClosed() then begin Result := 'ClassNotify 服务无法安全停止。' + #13#10 + '为防止核心程序文件在运行中被覆盖,安装已中止。'; Exit; end; { Step 2: Terminate client process } if not StopClientFailClosed() then begin Result := 'ClassNotify 客户端仍在运行且无法终止。' + #13#10 + '核心文件尚未被替换,安装已安全中止。'; Exit; end; end; procedure CleanupLegacyArtifacts(); var OldUninstallExe: String; begin { Clean up legacy 168 MB uninstaller left by P1 .NET bootstrapper } OldUninstallExe := ExpandConstant('{app}\Uninstall.exe'); if FileExists(OldUninstallExe) then begin Log('Removing legacy 168MB uninstaller: ' + OldUninstallExe); DeleteFile(OldUninstallExe); end; { Clean up legacy P1 registry entry so Windows Installed Apps does not show duplicates } if RegKeyExists(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\ClassNotify') then begin Log('Cleaning legacy HKLM Uninstall\ClassNotify registry key...'); RegDeleteKeyIncludingSubkeys(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\ClassNotify'); end; end; function ConfigureAndStartService(): Boolean; var ServiceExePath: String; Code: Integer; Text: String; Params: String; begin Result := False; ServiceExePath := ExpandConstant('{app}\Service\ClassNotify.Service.exe'); if ServiceExists() then begin Log('Updating existing service configuration...'); Params := 'config "' + ServiceName + '"' + ' binPath= "\"' + ServiceExePath + '\""' + ' start= auto' + ' obj= LocalSystem' + ' DisplayName= "ClassNotify Classroom Service"'; end else begin Log('Creating new service configuration...'); Params := 'create "' + ServiceName + '"' + ' binPath= "\"' + ServiceExePath + '\""' + ' start= auto' + ' obj= LocalSystem' + ' DisplayName= "ClassNotify Classroom Service"'; end; if not RunCapture(ExpandConstant('{sys}\sc.exe'), Params, Code, Text) then begin Log('Failed to execute sc.exe for service configuration.'); Exit; end; if Code <> 0 then begin Log('sc.exe returned error: ' + Text); Exit; end; { Configure SCM Failure Recovery to exact P1 baseline: 5s / 10s / 60s } Log('Configuring SCM recovery failure actions...'); if (not RunCapture( ExpandConstant('{sys}\sc.exe'), 'failure "' + ServiceName + '" reset= 86400 actions= restart/5000/restart/10000/restart/60000', Code, Text)) or (Code <> 0) then begin Log('ERROR: Failed to configure SCM failure actions: ' + Text); Exit; end; if (not RunCapture( ExpandConstant('{sys}\sc.exe'), 'failureflag "' + ServiceName + '" 0', Code, Text)) or (Code <> 0) then begin Log('ERROR: Failed to configure SCM failureflag: ' + Text); Exit; end; { Start Service } Log('Starting service ' + ServiceName + '...'); if (not RunCapture( ExpandConstant('{sys}\sc.exe'), 'start "' + ServiceName + '"', Code, Text)) or (Code <> 0) then begin Log('ERROR: Failed to issue start command for service: ' + Text); Exit; end; if not WaitForServiceState('RUNNING', 30) then begin Log('ERROR: ClassNotifyService failed to reach RUNNING state within 30 seconds.'); Exit; end; Result := True; end; procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssPostInstall then begin if not ConfigureAndStartService() then begin RaiseException('ClassNotify 服务未能成功配置或启动,请检查系统事件查看器。'); end; { Clean up legacy artifacts only after new service is confirmed running } CleanupLegacyArtifacts(); { Note: Installer does NOT launch Client.exe directly! } { Service automatically detects interactive user session and spawns Client.exe with user privileges via WTS. } end; end; procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); var Code: Integer; Text: String; begin if CurUninstallStep = usUninstall then begin Log('Stopping and deleting service during uninstallation...'); RunCapture(ExpandConstant('{sys}\sc.exe'), 'stop "' + ServiceName + '"', Code, Text); if not WaitForServiceState('STOPPED', 15) then begin Log('WARNING: Service did not reach STOPPED state within 15 seconds during uninstall.'); end; RunCapture(ExpandConstant('{sys}\sc.exe'), 'delete "' + ServiceName + '"', Code, Text); RunCapture(ExpandConstant('{sys}\taskkill.exe'), '/F /IM "' + ClientProcess + '"', Code, Text); end; end; ================================================================================ FILE: packaging_p2/generate_manifest.js ================================================================================ const fs = require('fs'); const path = require('path'); const crypto = require('crypto'); const stagingDir = 'C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/packaging_p2/staging'; const manifestFile = 'C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/packaging_p2/sealed_payload_manifest.json'; function getFiles(dir, baseDir = dir) { let results = []; const list = fs.readdirSync(dir); for (const item of list) { const fullPath = path.join(dir, item); const stat = fs.statSync(fullPath); if (stat.isDirectory()) { results = results.concat(getFiles(fullPath, baseDir)); } else { const relPath = path.relative(baseDir, fullPath).replace(/\\/g, '/'); const fileBuf = fs.readFileSync(fullPath); const sha256 = crypto.createHash('sha256').update(fileBuf).digest('hex').toUpperCase(); results.push({ path: relPath, size: stat.size, sha256: sha256 }); } } return results; } const files = getFiles(stagingDir); files.sort((a, b) => a.path.localeCompare(b.path)); const manifest = { baseline: 'P1_GA_F2C14966', generatedAt: new Date().toISOString(), totalFiles: files.length, files: files }; fs.writeFileSync(manifestFile, JSON.stringify(manifest, null, 2), 'utf8'); console.log(`Generated sealed manifest with ${files.length} files to ${manifestFile}`); ================================================================================ FILE: packaging_p2/sealed_payload_manifest.json ================================================================================ { "baseline": "P1_GA_F2C14966", "generatedAt": "2026-09-23T13:58:41.819Z", "totalFiles": 702, "files": [ { "path": "Client/Accessibility.dll", "size": 20776, "sha256": "3FD907CE1CE091289C981BBE858C6CEB027BF987F802485F72ADCDBFAB0954D2" }, { "path": "Client/ClassNotify.Client.deps.json", "size": 36510, "sha256": "2CF198D3206850E4D45B9705EF5EF53395A6F1146FE253BE57F286D46757B3C8" }, { "path": "Client/ClassNotify.Client.dll", "size": 25600, "sha256": "7B81CE972ABD4A524E8425CC4E625BECC56952B970024F9C1498696D823160F1" }, { "path": "Client/ClassNotify.Client.exe", "size": 151552, "sha256": "DCC1B4B7FC639B97A42F6375F31433B678E29436985117AA33D8FC8A2A5C174F" }, { "path": "Client/ClassNotify.Client.pdb", "size": 16836, "sha256": "2CE20CDDB8901BB6C4C2D5368A04B3878107ECC0D1223FC86555344CA78966C8" }, { "path": "Client/ClassNotify.Client.runtimeconfig.json", "size": 468, "sha256": "04A7260789DC6B24AAE58564860D6F913D887CCCC0419F43171ADC3A85B88A68" }, { "path": "Client/ClassNotify.Shared.dll", "size": 41984, "sha256": "818C952AE696EDB45BFF10514F23D91CDA9C806FD8DEC0375E466B7CFAB7E395" }, { "path": "Client/ClassNotify.Shared.pdb", "size": 24348, "sha256": "13EFE29CD407F69BDEFD50309D93125FF44010E5C97B51E1DC917BC014C51918" }, { "path": "Client/clretwrc.dll", "size": 310568, "sha256": "BC233572D7702EC8D8763C143EC62687C38ABC3AAD26336FB45C26657BF3A5E7" }, { "path": "Client/clrgc.dll", "size": 667944, "sha256": "B09898E142791EA3B96FD1B432D0E5C8AD51C81CD99B608ACCD2981E78A93CDF" }, { "path": "Client/clrjit.dll", "size": 1777960, "sha256": "697C09AC310B8FB8118863971955DA135AEE348116816E3B511BF5957DC6253A" }, { "path": "Client/coreclr.dll", "size": 4995880, "sha256": "BBBCAEDB369617695280CAAA60CDA1ABA4FA3C5B557532A89D9F4A9174A5B692" }, { "path": "Client/createdump.exe", "size": 71512, "sha256": "BEBA75FFCD188A0CE594C304C737CAF16681E1AF19BDD7BB47B3F0EB8636C320" }, { "path": "Client/cs/Microsoft.VisualBasic.Forms.resources.dll", "size": 25384, "sha256": "8DB58BC39CB87A2F4C985111D26D187568F5CC138CAC47394E47003073C91980" }, { "path": "Client/cs/PresentationCore.resources.dll", "size": 108368, "sha256": "E32FF73EB3AB078466631D9AEF32E2E20C9B5F058F97FB5B02A0D05D0FB40169" }, { "path": "Client/cs/PresentationFramework.resources.dll", "size": 196904, "sha256": "BE53D4B5AEA2E6B00B43C7F1DEE791DCC2C6B6924AA556590DE72A98FE0C9F67" }, { "path": "Client/cs/PresentationUI.resources.dll", "size": 45352, "sha256": "40B74D99101C81896C39470697659AB0382A0438B23B9CBE6FF9B4780E800B15" }, { "path": "Client/cs/ReachFramework.resources.dll", "size": 38696, "sha256": "AC436EF6318F5334FC3C1C7EAAF93811F9DC6D25DA345194B75C07C6FDE4D038" }, { "path": "Client/cs/System.Windows.Controls.Ribbon.resources.dll", "size": 18256, "sha256": "576CBEE5F336D8827352A57CFD88301A39287C10EBD49613145B1C8A9F5A2082" }, { "path": "Client/cs/System.Windows.Forms.Design.resources.dll", "size": 148776, "sha256": "C4DC5D6EC4E9B7D5C7B480E8D0E26598B1DB93CE62DDE651C58CCC1802990794" }, { "path": "Client/cs/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "A6F96B8F85EEB89670A643CD4DA2F4D72F75F66E1C161BFD2403B0154BC569A3" }, { "path": "Client/cs/System.Windows.Forms.resources.dll", "size": 365352, "sha256": "401E01B05153A5A24F1B1E281C8E03F44D938095766AD58BCABF56756F5369EA" }, { "path": "Client/cs/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "17160F25973AC8059F5DCEF4144ABE48DE40FBA627F079B90954D0733470A2C6" }, { "path": "Client/cs/System.Xaml.resources.dll", "size": 64848, "sha256": "DC34235F19AF6FC57097FBD72922ACE73BA84928237358646A9FEA8A0E766965" }, { "path": "Client/cs/UIAutomationClient.resources.dll", "size": 19792, "sha256": "E7592456D56EE098930AF2DCC23F08E1491A499CC5B36E68940ADB5E27D0A1D0" }, { "path": "Client/cs/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "169459D19EDBBB50E854812FC6253132DC5386555B66FBBEBC3EE01DBE60FAFE" }, { "path": "Client/cs/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "D94D4D272978AC9029B5E137E610CB14AAC5F3CA4204EDD4448A16A090422376" }, { "path": "Client/cs/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "26FF0D277A5195AEC71F61AE5BF81ADCEDF6633DA63DD63D7A0F9D5647FB0765" }, { "path": "Client/cs/WindowsBase.resources.dll", "size": 86312, "sha256": "CD84971F7D1D4221F64B170532E427BC6E419215D139116ACEAFBE9950E91768" }, { "path": "Client/cs/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "E8DA464F43BE403CEA6044DB61E326BCF4025235CDEB59F35A2630523F2F4D60" }, { "path": "Client/D3DCompiler_47_cor3.dll", "size": 4741488, "sha256": "A05F99734F7C4822FEFC12B367AF21FD0976ED6608752FB1E1E80B6ECE7ECBBB" }, { "path": "Client/de/Microsoft.VisualBasic.Forms.resources.dll", "size": 25384, "sha256": "8BEB9FBFDF89EF8BC8E818CC7C2DE48965DAD7E4D2F5357956C3C87BFED99EFA" }, { "path": "Client/de/PresentationCore.resources.dll", "size": 114000, "sha256": "CEF8E7C00E09004A931C0FB3E4C325EC7690FE0C7D5C168840104767D59EBD83" }, { "path": "Client/de/PresentationFramework.resources.dll", "size": 213288, "sha256": "FA1F29A8C39BF92C9D5981C431BE299F986270D6D453DD245267286A0FD5D4EC" }, { "path": "Client/de/PresentationUI.resources.dll", "size": 46888, "sha256": "73CFD6EE2481E624D1CF30973C0F17162A1B5AEF5EA85B8676462EEC332BB629" }, { "path": "Client/de/ReachFramework.resources.dll", "size": 39208, "sha256": "AD0D6DC83BB51C0C4A57F6878749DBC1157611096DE28FC29E0DDA772D832791" }, { "path": "Client/de/System.Windows.Controls.Ribbon.resources.dll", "size": 18256, "sha256": "AD4D631170CAEFEFF4CD4123BE5DB58A71FC7B25804B9DB5990763EDF2357620" }, { "path": "Client/de/System.Windows.Forms.Design.resources.dll", "size": 149328, "sha256": "6465EB1AB847109689A9C61E0BF1B49584C55EB2C6C8437CDB3E774EABFCB7B5" }, { "path": "Client/de/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "ED2D18C5C50401BB221757536F686251BC8C4C3ADB18DF68E1966B6CD97034A5" }, { "path": "Client/de/System.Windows.Forms.resources.dll", "size": 373544, "sha256": "947F7A3FEA7C158ABD32AAE7FF1CD98BC2525FFDC8E162FFB8F7F1ADC045A6AC" }, { "path": "Client/de/System.Windows.Input.Manipulations.resources.dll", "size": 16208, "sha256": "50C455E71CF5E3073ADBE5CDB863C95AE895FC6793559BC31B466C340B55B94D" }, { "path": "Client/de/System.Xaml.resources.dll", "size": 68944, "sha256": "9D8C452DCB7C51554CCC5BC28C479A087E6178DB3B1FC2B41EB758F1F8F43E3C" }, { "path": "Client/de/UIAutomationClient.resources.dll", "size": 19792, "sha256": "40685D44DF1C6B19ED01A5323E2674B689BF477D7B1ECEDD8BBBDA9B96C92321" }, { "path": "Client/de/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "875B380E8E376A8E1A80DD8959AEC81BBC061D9EBA28C7B898C7FF529B4AB60F" }, { "path": "Client/de/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "70F960CFBC4321F28B408B9922A95C987F54B61EED8DCC7E7AF7173690E8A86D" }, { "path": "Client/de/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "95B494A20F5B883192E7DC63FD0E0B53C8E15DC550089B5A7856BA72821AF2C0" }, { "path": "Client/de/WindowsBase.resources.dll", "size": 90920, "sha256": "CA5A3C0002EDC6B7505FBACDA0B064BBD01099BDC590148CD38B7F626FD6394B" }, { "path": "Client/de/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "0DB763807B223493213DE3C3554984EF6F5CDCDA60F9E8D30764DF7B7595BD16" }, { "path": "Client/DirectWriteForwarder.dll", "size": 522024, "sha256": "483F79762B4D7CC558A5319E83D91A8BAE6B9F1036B6E3E7430D4DCF1A8D66D0" }, { "path": "Client/es/Microsoft.VisualBasic.Forms.resources.dll", "size": 25424, "sha256": "3FA6F7F70B9580B09FDA1C98BCE515F4F46E8FB588F60F7F4695576C2E4CD00F" }, { "path": "Client/es/PresentationCore.resources.dll", "size": 109864, "sha256": "577BE20B94B95B1B9026D40DBDE8F89F3E7EDA0814BFE60E2C75B8D9BD7914BC" }, { "path": "Client/es/PresentationFramework.resources.dll", "size": 203048, "sha256": "DB1EFB8482CE7B1EE1F4D694D38FD7139C76F56B564D6475B2086BE57B42F761" }, { "path": "Client/es/PresentationUI.resources.dll", "size": 45352, "sha256": "CAD03B2295817E445DADA67AC29EE1455ABCAFCE28DAC09ABF23C913C024F6D2" }, { "path": "Client/es/ReachFramework.resources.dll", "size": 39208, "sha256": "C6F7CA821BEA3FC052B63B142FA065B9018DD856F3B82C9C96CA3416B8B06A07" }, { "path": "Client/es/System.Windows.Controls.Ribbon.resources.dll", "size": 18256, "sha256": "3B93DC14EBB4F434E5E39F8ABF71665AE7450F002793DEFFFE01F04B4A2C6547" }, { "path": "Client/es/System.Windows.Forms.Design.resources.dll", "size": 149288, "sha256": "B5772664A16008BF044B665B8A15E9DFD8C2797DC733BC3F17C746CB58B31C95" }, { "path": "Client/es/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "E27FC922BC252704B252B9A75E450ADFEA0413E63B5CB831EB35528D102E1984" }, { "path": "Client/es/System.Windows.Forms.resources.dll", "size": 365904, "sha256": "21C4575C3D4AAE3E691C0BA3D6706BB33336A777E2D9E20C260ED318311861C3" }, { "path": "Client/es/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "5D571B7199A19E82A48F88DD967A758D6715A71E066D0B4B6878C53B9DA571B9" }, { "path": "Client/es/System.Xaml.resources.dll", "size": 65832, "sha256": "10F451215657A565952C02BD4DD1DEC2B7AF4BAF00B3FAAAFBF33C073D36CD12" }, { "path": "Client/es/UIAutomationClient.resources.dll", "size": 19752, "sha256": "B7A56BBD6C2A6A22DFDFD18B376D481820B0A7156795CFD3E7842C942929C285" }, { "path": "Client/es/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "AAF3DFA486526AD8C50667270F4476D3963669D59A3D4279B10A71293F41D8B3" }, { "path": "Client/es/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "11F3D85BEACD4CCDAF547EE155B014DF20A9107C4994667BF7176C29710EED5D" }, { "path": "Client/es/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "FCC45409D3957D5129DC1BFCF8C8ACF4BB01821B93B926528895DCE5FA3D0B61" }, { "path": "Client/es/WindowsBase.resources.dll", "size": 89424, "sha256": "104C63D7B9AB27140F36D818232660A361E9BE68A00F5F551283EDE8865DC18A" }, { "path": "Client/es/WindowsFormsIntegration.resources.dll", "size": 15696, "sha256": "52380885D0F9F9D1AF7C2791D0748E8B409E06D249A255B83F2ADBDDA8EAA2CC" }, { "path": "Client/fr/Microsoft.VisualBasic.Forms.resources.dll", "size": 25424, "sha256": "7EECC31AEEC113F994EB24DEAFF5FC6201D86EAA4F67D06DD884D221CBFB7CA4" }, { "path": "Client/fr/PresentationCore.resources.dll", "size": 112976, "sha256": "DA50B50EB15920332D3CB69806FBA8D29F977E0AF6D41AF8D1B85476D0A574C9" }, { "path": "Client/fr/PresentationFramework.resources.dll", "size": 206632, "sha256": "7D44BC5A0E8F3BD2C9826DBB8868600AD3F3CE4B03EA1EC072A70AE49B20B1D3" }, { "path": "Client/fr/PresentationUI.resources.dll", "size": 46376, "sha256": "15DF030067EEB764005E7949E1A4575C326BD3806155AEE4113BF4236A421AEB" }, { "path": "Client/fr/ReachFramework.resources.dll", "size": 39720, "sha256": "C55618443720A45FB494F34C4C5326E2F11EF37E7205C34228F397ED36418196" }, { "path": "Client/fr/System.Windows.Controls.Ribbon.resources.dll", "size": 18216, "sha256": "D51E8788A1D7EA3D956EFFF01AF5FC270136B56CB927ED7F3EA094910134E0BD" }, { "path": "Client/fr/System.Windows.Forms.Design.resources.dll", "size": 149800, "sha256": "F6142A500A1B48BCBE5505547A683A55C74120FD1A3C4C3E1B1BC6073F3CEC4F" }, { "path": "Client/fr/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "4133F7E628103316003DA54FFBC30161B9B0293F730792FA42B49BB9CCD9B3A5" }, { "path": "Client/fr/System.Windows.Forms.resources.dll", "size": 372560, "sha256": "75BE9E6FE540404670917F4AD46CBF4BF2E1A51B6B74DFD508E90F4C72A849CC" }, { "path": "Client/fr/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "22051444A9473EF908E7123100D38BB361439F13912C9C3C3CE63CDE6C6A6ABD" }, { "path": "Client/fr/System.Xaml.resources.dll", "size": 67368, "sha256": "EF48EC449549E267DBA8C7C1E599936AD3C9288008B10FDBB5208C45A17477AA" }, { "path": "Client/fr/UIAutomationClient.resources.dll", "size": 19752, "sha256": "EF16A6C03CE7FDD664C64A9A6445BF97AE5DFF20F276367C066496DB0D4E5568" }, { "path": "Client/fr/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "348136852C0C9AC89B383FE8FFCF8D407145CAB4D2090237D6DE46E2DE406A04" }, { "path": "Client/fr/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "F6873AD182A92A122E9043C648650B9109615BF4002D3DBC4CFB6C5CE88E85A2" }, { "path": "Client/fr/UIAutomationTypes.resources.dll", "size": 18256, "sha256": "62399B75CFA4846110313434F8EEF223C1E674DD849C6AB0D51A88550973E0ED" }, { "path": "Client/fr/WindowsBase.resources.dll", "size": 90448, "sha256": "8C4ABF96147A23B6CEC5DD55BFA5E32DCBC4B6621DCB95F4FCCD0800EF28EB3C" }, { "path": "Client/fr/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "F58084C1A096F54D4E1FBE06EBFE75680818127EBE8FC91B82A947C72D72B9B0" }, { "path": "Client/hostfxr.dll", "size": 366376, "sha256": "4F5A0500CD2A2439B0D5EDBF242950233AEC4539EC9A5E7BA9B8A9B0079F63AF" }, { "path": "Client/hostpolicy.dll", "size": 406824, "sha256": "24F18CCB306D5E614932478471AD276E2B041A723A45E571073DB383B37C5120" }, { "path": "Client/it/Microsoft.VisualBasic.Forms.resources.dll", "size": 25384, "sha256": "F48E278DC9A04B0204C2C439D08A4F4B5CAB29F08C527D53B592E112732BB249" }, { "path": "Client/it/PresentationCore.resources.dll", "size": 111440, "sha256": "5D174DADC2D8C8D6C9CCC0BAB4CFDC298BD9976E79FC91B8A77AC4CB33DC942C" }, { "path": "Client/it/PresentationFramework.resources.dll", "size": 205648, "sha256": "BE750F5132F26E61D7EA764F69A1A9D1003A4DC9348CE7696E22059390CB2515" }, { "path": "Client/it/PresentationUI.resources.dll", "size": 45352, "sha256": "785224A39E5F6EC314EC0EB2E16BD67D97E903FAFFE56A3CA53D891CC87E499B" }, { "path": "Client/it/ReachFramework.resources.dll", "size": 39208, "sha256": "5DAA410AC596C7A7BD1090F2173A7919391C5157EB7062B81224F907F28F277B" }, { "path": "Client/it/System.Windows.Controls.Ribbon.resources.dll", "size": 18216, "sha256": "EE718EC2CCF4F4D7068BCEBF5302FDDE8E844DCD1EBF67897A5184880E18E359" }, { "path": "Client/it/System.Windows.Forms.Design.resources.dll", "size": 150352, "sha256": "8045A3DDC2F096045ACD8A27AA2900AAF41C696001FAC990198892BF67BBEC6B" }, { "path": "Client/it/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "6910C33AB86D20A21DD6E2E5B8F48D8AB2A5BDC15EC2221E696C58CB6AB1BC45" }, { "path": "Client/it/System.Windows.Forms.resources.dll", "size": 368424, "sha256": "5CEE299F4D8EA67B9F09FC1049DAB0F4843A87B41592C1E396162DAEEB11A9F8" }, { "path": "Client/it/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "BADDC56234632EABDC9B9B5BCE7256E9BA4AAAC99A8688D798DDCB314B588753" }, { "path": "Client/it/System.Xaml.resources.dll", "size": 66344, "sha256": "83EFE4398DA3E69818A6B67E81C65F0CD88139EC78C87EF3F41D5216ACD44649" }, { "path": "Client/it/UIAutomationClient.resources.dll", "size": 19752, "sha256": "1DB79C2DD5DAF2739368E1AC2B40772EE20EC9ABE6042820F4006259CF5913B2" }, { "path": "Client/it/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "FAA8E755D2DD2BCE36DDC0CF6E236B85B54E4AD730CFDB370ADDE4EC1D30D306" }, { "path": "Client/it/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "D41447650B72BC9BCE973E7D2D93FFF407E627470027C128D3DCB89A4D35527B" }, { "path": "Client/it/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "25423FDE13194CFB1D34A523FBA4FF42D0C1910BC2D9EE1ED1BBB35E0F46F1A6" }, { "path": "Client/it/WindowsBase.resources.dll", "size": 90920, "sha256": "96FF7F1920B243F0B14F942DB65DCCBCF550285583806623EF42FAA90BC77CDD" }, { "path": "Client/it/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "44D468E993359E5E2EE048633DF0ECF2F463258BE45E5D751B2FDB528D9BA85F" }, { "path": "Client/ja/Microsoft.VisualBasic.Forms.resources.dll", "size": 25896, "sha256": "E0B8CFBD9E30C3A633A0DE7EE1844D4719A7A7FDE783CF3BEA5501B3AF0BDB19" }, { "path": "Client/ja/PresentationCore.resources.dll", "size": 122664, "sha256": "AB7EF15D6ADA3F28799402D8A091E2EABB3CFD07B1FA26859E54EA8ED765EBE4" }, { "path": "Client/ja/PresentationFramework.resources.dll", "size": 226088, "sha256": "80CD0B747CF827B8B92EB431089051E23B864982D81C4FD6B10EAF5F39B0B738" }, { "path": "Client/ja/PresentationUI.resources.dll", "size": 48976, "sha256": "BA53B70E0FD8FCD9DFDDBA1366B98CD4409CCC3B2BC0E31E4E286284736A347F" }, { "path": "Client/ja/ReachFramework.resources.dll", "size": 41808, "sha256": "5FC2134C5D90A496863B82468E6904416145FF8168FAD7B28A16CDBF0E6F3A18" }, { "path": "Client/ja/System.Windows.Controls.Ribbon.resources.dll", "size": 18768, "sha256": "41B5EF6BB28A1E3A63EB509C90E665C50051DEF60CF1A72A0D5BA2C0143B3891" }, { "path": "Client/ja/System.Windows.Forms.Design.resources.dll", "size": 155432, "sha256": "35DC4E460EC0DE502BB175B74AA6B23E1D07494719BE3A4C7D2945E5779C40D6" }, { "path": "Client/ja/System.Windows.Forms.Primitives.resources.dll", "size": 16168, "sha256": "24CE5BA34417866E63DD1A81AF3C1C8D7AEA6BAB7F2941AA938B63A55DC22D17" }, { "path": "Client/ja/System.Windows.Forms.resources.dll", "size": 408872, "sha256": "3827C4CD6AC0A631EAB7C85AEEAA412A61D0F095AFA951894E295A15C27A83A7" }, { "path": "Client/ja/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "284DC91515DD0DEC5226002A6608FCA1A12BA8322ECB85470221DE8819DE169E" }, { "path": "Client/ja/System.Xaml.resources.dll", "size": 74576, "sha256": "0C9FF2D5E73978EA9989579F66782F5991B2849D8742D542C4E5948909DA314E" }, { "path": "Client/ja/UIAutomationClient.resources.dll", "size": 20304, "sha256": "22920DBC94F4A3C986A59FF59126B04E544958250D56BDC2402E9237A9920BBA" }, { "path": "Client/ja/UIAutomationClientSideProviders.resources.dll", "size": 21288, "sha256": "6581A032F858996ACE09CBDD572B64E638656E08F1315EE8FDF1CE9EB7F5A568" }, { "path": "Client/ja/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "B9AE509D9453A035F02C1492481D8B80BC01E53EC787360A5AA565EE94A552D0" }, { "path": "Client/ja/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "C7DDDEF753F2B6718D9F96626F6A050D6878AC45D0DE77265EE3B67CE75CC420" }, { "path": "Client/ja/WindowsBase.resources.dll", "size": 99112, "sha256": "58656C2B423128D9983B760F07674A2E0770F2177C7AACB92A8A5C34F9EE8628" }, { "path": "Client/ja/WindowsFormsIntegration.resources.dll", "size": 16168, "sha256": "7FBA2EBF575FE075D187450F6A09CC8C793672460F37680F20AF7B6178878506" }, { "path": "Client/ko/Microsoft.VisualBasic.Forms.resources.dll", "size": 25424, "sha256": "71913772952FE030481A9813E0F297C07CDED03EA93F268ECDB2BF9A32BE20E0" }, { "path": "Client/ko/PresentationCore.resources.dll", "size": 114472, "sha256": "842E28A34FBC1261DCA6EC6C65C1759B57C50D2207FE8723D3DB8103DEF4D620" }, { "path": "Client/ko/PresentationFramework.resources.dll", "size": 211240, "sha256": "A83B671802C5B32A82DE487B300BC18FD98D7CC63D651465EC4720E641814AA3" }, { "path": "Client/ko/PresentationUI.resources.dll", "size": 45864, "sha256": "648DEEB5D17F8BFA9AEFB7B614DE23056AB274200827608237FCE0D27318F2D0" }, { "path": "Client/ko/ReachFramework.resources.dll", "size": 40272, "sha256": "2CFA3A7E90DE7F3B7ACE7D4A5C2BA4A91C996A7A456D5EC8C0C6FD1F1E1D3C60" }, { "path": "Client/ko/System.Windows.Controls.Ribbon.resources.dll", "size": 18256, "sha256": "FD5B0E1A396FC2F461393EC32719CC675995196DFD1A7739C8C26CA7F41B2864" }, { "path": "Client/ko/System.Windows.Forms.Design.resources.dll", "size": 150824, "sha256": "411DA762D4A49AC79774B1F1F8DABBD5A823A7F7EE1856FEF376D6BB1AEDFE90" }, { "path": "Client/ko/System.Windows.Forms.Primitives.resources.dll", "size": 15696, "sha256": "C20A2BAE07D65DAC43CEA651EFBFF86C649502351D456AEF4154AD9F8753B92C" }, { "path": "Client/ko/System.Windows.Forms.resources.dll", "size": 370472, "sha256": "02DE3771988736282ED53C10CF6F7B8D544EDFD4AD62E4A9A4FBAB8AFF4D7C79" }, { "path": "Client/ko/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "39FB851CEF9A15F3EC1F7A6D7FD6B8942942DDFEE9C75103F19B259AF5AA2ACA" }, { "path": "Client/ko/System.Xaml.resources.dll", "size": 69416, "sha256": "4E1AA261A1A2A10DEC2707045A1BE27FD30BA967A9F24A58CD5788E83EB927DF" }, { "path": "Client/ko/UIAutomationClient.resources.dll", "size": 19752, "sha256": "08EE214B85AB51E2A9145A4E0CAC311B99563716AF6E6A9E48D15067DD3B8B9F" }, { "path": "Client/ko/UIAutomationClientSideProviders.resources.dll", "size": 20816, "sha256": "40D53AE77AB1FD55340A885189A44035A378EBB8054740A11EEB0BC83C7008D3" }, { "path": "Client/ko/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "9A69000C9EB4B7DF483A7EA5672D3121EA2FE5731FC773EEA8A617AE2F93DCCE" }, { "path": "Client/ko/UIAutomationTypes.resources.dll", "size": 18256, "sha256": "CB61491FBD32222B235D32890A73ED2999C9A662FAF37AD934EAD891BCCC627E" }, { "path": "Client/ko/WindowsBase.resources.dll", "size": 91944, "sha256": "DC65920ADE01322E21FD4FA7EEC5B648AE3D2D545A3D28B13C32E06BFE137D12" }, { "path": "Client/ko/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "E650FAD848B9DD350449D8BBC443A57246B9B813C25A74A370089543DADC0094" }, { "path": "Client/Microsoft.CSharp.dll", "size": 1005392, "sha256": "30704C86C4C052AC630E5B5BF9E04AEB1EB0677FE3C5CF8A7DF36C8AB78D0B56" }, { "path": "Client/Microsoft.DiaSymReader.Native.amd64.dll", "size": 2377016, "sha256": "70E4B89978CE57EF87B28F4921F3140C383B04AA96E7F3BDB3C4EBB898FD8A72" }, { "path": "Client/Microsoft.VisualBasic.Core.dll", "size": 1247056, "sha256": "BDCDD4BD2B6E2C0EEC9A93187CD57CE9437C9A2324A6C6C20C55A2D1A27823BE" }, { "path": "Client/Microsoft.VisualBasic.dll", "size": 18768, "sha256": "B5AA66FB96AF7BCE8AB888DB70629FC85D562065AD7CAA6CED40313BEFA0E936" }, { "path": "Client/Microsoft.VisualBasic.Forms.dll", "size": 247592, "sha256": "90D3DAC5C82AFEF4369AD3036369561BCEA926B0E259883052B6465A3DECD32B" }, { "path": "Client/Microsoft.Win32.Primitives.dll", "size": 15184, "sha256": "596160C8491D2110A36CE4CB93C736905B2C83B9B50496369F32E32AD28D2A20" }, { "path": "Client/Microsoft.Win32.Registry.AccessControl.dll", "size": 34640, "sha256": "0C64BB6A840FFD8E84A8C0327903E6E36856F0F3B0393506AF2C57A8F3D1FFEF" }, { "path": "Client/Microsoft.Win32.Registry.dll", "size": 120656, "sha256": "A8CC5503BBBA36472D1DD3A8EEBC3A8B26F0B2882E770851AAB486690B23EAD9" }, { "path": "Client/Microsoft.Win32.SystemEvents.dll", "size": 96080, "sha256": "EE167EB734016FB3B29360EEEF2A022B0684411E53367DD85C7D67B0263C5208" }, { "path": "Client/mscordaccore_amd64_amd64_8.0.3126.42015.dll", "size": 1348960, "sha256": "A277F63F5722E1ED59A791FC5D30C53ED263ABEF4ADF12D0BF494897D796C3E0" }, { "path": "Client/mscordaccore.dll", "size": 1348960, "sha256": "A277F63F5722E1ED59A791FC5D30C53ED263ABEF4ADF12D0BF494897D796C3E0" }, { "path": "Client/mscordbi.dll", "size": 1233800, "sha256": "20140E71ED6DD59E6736E455B7BE2784D7AC0B3F43839148A134AEC3E7622DE0" }, { "path": "Client/mscorlib.dll", "size": 59216, "sha256": "EE4983E136AB524F29D2F43D01D1DEB978F4948EB5CA05B5D6E40BE37EC43023" }, { "path": "Client/mscorrc.dll", "size": 136488, "sha256": "C0FC4C625CE2C62887A86A5E1D93895836E7C998A3C95169505F8515266160FC" }, { "path": "Client/msquic.dll", "size": 536344, "sha256": "B7158D427B01C70483BB3D80C5211E387DD98E9471C8A70E4484D449DE9157E8" }, { "path": "Client/netstandard.dll", "size": 100648, "sha256": "53D854D33C3F0E1BBCCFF4B5C4B89420DAA66FA5F6603F6E5DF20D6BBB7E00F4" }, { "path": "Client/PenImc_cor3.dll", "size": 157992, "sha256": "BA07D326314BB8EE5BCF7AE5F325DC12AD7BC2F7907B34CB97E4E70D5DD0FED7" }, { "path": "Client/pl/Microsoft.VisualBasic.Forms.resources.dll", "size": 25384, "sha256": "5BDD623785D64A3B20C6BF8929E0B2C7665C483ADF5A74AE33699C8BF6180BD8" }, { "path": "Client/pl/PresentationCore.resources.dll", "size": 113488, "sha256": "8E55E5428B49009A5BA7F8400E636B1BFB0ACEFAC9C8815EB3F33D26008825D1" }, { "path": "Client/pl/PresentationFramework.resources.dll", "size": 209232, "sha256": "839860BCEAC19E76C335975D8A7ECC71AFAB3BFE9B231E1BBD3797DB4488432A" }, { "path": "Client/pl/PresentationUI.resources.dll", "size": 45864, "sha256": "FEC6D6E690077DC815B5C31FB3BEC3D2B4A2AC07A23295A62303E5261AC3D03E" }, { "path": "Client/pl/ReachFramework.resources.dll", "size": 39720, "sha256": "C981C6FA5886DC5285007EBF61A586A0D62504B9DECE67A033AAE16F4BFE1C96" }, { "path": "Client/pl/System.Windows.Controls.Ribbon.resources.dll", "size": 18256, "sha256": "046B578ECB8C28896DCC245232557F65986C82545789B44608B2E67FF2E97A85" }, { "path": "Client/pl/System.Windows.Forms.Design.resources.dll", "size": 148776, "sha256": "C9A86610475FCD38C45485831BA81A4D65857AE168FE4F8DB68C6134EFF51B3C" }, { "path": "Client/pl/System.Windows.Forms.Primitives.resources.dll", "size": 15696, "sha256": "F263716923AF5503938B8B5466EF151C901A5FF4ACE357C06E1D703D4ACC29B0" }, { "path": "Client/pl/System.Windows.Forms.resources.dll", "size": 365904, "sha256": "D3F26B72C099E28B3CC46CF380894BCB583ED9D8BB7961D406983A6B3D80BF6C" }, { "path": "Client/pl/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "A727711996C36E1EA4718ACFB0455AA19C9A10AA66B5D05D919F24F0D9B9D047" }, { "path": "Client/pl/System.Xaml.resources.dll", "size": 69456, "sha256": "891E4C19515EE1E74588FFCE28284F3ACE18B6A06B1E7942E16D320EFAC92BD4" }, { "path": "Client/pl/UIAutomationClient.resources.dll", "size": 19752, "sha256": "7B1CDCBD7F0C2ABEA8F9B50694C61E96226A76C2AD5B94B503007E2A476A1562" }, { "path": "Client/pl/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "3457CE292BF194552B36BAB00DC891614B65469CD272222108DB02FFCC23B31B" }, { "path": "Client/pl/UIAutomationProvider.resources.dll", "size": 15184, "sha256": "6563FDF6C905E2F0991F4A56844713968526F172874B4EDAE7A2F28085344CBA" }, { "path": "Client/pl/UIAutomationTypes.resources.dll", "size": 18256, "sha256": "F67BF4B12613E9CDE1E760836FA833C9D61A1C16140DD2C03A19F1CEF3A39D6F" }, { "path": "Client/pl/WindowsBase.resources.dll", "size": 90408, "sha256": "E5AFDAEC8F3412B22877F29801D8A2273FB460F0538CDAE00AB406CFAEE36BD4" }, { "path": "Client/pl/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "AF8A55BF744AB447A4908AA0809B50173887F19055811D93E56202329E261F72" }, { "path": "Client/PresentationCore.dll", "size": 8558376, "sha256": "4AF3C9D7B0B5DB738DD3B3A2D7A8A8A72EF142BD952E2862DDF7F5261FD5BE9A" }, { "path": "Client/PresentationFramework-SystemCore.dll", "size": 38696, "sha256": "1BF5AF5A110243B543B8931440B2E7866C8DF0DCFCDA377EDF3217063114A773" }, { "path": "Client/PresentationFramework-SystemData.dll", "size": 34600, "sha256": "ED53BC869F57D246208C6B034C08BFFABDA555CEF417B5EDB45EB737D353351E" }, { "path": "Client/PresentationFramework-SystemDrawing.dll", "size": 34640, "sha256": "99A84AD7164009FE20CACBB3CEEEDE05A590103A872F859DFC9A9C2286FFBE1F" }, { "path": "Client/PresentationFramework-SystemXml.dll", "size": 34600, "sha256": "175E80DB91FFA6F316EC8234CBC9FD7E03ACCF87CAA6E2099F3274DAF44A2B6A" }, { "path": "Client/PresentationFramework-SystemXmlLinq.dll", "size": 30544, "sha256": "A908FBB97EF042CC9F94A286C6823420DEE5CA881B97AA67162CBF2D96C3B83A" }, { "path": "Client/PresentationFramework.Aero.dll", "size": 444240, "sha256": "7EE4E07F352B84D27415CC794550EED5334D96BDBE87FA2558E45729F2D6F5A5" }, { "path": "Client/PresentationFramework.Aero2.dll", "size": 448336, "sha256": "2C9E9A5B2E641FC30ACFF2645C92BB4DE60B6CCB161ADA2FF0DDB057CCE6130E" }, { "path": "Client/PresentationFramework.AeroLite.dll", "size": 239400, "sha256": "00A3E4C9B7833A42332840381974D7A388D5A60A27E064EDDC67D5A703260E55" }, { "path": "Client/PresentationFramework.Classic.dll", "size": 272168, "sha256": "8165D5C99FDD85AC36F6CA34C56E181B2DB244A3AE7A60620001F40BDC2961DB" }, { "path": "Client/PresentationFramework.dll", "size": 16127824, "sha256": "F7881946BF2615343BB8A7EA1E2E5D8751BB0E2829DD41AF5F687133CC111500" }, { "path": "Client/PresentationFramework.Luna.dll", "size": 669480, "sha256": "DFE8F6F89C614D1C312A67D8038E2A396E1A79C1EAFF4D3FCF617A94663CB02E" }, { "path": "Client/PresentationFramework.Royale.dll", "size": 333648, "sha256": "811784358C0CD936494A07308C36E0B85FFC274FD195A0C57786D2E3454F918D" }, { "path": "Client/PresentationNative_cor3.dll", "size": 1235280, "sha256": "3FB36EDAA2C4FE4AC8BE075A3A4E903DA159BBE38FB77E51C32B58E2ADECB2D6" }, { "path": "Client/PresentationUI.dll", "size": 1287976, "sha256": "A58019BA29AED4057BDB4E9A150D8E7A3F0B5AF2429E8FBE6220DD3864C771FC" }, { "path": "Client/pt-BR/Microsoft.VisualBasic.Forms.resources.dll", "size": 25384, "sha256": "A37ACB0B644296C373D26501DA37101BF2AE62A0BD629DE8F046180A08F28E99" }, { "path": "Client/pt-BR/PresentationCore.resources.dll", "size": 109864, "sha256": "228127514DBE3DF4F12BAF24B70BAE93E7EEEBB4CF42563C6FCB0DAE9AD5D96B" }, { "path": "Client/pt-BR/PresentationFramework.resources.dll", "size": 202536, "sha256": "4B7B38A0B6D07782CB014300EA6E3CB6AE05155D74B7155B7AE9A13DFF631B94" }, { "path": "Client/pt-BR/PresentationUI.resources.dll", "size": 45392, "sha256": "7B1F63BA5D1E05697C8DEC31FACA5DBBF03D6151E509203758D361A81F6B03CE" }, { "path": "Client/pt-BR/ReachFramework.resources.dll", "size": 38696, "sha256": "0E723216C8FA47E072A4DC1EE0997B0BD1B02A6B8C2C8C7ACF07635BEE75EB47" }, { "path": "Client/pt-BR/System.Windows.Controls.Ribbon.resources.dll", "size": 18256, "sha256": "B948F0B7DA05178AED47342CFD5ED99437B3D688638F30BEA206EC40E1B0A929" }, { "path": "Client/pt-BR/System.Windows.Forms.Design.resources.dll", "size": 148776, "sha256": "B5202A8A362D27B8B1E839BF01FDB07F6AB2553A9E8802B29478581DB158E2A7" }, { "path": "Client/pt-BR/System.Windows.Forms.Primitives.resources.dll", "size": 15696, "sha256": "E66F12760CD43E6D7FAC062CF157A213D38E347D7198C34B9F401A54F70CA615" }, { "path": "Client/pt-BR/System.Windows.Forms.resources.dll", "size": 358736, "sha256": "42B25B83708C926CE8077BE659997EF95BEECFD89FB036BDC55C89C86038409E" }, { "path": "Client/pt-BR/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "10227361B6AB9E62B52C5C7611ACF4C1BF4BA766A610E8195DF5F1F3CBB2AEEB" }, { "path": "Client/pt-BR/System.Xaml.resources.dll", "size": 65320, "sha256": "6B71C24A400BF56B4C012E40A3B1910ACD3FECFC6459448DB4FF0C61F8689215" }, { "path": "Client/pt-BR/UIAutomationClient.resources.dll", "size": 19752, "sha256": "ECD45846A515175B8FBEA276CB55133D7EF953303DD5A91594210E539D5FD569" }, { "path": "Client/pt-BR/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "C798115F82D276A33AEBF97B3539DE1E2362BF35B825D25614FE1DCA1D753418" }, { "path": "Client/pt-BR/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "C4D278E7B8E01C4C4548FF737F2903DE95ADB3A1CEE798573C2752BC7B287838" }, { "path": "Client/pt-BR/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "7405089CBBF3AF91269BFA491D4097A6D675AEC00E2A3D43929541F132043226" }, { "path": "Client/pt-BR/WindowsBase.resources.dll", "size": 88912, "sha256": "9F9C61510036AA030F76FD6A83B5B3C5C21CBF3375E0C9FA01A69585F529F393" }, { "path": "Client/pt-BR/WindowsFormsIntegration.resources.dll", "size": 15696, "sha256": "FC47B16F7357E6815FBCD584004CD64CB42DA76E5B92F76E5750614B82BB6994" }, { "path": "Client/ReachFramework.dll", "size": 1603368, "sha256": "72A3C1FAB5945AFE969E16FC096A993BEAD826B661DB295E1811A240069830CE" }, { "path": "Client/ru/Microsoft.VisualBasic.Forms.resources.dll", "size": 26408, "sha256": "2029614EB3DB1041458D37E3BA04328D7CB6AE7BC7EAD11D68A980A61EBCA569" }, { "path": "Client/ru/PresentationCore.resources.dll", "size": 138536, "sha256": "37F5C3D79BEDFA57F6E7C0FDE4AB5EE0BB9EDA16C2A83002A1D1EBB7530A6D83" }, { "path": "Client/ru/PresentationFramework.resources.dll", "size": 257320, "sha256": "B4784DF2B1CCE7F3610C2966BFA6D053B403106EEF3D7F713498A9B506E19AAE" }, { "path": "Client/ru/PresentationUI.resources.dll", "size": 54056, "sha256": "24B8977015922A1467E91CC013406BEBE0BB7394E63715B3EF7DFB73F996DC7B" }, { "path": "Client/ru/ReachFramework.resources.dll", "size": 43856, "sha256": "F45A9BCB0ECD78C4EB2FED21610209982A2CC1684D93129B272376E0769825FB" }, { "path": "Client/ru/System.Windows.Controls.Ribbon.resources.dll", "size": 19280, "sha256": "B95FB6644668881ABC259D2D65D7A3D20F5E9BB69C855D0E26EFEE01F482846E" }, { "path": "Client/ru/System.Windows.Forms.Design.resources.dll", "size": 162600, "sha256": "689012EAEFC9B7BC7661C61DACB181D27D69F6E8AFFCA62915E6A30E75BC4FA0" }, { "path": "Client/ru/System.Windows.Forms.Primitives.resources.dll", "size": 16168, "sha256": "6DA7FAD09F5636E4BC5426FCF3C78AC2E192080D34B6879D021F5BB450F4DE72" }, { "path": "Client/ru/System.Windows.Forms.resources.dll", "size": 476496, "sha256": "7721D18B6D2C23EF08DDD57F6F8FA9B4EEAD2C3BD38E1717C8072AFEA8C0FE30" }, { "path": "Client/ru/System.Windows.Input.Manipulations.resources.dll", "size": 16680, "sha256": "378B5DA649BDE973D2EE56AF4CBB168D7047E1A0CF281B4E53AFFE8E4D26BC42" }, { "path": "Client/ru/System.Xaml.resources.dll", "size": 84776, "sha256": "F628E09401F94B6A11354498C95328EEA25F3161CDDD6A41E73F4B9AFDF54E41" }, { "path": "Client/ru/UIAutomationClient.resources.dll", "size": 21288, "sha256": "BD9748A263663B50D72B5EB61A571765136964E2F204DA4A3B95CD81D8767C68" }, { "path": "Client/ru/UIAutomationClientSideProviders.resources.dll", "size": 21800, "sha256": "B9A1F3C09CC73275844D8FAC0DFA35744808714F9A6DA09C32F01A5694B88616" }, { "path": "Client/ru/UIAutomationProvider.resources.dll", "size": 15184, "sha256": "E57043140CC5CE96C3AD4B57378503EFEBE801A48A2F25DE6DB8E13D40AD20A4" }, { "path": "Client/ru/UIAutomationTypes.resources.dll", "size": 18728, "sha256": "F4822DB87075F3EA522D461AE0D411E08955543F12563A358E5B582320705003" }, { "path": "Client/ru/WindowsBase.resources.dll", "size": 111400, "sha256": "F8D796B4980F3401D804F050DADFF6FAF0C3E3EF875379F1E3E19F5BD85646C0" }, { "path": "Client/ru/WindowsFormsIntegration.resources.dll", "size": 16208, "sha256": "9DF191FD6931D3E9EB5C0D3FB0E5F05788522325FB19E8682FC0344FAFB00B8D" }, { "path": "Client/System.AppContext.dll", "size": 15144, "sha256": "C3D2CB89EC473B55FCBF6F0ED601139E46159E0D2834D9D92ED74ED89E2A2879" }, { "path": "Client/System.Buffers.dll", "size": 15184, "sha256": "8CADBC77368593547381F18EAFA12DD58216D7B35A60B487B66CA51A2EE3C406" }, { "path": "Client/System.CodeDom.dll", "size": 489256, "sha256": "30280ED140FEE3D15028B9827AC0C8C71E1113353339736AB32448A4615B45CE" }, { "path": "Client/System.Collections.Concurrent.dll", "size": 276264, "sha256": "ED653CCB5DC40D0BB4EA3429165A0825705F2935A65C584CA67CBA45671884C1" }, { "path": "Client/System.Collections.dll", "size": 259880, "sha256": "C6BB79B8FB32504B6327B516E6FF32017A073669AB749D3C86ED49CD5F2F0C45" }, { "path": "Client/System.Collections.Immutable.dll", "size": 837456, "sha256": "6E41C8BA23968F6A9B910E3C33F66761A588F24084C4E3599214805716D6D259" }, { "path": "Client/System.Collections.NonGeneric.dll", "size": 104232, "sha256": "B40CDF234652B31B443164350F73E25F98C5EDECFD30698789D6DBF9CA456E44" }, { "path": "Client/System.Collections.Specialized.dll", "size": 104272, "sha256": "24022887037BFAAD8C89C26642712C920DCC0ABABD3396D80D8B2BE16637673B" }, { "path": "Client/System.ComponentModel.Annotations.dll", "size": 198480, "sha256": "97060D253527BDDE94022AC6D22AE4C0474CF67F40BFE8342E9420B7888B3AFF" }, { "path": "Client/System.ComponentModel.DataAnnotations.dll", "size": 16720, "sha256": "E5B872CF98BF9F3F565877B21FDEE61B569ECC586E6DC48C9199AE5E0CD100B3" }, { "path": "Client/System.ComponentModel.dll", "size": 30504, "sha256": "4D9E2E21ED5C16C100221433D1AAB01409EC199C9F617E48B9FE1617989BBAA6" }, { "path": "Client/System.ComponentModel.EventBasedAsync.dll", "size": 46928, "sha256": "CE813A7CDE09EBA1BDD7D6661FA39C09057BEDDC78F554C5476C43766D763ED0" }, { "path": "Client/System.ComponentModel.Primitives.dll", "size": 79696, "sha256": "D981AF410D4ED7939FDEE47A1EE58E3DB472C05F17C2B0D48E4B1EBFB2FEA0E5" }, { "path": "Client/System.ComponentModel.TypeConverter.dll", "size": 747304, "sha256": "DB04940603C749719E133BB567D142D46AF3A6F2F37597DB398955A3896B84C2" }, { "path": "Client/System.Configuration.ConfigurationManager.dll", "size": 1074984, "sha256": "FB6E77044250692D7020CE2966D88209AEECABB265AF4A7CC8D44DD23357873F" }, { "path": "Client/System.Configuration.dll", "size": 19240, "sha256": "39ECA0E98D4B206CBFF6243A04494F79EC8B19903D3427B44D64D88097D77F65" }, { "path": "Client/System.Console.dll", "size": 173864, "sha256": "D38105C5C790FC76AC6E4D99FE9B6C2672E4E250E191BD43593E55AE7D3B2AFE" }, { "path": "Client/System.Core.dll", "size": 23336, "sha256": "F7414ECFD958FDFB2B4BCDD2F7778A7B26968EB453CA2C03FDF53BA4BB21674F" }, { "path": "Client/System.Data.Common.dll", "size": 2860840, "sha256": "089A74A39DCEB113BEA92522B227E24C881A618C5EB1E2ABB166A6E8C12BE0CB" }, { "path": "Client/System.Data.DataSetExtensions.dll", "size": 15696, "sha256": "D425011A475BB44E6B9ACD4C48E8F3B428312A05CA3A649ABBCD871F7102DECF" }, { "path": "Client/System.Data.dll", "size": 24912, "sha256": "1EFE79C9F164CE5DA6542DE89DC7F10D1FEB1F38216B68F9A6B6A8CA5E3D2AC3" }, { "path": "Client/System.Design.dll", "size": 21800, "sha256": "0CDAA70A38F3FB5D33AABD5831CD53A576757881E07604BB278BAD723E86AD3E" }, { "path": "Client/System.Diagnostics.Contracts.dll", "size": 16168, "sha256": "A670F39C589BD9D4A994E75ABC2385839649ED91A831A4CA7D9FE4F87834B492" }, { "path": "Client/System.Diagnostics.Debug.dll", "size": 15656, "sha256": "E122BD1046864476252765E356C54D2454E72A6E11BF546907DE1468CA0B0CB5" }, { "path": "Client/System.Diagnostics.DiagnosticSource.dll", "size": 415568, "sha256": "25C3BF229337A485CEACB82C00F47F2E98DE68A279EB5A450550526F9CBF0448" }, { "path": "Client/System.Diagnostics.EventLog.dll", "size": 386856, "sha256": "90FB3ED4FBD77C24DA5F30989E94C3F043C931E63266E79A5466CCFE12E1EC26" }, { "path": "Client/System.Diagnostics.EventLog.Messages.dll", "size": 800552, "sha256": "127EF9F1015F493C5EBC3CF3EE4107134873A257F228601507EB85C3A6AE1C5A" }, { "path": "Client/System.Diagnostics.FileVersionInfo.dll", "size": 46888, "sha256": "24B0E8ED2EA93B84FF2A26CB1F69F7D6E331F6162EAE4FAE4446A5556B8A8EEE" }, { "path": "Client/System.Diagnostics.PerformanceCounter.dll", "size": 288552, "sha256": "8758D0209396B90C9054A93C87BAB6AA9EC72D7F1924750D2B2AFBDF5F2A64E5" }, { "path": "Client/System.Diagnostics.Process.dll", "size": 337744, "sha256": "7083C7046AC4CBED1068B6AE7A777D421EEAF180E5697283FC1C6AF731C32A3D" }, { "path": "Client/System.Diagnostics.StackTrace.dll", "size": 46888, "sha256": "7B26B1C48D500576994B3153B88FEFD1E516680AE4B52CDE608B8E869544B37D" }, { "path": "Client/System.Diagnostics.TextWriterTraceListener.dll", "size": 67368, "sha256": "0279BBA2AB8C1E023D043D802B0B3BBBF8483DD082E305391C6229382452B1C2" }, { "path": "Client/System.Diagnostics.Tools.dll", "size": 15184, "sha256": "CA4CC511A2204AF2A5652C7CF870A6A5EFF109F98ACC72A8E2A0498F72665507" }, { "path": "Client/System.Diagnostics.TraceSource.dll", "size": 145232, "sha256": "2B5489BC5A6D65E109DBED6557DC2AF3BA9DFB549EFD18A64F37FD64255CB756" }, { "path": "Client/System.Diagnostics.Tracing.dll", "size": 16168, "sha256": "6857ED7CA2C17D38F74639BACC59942599935593F9A0B33B246161C57DB27EB3" }, { "path": "Client/System.DirectoryServices.dll", "size": 1046352, "sha256": "CF04BBF8B399DB790656FF9766B3ABFD893502DF42E6F521B14F518990893AD3" }, { "path": "Client/System.dll", "size": 49960, "sha256": "173DD55A6D19794FB6EB8C4E4E73510EBF3A7928AFFE43C21E721861A4250E51" }, { "path": "Client/System.Drawing.Common.dll", "size": 1529640, "sha256": "DD17BFF899C655E78CED0BFCFBD4C48D3545DFEB90DC9FB6FE07D315DD0BC2CA" }, { "path": "Client/System.Drawing.Design.dll", "size": 15144, "sha256": "B1D2E30E0D69BAB4D56C70FE92BB885A11FF8FDB96738045F190E4F4A18E6163" }, { "path": "Client/System.Drawing.dll", "size": 21288, "sha256": "6848A95E26992F5B9231F92D9AE68645BBC649FDF7E8253FD21DBBC7D9789DE2" }, { "path": "Client/System.Drawing.Primitives.dll", "size": 132944, "sha256": "02BD1F5644DD73789B82C3A52C8F86EF726BAA1D4CCE2A0C64D9DC1C29B9CB02" }, { "path": "Client/System.Dynamic.Runtime.dll", "size": 16208, "sha256": "F6A93AD11464C19F720D34B92043DCC289885BF959B32549EE3CA24537E8B65A" }, { "path": "Client/System.Formats.Asn1.dll", "size": 243496, "sha256": "61F505F140E2C6417640A5AA47A86D148D4F6DC5317A66A7BFA2266A3AC975BF" }, { "path": "Client/System.Formats.Tar.dll", "size": 276304, "sha256": "EE3132A84CF9FD170F3AE0899A996ADC120A899C51DBC5534B22E8870B5AA137" }, { "path": "Client/System.Globalization.Calendars.dll", "size": 15696, "sha256": "E0974066E338D22097F5C77E47D086BD9C5826C256034A31F21B34C4392FBB7B" }, { "path": "Client/System.Globalization.dll", "size": 15656, "sha256": "88A4C4517972878AEBD264AC5150A3822D14AB3F5B9577C8372E1724B0CA8D88" }, { "path": "Client/System.Globalization.Extensions.dll", "size": 15144, "sha256": "9D57E781AFD06F3C6D0A54842467B29079BA2932827A76D9047A327490F1F836" }, { "path": "Client/System.IO.Compression.Brotli.dll", "size": 83752, "sha256": "46D228E5EA0E3D25B15E95D6A97A3B80E86DDE2660589462F30853EB5A0C40B5" }, { "path": "Client/System.IO.Compression.dll", "size": 263976, "sha256": "1F7E0CE87B7859C81D793750EA8FC58DB6D1FA1B81D3CEA1E73C614F66439C3C" }, { "path": "Client/System.IO.Compression.FileSystem.dll", "size": 15144, "sha256": "75972527F5C874893F0515FBE6F8D1D484354AC421CCF31AF346738AA74CBC07" }, { "path": "Client/System.IO.Compression.Native.dll", "size": 828240, "sha256": "4F892A1F3BDF970E662435BB044B5C5E4D8F7241BCE981237F57165AE12CB171" }, { "path": "Client/System.IO.Compression.ZipFile.dll", "size": 55080, "sha256": "A8624A7C7359C1EB6767C50513A33EB9F09125089044EF0CAF9D4D225B33A230" }, { "path": "Client/System.IO.dll", "size": 15656, "sha256": "1EE3349F15C3A20A7394341D8D4EDE2AC3D7DDBE4462F43DAE828F407F84FF1D" }, { "path": "Client/System.IO.FileSystem.AccessControl.dll", "size": 104232, "sha256": "6C384EE8C0613A469F9894209F39F154D2E6E8796F9B9C02E3686A42E15D94A6" }, { "path": "Client/System.IO.FileSystem.dll", "size": 15656, "sha256": "6005E3AC5CBEE19D172CC29E48CA84DB8E62DFF34CFF95E56C3600A0A95CB170" }, { "path": "Client/System.IO.FileSystem.DriveInfo.dll", "size": 55080, "sha256": "3EEA221AAA9E6066BFFB63218EE292FE499BBB5DB434A57225AAC1B8531C0B90" }, { "path": "Client/System.IO.FileSystem.Primitives.dll", "size": 15184, "sha256": "FB2F15CF3356987E0120D265B7B4FBCCC11DCCFBAE08B334A17B4E830EDDC54E" }, { "path": "Client/System.IO.FileSystem.Watcher.dll", "size": 87888, "sha256": "21C97F58651EA238A7018ECFA4BB4B3B6B4E682F97163AE14F8D4D145547F3F0" }, { "path": "Client/System.IO.IsolatedStorage.dll", "size": 91984, "sha256": "AF7C75423C9EFDF88850A7197C57E19D588A326678BBE07AA7F0B5DDB3049F59" }, { "path": "Client/System.IO.MemoryMappedFiles.dll", "size": 83752, "sha256": "E3136D19090F173D2AB75C392486A1427060BD149D966CFD58F3DF3308546DFD" }, { "path": "Client/System.IO.Packaging.dll", "size": 292688, "sha256": "69ADFBB47AA85CD2DEAFA1A26CB7C630AB7D6C9639DD8C9F53B508C24CB7B305" }, { "path": "Client/System.IO.Pipes.AccessControl.dll", "size": 16168, "sha256": "FB206A579C16F5750CE10026913A7F16AD686FB37AF1FC9BC997F611362B2F2E" }, { "path": "Client/System.IO.Pipes.dll", "size": 165672, "sha256": "35030C28374B6FFA6393C2AB8AE80CF712A2F88E92A16DBBDBF6AE03F0E0D452" }, { "path": "Client/System.IO.UnmanagedMemoryStream.dll", "size": 15144, "sha256": "9442D9391FF037CF388A9E15C171845E5436B093E3C928C60350957555393FD0" }, { "path": "Client/System.Linq.dll", "size": 542504, "sha256": "2B375E90FC687967BD95A0F47DBCBA44D396923F3C98B7FE5754E34C8E4BEFAA" }, { "path": "Client/System.Linq.Expressions.dll", "size": 3675984, "sha256": "0F99977BEDDC9272D56A2E16B2581CDE37F2AFD43E77C8209827197C098DEDEB" }, { "path": "Client/System.Linq.Parallel.dll", "size": 804648, "sha256": "4BA87321EA950874380628879C3C25332281F7F9A920A090DE930570AE8AF0EA" }, { "path": "Client/System.Linq.Queryable.dll", "size": 173864, "sha256": "5E14D4AB3BB2711B0CC4B197F973E9C74955A1E4C77041D5CAD65E759C304232" }, { "path": "Client/System.Memory.dll", "size": 157480, "sha256": "84242CCE5EACC6963A77163986066BD0A1C2EB698B5F26DBDD5E6706E002FBC7" }, { "path": "Client/System.Net.dll", "size": 17232, "sha256": "C2DDCDFF66BBB2595E5BCACA342D600A81C9A2E618AC9B9B1C6977FC4E1D17FC" }, { "path": "Client/System.Net.Http.dll", "size": 1734440, "sha256": "5102639C2037D77949340D94761C9A4C5053B940B8AE4BA2FBBE3507B8A5EC43" }, { "path": "Client/System.Net.Http.Json.dll", "size": 128808, "sha256": "7C4B39865655DD3B695A305527B8D11092C5DCF1B786D747CD45E6C00CCE5249" }, { "path": "Client/System.Net.HttpListener.dll", "size": 550696, "sha256": "AD612AE83E313EB7FC2AFA59B829533C8E8F36FB76D1D398262A610E85AF1CCC" }, { "path": "Client/System.Net.Mail.dll", "size": 431952, "sha256": "8830477BB6B18B181A2495C77038AB8A7C941897C9E46FEB06F61B2013ED1C8E" }, { "path": "Client/System.Net.NameResolution.dll", "size": 112424, "sha256": "E8CC6C2F0D59FB018FDC4A66057E3A56A3AA5ED82FEDE17B2398CDA88DA407CD" }, { "path": "Client/System.Net.NetworkInformation.dll", "size": 157480, "sha256": "DB21F0C5659D925741F7A08B0B50FC297248B0155F375F0FD7F970DD2E4CD3F0" }, { "path": "Client/System.Net.Ping.dll", "size": 96040, "sha256": "3A9AAB851FFF6116DEE3524177859E051512FADF7E209372E2D2342B51845474" }, { "path": "Client/System.Net.Primitives.dll", "size": 231248, "sha256": "0F929E8581F09FE85275DF7B38549BC51415CD110AADFD89EADE53943174511A" }, { "path": "Client/System.Net.Quic.dll", "size": 284456, "sha256": "58F5E4C6F2BBD5320C9797FBEAD001A99E4D334FA936D5469DF82262AC8069DA" }, { "path": "Client/System.Net.Requests.dll", "size": 345896, "sha256": "60B7C1595CECC53767C3EFCDAE74DDD37350AC51F377CAC8D7E95428B1F231AF" }, { "path": "Client/System.Net.Security.dll", "size": 669520, "sha256": "C957641BE9192E7812F209E2120E56A71DA0D99B1A8443CA5F7947F38EA4376D" }, { "path": "Client/System.Net.ServicePoint.dll", "size": 46888, "sha256": "8969D0EA32B01B7198030AFE6258D85A3021655B4F7E2291CB5521BBA1F7E29F" }, { "path": "Client/System.Net.Sockets.dll", "size": 546600, "sha256": "49E95C5A59172D80941992016EB35C965D8FB4BC05B745F85E793B6C010BDC6B" }, { "path": "Client/System.Net.WebClient.dll", "size": 169768, "sha256": "2C8AD06A15AEE44E700CBFF2BDF1DA0000FCAA4E8BA5524E9DB1B07C3ADD099E" }, { "path": "Client/System.Net.WebHeaderCollection.dll", "size": 67368, "sha256": "8DB64DD40A80422673F81EC67EE9DF921795B0579E5BA6CEF09BFFCE7FEF1294" }, { "path": "Client/System.Net.WebProxy.dll", "size": 42792, "sha256": "CFD65E84A782DB8180C9BB3BF6EB739F250901E1006D941D66F08D6B6EDB0B0E" }, { "path": "Client/System.Net.WebSockets.Client.dll", "size": 100136, "sha256": "41836162542928AD88AC7A0176CBDC753F63DA986D668688F7FB049B2EF0AEE9" }, { "path": "Client/System.Net.WebSockets.dll", "size": 190288, "sha256": "1250D5F182A8C3655A81B1E11955D904FD147D7F770191DE4004619247178629" }, { "path": "Client/System.Numerics.dll", "size": 15184, "sha256": "ADB2DDA9BBFC24D694B77E1700F2DF0706FF077DE8F40DD09ABABC92459F2E2B" }, { "path": "Client/System.Numerics.Vectors.dll", "size": 15656, "sha256": "6E45388834E11D4A8E460F97DA371D6889CDF98D7B65B300079C2F2B69EA3FAF" }, { "path": "Client/System.ObjectModel.dll", "size": 79656, "sha256": "35187A8D7F9DC8896894D1A0A496FBABCD567F2AC0F047632F7178C308FF72F5" }, { "path": "Client/System.Printing.dll", "size": 980816, "sha256": "E05877ED67B6CBC59D43DDDBC20DDC15414705FAA6603D9CC7C33EAB9660ACFC" }, { "path": "Client/System.Private.CoreLib.dll", "size": 13174608, "sha256": "99B168B84597A4F31FDA8281EFCE7D42A14E2DF0F4694194735E049DBC0F6418" }, { "path": "Client/System.Private.DataContractSerialization.dll", "size": 2082600, "sha256": "F3D2ACD4D5ADEABB40991CD1C757D05640B64CDD89F59874CFFE7BBD6ED38B97" }, { "path": "Client/System.Private.Uri.dll", "size": 259920, "sha256": "F2A695DCD4073EABA43B4EE26F006C0174BFF42673E17B38914450CA7D2547F5" }, { "path": "Client/System.Private.Xml.dll", "size": 7997264, "sha256": "F7285C6A22E221784F1D81F884283E9DCD02AA7BFD17C428943D29E00170D749" }, { "path": "Client/System.Private.Xml.Linq.dll", "size": 403240, "sha256": "5DE081135173DD027BDC3F6285BEAA31D184CFF8D217D681D405E038D1819721" }, { "path": "Client/System.Reflection.DispatchProxy.dll", "size": 75560, "sha256": "2F926A9F911D11B98C71E67B7E91F883C58B3B095794A8AC69A5CDBFD37C60C4" }, { "path": "Client/System.Reflection.dll", "size": 16168, "sha256": "558837B6BCAF55FDBB3E7D8F565F0C04D9B415823D0ABE382AC31643DB3639DE" }, { "path": "Client/System.Reflection.Emit.dll", "size": 128808, "sha256": "51742F48054D452DE444DA58D4AC69B879A23BBC8841B4B08FC337745D50CB07" }, { "path": "Client/System.Reflection.Emit.ILGeneration.dll", "size": 15656, "sha256": "ED892838C6ED6649AB57A436128845EC195329CDF568C99D9CB8E6F4B92C7A01" }, { "path": "Client/System.Reflection.Emit.Lightweight.dll", "size": 15656, "sha256": "39CF409E3B41B813C9E715EC4F38BC02748499D62E89F71FD8F4DAD6EBBA80BB" }, { "path": "Client/System.Reflection.Extensions.dll", "size": 15144, "sha256": "3ADAAF6F0DCD0208AB0282A774801486444AF53118015AC12E0C6F8623D3F3CE" }, { "path": "Client/System.Reflection.Metadata.dll", "size": 1115944, "sha256": "1795022B24DDF1E4DB47F63035B685F2A9F3E4468FB277158BB909D3B6EC00A0" }, { "path": "Client/System.Reflection.Primitives.dll", "size": 15656, "sha256": "B15B177125F391D1CAEE193167CAFFBEC4AC2586447F822AC655ACE9A6BDFF41" }, { "path": "Client/System.Reflection.TypeExtensions.dll", "size": 42792, "sha256": "191C401D245FBBE8D6E0105A53DB610122871168E21AC849BE6FBC86BB786048" }, { "path": "Client/System.Resources.Extensions.dll", "size": 137040, "sha256": "687BA24E8507233C542B9CE97B27495AA5D360889EB2BAE9C4FC25F5942BA0D4" }, { "path": "Client/System.Resources.Reader.dll", "size": 15184, "sha256": "34B31E5093FF2564FCCDE4B43C31330BC4CBC6CF24C38CB929D34F1FFB46D0FB" }, { "path": "Client/System.Resources.ResourceManager.dll", "size": 15656, "sha256": "D0DB07A7E954EDBEF7D586907574068EA2764E28ACB7F5A64FD6006EE8889D93" }, { "path": "Client/System.Resources.Writer.dll", "size": 50984, "sha256": "A09C234E643B0391367F975241592002270EB9BD5516F0D75B31F82BE6426DD6" }, { "path": "Client/System.Runtime.CompilerServices.Unsafe.dll", "size": 15144, "sha256": "69EDF8CB4BFE291FF998F2AB0CEA2F3B7F32664C53E9B9171A35F0664FC047CF" }, { "path": "Client/System.Runtime.CompilerServices.VisualC.dll", "size": 30544, "sha256": "B0216C72F28E06BF4EE3C7561B5C483224847E5F40DF6D939D2AFBE731E2CFD2" }, { "path": "Client/System.Runtime.dll", "size": 43304, "sha256": "E8FB5B78DC75B0650520042936FCA2165A060CB4AFA4B8CCE90524C9C9FC3563" }, { "path": "Client/System.Runtime.Extensions.dll", "size": 17704, "sha256": "7E7A6460090CF9170B336CA12511EA8D793C281A79CCFF9F96DB88DB74B97FF6" }, { "path": "Client/System.Runtime.Handles.dll", "size": 15144, "sha256": "9B193371A3E739F81E601E343C60D6214E0B3966833F4EAEBDCFB49F8217E97F" }, { "path": "Client/System.Runtime.InteropServices.dll", "size": 96080, "sha256": "1930AEA4D91654A4DAF13BF95B2DAFF023D3104A9B3794059EA139E550BCFB5F" }, { "path": "Client/System.Runtime.InteropServices.JavaScript.dll", "size": 50984, "sha256": "7CEFE89E6502602A7E0256960F5F587046016CDB9B822A104E0BF961178DCF2A" }, { "path": "Client/System.Runtime.InteropServices.RuntimeInformation.dll", "size": 15144, "sha256": "C7FDCD989C4732AF5D8C5C00A5CE68D48FA6F500DEE37AA3FD716FB260B01338" }, { "path": "Client/System.Runtime.Intrinsics.dll", "size": 16720, "sha256": "8679A62575619CAA282D3FB1A1EAD4680417B0384FFED8B73A2C4F7DC102C32B" }, { "path": "Client/System.Runtime.Loader.dll", "size": 15696, "sha256": "64AC3644E7FD9279B5410E9C8D31DF01F763B4A362E626E6DD96416A9F6755B3" }, { "path": "Client/System.Runtime.Numerics.dll", "size": 329552, "sha256": "D845C2A3D8EDC282D5C32FD8020C2233FBEED3EB02B5064AB8637506049CFB70" }, { "path": "Client/System.Runtime.Serialization.dll", "size": 16680, "sha256": "A4A2CD5A396A851E444C5E6AB82C6353A1D83906B65968A15CD8D57540B4F9C3" }, { "path": "Client/System.Runtime.Serialization.Formatters.dll", "size": 309032, "sha256": "10C352DBA07E5DE49FE362EDD9D8A44CFC60CD0136A48EB1A5104DA30D2333E5" }, { "path": "Client/System.Runtime.Serialization.Json.dll", "size": 15656, "sha256": "70D7013DCD8AA116954F6EFB1643C4DB01927F75E362C5807F795E443D1EAA9A" }, { "path": "Client/System.Runtime.Serialization.Primitives.dll", "size": 38736, "sha256": "65B4FDCA2B36D551FA88C1CB8D7646EF9F29097B96487AB08FCF31F5DC9AFE86" }, { "path": "Client/System.Runtime.Serialization.Xml.dll", "size": 16680, "sha256": "875EF1FE60647F5BB00A756AD9E7BB0C4A579D35ACEAD8386F27F8C7479AE5E0" }, { "path": "Client/System.Security.AccessControl.dll", "size": 231248, "sha256": "149888FD2B8F15B37BA115E2BB3C0577C8DB9AED6F91221902AD6C9A61A69A49" }, { "path": "Client/System.Security.Claims.dll", "size": 100176, "sha256": "45171F0AD174047CBF511E7761D7ABB2D44988E899F690C36FF3C5BCFBCB2467" }, { "path": "Client/System.Security.Cryptography.Algorithms.dll", "size": 17192, "sha256": "E1BDF2D837D0C8C582B1F98992511421C3E5130B42603F868EF0B5C8C2609F92" }, { "path": "Client/System.Security.Cryptography.Cng.dll", "size": 16168, "sha256": "7B6DEB57BD6A2F0123527F04BE5CCCA9A8B30F4F09A97E6F32519B651496A7F6" }, { "path": "Client/System.Security.Cryptography.Csp.dll", "size": 15656, "sha256": "8689E9D5EA215C4E92D8229DA7DBC3FABEE8997083876FED1927C4D643AEF3F9" }, { "path": "Client/System.Security.Cryptography.dll", "size": 2049872, "sha256": "1E4C4CE04A46E2A2DA8221BF583EBD4F6B5149D4B32792CACC5C33978D0BB121" }, { "path": "Client/System.Security.Cryptography.Encoding.dll", "size": 15696, "sha256": "BAD69FAE75CC6EA5C8CF0A953489B323857A3C8CBA80418F09E98535380A6B8D" }, { "path": "Client/System.Security.Cryptography.OpenSsl.dll", "size": 15144, "sha256": "5D580C0CAFC4492DAC0C4FA11AE46DD1309835AB12671B326F0B74428539D4B5" }, { "path": "Client/System.Security.Cryptography.Pkcs.dll", "size": 759592, "sha256": "8CA6117E32A23EF168133DA28A40C175B82B956DAA58CC82ABC93212686C7ECB" }, { "path": "Client/System.Security.Cryptography.Primitives.dll", "size": 15696, "sha256": "A214418A0B70A48772E274CCDA284D3CFC2392ABF4ABA55718C70324FB78A239" }, { "path": "Client/System.Security.Cryptography.ProtectedData.dll", "size": 55080, "sha256": "C91AE6BC51482AB917ED80F9318E71AD2AF816950E4A1691BD6012DE96F40146" }, { "path": "Client/System.Security.Cryptography.X509Certificates.dll", "size": 16680, "sha256": "07643C4B239DD2A9326C0A62491995BE666A47D2C85D0455CA7379A1692FA284" }, { "path": "Client/System.Security.Cryptography.Xml.dll", "size": 464680, "sha256": "4FD447AB6F2A4CAC0333C261CD2CDE8CCFDCA212CE3CC3FD71B242D9A6D31E1B" }, { "path": "Client/System.Security.dll", "size": 18256, "sha256": "EDE7D28DE4BFEC4192915FB98B35F8979ED1E4A20A7333A7D2AEA45E733A9495" }, { "path": "Client/System.Security.Permissions.dll", "size": 186152, "sha256": "2ED1DAF0B5BC3F4857D86FABBFBF4A565EAB8BF7B7121A0F9080F2F518049DED" }, { "path": "Client/System.Security.Principal.dll", "size": 15144, "sha256": "AEE0A10EDCF634876126B0DE882D01F432DE3EB7CBFCA0565E330EFE336D6DC0" }, { "path": "Client/System.Security.Principal.Windows.dll", "size": 186152, "sha256": "AACE487981F8C9077620ABF9C9D236CE5EF98241CF4222FBB49C717286F2CD0F" }, { "path": "Client/System.Security.SecureString.dll", "size": 15184, "sha256": "A8C666CCE29278836FEE40D1058EBB55B56631056A26117176FCE6ADB793187F" }, { "path": "Client/System.ServiceModel.Web.dll", "size": 16720, "sha256": "059D12D427D2CF95F90F5CA817C30D12D504DB13A031CF5DCE53BAFCEACD3800" }, { "path": "Client/System.ServiceProcess.dll", "size": 15656, "sha256": "41A80E894C84CC938193A95A0C37FC0D3351D3B090E4FC2FE903CC384D55AF2A" }, { "path": "Client/System.Speech.dll", "size": 685216, "sha256": "D156C5349BCE411159AFFAA1369EE2BBAC3D4CBA7793BCEDAF9C85F9C9FB5839" }, { "path": "Client/System.Text.Encoding.CodePages.dll", "size": 861992, "sha256": "A597E456AC579A3814D4C11CD649CB188DF0D4DC27FF9AE59E36664CCA0927A9" }, { "path": "Client/System.Text.Encoding.dll", "size": 15656, "sha256": "C0DDA0DA1AEADBA8A3BAA8D4704C5E4D9DADC715F72FA11C6A25899A5FA6A35B" }, { "path": "Client/System.Text.Encoding.Extensions.dll", "size": 15656, "sha256": "9AD4679A4005EADC13AF6AE025534F22648DED33AB7C1A796C70C8813EE51977" }, { "path": "Client/System.Text.Encodings.Web.dll", "size": 132904, "sha256": "94AFAD93DFDD00E132467753615BFB4BC3FA6633701082A9553D6CB4EACCF2AC" }, { "path": "Client/System.Text.Json.dll", "size": 1501008, "sha256": "9CF2E2AE44376DBEA191925E571AF703C6D7B53A5C138A0F0F13CD6B8AF2C904" }, { "path": "Client/System.Text.RegularExpressions.dll", "size": 1021736, "sha256": "8B3AF9E3E0215B46C2DCEF1F11C4CDC7AD477140883BCB5C778D04CC051BB0DC" }, { "path": "Client/System.Threading.AccessControl.dll", "size": 83792, "sha256": "73F845A36FD2C91399A11591665E864BF7FD0BFE18FC7C67576F29B10462904C" }, { "path": "Client/System.Threading.Channels.dll", "size": 132944, "sha256": "AB05F710069580165C588789E0623E84D213C35594E3E12AE762A6C8265740B6" }, { "path": "Client/System.Threading.dll", "size": 83752, "sha256": "435C110B598D30F118D0E673068B535B693C5A77FAE17398AD46821CE1261ABA" }, { "path": "Client/System.Threading.Overlapped.dll", "size": 15656, "sha256": "739BFB326810706F497DF3B66901E5657B9835AD945FDC6728A27BF932CBAFAA" }, { "path": "Client/System.Threading.Tasks.Dataflow.dll", "size": 489256, "sha256": "39DEF3E572CF7E4BBF11F6565B0A25DB2540D8041C2950E48029E24C14E06342" }, { "path": "Client/System.Threading.Tasks.dll", "size": 16680, "sha256": "D965E3057DCA46B1E8D56012E623A4772AB5AB009231450FDB0F4D2F3875C374" }, { "path": "Client/System.Threading.Tasks.Extensions.dll", "size": 15656, "sha256": "336E8D8F0E79BFFF0C6C38D4A7677384B7951FF66394664BF4FB866ED0BBA982" }, { "path": "Client/System.Threading.Tasks.Parallel.dll", "size": 132904, "sha256": "08FFB9101534E1644C203427BD22B3BEECAAB021F4CE40F4B162B898E2FA66F7" }, { "path": "Client/System.Threading.Thread.dll", "size": 15656, "sha256": "34ED4D7D03BF9A5A5DF7ADDC37A5B75759956FC0D949E25DF61D878238BC560A" }, { "path": "Client/System.Threading.ThreadPool.dll", "size": 15656, "sha256": "5758D73199750AF708EDCA8456EED908B0BFDAACCD7CB2083A6C95DAD4006FDB" }, { "path": "Client/System.Threading.Timer.dll", "size": 15144, "sha256": "39E1B46A16BA5D4A4D7687DCDA0B8838E45198544417D227C7F174C8E15DF56D" }, { "path": "Client/System.Transactions.dll", "size": 16168, "sha256": "2203532BF5483E00686B4F26610A6B9070E59DA55F5218D4294C2C069C6FDFB9" }, { "path": "Client/System.Transactions.Local.dll", "size": 661328, "sha256": "5428F4BCAE83612694E1BEC71849FFFFE7EF34F62AA46DAF3F01250ADB019BD8" }, { "path": "Client/System.ValueTuple.dll", "size": 15144, "sha256": "2079AD867339BD4E2DC4D0E1C9250D9F78E4016DA472C25FEF3C78756244AC5B" }, { "path": "Client/System.Web.dll", "size": 15144, "sha256": "FC90F7D949615646B8D5AF798CFB2BD37FBFE21B1C790B6A2E049BEA36758E2D" }, { "path": "Client/System.Web.HttpUtility.dll", "size": 59216, "sha256": "351125823B848B8CD9E2541B1E0F13ADD351B6DD3C34A6ACB8C243565E5C6251" }, { "path": "Client/System.Windows.Controls.Ribbon.dll", "size": 1451816, "sha256": "9AEB0BD27B0031A2C53240D12E8BFDA791D4561F0925AC0F4F5A46E2AA9D9273" }, { "path": "Client/System.Windows.dll", "size": 15656, "sha256": "113A298C5E1887F9CC2371376E6AEADF631958C1C255EBAC18282DA7829D3C49" }, { "path": "Client/System.Windows.Extensions.dll", "size": 116520, "sha256": "60C65B4DB1D38BB2816CFF23688BD6F8BEE99154D35419A818A8CDA3F2F7ABF1" }, { "path": "Client/System.Windows.Forms.Design.dll", "size": 5564200, "sha256": "6DABACA07BEAAF5E7F14A5362C0361C81F515CDA71999D7E7627A553A2CB2E38" }, { "path": "Client/System.Windows.Forms.Design.Editors.dll", "size": 16168, "sha256": "D92D5034D3996C053F46ED90CE5C5B89934E5558934615DDB840480C2563895D" }, { "path": "Client/System.Windows.Forms.dll", "size": 13563688, "sha256": "2F06C91958C240FB4ED07265DD886D259457642CC151E9620DDB4641FDBC404F" }, { "path": "Client/System.Windows.Forms.Primitives.dll", "size": 3012392, "sha256": "E73D093D04473648A70CE7A072B56CD2A2C084364D173773BBB4D8D401851FD9" }, { "path": "Client/System.Windows.Input.Manipulations.dll", "size": 137000, "sha256": "18C5337BFBBD93E8A7E650EF949E6BC22D3081774D5EE15B0827F69B1945E21D" }, { "path": "Client/System.Windows.Presentation.dll", "size": 30544, "sha256": "9599440D7542954ACC313478A38236D856305F6CAC68A645FE02FA23F6E83AB7" }, { "path": "Client/System.Xaml.dll", "size": 1423184, "sha256": "8EDFF033463B13688CD22F6DA144AA4E9F1EC6FF810A3A358DC076170921728B" }, { "path": "Client/System.Xml.dll", "size": 23376, "sha256": "0D13174940CBD34CCDB350B2F33037CFF214420850CBF5755D9C407BA8A42407" }, { "path": "Client/System.Xml.Linq.dll", "size": 15656, "sha256": "64CAB6D274DE20FB8EC0D080B96091E85AF0DDFC9619869169E8C41D5C1B02C0" }, { "path": "Client/System.Xml.ReaderWriter.dll", "size": 21800, "sha256": "7CBF62BEA50B44B1350FC241281B8C5BF1373CB9AD03304B10F5B0D4805EDB47" }, { "path": "Client/System.Xml.Serialization.dll", "size": 16168, "sha256": "7823BBFDCB819BD585488ADEB6612CAB2357DC2DF5E4A85E0F2A02079C2EC736" }, { "path": "Client/System.Xml.XDocument.dll", "size": 15656, "sha256": "E5A4EF2A7F8C927DC5C587EEB4B5BF1A7264A89825C3D7313082447D3446A11B" }, { "path": "Client/System.Xml.XmlDocument.dll", "size": 15656, "sha256": "48781BEA76DDCE3732F316BCC01BB375910B18B4D83DE62B6570835E09DAB363" }, { "path": "Client/System.Xml.XmlSerializer.dll", "size": 17744, "sha256": "EA1EB8DA8A46BAFE8EE7A8628900E5C4A3FE23CABC7D63D5BE5EB5EDD3FB76FB" }, { "path": "Client/System.Xml.XPath.dll", "size": 15696, "sha256": "CD0B232B8B161A4167B77387885B13E6BF938DFCE4ADDFD68A646FA2E5471FCF" }, { "path": "Client/System.Xml.XPath.XDocument.dll", "size": 30544, "sha256": "01F4F51C85B1533EEF9EF35FCEC4C281565E661A415F7CB10422C3840C5973F7" }, { "path": "Client/tr/Microsoft.VisualBasic.Forms.resources.dll", "size": 24872, "sha256": "F751EC730A28459343B015FE2AF6E2003864F40E4BCAFFCF3F88059F12ABE273" }, { "path": "Client/tr/PresentationCore.resources.dll", "size": 107304, "sha256": "D72A6884FE97B98233A5505B521E9923F4A2EE003CEC1E0FD13CB0A53F020658" }, { "path": "Client/tr/PresentationFramework.resources.dll", "size": 195880, "sha256": "520B7B86B39BF22EB78869822C7623F95B94C5E211E0CC80A69C94089062117E" }, { "path": "Client/tr/PresentationUI.resources.dll", "size": 44368, "sha256": "0141D221E80A7FADC8898F8DE716F88D310B9757A8F9A7B1CC1E1F0051030F52" }, { "path": "Client/tr/ReachFramework.resources.dll", "size": 38184, "sha256": "5BCC5EAAE7D4BFFC290941C7B3FA05EFEF5766B9A6AC64E07BBF2B61BD3FF7E0" }, { "path": "Client/tr/System.Windows.Controls.Ribbon.resources.dll", "size": 18216, "sha256": "41D8631596523F0CB735EC2136408932F54DA43C24F4290D5FBAA0E87281DDD8" }, { "path": "Client/tr/System.Windows.Forms.Design.resources.dll", "size": 148264, "sha256": "E1B37A861E5984B914D8516A341E175B51EAEC98CF6A8372211356F47D39CA8E" }, { "path": "Client/tr/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "62273220A542C313E924235F70D67714F0D957623566E9D9D240A463DD58FF36" }, { "path": "Client/tr/System.Windows.Forms.resources.dll", "size": 361256, "sha256": "CC5B52FB9AC265450C398DE3D340AD755C189F8B599D5F73E080331B547243AE" }, { "path": "Client/tr/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "2B42205C907E87C81C5A26A0FD8A57C312B1331E6B0FA6F1E08E6AC52911280C" }, { "path": "Client/tr/System.Xaml.resources.dll", "size": 65320, "sha256": "24C5ACD16FDB63D65381FB0E7F0FF9417BD483CAC561E7D76AAA5AA008E052D9" }, { "path": "Client/tr/UIAutomationClient.resources.dll", "size": 19752, "sha256": "E49B8EC444FC580BE7EFE64282F2F2B1B7EB55156280A44938A1DD10CE8690BD" }, { "path": "Client/tr/UIAutomationClientSideProviders.resources.dll", "size": 20776, "sha256": "25C3E7BF27593F808534644B99B667D79F1D2EDCF36DD790CB23CB76FE0207A3" }, { "path": "Client/tr/UIAutomationProvider.resources.dll", "size": 15184, "sha256": "BBB9D360A0BB5098167FA92A3E7BCF994DF94C0EE61A33CD8567791E228898B7" }, { "path": "Client/tr/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "732EA39F2BB72EA53A47C1A53B21653388D175822E4BCD92BDEB849B7729CB7D" }, { "path": "Client/tr/WindowsBase.resources.dll", "size": 84776, "sha256": "60AE858A3C0A61AE2004327AB29854E93D0500649C3FD223ECDB5D3E49402076" }, { "path": "Client/tr/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "078B6D80A2D9AA65F7E8588EEC0773B4D0FFDF468D05AB6229F8D381296C2E7C" }, { "path": "Client/UIAutomationClient.dll", "size": 415528, "sha256": "A5941DAF5D7423572258265CE9F08E9D753D8FE366A040B6AAD69EFCAFC740BB" }, { "path": "Client/UIAutomationClientSideProviders.dll", "size": 870184, "sha256": "DD0EB5D8283F7CFD94C7AC805A10CCE38389CE3FD4EE976AF406C6C429D024C0" }, { "path": "Client/UIAutomationProvider.dll", "size": 59216, "sha256": "49E393C86EDC953D2FE1F3955DDFF50D3BC3840C80963BA3F1F6AE3EEE996AC9" }, { "path": "Client/UIAutomationTypes.dll", "size": 313128, "sha256": "6118C3D4753B033294B216ABCF234A90F46DFAB92FC4E267D9061670BB3684C4" }, { "path": "Client/vcruntime140_cor3.dll", "size": 124544, "sha256": "D5E4D9A3E835FA679450145D6A7D94E36573A509317111904D9B3712C30D9066" }, { "path": "Client/WindowsBase.dll", "size": 2254632, "sha256": "BB72BFDC7E163E7D0C6DC984A73856B9A3DF218D247342680E9B5DBB9D326FA5" }, { "path": "Client/WindowsFormsIntegration.dll", "size": 210728, "sha256": "E4245AEC6CC209A22E503DDEE7414FD4D1826D646100D4968F1C72F70BD97BC9" }, { "path": "Client/wpfgfx_cor3.dll", "size": 1955624, "sha256": "4B4FDBD1A77AC91A348D3D83A06BC103C6617FDD11445E327B7B6019BCFC1A6D" }, { "path": "Client/zh-Hans/Microsoft.VisualBasic.Forms.resources.dll", "size": 24912, "sha256": "AE86154A7F19A4FE20D19AA9BBC02E49D983B4B235398480E20B53CCFCE89151" }, { "path": "Client/zh-Hans/PresentationCore.resources.dll", "size": 100176, "sha256": "41A553952448FC834F817E33D4DE5CCC40BB1C9149E83B94D2CA0BA8F3323D65" }, { "path": "Client/zh-Hans/PresentationFramework.resources.dll", "size": 183080, "sha256": "3AEC65BA60B139C0CD0DFC7079B3D40AF24930BD54B460A58FEC60BF596B8D6B" }, { "path": "Client/zh-Hans/PresentationUI.resources.dll", "size": 42832, "sha256": "F02B0AA72DCF4BD969174A9CE7FEDD6B21668289E08A0FB475D8283600069D95" }, { "path": "Client/zh-Hans/ReachFramework.resources.dll", "size": 36688, "sha256": "492464C863C612743902E7796BC662B2A88472AE41FD41E86314579B95C389D9" }, { "path": "Client/zh-Hans/System.Windows.Controls.Ribbon.resources.dll", "size": 18216, "sha256": "C4F3228DA0941EC4C4D4B83B5F95C5A25709986F6462B902EB23F5A2D47AA62D" }, { "path": "Client/zh-Hans/System.Windows.Forms.Design.resources.dll", "size": 144720, "sha256": "F5B3F4C22F45E0A906E0F2993418C8A1B1031EA6A4A9FB970067F9BA79F59999" }, { "path": "Client/zh-Hans/System.Windows.Forms.Primitives.resources.dll", "size": 15656, "sha256": "ECEB403CD5B038FA1EFDDFC2BE135656B68CC96987513A8108383A4F4627EF0B" }, { "path": "Client/zh-Hans/System.Windows.Forms.resources.dll", "size": 319312, "sha256": "AA55C63584E61E8B803FB1C7F0C7B2DA61BF3111B288F1CEB386AB07A012819E" }, { "path": "Client/zh-Hans/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "61C7126CC48DD7C03160441EF6797FA2E3B85480626879B9F615A9417760A969" }, { "path": "Client/zh-Hans/System.Xaml.resources.dll", "size": 60712, "sha256": "BCD1A4CD4E67B7FC608F82CE621EAA5F212B1324254B81D207A3EA9C23212742" }, { "path": "Client/zh-Hans/UIAutomationClient.resources.dll", "size": 19280, "sha256": "51031E0546A24BE62DDCC0DD2DC4FACECA5F8A57E2B0D9C7D1E4932222B865E0" }, { "path": "Client/zh-Hans/UIAutomationClientSideProviders.resources.dll", "size": 20304, "sha256": "C07397F810D4AD1364A44FC8192FFE2C03DF3A9E6AF78D447E8F367F0EB57C3C" }, { "path": "Client/zh-Hans/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "3EA96DDCB6B7FFE55162D69F38203F8E6F1392B4532BF66480362F45FC70A1A9" }, { "path": "Client/zh-Hans/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "CCD4D418CB0DB17BCF5BE1AE3516CD88DD056A4854735E0FCF0B45CA5B0426E2" }, { "path": "Client/zh-Hans/WindowsBase.resources.dll", "size": 78632, "sha256": "92FF96640860995BA35890394CE0C52D6F2C55F0C55BD10D8867705AD96F35F1" }, { "path": "Client/zh-Hans/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "6A9C5B066721120291B9EA33AD8251363F58FA51820E9403057767BA6B043225" }, { "path": "Client/zh-Hant/Microsoft.VisualBasic.Forms.resources.dll", "size": 24912, "sha256": "6660E359A573413085F8880D4F340D0BA62EB2B18650B130285933E41F1B6565" }, { "path": "Client/zh-Hant/PresentationCore.resources.dll", "size": 101160, "sha256": "68D0DC5C7800DA62B3C5BD621D5FA3149D04929896A27ABE8515A28FE5273D67" }, { "path": "Client/zh-Hant/PresentationFramework.resources.dll", "size": 183592, "sha256": "BBCD744C22743BC9092539E27C98A6393D8BFA1917D1404A0F3FDAADDA58B1B8" }, { "path": "Client/zh-Hant/PresentationUI.resources.dll", "size": 42832, "sha256": "16053CA93D0ADA5BB8F50CC52BD3FB96B737ED1206F7506EF8BE70D94DEBBACE" }, { "path": "Client/zh-Hant/ReachFramework.resources.dll", "size": 37200, "sha256": "53136A5478BAC91C27E5E87714CC88155177F4DF159C23106F398228930F082B" }, { "path": "Client/zh-Hant/System.Windows.Controls.Ribbon.resources.dll", "size": 18216, "sha256": "E158FD5ED52D5307B2E0AA92DEDBB6350B3CB3FDBCB6427C97013430813111E0" }, { "path": "Client/zh-Hant/System.Windows.Forms.Design.resources.dll", "size": 144680, "sha256": "C1259A61054C8DEE4A49738CDDE97B01EB074E340D7A3C383BB9FB14928236D0" }, { "path": "Client/zh-Hant/System.Windows.Forms.Primitives.resources.dll", "size": 15696, "sha256": "1D762AB3A0B22AA9B0157EF29B1FFDF8267C4D0AAFD0C6174B64488D436D1557" }, { "path": "Client/zh-Hant/System.Windows.Forms.resources.dll", "size": 324904, "sha256": "8C7AC2584D3D6F7FC8810AD84D603305B3A25B1C5012FB6852839800DD40607E" }, { "path": "Client/zh-Hant/System.Windows.Input.Manipulations.resources.dll", "size": 16168, "sha256": "9178C4DD146B133BB38347EA589714B8161C11E50352494B9A976BA0C36EF511" }, { "path": "Client/zh-Hant/System.Xaml.resources.dll", "size": 60712, "sha256": "29EC4646A783A2429C29DE8930DEBC0D5E6500F624B85DEA0A8A20BF896A144F" }, { "path": "Client/zh-Hant/UIAutomationClient.resources.dll", "size": 19240, "sha256": "C3BFE1EBECCE0395CDC4CC05D680F96DA3D0DD284D672DA48AFE873A4D306685" }, { "path": "Client/zh-Hant/UIAutomationClientSideProviders.resources.dll", "size": 20264, "sha256": "2781BCC30D2D79D2BA6AAC065E32DE9E9A6C87C13398564A6F589C331650824F" }, { "path": "Client/zh-Hant/UIAutomationProvider.resources.dll", "size": 15144, "sha256": "F3FF625B6D131771BB61FFB715077C011C2A4661B06C68D7197A05FAD4A545CB" }, { "path": "Client/zh-Hant/UIAutomationTypes.resources.dll", "size": 18216, "sha256": "79C95F631EE587558D9F944EB543DCBA640EC1D70FD9D5D8637F754E095BC711" }, { "path": "Client/zh-Hant/WindowsBase.resources.dll", "size": 80208, "sha256": "17904B5F5CC2323372B6F11DF75648D2709A870231481F8D248FC70E3AEEBF8B" }, { "path": "Client/zh-Hant/WindowsFormsIntegration.resources.dll", "size": 15656, "sha256": "677072782C414F564D1BA2CE8C0686C955A283C9110064C4F171CED9D1F8EA5E" }, { "path": "Service/appsettings.json", "size": 296, "sha256": "340E864157ACD9EDBC782BAA910D8BCCD90BADFB9AADB3FA1713F7AF59E52B8E" }, { "path": "Service/ClassNotify.Service.deps.json", "size": 67152, "sha256": "E0CBCCC631FA648CFD929B5BA1AAB137662FD92EDE4957B3CAA0020C35243023" }, { "path": "Service/ClassNotify.Service.dll", "size": 86528, "sha256": "2BEC08F6879E39E568B93AB9730BB852152E2550BB58CB5FAD8FA28B35B732C6" }, { "path": "Service/ClassNotify.Service.exe", "size": 151552, "sha256": "D8562B29E2E9F3706C80A8500428773377AAEE5307960D9EF702F02A04D88A77" }, { "path": "Service/ClassNotify.Service.pdb", "size": 28156, "sha256": "B1F94933C5E116D0CA0B50770BBB3D04141CD807B424C24DC67442E2A031839A" }, { "path": "Service/ClassNotify.Service.runtimeconfig.json", "size": 372, "sha256": "D7A0BECA53834E0A387B9E5083BD1DADF5BEE565B48595A9D4CB457D15726C78" }, { "path": "Service/ClassNotify.Shared.dll", "size": 41984, "sha256": "818C952AE696EDB45BFF10514F23D91CDA9C806FD8DEC0375E466B7CFAB7E395" }, { "path": "Service/ClassNotify.Shared.pdb", "size": 24348, "sha256": "13EFE29CD407F69BDEFD50309D93125FF44010E5C97B51E1DC917BC014C51918" }, { "path": "Service/clretwrc.dll", "size": 310568, "sha256": "BC233572D7702EC8D8763C143EC62687C38ABC3AAD26336FB45C26657BF3A5E7" }, { "path": "Service/clrgc.dll", "size": 667944, "sha256": "B09898E142791EA3B96FD1B432D0E5C8AD51C81CD99B608ACCD2981E78A93CDF" }, { "path": "Service/clrjit.dll", "size": 1777960, "sha256": "697C09AC310B8FB8118863971955DA135AEE348116816E3B511BF5957DC6253A" }, { "path": "Service/coreclr.dll", "size": 4995880, "sha256": "BBBCAEDB369617695280CAAA60CDA1ABA4FA3C5B557532A89D9F4A9174A5B692" }, { "path": "Service/createdump.exe", "size": 71512, "sha256": "BEBA75FFCD188A0CE594C304C737CAF16681E1AF19BDD7BB47B3F0EB8636C320" }, { "path": "Service/hostfxr.dll", "size": 366376, "sha256": "4F5A0500CD2A2439B0D5EDBF242950233AEC4539EC9A5E7BA9B8A9B0079F63AF" }, { "path": "Service/hostpolicy.dll", "size": 406824, "sha256": "24F18CCB306D5E614932478471AD276E2B041A723A45E571073DB383B37C5120" }, { "path": "Service/Microsoft.AspNetCore.Connections.Abstractions.dll", "size": 40208, "sha256": "314817256550BFF0D5282D90973CB2DE151A42E915FAA5DEDB1B37EDF6AB7B41" }, { "path": "Service/Microsoft.AspNetCore.Http.Connections.Client.dll", "size": 119584, "sha256": "5B83111616E0B2B145AC9C82491A6B3DA81D450371FB6F0F10180E1C48A4A10D" }, { "path": "Service/Microsoft.AspNetCore.Http.Connections.Common.dll", "size": 28960, "sha256": "DDA233B632278FE15F847BDDF83EB73443BA5A55EC87EFA79EA9437F0BC26901" }, { "path": "Service/Microsoft.AspNetCore.SignalR.Client.Core.dll", "size": 197808, "sha256": "5DB41EE59BDDC0B741311BE7271E9B633401F34B49BCCD1E8C5AC2286C852D11" }, { "path": "Service/Microsoft.AspNetCore.SignalR.Client.dll", "size": 20640, "sha256": "6080C2D4270F741C6A33205EB14956487D4E5D707339CF01D6F193E5E8C96788" }, { "path": "Service/Microsoft.AspNetCore.SignalR.Common.dll", "size": 42760, "sha256": "DB1D41E6FF262A5118C9B0ECA99EBC3334B895E42C2844DB9B7E02312BE5CED6" }, { "path": "Service/Microsoft.AspNetCore.SignalR.Protocols.Json.dll", "size": 37536, "sha256": "D982AE2AF17E90280977277ACAE22D653FCDA9D02EBE81C6A3F319E1917E0BFF" }, { "path": "Service/Microsoft.CSharp.dll", "size": 1005392, "sha256": "30704C86C4C052AC630E5B5BF9E04AEB1EB0677FE3C5CF8A7DF36C8AB78D0B56" }, { "path": "Service/Microsoft.DiaSymReader.Native.amd64.dll", "size": 2377016, "sha256": "70E4B89978CE57EF87B28F4921F3140C383B04AA96E7F3BDB3C4EBB898FD8A72" }, { "path": "Service/Microsoft.Extensions.Configuration.Abstractions.dll", "size": 27936, "sha256": "FEFCDB267A73099CB90E5AF56B5EF2BCA59BED974339B3A6810352BDE23537A6" }, { "path": "Service/Microsoft.Extensions.Configuration.Binder.dll", "size": 42656, "sha256": "5A47750F5C8EB91A203A743ABBDC27C7FECEEB2218D39445DF6560629477EEC9" }, { "path": "Service/Microsoft.Extensions.Configuration.CommandLine.dll", "size": 24736, "sha256": "688EF791D4BB2E84839CFB28EC83772D561D958F6D0B20CA28BE1C6EFC9EA5F7" }, { "path": "Service/Microsoft.Extensions.Configuration.dll", "size": 43800, "sha256": "B5CD9DA2C3364A5B201CECB0C80E25227D27BA44D96343D2894FF8EF3FD81550" }, { "path": "Service/Microsoft.Extensions.Configuration.EnvironmentVariables.dll", "size": 21280, "sha256": "797B3034FD173CAFF0850CD580428A5F4AEB7DA27BF03369AD7F2B0996019399" }, { "path": "Service/Microsoft.Extensions.Configuration.FileExtensions.dll", "size": 27936, "sha256": "D90FD867B38C134678D31C4354F4514B9F3EFFF494F7E9EECAC8DF6EF07A77C9" }, { "path": "Service/Microsoft.Extensions.Configuration.Json.dll", "size": 26784, "sha256": "96920CAA680F7583888E3387E17950BB9F39F6DF8E24FCB4D356454DD2B8E494" }, { "path": "Service/Microsoft.Extensions.Configuration.UserSecrets.dll", "size": 25360, "sha256": "A415ECB7EBDF4F6598C19FBBDF54899CE488477E1C81972BA575910EFB54A0C4" }, { "path": "Service/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "size": 64288, "sha256": "A0106A638FACAE621F870EDA720CB6C980C1D5D49C2F4351134E3FE043B9291B" }, { "path": "Service/Microsoft.Extensions.DependencyInjection.dll", "size": 92320, "sha256": "8D6E7B64CCE554F0A0FBDB2BA80745895FA0B4E6CC378B9FEDFE8CE86F0D8AE4" }, { "path": "Service/Microsoft.Extensions.Diagnostics.Abstractions.dll", "size": 30368, "sha256": "BEA3CF225599B05A521902E12E23DE6A2309937DFB3763CCD2CEA62AD2C4FE37" }, { "path": "Service/Microsoft.Extensions.Diagnostics.dll", "size": 35488, "sha256": "5C83650F1C0A15C8E3831A4D48008B3BAA338505A3BE48780A3D86C2CD4662A0" }, { "path": "Service/Microsoft.Extensions.Features.dll", "size": 26384, "sha256": "F67D51CD82729CFBCFEE3BB2D149CD0E6E30DA6DB54664001B023C9A321901AB" }, { "path": "Service/Microsoft.Extensions.FileProviders.Abstractions.dll", "size": 22176, "sha256": "F08B1F597ABB3647AB6E844282DED763E6078DBEF6DD54B9D956CA419FAC42FE" }, { "path": "Service/Microsoft.Extensions.FileProviders.Physical.dll", "size": 44808, "sha256": "9F67076C79A953F5068C0792114F9722527CFA17ED7414C73FD14833BFE59918" }, { "path": "Service/Microsoft.Extensions.FileSystemGlobbing.dll", "size": 45848, "sha256": "ED0855B522F09B5A9DDBB85DE62042C25E07D10044086DA8620C845DE41E473C" }, { "path": "Service/Microsoft.Extensions.Hosting.Abstractions.dll", "size": 51360, "sha256": "1765C6147ED43B7CE3C0E98DB3367791A3821DEF124775015BDCE6278F9295C5" }, { "path": "Service/Microsoft.Extensions.Hosting.dll", "size": 72480, "sha256": "746B030485BCF78DEB83F6FAAE9EDAD0DC803FB8FA1EE6DFE57112A96AC682DC" }, { "path": "Service/Microsoft.Extensions.Hosting.WindowsServices.dll", "size": 29968, "sha256": "1DA1EA43A9AAA98657649306CB319A1568CAD0FDDBFBF62F70870DDA712CC043" }, { "path": "Service/Microsoft.Extensions.Logging.Abstractions.dll", "size": 65184, "sha256": "29E6BFAF5CE079AD4D70DC547D966038992A7428DF6E726084EB9010EC837715" }, { "path": "Service/Microsoft.Extensions.Logging.Configuration.dll", "size": 27928, "sha256": "4BD1245656BEF4EAB6B6B503EBFF486210F7C05C17097AC247C5A0E824F118B6" }, { "path": "Service/Microsoft.Extensions.Logging.Console.dll", "size": 71448, "sha256": "B6836602E2139D6E3E37D490F569B8E7BD82559C492B00F58DE811E003F73B68" }, { "path": "Service/Microsoft.Extensions.Logging.Debug.dll", "size": 20128, "sha256": "798B0714E3DFE8E80D12E2FAEE8257BB5D05E4432C975CC510CB83B33FF60048" }, { "path": "Service/Microsoft.Extensions.Logging.dll", "size": 50848, "sha256": "4330A5EFE9D110AFB7F8E567D5B43EEE976E0F7F6802D13A211B65D747529179" }, { "path": "Service/Microsoft.Extensions.Logging.EventLog.dll", "size": 25880, "sha256": "1182928ECAA6AB2376BFB9C2460EC2BC69647A9CE76744D39FAFE5073262774E" }, { "path": "Service/Microsoft.Extensions.Logging.EventSource.dll", "size": 34592, "sha256": "E8CDE7AD083DC0620E5A3A89A7CD2155DE6FF3113F9F74B5D576FD17F912416E" }, { "path": "Service/Microsoft.Extensions.Options.ConfigurationExtensions.dll", "size": 22688, "sha256": "B9EA7BB70BFECF5C649F2559300FCE232729257CFDB4221DC96F1EA778227353" }, { "path": "Service/Microsoft.Extensions.Options.dll", "size": 64672, "sha256": "5F9B0E589F1CE9CA656588CD92CC0BD53803FDFAD258FB2916AAA14AEDCE682C" }, { "path": "Service/Microsoft.Extensions.Primitives.dll", "size": 43680, "sha256": "446FF16E903E7479558816E213A3ADEE9A1C1ADAD65A56D853801B10933E29D7" }, { "path": "Service/Microsoft.VisualBasic.Core.dll", "size": 1247056, "sha256": "BDCDD4BD2B6E2C0EEC9A93187CD57CE9437C9A2324A6C6C20C55A2D1A27823BE" }, { "path": "Service/Microsoft.VisualBasic.dll", "size": 17192, "sha256": "A172FAD5B53A27D32B21BA3B18E27046C1DAF7451C46BEA4F57F515D0EEF756A" }, { "path": "Service/Microsoft.Win32.Primitives.dll", "size": 15184, "sha256": "596160C8491D2110A36CE4CB93C736905B2C83B9B50496369F32E32AD28D2A20" }, { "path": "Service/Microsoft.Win32.Registry.dll", "size": 120656, "sha256": "A8CC5503BBBA36472D1DD3A8EEBC3A8B26F0B2882E770851AAB486690B23EAD9" }, { "path": "Service/mscordaccore_amd64_amd64_8.0.3126.42015.dll", "size": 1348960, "sha256": "A277F63F5722E1ED59A791FC5D30C53ED263ABEF4ADF12D0BF494897D796C3E0" }, { "path": "Service/mscordaccore.dll", "size": 1348960, "sha256": "A277F63F5722E1ED59A791FC5D30C53ED263ABEF4ADF12D0BF494897D796C3E0" }, { "path": "Service/mscordbi.dll", "size": 1233800, "sha256": "20140E71ED6DD59E6736E455B7BE2784D7AC0B3F43839148A134AEC3E7622DE0" }, { "path": "Service/mscorlib.dll", "size": 59216, "sha256": "EE4983E136AB524F29D2F43D01D1DEB978F4948EB5CA05B5D6E40BE37EC43023" }, { "path": "Service/mscorrc.dll", "size": 136488, "sha256": "C0FC4C625CE2C62887A86A5E1D93895836E7C998A3C95169505F8515266160FC" }, { "path": "Service/msquic.dll", "size": 536344, "sha256": "B7158D427B01C70483BB3D80C5211E387DD98E9471C8A70E4484D449DE9157E8" }, { "path": "Service/netstandard.dll", "size": 100648, "sha256": "53D854D33C3F0E1BBCCFF4B5C4B89420DAA66FA5F6603F6E5DF20D6BBB7E00F4" }, { "path": "Service/Serilog.dll", "size": 140800, "sha256": "6B67FB3F104513036A7446CE4DA3B49449EC9CEA00437C38333910E47BFA41CB" }, { "path": "Service/Serilog.Extensions.Hosting.dll", "size": 29696, "sha256": "9797812419B0506569DE5BFD5A86B506BBAF7A0D2F2493DB0494D6E6EEE1AF0E" }, { "path": "Service/Serilog.Extensions.Logging.dll", "size": 29696, "sha256": "A0B6C860FA5BDB3F0EBE5C7AF709FC686A9AA575B616B706BD65A5D0C1FD4226" }, { "path": "Service/Serilog.Sinks.File.dll", "size": 31232, "sha256": "192A97F6A2E408C36D9EC8A0EEE6BBA33A516DDEDF3662C031D88E744629F991" }, { "path": "Service/System.AppContext.dll", "size": 15144, "sha256": "C3D2CB89EC473B55FCBF6F0ED601139E46159E0D2834D9D92ED74ED89E2A2879" }, { "path": "Service/System.Buffers.dll", "size": 15184, "sha256": "8CADBC77368593547381F18EAFA12DD58216D7B35A60B487B66CA51A2EE3C406" }, { "path": "Service/System.Collections.Concurrent.dll", "size": 276264, "sha256": "ED653CCB5DC40D0BB4EA3429165A0825705F2935A65C584CA67CBA45671884C1" }, { "path": "Service/System.Collections.dll", "size": 259880, "sha256": "C6BB79B8FB32504B6327B516E6FF32017A073669AB749D3C86ED49CD5F2F0C45" }, { "path": "Service/System.Collections.Immutable.dll", "size": 837456, "sha256": "6E41C8BA23968F6A9B910E3C33F66761A588F24084C4E3599214805716D6D259" }, { "path": "Service/System.Collections.NonGeneric.dll", "size": 104232, "sha256": "B40CDF234652B31B443164350F73E25F98C5EDECFD30698789D6DBF9CA456E44" }, { "path": "Service/System.Collections.Specialized.dll", "size": 104272, "sha256": "24022887037BFAAD8C89C26642712C920DCC0ABABD3396D80D8B2BE16637673B" }, { "path": "Service/System.ComponentModel.Annotations.dll", "size": 198480, "sha256": "97060D253527BDDE94022AC6D22AE4C0474CF67F40BFE8342E9420B7888B3AFF" }, { "path": "Service/System.ComponentModel.DataAnnotations.dll", "size": 16720, "sha256": "E5B872CF98BF9F3F565877B21FDEE61B569ECC586E6DC48C9199AE5E0CD100B3" }, { "path": "Service/System.ComponentModel.dll", "size": 30504, "sha256": "4D9E2E21ED5C16C100221433D1AAB01409EC199C9F617E48B9FE1617989BBAA6" }, { "path": "Service/System.ComponentModel.EventBasedAsync.dll", "size": 46928, "sha256": "CE813A7CDE09EBA1BDD7D6661FA39C09057BEDDC78F554C5476C43766D763ED0" }, { "path": "Service/System.ComponentModel.Primitives.dll", "size": 79696, "sha256": "D981AF410D4ED7939FDEE47A1EE58E3DB472C05F17C2B0D48E4B1EBFB2FEA0E5" }, { "path": "Service/System.ComponentModel.TypeConverter.dll", "size": 747304, "sha256": "DB04940603C749719E133BB567D142D46AF3A6F2F37597DB398955A3896B84C2" }, { "path": "Service/System.Configuration.dll", "size": 19240, "sha256": "39ECA0E98D4B206CBFF6243A04494F79EC8B19903D3427B44D64D88097D77F65" }, { "path": "Service/System.Console.dll", "size": 173864, "sha256": "D38105C5C790FC76AC6E4D99FE9B6C2672E4E250E191BD43593E55AE7D3B2AFE" }, { "path": "Service/System.Core.dll", "size": 23336, "sha256": "F7414ECFD958FDFB2B4BCDD2F7778A7B26968EB453CA2C03FDF53BA4BB21674F" }, { "path": "Service/System.Data.Common.dll", "size": 2860840, "sha256": "089A74A39DCEB113BEA92522B227E24C881A618C5EB1E2ABB166A6E8C12BE0CB" }, { "path": "Service/System.Data.DataSetExtensions.dll", "size": 15696, "sha256": "D425011A475BB44E6B9ACD4C48E8F3B428312A05CA3A649ABBCD871F7102DECF" }, { "path": "Service/System.Data.dll", "size": 24912, "sha256": "1EFE79C9F164CE5DA6542DE89DC7F10D1FEB1F38216B68F9A6B6A8CA5E3D2AC3" }, { "path": "Service/System.Diagnostics.Contracts.dll", "size": 16168, "sha256": "A670F39C589BD9D4A994E75ABC2385839649ED91A831A4CA7D9FE4F87834B492" }, { "path": "Service/System.Diagnostics.Debug.dll", "size": 15656, "sha256": "E122BD1046864476252765E356C54D2454E72A6E11BF546907DE1468CA0B0CB5" }, { "path": "Service/System.Diagnostics.DiagnosticSource.dll", "size": 415568, "sha256": "25C3BF229337A485CEACB82C00F47F2E98DE68A279EB5A450550526F9CBF0448" }, { "path": "Service/System.Diagnostics.EventLog.dll", "size": 171784, "sha256": "5D65536889CACB7D87892BB9C71ACF01CF7FF0199273D774F8408B2466EA9DC4" }, { "path": "Service/System.Diagnostics.EventLog.Messages.dll", "size": 801048, "sha256": "68F73AB17FB7F4AFF3D35EF6DB0E9D5B0FA0151111CB3D03992E23BC29D6C40A" }, { "path": "Service/System.Diagnostics.FileVersionInfo.dll", "size": 46888, "sha256": "24B0E8ED2EA93B84FF2A26CB1F69F7D6E331F6162EAE4FAE4446A5556B8A8EEE" }, { "path": "Service/System.Diagnostics.Process.dll", "size": 337744, "sha256": "7083C7046AC4CBED1068B6AE7A777D421EEAF180E5697283FC1C6AF731C32A3D" }, { "path": "Service/System.Diagnostics.StackTrace.dll", "size": 46888, "sha256": "7B26B1C48D500576994B3153B88FEFD1E516680AE4B52CDE608B8E869544B37D" }, { "path": "Service/System.Diagnostics.TextWriterTraceListener.dll", "size": 67368, "sha256": "0279BBA2AB8C1E023D043D802B0B3BBBF8483DD082E305391C6229382452B1C2" }, { "path": "Service/System.Diagnostics.Tools.dll", "size": 15184, "sha256": "CA4CC511A2204AF2A5652C7CF870A6A5EFF109F98ACC72A8E2A0498F72665507" }, { "path": "Service/System.Diagnostics.TraceSource.dll", "size": 145232, "sha256": "2B5489BC5A6D65E109DBED6557DC2AF3BA9DFB549EFD18A64F37FD64255CB756" }, { "path": "Service/System.Diagnostics.Tracing.dll", "size": 16168, "sha256": "6857ED7CA2C17D38F74639BACC59942599935593F9A0B33B246161C57DB27EB3" }, { "path": "Service/System.dll", "size": 49960, "sha256": "173DD55A6D19794FB6EB8C4E4E73510EBF3A7928AFFE43C21E721861A4250E51" }, { "path": "Service/System.Drawing.dll", "size": 20304, "sha256": "97562444D2DAF928CD78404156665DDE55AA5EC71C6FCAD705284338E4A36EBE" }, { "path": "Service/System.Drawing.Primitives.dll", "size": 132944, "sha256": "02BD1F5644DD73789B82C3A52C8F86EF726BAA1D4CCE2A0C64D9DC1C29B9CB02" }, { "path": "Service/System.Dynamic.Runtime.dll", "size": 16208, "sha256": "F6A93AD11464C19F720D34B92043DCC289885BF959B32549EE3CA24537E8B65A" }, { "path": "Service/System.Formats.Asn1.dll", "size": 243496, "sha256": "61F505F140E2C6417640A5AA47A86D148D4F6DC5317A66A7BFA2266A3AC975BF" }, { "path": "Service/System.Formats.Tar.dll", "size": 276304, "sha256": "EE3132A84CF9FD170F3AE0899A996ADC120A899C51DBC5534B22E8870B5AA137" }, { "path": "Service/System.Globalization.Calendars.dll", "size": 15696, "sha256": "E0974066E338D22097F5C77E47D086BD9C5826C256034A31F21B34C4392FBB7B" }, { "path": "Service/System.Globalization.dll", "size": 15656, "sha256": "88A4C4517972878AEBD264AC5150A3822D14AB3F5B9577C8372E1724B0CA8D88" }, { "path": "Service/System.Globalization.Extensions.dll", "size": 15144, "sha256": "9D57E781AFD06F3C6D0A54842467B29079BA2932827A76D9047A327490F1F836" }, { "path": "Service/System.IO.Compression.Brotli.dll", "size": 83752, "sha256": "46D228E5EA0E3D25B15E95D6A97A3B80E86DDE2660589462F30853EB5A0C40B5" }, { "path": "Service/System.IO.Compression.dll", "size": 263976, "sha256": "1F7E0CE87B7859C81D793750EA8FC58DB6D1FA1B81D3CEA1E73C614F66439C3C" }, { "path": "Service/System.IO.Compression.FileSystem.dll", "size": 15144, "sha256": "75972527F5C874893F0515FBE6F8D1D484354AC421CCF31AF346738AA74CBC07" }, { "path": "Service/System.IO.Compression.Native.dll", "size": 828240, "sha256": "4F892A1F3BDF970E662435BB044B5C5E4D8F7241BCE981237F57165AE12CB171" }, { "path": "Service/System.IO.Compression.ZipFile.dll", "size": 55080, "sha256": "A8624A7C7359C1EB6767C50513A33EB9F09125089044EF0CAF9D4D225B33A230" }, { "path": "Service/System.IO.dll", "size": 15656, "sha256": "1EE3349F15C3A20A7394341D8D4EDE2AC3D7DDBE4462F43DAE828F407F84FF1D" }, { "path": "Service/System.IO.FileSystem.AccessControl.dll", "size": 104232, "sha256": "6C384EE8C0613A469F9894209F39F154D2E6E8796F9B9C02E3686A42E15D94A6" }, { "path": "Service/System.IO.FileSystem.dll", "size": 15656, "sha256": "6005E3AC5CBEE19D172CC29E48CA84DB8E62DFF34CFF95E56C3600A0A95CB170" }, { "path": "Service/System.IO.FileSystem.DriveInfo.dll", "size": 55080, "sha256": "3EEA221AAA9E6066BFFB63218EE292FE499BBB5DB434A57225AAC1B8531C0B90" }, { "path": "Service/System.IO.FileSystem.Primitives.dll", "size": 15184, "sha256": "FB2F15CF3356987E0120D265B7B4FBCCC11DCCFBAE08B334A17B4E830EDDC54E" }, { "path": "Service/System.IO.FileSystem.Watcher.dll", "size": 87888, "sha256": "21C97F58651EA238A7018ECFA4BB4B3B6B4E682F97163AE14F8D4D145547F3F0" }, { "path": "Service/System.IO.IsolatedStorage.dll", "size": 91984, "sha256": "AF7C75423C9EFDF88850A7197C57E19D588A326678BBE07AA7F0B5DDB3049F59" }, { "path": "Service/System.IO.MemoryMappedFiles.dll", "size": 83752, "sha256": "E3136D19090F173D2AB75C392486A1427060BD149D966CFD58F3DF3308546DFD" }, { "path": "Service/System.IO.Pipelines.dll", "size": 77984, "sha256": "86D0F5BFAAF1B2AB19331B543A736D87B5B58E72158F4DED282122B2E6665F83" }, { "path": "Service/System.IO.Pipes.AccessControl.dll", "size": 16168, "sha256": "FB206A579C16F5750CE10026913A7F16AD686FB37AF1FC9BC997F611362B2F2E" }, { "path": "Service/System.IO.Pipes.dll", "size": 165672, "sha256": "35030C28374B6FFA6393C2AB8AE80CF712A2F88E92A16DBBDBF6AE03F0E0D452" }, { "path": "Service/System.IO.UnmanagedMemoryStream.dll", "size": 15144, "sha256": "9442D9391FF037CF388A9E15C171845E5436B093E3C928C60350957555393FD0" }, { "path": "Service/System.Linq.dll", "size": 542504, "sha256": "2B375E90FC687967BD95A0F47DBCBA44D396923F3C98B7FE5754E34C8E4BEFAA" }, { "path": "Service/System.Linq.Expressions.dll", "size": 3675984, "sha256": "0F99977BEDDC9272D56A2E16B2581CDE37F2AFD43E77C8209827197C098DEDEB" }, { "path": "Service/System.Linq.Parallel.dll", "size": 804648, "sha256": "4BA87321EA950874380628879C3C25332281F7F9A920A090DE930570AE8AF0EA" }, { "path": "Service/System.Linq.Queryable.dll", "size": 173864, "sha256": "5E14D4AB3BB2711B0CC4B197F973E9C74955A1E4C77041D5CAD65E759C304232" }, { "path": "Service/System.Memory.dll", "size": 157480, "sha256": "84242CCE5EACC6963A77163986066BD0A1C2EB698B5F26DBDD5E6706E002FBC7" }, { "path": "Service/System.Net.dll", "size": 17232, "sha256": "C2DDCDFF66BBB2595E5BCACA342D600A81C9A2E618AC9B9B1C6977FC4E1D17FC" }, { "path": "Service/System.Net.Http.dll", "size": 1734440, "sha256": "5102639C2037D77949340D94761C9A4C5053B940B8AE4BA2FBBE3507B8A5EC43" }, { "path": "Service/System.Net.Http.Json.dll", "size": 128808, "sha256": "7C4B39865655DD3B695A305527B8D11092C5DCF1B786D747CD45E6C00CCE5249" }, { "path": "Service/System.Net.HttpListener.dll", "size": 550696, "sha256": "AD612AE83E313EB7FC2AFA59B829533C8E8F36FB76D1D398262A610E85AF1CCC" }, { "path": "Service/System.Net.Mail.dll", "size": 431952, "sha256": "8830477BB6B18B181A2495C77038AB8A7C941897C9E46FEB06F61B2013ED1C8E" }, { "path": "Service/System.Net.NameResolution.dll", "size": 112424, "sha256": "E8CC6C2F0D59FB018FDC4A66057E3A56A3AA5ED82FEDE17B2398CDA88DA407CD" }, { "path": "Service/System.Net.NetworkInformation.dll", "size": 157480, "sha256": "DB21F0C5659D925741F7A08B0B50FC297248B0155F375F0FD7F970DD2E4CD3F0" }, { "path": "Service/System.Net.Ping.dll", "size": 96040, "sha256": "3A9AAB851FFF6116DEE3524177859E051512FADF7E209372E2D2342B51845474" }, { "path": "Service/System.Net.Primitives.dll", "size": 231248, "sha256": "0F929E8581F09FE85275DF7B38549BC51415CD110AADFD89EADE53943174511A" }, { "path": "Service/System.Net.Quic.dll", "size": 284456, "sha256": "58F5E4C6F2BBD5320C9797FBEAD001A99E4D334FA936D5469DF82262AC8069DA" }, { "path": "Service/System.Net.Requests.dll", "size": 345896, "sha256": "60B7C1595CECC53767C3EFCDAE74DDD37350AC51F377CAC8D7E95428B1F231AF" }, { "path": "Service/System.Net.Security.dll", "size": 669520, "sha256": "C957641BE9192E7812F209E2120E56A71DA0D99B1A8443CA5F7947F38EA4376D" }, { "path": "Service/System.Net.ServicePoint.dll", "size": 46888, "sha256": "8969D0EA32B01B7198030AFE6258D85A3021655B4F7E2291CB5521BBA1F7E29F" }, { "path": "Service/System.Net.Sockets.dll", "size": 546600, "sha256": "49E95C5A59172D80941992016EB35C965D8FB4BC05B745F85E793B6C010BDC6B" }, { "path": "Service/System.Net.WebClient.dll", "size": 169768, "sha256": "2C8AD06A15AEE44E700CBFF2BDF1DA0000FCAA4E8BA5524E9DB1B07C3ADD099E" }, { "path": "Service/System.Net.WebHeaderCollection.dll", "size": 67368, "sha256": "8DB64DD40A80422673F81EC67EE9DF921795B0579E5BA6CEF09BFFCE7FEF1294" }, { "path": "Service/System.Net.WebProxy.dll", "size": 42792, "sha256": "CFD65E84A782DB8180C9BB3BF6EB739F250901E1006D941D66F08D6B6EDB0B0E" }, { "path": "Service/System.Net.WebSockets.Client.dll", "size": 100136, "sha256": "41836162542928AD88AC7A0176CBDC753F63DA986D668688F7FB049B2EF0AEE9" }, { "path": "Service/System.Net.WebSockets.dll", "size": 190288, "sha256": "1250D5F182A8C3655A81B1E11955D904FD147D7F770191DE4004619247178629" }, { "path": "Service/System.Numerics.dll", "size": 15184, "sha256": "ADB2DDA9BBFC24D694B77E1700F2DF0706FF077DE8F40DD09ABABC92459F2E2B" }, { "path": "Service/System.Numerics.Vectors.dll", "size": 15656, "sha256": "6E45388834E11D4A8E460F97DA371D6889CDF98D7B65B300079C2F2B69EA3FAF" }, { "path": "Service/System.ObjectModel.dll", "size": 79656, "sha256": "35187A8D7F9DC8896894D1A0A496FBABCD567F2AC0F047632F7178C308FF72F5" }, { "path": "Service/System.Private.CoreLib.dll", "size": 13174608, "sha256": "99B168B84597A4F31FDA8281EFCE7D42A14E2DF0F4694194735E049DBC0F6418" }, { "path": "Service/System.Private.DataContractSerialization.dll", "size": 2082600, "sha256": "F3D2ACD4D5ADEABB40991CD1C757D05640B64CDD89F59874CFFE7BBD6ED38B97" }, { "path": "Service/System.Private.Uri.dll", "size": 259920, "sha256": "F2A695DCD4073EABA43B4EE26F006C0174BFF42673E17B38914450CA7D2547F5" }, { "path": "Service/System.Private.Xml.dll", "size": 7997264, "sha256": "F7285C6A22E221784F1D81F884283E9DCD02AA7BFD17C428943D29E00170D749" }, { "path": "Service/System.Private.Xml.Linq.dll", "size": 403240, "sha256": "5DE081135173DD027BDC3F6285BEAA31D184CFF8D217D681D405E038D1819721" }, { "path": "Service/System.Reflection.DispatchProxy.dll", "size": 75560, "sha256": "2F926A9F911D11B98C71E67B7E91F883C58B3B095794A8AC69A5CDBFD37C60C4" }, { "path": "Service/System.Reflection.dll", "size": 16168, "sha256": "558837B6BCAF55FDBB3E7D8F565F0C04D9B415823D0ABE382AC31643DB3639DE" }, { "path": "Service/System.Reflection.Emit.dll", "size": 128808, "sha256": "51742F48054D452DE444DA58D4AC69B879A23BBC8841B4B08FC337745D50CB07" }, { "path": "Service/System.Reflection.Emit.ILGeneration.dll", "size": 15656, "sha256": "ED892838C6ED6649AB57A436128845EC195329CDF568C99D9CB8E6F4B92C7A01" }, { "path": "Service/System.Reflection.Emit.Lightweight.dll", "size": 15656, "sha256": "39CF409E3B41B813C9E715EC4F38BC02748499D62E89F71FD8F4DAD6EBBA80BB" }, { "path": "Service/System.Reflection.Extensions.dll", "size": 15144, "sha256": "3ADAAF6F0DCD0208AB0282A774801486444AF53118015AC12E0C6F8623D3F3CE" }, { "path": "Service/System.Reflection.Metadata.dll", "size": 1115944, "sha256": "1795022B24DDF1E4DB47F63035B685F2A9F3E4468FB277158BB909D3B6EC00A0" }, { "path": "Service/System.Reflection.Primitives.dll", "size": 15656, "sha256": "B15B177125F391D1CAEE193167CAFFBEC4AC2586447F822AC655ACE9A6BDFF41" }, { "path": "Service/System.Reflection.TypeExtensions.dll", "size": 42792, "sha256": "191C401D245FBBE8D6E0105A53DB610122871168E21AC849BE6FBC86BB786048" }, { "path": "Service/System.Resources.Reader.dll", "size": 15184, "sha256": "34B31E5093FF2564FCCDE4B43C31330BC4CBC6CF24C38CB929D34F1FFB46D0FB" }, { "path": "Service/System.Resources.ResourceManager.dll", "size": 15656, "sha256": "D0DB07A7E954EDBEF7D586907574068EA2764E28ACB7F5A64FD6006EE8889D93" }, { "path": "Service/System.Resources.Writer.dll", "size": 50984, "sha256": "A09C234E643B0391367F975241592002270EB9BD5516F0D75B31F82BE6426DD6" }, { "path": "Service/System.Runtime.CompilerServices.Unsafe.dll", "size": 15144, "sha256": "69EDF8CB4BFE291FF998F2AB0CEA2F3B7F32664C53E9B9171A35F0664FC047CF" }, { "path": "Service/System.Runtime.CompilerServices.VisualC.dll", "size": 30544, "sha256": "B0216C72F28E06BF4EE3C7561B5C483224847E5F40DF6D939D2AFBE731E2CFD2" }, { "path": "Service/System.Runtime.dll", "size": 43304, "sha256": "E8FB5B78DC75B0650520042936FCA2165A060CB4AFA4B8CCE90524C9C9FC3563" }, { "path": "Service/System.Runtime.Extensions.dll", "size": 17704, "sha256": "7E7A6460090CF9170B336CA12511EA8D793C281A79CCFF9F96DB88DB74B97FF6" }, { "path": "Service/System.Runtime.Handles.dll", "size": 15144, "sha256": "9B193371A3E739F81E601E343C60D6214E0B3966833F4EAEBDCFB49F8217E97F" }, { "path": "Service/System.Runtime.InteropServices.dll", "size": 96080, "sha256": "1930AEA4D91654A4DAF13BF95B2DAFF023D3104A9B3794059EA139E550BCFB5F" }, { "path": "Service/System.Runtime.InteropServices.JavaScript.dll", "size": 50984, "sha256": "7CEFE89E6502602A7E0256960F5F587046016CDB9B822A104E0BF961178DCF2A" }, { "path": "Service/System.Runtime.InteropServices.RuntimeInformation.dll", "size": 15144, "sha256": "C7FDCD989C4732AF5D8C5C00A5CE68D48FA6F500DEE37AA3FD716FB260B01338" }, { "path": "Service/System.Runtime.Intrinsics.dll", "size": 16720, "sha256": "8679A62575619CAA282D3FB1A1EAD4680417B0384FFED8B73A2C4F7DC102C32B" }, { "path": "Service/System.Runtime.Loader.dll", "size": 15696, "sha256": "64AC3644E7FD9279B5410E9C8D31DF01F763B4A362E626E6DD96416A9F6755B3" }, { "path": "Service/System.Runtime.Numerics.dll", "size": 329552, "sha256": "D845C2A3D8EDC282D5C32FD8020C2233FBEED3EB02B5064AB8637506049CFB70" }, { "path": "Service/System.Runtime.Serialization.dll", "size": 16680, "sha256": "A4A2CD5A396A851E444C5E6AB82C6353A1D83906B65968A15CD8D57540B4F9C3" }, { "path": "Service/System.Runtime.Serialization.Formatters.dll", "size": 309032, "sha256": "10C352DBA07E5DE49FE362EDD9D8A44CFC60CD0136A48EB1A5104DA30D2333E5" }, { "path": "Service/System.Runtime.Serialization.Json.dll", "size": 15656, "sha256": "70D7013DCD8AA116954F6EFB1643C4DB01927F75E362C5807F795E443D1EAA9A" }, { "path": "Service/System.Runtime.Serialization.Primitives.dll", "size": 38736, "sha256": "65B4FDCA2B36D551FA88C1CB8D7646EF9F29097B96487AB08FCF31F5DC9AFE86" }, { "path": "Service/System.Runtime.Serialization.Xml.dll", "size": 16680, "sha256": "875EF1FE60647F5BB00A756AD9E7BB0C4A579D35ACEAD8386F27F8C7479AE5E0" }, { "path": "Service/System.Security.AccessControl.dll", "size": 231248, "sha256": "149888FD2B8F15B37BA115E2BB3C0577C8DB9AED6F91221902AD6C9A61A69A49" }, { "path": "Service/System.Security.Claims.dll", "size": 100176, "sha256": "45171F0AD174047CBF511E7761D7ABB2D44988E899F690C36FF3C5BCFBCB2467" }, { "path": "Service/System.Security.Cryptography.Algorithms.dll", "size": 17192, "sha256": "E1BDF2D837D0C8C582B1F98992511421C3E5130B42603F868EF0B5C8C2609F92" }, { "path": "Service/System.Security.Cryptography.Cng.dll", "size": 16168, "sha256": "7B6DEB57BD6A2F0123527F04BE5CCCA9A8B30F4F09A97E6F32519B651496A7F6" }, { "path": "Service/System.Security.Cryptography.Csp.dll", "size": 15656, "sha256": "8689E9D5EA215C4E92D8229DA7DBC3FABEE8997083876FED1927C4D643AEF3F9" }, { "path": "Service/System.Security.Cryptography.dll", "size": 2049872, "sha256": "1E4C4CE04A46E2A2DA8221BF583EBD4F6B5149D4B32792CACC5C33978D0BB121" }, { "path": "Service/System.Security.Cryptography.Encoding.dll", "size": 15696, "sha256": "BAD69FAE75CC6EA5C8CF0A953489B323857A3C8CBA80418F09E98535380A6B8D" }, { "path": "Service/System.Security.Cryptography.OpenSsl.dll", "size": 15144, "sha256": "5D580C0CAFC4492DAC0C4FA11AE46DD1309835AB12671B326F0B74428539D4B5" }, { "path": "Service/System.Security.Cryptography.Primitives.dll", "size": 15696, "sha256": "A214418A0B70A48772E274CCDA284D3CFC2392ABF4ABA55718C70324FB78A239" }, { "path": "Service/System.Security.Cryptography.ProtectedData.dll", "size": 36616, "sha256": "5E04D6CFF3B6FE9706908970CD594861F0C08B3824F7827B2331B5F4FCEE1BD1" }, { "path": "Service/System.Security.Cryptography.X509Certificates.dll", "size": 16680, "sha256": "07643C4B239DD2A9326C0A62491995BE666A47D2C85D0455CA7379A1692FA284" }, { "path": "Service/System.Security.dll", "size": 18256, "sha256": "EDE7D28DE4BFEC4192915FB98B35F8979ED1E4A20A7333A7D2AEA45E733A9495" }, { "path": "Service/System.Security.Principal.dll", "size": 15144, "sha256": "AEE0A10EDCF634876126B0DE882D01F432DE3EB7CBFCA0565E330EFE336D6DC0" }, { "path": "Service/System.Security.Principal.Windows.dll", "size": 186152, "sha256": "AACE487981F8C9077620ABF9C9D236CE5EF98241CF4222FBB49C717286F2CD0F" }, { "path": "Service/System.Security.SecureString.dll", "size": 15184, "sha256": "A8C666CCE29278836FEE40D1058EBB55B56631056A26117176FCE6ADB793187F" }, { "path": "Service/System.ServiceModel.Web.dll", "size": 16720, "sha256": "059D12D427D2CF95F90F5CA817C30D12D504DB13A031CF5DCE53BAFCEACD3800" }, { "path": "Service/System.ServiceProcess.dll", "size": 15656, "sha256": "41A80E894C84CC938193A95A0C37FC0D3351D3B090E4FC2FE903CC384D55AF2A" }, { "path": "Service/System.ServiceProcess.ServiceController.dll", "size": 87728, "sha256": "087FFD8EA723D88AB278D68A1E20B1CB513FE3C2A53356308E58E3B91601A283" }, { "path": "Service/System.Text.Encoding.CodePages.dll", "size": 861992, "sha256": "A597E456AC579A3814D4C11CD649CB188DF0D4DC27FF9AE59E36664CCA0927A9" }, { "path": "Service/System.Text.Encoding.dll", "size": 15656, "sha256": "C0DDA0DA1AEADBA8A3BAA8D4704C5E4D9DADC715F72FA11C6A25899A5FA6A35B" }, { "path": "Service/System.Text.Encoding.Extensions.dll", "size": 15656, "sha256": "9AD4679A4005EADC13AF6AE025534F22648DED33AB7C1A796C70C8813EE51977" }, { "path": "Service/System.Text.Encodings.Web.dll", "size": 132904, "sha256": "94AFAD93DFDD00E132467753615BFB4BC3FA6633701082A9553D6CB4EACCF2AC" }, { "path": "Service/System.Text.Json.dll", "size": 1501008, "sha256": "9CF2E2AE44376DBEA191925E571AF703C6D7B53A5C138A0F0F13CD6B8AF2C904" }, { "path": "Service/System.Text.RegularExpressions.dll", "size": 1021736, "sha256": "8B3AF9E3E0215B46C2DCEF1F11C4CDC7AD477140883BCB5C778D04CC051BB0DC" }, { "path": "Service/System.Threading.Channels.dll", "size": 132944, "sha256": "AB05F710069580165C588789E0623E84D213C35594E3E12AE762A6C8265740B6" }, { "path": "Service/System.Threading.dll", "size": 83752, "sha256": "435C110B598D30F118D0E673068B535B693C5A77FAE17398AD46821CE1261ABA" }, { "path": "Service/System.Threading.Overlapped.dll", "size": 15656, "sha256": "739BFB326810706F497DF3B66901E5657B9835AD945FDC6728A27BF932CBAFAA" }, { "path": "Service/System.Threading.Tasks.Dataflow.dll", "size": 489256, "sha256": "39DEF3E572CF7E4BBF11F6565B0A25DB2540D8041C2950E48029E24C14E06342" }, { "path": "Service/System.Threading.Tasks.dll", "size": 16680, "sha256": "D965E3057DCA46B1E8D56012E623A4772AB5AB009231450FDB0F4D2F3875C374" }, { "path": "Service/System.Threading.Tasks.Extensions.dll", "size": 15656, "sha256": "336E8D8F0E79BFFF0C6C38D4A7677384B7951FF66394664BF4FB866ED0BBA982" }, { "path": "Service/System.Threading.Tasks.Parallel.dll", "size": 132904, "sha256": "08FFB9101534E1644C203427BD22B3BEECAAB021F4CE40F4B162B898E2FA66F7" }, { "path": "Service/System.Threading.Thread.dll", "size": 15656, "sha256": "34ED4D7D03BF9A5A5DF7ADDC37A5B75759956FC0D949E25DF61D878238BC560A" }, { "path": "Service/System.Threading.ThreadPool.dll", "size": 15656, "sha256": "5758D73199750AF708EDCA8456EED908B0BFDAACCD7CB2083A6C95DAD4006FDB" }, { "path": "Service/System.Threading.Timer.dll", "size": 15144, "sha256": "39E1B46A16BA5D4A4D7687DCDA0B8838E45198544417D227C7F174C8E15DF56D" }, { "path": "Service/System.Transactions.dll", "size": 16168, "sha256": "2203532BF5483E00686B4F26610A6B9070E59DA55F5218D4294C2C069C6FDFB9" }, { "path": "Service/System.Transactions.Local.dll", "size": 661328, "sha256": "5428F4BCAE83612694E1BEC71849FFFFE7EF34F62AA46DAF3F01250ADB019BD8" }, { "path": "Service/System.ValueTuple.dll", "size": 15144, "sha256": "2079AD867339BD4E2DC4D0E1C9250D9F78E4016DA472C25FEF3C78756244AC5B" }, { "path": "Service/System.Web.dll", "size": 15144, "sha256": "FC90F7D949615646B8D5AF798CFB2BD37FBFE21B1C790B6A2E049BEA36758E2D" }, { "path": "Service/System.Web.HttpUtility.dll", "size": 59216, "sha256": "351125823B848B8CD9E2541B1E0F13ADD351B6DD3C34A6ACB8C243565E5C6251" }, { "path": "Service/System.Windows.dll", "size": 15656, "sha256": "113A298C5E1887F9CC2371376E6AEADF631958C1C255EBAC18282DA7829D3C49" }, { "path": "Service/System.Xml.dll", "size": 23376, "sha256": "0D13174940CBD34CCDB350B2F33037CFF214420850CBF5755D9C407BA8A42407" }, { "path": "Service/System.Xml.Linq.dll", "size": 15656, "sha256": "64CAB6D274DE20FB8EC0D080B96091E85AF0DDFC9619869169E8C41D5C1B02C0" }, { "path": "Service/System.Xml.ReaderWriter.dll", "size": 21800, "sha256": "7CBF62BEA50B44B1350FC241281B8C5BF1373CB9AD03304B10F5B0D4805EDB47" }, { "path": "Service/System.Xml.Serialization.dll", "size": 16168, "sha256": "7823BBFDCB819BD585488ADEB6612CAB2357DC2DF5E4A85E0F2A02079C2EC736" }, { "path": "Service/System.Xml.XDocument.dll", "size": 15656, "sha256": "E5A4EF2A7F8C927DC5C587EEB4B5BF1A7264A89825C3D7313082447D3446A11B" }, { "path": "Service/System.Xml.XmlDocument.dll", "size": 15656, "sha256": "48781BEA76DDCE3732F316BCC01BB375910B18B4D83DE62B6570835E09DAB363" }, { "path": "Service/System.Xml.XmlSerializer.dll", "size": 17744, "sha256": "EA1EB8DA8A46BAFE8EE7A8628900E5C4A3FE23CABC7D63D5BE5EB5EDD3FB76FB" }, { "path": "Service/System.Xml.XPath.dll", "size": 15696, "sha256": "CD0B232B8B161A4167B77387885B13E6BF938DFCE4ADDFD68A646FA2E5471FCF" }, { "path": "Service/System.Xml.XPath.XDocument.dll", "size": 30544, "sha256": "01F4F51C85B1533EEF9EF35FCEC4C281565E661A415F7CB10422C3840C5973F7" }, { "path": "Service/WindowsBase.dll", "size": 16208, "sha256": "D2B82FD6347B45B6BC3FF23C60D215A8431906D25B68BF84A2FF6A0B2C46AE9E" } ] } ================================================================================ FILE: PRODUCTION_TEST_DATA_AUDIT.md ================================================================================ # PRODUCTION_TEST_DATA_AUDIT 本清单详细记录生产数据库 `classnotify` 中经实测盘点的所有测试与 Benchmark 污染数据,严格基于数据库实际记录与来源测试代码进行分类。 --- ## 1. 污染原因专项分析 ### 为什么真实通知 `msg_1789946143794_c7b3` 会给 `dev_bench_1` 和 `dev_bench_2` 创建 Receipt? 在此前执行的 `Test 7` (性能基准测试) 中,为了测试多端回执查询性能,测试代码直接向数据库添加了两个测试设备: ```csharp var dev1 = "dev_bench_1"; var dev2 = "dev_bench_2"; db.Devices.Add(new Device { Id = dev1, TenantId = "t_beijing_no4", ClassroomId = "cls_802", ... }); db.Devices.Add(new Device { Id = dev2, TenantId = "t_beijing_no4", ClassroomId = "cls_802", ... }); ``` 这两个测试设备被绑定在生产真实班级 `t_beijing_no4` / `cls_802` 下。 当后续使用真实教师 `teacher_zhang` 向 `cls_802` 发送真实端到端通知 `msg_1789946143794_c7b3` 时,服务端根据设计查询了 `cls_802` 下的**所有活跃设备**,包括 `dev_b510ddb1` (真实设备)、`dev_bench_1` (测试设备)、`dev_bench_2` (测试设备),因此同时为这三台设备生成了 `NotificationReceipt`。 --- ## 2. 生产数据库污染实体完整盘点表 | Entity | ID / 匹配条件 | 数量 | 来源测试 | 是否允许删除 | 处置说明 | | :--- | :--- | :--- | :--- | :--- | :--- | | **NotificationReceipts** | `Id LIKE 'rcpt_b1_%' OR Id LIKE 'rcpt_b2_%'` | 19,984 | Test 7 (Benchmark 自动生成的压测回执) | **允许删除** | 彻底删除 | | **NotificationReceipts** | `NotificationId = 'msg_1789946143794_c7b3' AND DeviceId IN ('dev_bench_1', 'dev_bench_2')` | 2 | Test 7 遗留测试设备在真实通知下产生 | **允许删除** | 仅删除测试设备回执,保留真实设备 `dev_b510ddb1` 回执与 Notification | | **NotificationReceipts** | `NotificationId IN ('msg_crud_717f903c', 'msg_crud_4e6cbd8b', 'msg_multi_53b72fdb', 'msg_multi_fb1e043d')` | 6 | Test 3 & Test 6 (CRUD 与多端隔离自动化测试) | **允许删除** | 彻底删除 | | **Notifications** | `Id LIKE 'msg_bench_%'` | 9,992 | Test 7 (Benchmark 自动生成的压测通知) | **允许删除** | 彻底删除 | | **Notifications** | `Id IN ('msg_crud_717f903c', 'msg_crud_4e6cbd8b', 'msg_multi_53b72fdb', 'msg_multi_fb1e043d')` | 4 | Test 3 & Test 6 (CRUD 与多端隔离测试通知) | **允许删除** | 彻底删除 | | **DeviceCredentials** | `DeviceId IN ('dev_5d84e507', 'dev_5a51f5bf', 'dev_9730d709', 'dev_b357beec', 'dev_2ab5050c', 'dev_47ad348c', 'dev_6957c6fe', 'dev_59f4ea53')` | 8 | Test 3, Test 5, Test 6 激活产生的凭据记录 | **允许删除** | 彻底删除 | | **ActivationCodes** | `TenantId LIKE 't_test_%' OR Code LIKE 'T_BE-%' OR Code LIKE 'ROLLBACK-%'` | 11 | Test 3, Test 4, Test 5, Test 6 生成的测试激活码 | **允许删除** | 彻底删除 | | **Devices** | `Id IN ('dev_bench_1', 'dev_bench_2')` | 2 | Test 7 性能压测设备 | **允许删除** | 彻底删除 | | **Devices** | `Id IN ('dev_5d84e507', 'dev_5a51f5bf', 'dev_9730d709', 'dev_b357beec', 'dev_2ab5050c', 'dev_47ad348c', 'dev_6957c6fe', 'dev_59f4ea53')` | 8 | Test 3, Test 5, Test 6 激活的测试设备 | **允许删除** | 彻底删除 | | **Users** | `TenantId LIKE 't_test_%'` (`usr_c303c3bf`, `usr_9a4a9ef4`, `usr_e58ca5ae`) | 3 | Test 3 创建的测试教师 (`teacher_crud_*`) | **允许删除** | 彻底删除 | | **Classrooms** | `TenantId LIKE 't_test_%' OR Id LIKE 'cls_multi_%'` | 5 | Test 3 & Test 6 创建的测试班级 (`cls_901`, `cls_multi_*`) | **允许删除** | 彻底删除 | | **Tenants** | `Id LIKE 't_test_%'` (`t_test_crud_347e7f`, `t_test_crud_c95ae9`, `t_test_crud_a42339`) | 3 | Test 3 创建的测试学校 | **允许删除** | 彻底删除 | --- ## 3. 必须保留的真实历史与生产数据汇总 | Entity | 保留的 ID / 范围 | 保留数量 | 说明 | | :--- | :--- | :--- | :--- | | **Tenants** | `global`, `t_beijing_no4`, `t_shanghai_high` | **3** | 平台全局租户与真实学校 | | **Classrooms** | `(t_beijing_no4, cls_801)`, `(t_beijing_no4, cls_802)`, `(t_shanghai_high, cls_801)` | **3** | 真实班级 | | **Users** | `admin` (SuperAdmin), `admin_bj4`, `admin_sh`, `teacher_zhang`, `teacher_li`, `hacker_admin_1920093037` | **6** | 真实管理员与教师用户 | | **Devices** | `dev_b510ddb1` (真实在线 Windows 大屏), 以及真实历史设备 `dev_2fc829d2`, `dev_557d082f`, `dev_65058bfd`, `dev_97591dbc` | **5** | 真实设备 | | **DeviceCredentials** | `dev_2fc829d2`, `dev_65058bfd` | **2** | 历史设备凭据 | | **ActivationCodes** | 真实历史与演示码 11 个 (`50F3-FCE4`, `720C-F543`, `8143-33EE`, `90C5-8AF3`, `A9D0-7E47`, `BJ81-2026`, `BJ81-DEMO`, `BJ82-2026`, `D040-C4BC`, `SH01-2026`, `TEST-2026`) | **11** | 真实激活码 | | **Notifications** | 历史真实通知 7 条 + P1 在线验证通知 `msg_1789946143794_c7b3` | **8** | 真实通知 | | **NotificationReceipts** | 真实设备 `dev_b510ddb1` (7 条) + 历史设备 `dev_2fc829d2` (1 条) | **8** | 真实通知回执 | | **MigrationMarkers** | `JsonToPostgreSql_v1` | **1** | 迁移幂等标记 | --- ## 4. 清理前后数据量精确比对预估 | 实体表 | 清理前总数 | 拟删除测试数据量 | 清理后保留真实数据量 | | :--- | :--- | :--- | :--- | | **Tenants** | 6 | **3** | **3** | | **Classrooms** | 8 | **5** | **3** | | **Users** | 9 | **3** | **6** | | **Devices** | 15 | **10** (含 dev_bench_1, dev_bench_2) | **5** (含真实 dev_b510ddb1) | | **DeviceCredentials** | 10 | **8** | **2** | | **ActivationCodes** | 22 | **11** | **11** | | **Notifications** | 10,004 | **9,996** (9,992 压测 + 4 测试) | **8** | | **NotificationReceipts** | 20,000 | **19,992** (19,984 压测 + 2 关联 + 6 测试) | **8** | | **MigrationMarkers** | 1 | **0** | **1** | ================================================================================ FILE: Publish-AuditSnapshot.ps1 ================================================================================ # ============================================================================== # ClassNotify Automated Audit Snapshot Publisher # Target: Tokyo VPS (/srv/classnotify-audit/releases/) # Pointer: /srv/classnotify-audit/current -> releases/ # Acceptance: /srv/classnotify-audit/acceptance/ # Primary Domain: https://audit.paradise.eu.org # Fallback Domain: https://classnotify.paradise.eu.org/audit-sec-9a7f8b2c4e # ============================================================================== param ( [string]$SnapshotId = "20260925-100029-8BF97EAC", [string]$Version = "2.5.0", [string]$VpsHost = "158.179.179.29", [string]$SshKey = "C:\Users\Administrator\.ssh\", [string]$RemoteDir = "/srv/classnotify-audit", [string]$AuditBaseUrl = "https://audit.paradise.eu.org", [string]$FallbackBaseUrl = "https://classnotify.paradise.eu.org/audit-sec-9a7f8b2c4e" ) $ErrorActionPreference = "Stop" $root = $PSScriptRoot if (-not $root) { $root = Get-Location } Write-Host "==========================================================" -ForegroundColor Cyan Write-Host " ClassNotify Audit Snapshot Publishing Starting " -ForegroundColor Cyan Write-Host " Target SnapshotId: $SnapshotId " -ForegroundColor Cyan Write-Host "==========================================================" -ForegroundColor Cyan # 1. Prepare Staging Directory $staging = Join-Path $root ".audit_staging" if (Test-Path $staging) { Remove-Item $staging -Recurse -Force } New-Item -ItemType Directory -Path $staging -Force | Out-Null Write-Host "`n[1/7] Copying source files to staging..." -ForegroundColor Yellow $excludeDirs = @( "bin", "obj", "node_modules", ".gradle", "build", "dist", "publish_linux", "publish_linux_v2", "publish_server_arm64", "staging", ".audit_staging", ".git", ".idea", ".vs", ".vscode" ) $excludeExts = @( ".exe", ".dll", ".pdb", ".apk", ".aab", ".node", ".log", ".tmp", ".user", ".suo", ".tar.gz", ".zip" ) function Copy-SourceTree([string]$sourceDir, [string]$targetDir) { if (-not (Test-Path $sourceDir)) { return } New-Item -ItemType Directory -Path $targetDir -Force | Out-Null $items = Get-ChildItem -Path $sourceDir -Force foreach ($item in $items) { if ($item.PSIsContainer) { if ($excludeDirs -contains $item.Name) { continue } Copy-SourceTree $item.FullName (Join-Path $targetDir $item.Name) } else { if ($excludeExts -contains $item.Extension.ToLower()) { if ($item.Name -ne "gradle-wrapper.jar") { continue } } Copy-Item -Path $item.FullName -Destination $targetDir -Force } } } Copy-SourceTree (Join-Path $root "src") (Join-Path $staging "src") Copy-SourceTree (Join-Path $root "tests") (Join-Path $staging "tests") Copy-SourceTree (Join-Path $root "ops") (Join-Path $staging "ops") Copy-SourceTree (Join-Path $root "packaging_p2") (Join-Path $staging "packaging_p2") $rootFiles = @( "ClassNotify.sln", "build_installer.ps1", "update_vps.ps1", "test_p0_fixes.ps1", "test_vps_security.ps1", "Publish-AuditSnapshot.ps1", "README.md", "walkthrough.md", "implementation_plan.md", "AUDIT_BUILD_RESULTS.md", "PRODUCTION_TEST_DATA_AUDIT.md" ) foreach ($rf in $rootFiles) { $srcFile = Join-Path $root $rf if (Test-Path $srcFile) { Copy-Item -Path $srcFile -Destination $staging -Force } } $sqlFiles = Get-ChildItem -Path $root -Filter "*.sql" -File foreach ($sql in $sqlFiles) { Copy-Item -Path $sql.FullName -Destination $staging -Force } # 2. Redact Sensitive Secrets in Staging Write-Host "`n[2/7] Redacting sensitive credentials in staging..." -ForegroundColor Yellow $binaryExts = @(".exe", ".dll", ".pdb", ".apk", ".aab", ".node", ".jar", ".zip", ".tar.gz", ".png", ".jpg", ".jpeg", ".ico", ".woff", ".woff2", ".ttf", ".eot") $filesToScan = Get-ChildItem -Path $staging -Recurse -File | Where-Object { $binaryExts -notcontains $_.Extension.ToLower() -and $_.Name -ne "latest.zip" -and $_.Name -ne "latest-source.txt" -and $_.Name -ne "manifest.json" } $revokedDbPass = "167d7d74" + "0f039de5" + "68c8c8f7" + "0083c16c" + "00d682d1" + "8d34a27c" $tokyoKey = "id_rsa_" + "tokyo" foreach ($file in $filesToScan) { try { $content = [System.IO.File]::ReadAllText($file.FullName, [System.Text.Encoding]::UTF8) } catch { continue } $modified = $false if ($content -match "-----BEGIN[ A-Z0-9_-]*PRIVATE KEY-----") { $content = [System.Text.RegularExpressions.Regex]::Replace($content, "-----BEGIN[ A-Z0-9_-]*PRIVATE KEY-----[\s\S]*?-----END[ A-Z0-9_-]*PRIVATE KEY-----", "") $modified = $true } if ($content -match $tokyoKey) { $content = $content.Replace($tokyoKey, "") $modified = $true } if ($content -match $revokedDbPass) { $content = $content.Replace($revokedDbPass, "[REVOKED_DB_PASSWORD_REDACTED]") $modified = $true } if ($content -match "(?i)(;\s*Password\s*=\s*)(?!') $modified = $true } if ($content -match 'CLASSNOTIFY_TEST_DB_CONNECTION=;\r\n"'''']+') { $content = [System.Text.RegularExpressions.Regex]::Replace($content, 'CLASSNOTIFY_TEST_DB_CONNECTION=;\r\n"'''']+', 'CLASSNOTIFY_TEST_DB_CONNECTION=') $modified = $true } if ($modified) { [System.IO.File]::WriteAllText($file.FullName, $content, [System.Text.Encoding]::UTF8) } } # 2.5 Fail-Closed Pre-Publish Security Gate Write-Host " Running pre-publish fail-closed security gate..." -ForegroundColor Yellow $leakFound = $false $allFilesForGate = Get-ChildItem -Path $staging -Recurse -File | Where-Object { $binaryExts -notcontains $_.Extension.ToLower() -and $_.Name -ne "latest.zip" -and $_.Name -ne "latest-source.txt" -and $_.Name -ne "manifest.json" } foreach ($file in $allFilesForGate) { try { $checkContent = [System.IO.File]::ReadAllText($file.FullName, [System.Text.Encoding]::UTF8) } catch { continue } $isMetaSanitizerScript = ($file.Name -eq "Publish-AuditSnapshot.ps1" -or $file.Name -eq "test_snapshot_sanitizer.ps1") if (-not $isMetaSanitizerScript -and $checkContent -match $revokedDbPass) { Write-Host " [SECURITY GATE FATAL] Revoked password leaked in staged file: $($file.FullName)" -ForegroundColor Red $leakFound = $true } if ($checkContent -match "-----BEGIN[ A-Z0-9_-]*PRIVATE KEY-----") { Write-Host " [SECURITY GATE FATAL] Unredacted private key found in staged file: $($file.FullName)" -ForegroundColor Red $leakFound = $true } if (-not $isMetaSanitizerScript -and $checkContent -match "(?i);\s*Password=(?!$null } catch { } $manifestObj = [ordered]@{ project = "ClassNotify" version = $Version snapshotId = $snapshotId generatedAt = $generatedAt gitCommit = if ($gitCommit) { $gitCommit.Trim() } else { "" } sourceFileCount = $sourceFileCount archiveFileCount = $archiveFileCount releaseArtifactCount = 10 fileCount = $sourceFileCount archive = "latest.zip" archiveSha256 = $zipSha256 sourceText = "latest-source.txt" sourceTextSha256 = $sourceTxtSha256 webFrontendSource = "web-frontend-source.txt" webFrontendSourceSha256 = $webSourceSha256 snapshotBaseUrl = "$AuditBaseUrl/snapshot/$snapshotId/" sourceUrl = "$AuditBaseUrl/snapshot/$snapshotId/latest-source.txt" archiveUrl = "$AuditBaseUrl/snapshot/$snapshotId/latest.zip" acceptanceManifestUrl = "$AuditBaseUrl/acceptance/manifest-$snapshotId.json" acceptanceSourceUrl = "$AuditBaseUrl/acceptance/release-$snapshotId.txt" webFrontendSourceUrl = "$AuditBaseUrl/acceptance/web-frontend-source-$snapshotId.txt" } $manifestFile = Join-Path $staging "manifest.json" $jsonContent = $manifestObj | ConvertTo-Json -Depth 5 [System.IO.File]::WriteAllText($manifestFile, $jsonContent, (New-Object System.Text.UTF8Encoding($false))) $acceptanceManifestFile = Join-Path $staging "manifest-$snapshotId.json" Copy-Item $manifestFile $acceptanceManifestFile -Force $releaseArtifactCount = 10 # 8. Upload to Oracle VPS via SCP to /srv/classnotify-audit/releases// Write-Host "`n[7/7] Uploading to Oracle VPS ($RemoteDir/releases/$snapshotId)..." -ForegroundColor Yellow $releaseRemoteDir = "$RemoteDir/releases/$snapshotId" $auditBuildResults = Join-Path $staging "AUDIT_BUILD_RESULTS.md" $sshCmdInit = "mkdir -p $releaseRemoteDir $RemoteDir/acceptance $RemoteDir/snapshot/$snapshotId" ssh -n -o BatchMode=yes -o ConnectTimeout=30 -i $SshKey -o StrictHostKeyChecking=no "root@${VpsHost}" $sshCmdInit if ($LASTEXITCODE -ne 0) { throw "Failed to create remote release directory" } scp -B -o BatchMode=yes -o ConnectTimeout=30 -i $SshKey -o StrictHostKeyChecking=no ` $zipOutput ` $sourceTxtPath ` $manifestFile ` $treeFile ` $auditReadme ` $auditBuildResults ` $webSourcePath ` $acceptanceReleaseFile ` $acceptanceWebFile ` $acceptanceManifestFile ` "root@${VpsHost}:${releaseRemoteDir}/" if ($LASTEXITCODE -ne 0) { throw "SCP upload failed" } # On remote server: verify files, switch current symlink atomically, and retain last 10 releases $remoteSwitchCmd = @" set -e # 1. Verify files exist in release test -f $releaseRemoteDir/manifest.json test -f $releaseRemoteDir/latest-source.txt test -f $releaseRemoteDir/latest.zip test -f $releaseRemoteDir/AUDIT_FILE_TREE.txt test -f $releaseRemoteDir/AUDIT_README.md test -f $releaseRemoteDir/AUDIT_BUILD_RESULTS.md test -f $releaseRemoteDir/web-frontend-source.txt test -f $releaseRemoteDir/release-$snapshotId.txt test -f $releaseRemoteDir/web-frontend-source-$snapshotId.txt test -f $releaseRemoteDir/manifest-$snapshotId.json # 2. Verify SHA256 hashes on server REMOTE_SRC_HASH=`$(sha256sum $releaseRemoteDir/latest-source.txt | awk '{print toupper(`$1)}') REMOTE_ZIP_HASH=`$(sha256sum $releaseRemoteDir/latest.zip | awk '{print toupper(`$1)}') REMOTE_WEB_HASH=`$(sha256sum $releaseRemoteDir/web-frontend-source.txt | awk '{print toupper(`$1)}') if [ "`$REMOTE_SRC_HASH" != "$sourceTxtSha256" ]; then echo "ERROR: Remote source hash mismatch: `$REMOTE_SRC_HASH != $sourceTxtSha256" exit 1 fi if [ "`$REMOTE_ZIP_HASH" != "$zipSha256" ]; then echo "ERROR: Remote zip hash mismatch: `$REMOTE_ZIP_HASH != $zipSha256" exit 1 fi if [ "`$REMOTE_WEB_HASH" != "$webSourceSha256" ]; then echo "ERROR: Remote web hash mismatch: `$REMOTE_WEB_HASH != $webSourceSha256" exit 1 fi # 3. Synchronize acceptance directory cp -p $releaseRemoteDir/release-$snapshotId.txt $RemoteDir/acceptance/ cp -p $releaseRemoteDir/web-frontend-source-$snapshotId.txt $RemoteDir/acceptance/ cp -p $releaseRemoteDir/manifest-$snapshotId.json $RemoteDir/acceptance/ cp -p $releaseRemoteDir/manifest.json $RemoteDir/acceptance/manifest.json # 4. Atomic switch current symlink and synchronize root / snapshot directories ln -sfn $releaseRemoteDir $RemoteDir/current cp -p $releaseRemoteDir/* $RemoteDir/ 2>/dev/null || true mkdir -p $RemoteDir/snapshot/$snapshotId cp -p $releaseRemoteDir/* $RemoteDir/snapshot/$snapshotId/ 2>/dev/null || true # 5. Retain last 10 releases (never delete current target) CURRENT_TARGET=`$(readlink -f $RemoteDir/current) cd $RemoteDir/releases for dir in `$(ls -dt */ 2>/dev/null | tail -n +11); do DIR_FULL=`$(readlink -f "`$dir") if [ "`$DIR_FULL" != "`$CURRENT_TARGET" ]; then rm -rf "`$dir" fi done chmod -R 755 $RemoteDir systemctl reload caddy || systemctl restart caddy "@ ssh -o BatchMode=yes -o ConnectTimeout=30 -i $SshKey -o StrictHostKeyChecking=no "root@${VpsHost}" $remoteSwitchCmd if ($LASTEXITCODE -ne 0) { throw "Remote validation or symlink switch failed" } Write-Host " Remote verification passed! /srv/classnotify-audit/current switched to releases/$snapshotId" -ForegroundColor Green # 9. Strict Post-Publish End-to-End Consistency Verification Write-Host "`n[Strict Consistency Check] Testing HTTPS endpoints..." -ForegroundColor Cyan $testBases = @($AuditBaseUrl, $FallbackBaseUrl) $consistencyPassed = $true foreach ($base in $testBases) { try { Write-Host " Testing base URL: $base" -ForegroundColor Yellow $manUrl = if ($base -like "*/audit-sec-*") { "$base/manifest.json" } else { "$base/manifest.json" } $manifestResp = Invoke-RestMethod -Uri $manUrl -Method Get -UseBasicParsing Write-Host " [OK] manifest.json snapshotId: $($manifestResp.snapshotId)" -ForegroundColor Green if ($manifestResp.snapshotId -ne $snapshotId) { Write-Host " [FAIL] SnapshotId mismatch! Expected $snapshotId, got $($manifestResp.snapshotId)" -ForegroundColor Red $consistencyPassed = $false } # Check Acceptance Manifest $accManUrl = if ($base -like "*/audit-sec-*") { "$base/acceptance/manifest-$snapshotId.json" } else { "$base/acceptance/manifest-$snapshotId.json" } $accManResp = Invoke-RestMethod -Uri $accManUrl -Method Get -UseBasicParsing Write-Host " [OK] acceptance/manifest-$snapshotId.json: $($accManResp.snapshotId)" -ForegroundColor Green # Check Acceptance Release Source Header $accSrcUrl = if ($base -like "*/audit-sec-*") { "$base/acceptance/release-$snapshotId.txt" } else { "$base/acceptance/release-$snapshotId.txt" } $srcResp = Invoke-WebRequest -Uri $accSrcUrl -Method Get -UseBasicParsing $srcText = $srcResp.Content Write-Host " [OK] acceptance/release-$snapshotId.txt: Length=$($srcText.Length)" -ForegroundColor Green # Verify 5 critical components are inside release source $requiredMarkers = @( "CorrelationMiddleware", "DeviceHeartbeatDto", "DeviceSelfCheck", "classnotify-backup.sh", "classnotify-restore-gate.sh" ) foreach ($marker in $requiredMarkers) { if ($srcText -match $marker) { Write-Host " [FOUND] Required component: $marker" -ForegroundColor Green } else { Write-Host " [MISSING] Required component: $marker" -ForegroundColor Red $consistencyPassed = $false } } # Check Acceptance Web Frontend Source $accWebUrl = if ($base -like "*/audit-sec-*") { "$base/acceptance/web-frontend-source-$snapshotId.txt" } else { "$base/acceptance/web-frontend-source-$snapshotId.txt" } $webResp = Invoke-WebRequest -Uri $accWebUrl -Method Get -UseBasicParsing Write-Host " [OK] acceptance/web-frontend-source-$snapshotId.txt: Length=$($webResp.Content.Length)" -ForegroundColor Green } catch { Write-Host " [FAIL] Exception checking $base : $($_.Exception.Message)" -ForegroundColor Red $consistencyPassed = $false } } # Clean up local staging directory if (Test-Path $staging) { Remove-Item $staging -Recurse -Force } if (-not $consistencyPassed) { throw "Audit Snapshot Consistency Verification FAILED!" } Write-Host "`n==========================================================" -ForegroundColor Green Write-Host " Audit snapshot published successfully! " -ForegroundColor Green Write-Host "==========================================================" -ForegroundColor Green Write-Host "Primary Acceptance Manifest: $AuditBaseUrl/acceptance/manifest-$snapshotId.json" -ForegroundColor Cyan Write-Host "Primary Acceptance Release: $AuditBaseUrl/acceptance/release-$snapshotId.txt" -ForegroundColor Cyan Write-Host "Primary Acceptance Web: $AuditBaseUrl/acceptance/web-frontend-source-$snapshotId.txt" -ForegroundColor Cyan Write-Host "Fallback Acceptance Manifest: $FallbackBaseUrl/acceptance/manifest-$snapshotId.json" -ForegroundColor Cyan Write-Host "Source SHA256: $sourceTxtSha256" -ForegroundColor Yellow Write-Host "Web Source SHA256: $webSourceSha256" -ForegroundColor Yellow Write-Host "Archive SHA256: $zipSha256" -ForegroundColor Yellow ================================================================================ FILE: README.md ================================================================================ # ClassNotify 班级多媒体实时广播与通知系统 (V2.1.0 Commercial) > 专为中小学及职校设计的企业级班级通知与大屏调度系统。教师在办公室通过 **Web 网页 / Android 手机 App** 向指定班级多媒体屏幕精准下发呼叫或通知(如:“请张三到办公室”、“英语课代表来一下”)。教室大屏电脑即刻**置顶浮窗、窗口剧烈抖动、语音播报 (TTS)、倒计时自动消失**,并通过双向通道提供多设备独立回执确认。 --- ## 🌟 系统技术栈与核心架构 ``` [ 教师控制端 ] ┌──────────────┴──────────────┐ │ │ [ React 18 SPA ] [ Android App ] (Vite + TailwindCSS) (Kotlin + Compose) │ │ └──────────────┬──────────────┘ │ HTTPS / WSS ▼ [ Caddy 2 Reverse Proxy / TLS ] (Strict CORS, No-Cache, RateLimit) │ Loopback (127.0.0.1:5000) ▼ [ ClassNotify.Server (.NET 8) ] ┌───────────────────────┼───────────────────────┐ ▼ ▼ ▼ [ ASP.NET Core API ] [ SignalR Hubs ] [ Background Workers ] (JWT/Identity/RateLimiter) (/hubs/device,teacher) (Token Cleanup/Metrics) │ │ │ └───────────────────────┼───────────────────────┘ ▼ [ PostgreSQL 16 + EF Core 8 ] (Tenants, Classrooms, Devices, Users, Receipts, Notifications) ▲ │ WSS (Encrypted Device Token) ┌──────────────┴──────────────┐ │ Windows 教室多媒体端 │ │ │ [ ClassNotify.Service ] [ ClassNotify.Client ] (.NET 8 Worker Service) (.NET 8 WPF UI Client) ┌─────────────────────┐ ┌────────────────────┐ │ - SignalR WSS Client│ │ - 置顶居中通知浮窗 │ │ - Named Pipe Server │◄─────►│ - 物理窗口剧烈抖动 │ │ - 严格 SID/ACL 权限 │ IPC │ - Windows 原生 TTS │ │ - 双向心跳/假死检测 │ │ - 单例 Mutex 防重复 │ │ - Session 自动拉起 │ │ - 一键已阅回执反馈 │ └─────────────────────┘ └────────────────────┘ ``` ### 1. 云端中继与服务端 (Server) - **运行时**: ASP.NET Core 8 (.NET 8.0 LTS),跨平台运行于 Linux (Ubuntu 22.04 / systemd)。 - **实时通信**: SignalR Core WebSocket 长连接,支持多租户隔离群组、心跳保活、单点挤占与状态自愈。 - **持久化**: PostgreSQL 16 + Entity Framework Core 8,具备独立的设备投递与已读确认回执模型 (`NotificationReceipt`)。 - **商用安全加固**: - 工业级密码哈希:ASP.NET Core `PasswordHasher`(PBKDF2/SHA256),支持旧开发哈希平滑热升级。 - 动态严签 JWT:严格校验 Issuer、Audience、Lifetime,强制要求 64 字节密钥且无任何代码级硬编码。 - 来源隔离限流:`RateLimiter` 分别针对 IP(登录/激活)与已认证教师(发信)独立分区计数,阻断全局雪崩。 - 严格反向代理信任:`ForwardedHeaders` 仅信任宿主机回环地址 (`127.0.0.1`) 与 `ForwardLimit = 1`。 ### 2. 教室端系统 (Windows Client & Service) - **UI 呈现**: .NET 8 WPF,原生无边框毛玻璃、高对比度置顶浮窗、窗口剧烈抖动、Windows 原生 SAPI 中文播报。 - **后台守护**: .NET 8 Windows Worker Service (`ClassNotifyService`),开机随系统引导自动启动。 - **安全 IPC 通信**: 独占命名管道 (`NamedPipeServer`),加固 Windows 安全描述符(仅允许 SYSTEM, Administrators 与当前登录 Interactive User SID 访问)。 - **三层高可用自愈**: - **进程级监控**: 服务端 Watchdog 自动探测客户端崩溃并重新拉起。 - **假死自动恢复**: 管道心跳 Pong 超时检测;当主线程卡死持有全局单例 Mutex 时,看门狗强制杀戮僵尸进程并安全重启。 - **防反复拉起退避**: 恢复失败指数级退避(5s / 10s / 30s),防止无意义重启风暴。 --- ## 📁 目录结构 ``` ClassNotify/ ├── src/ │ ├── Server/ │ │ └── ClassNotify.Server/ # ASP.NET Core 8 Web API & SignalR Hub │ ├── Shared/ │ │ └── ClassNotify.Shared/ # 跨端通用 DTO、实体定义与通信契约 │ ├── Windows/ │ │ ├── ClassNotify.Client/ # .NET 8 WPF 教室端浮窗与播报程序 │ │ ├── ClassNotify.Service/ # .NET 8 Windows 守护后台服务 (Worker) │ │ └── ClassNotify.Setup/ # 客户端 Inno Setup 自动化打包脚本 │ ├── Web/ # 教师端 React 18 SPA (Vite, TypeScript, Tailwind) │ └── Android/ # 教师端 Android 原生 App (Kotlin, Jetpack Compose) │ ├── tests/ │ ├── ClassNotify.RateLimitTests/ # 分区限流 A/B 隔离性真实集成测试套件 │ └── ClassNotify.AuthTests/ # 密码哈希、JWT 签名与启动守卫单元测试 │ ├── ops/ │ ├── caddy/ │ │ └── classnotify.caddy # 生产 Caddy 纯净配置片段 (版本受控) │ ├── systemd/ │ │ ├── classnotify-healthcheck.service # 系统健康监控 Service │ │ └── classnotify-healthcheck.timer # 5分钟健康巡检 Timer │ ├── deploy_server.sh # 服务端原子部署与自动回滚核心控制器 │ ├── deploy_caddy.sh # Caddy 配置安全部署与校验脚本 │ ├── classnotify-healthcheck.sh # 综合健康监控与分级告警脚本 │ ├── classnotify-offsite-backup.sh # 数据库异地备份框架 (rclone) │ ├── verify-production-config.sh # 生产配置漂移与权限一致性自检工具 │ ├── test_broken_deployment.ps1 # 故障部署与自动回滚演练脚本 │ ├── Deploy-CaddyConfig.ps1 # 远程 Caddy 部署与端点校验 │ └── schema.sql # PostgreSQL 16 数据库结构定义 │ ├── update_vps.ps1 # 服务端自动化构建、打包、上传与原子发布 ├── Publish-AuditSnapshot.ps1 # 自动化不可变审计快照生成与发布工具 ├── ClassNotify.sln # .NET 8 统一解决方案 └── README.md ``` --- ## 🛠️ 运维与部署规范 ### 1. 服务端 Release + Current 原子发布与回滚 生产服务器严格废弃直接覆盖 live 目录的陈旧做法,采用与工业界标准一致的软链原子切换方案: - **发布目录**: `/var/www/classnotify/releases//` - **运行软链**: `/var/www/classnotify/current -> releases/` - **systemd 进程**: 永远从 `/var/www/classnotify/current/ClassNotify.Server.dll` 启动。 #### 自动化部署命令 ```powershell # 编译 arm64 制品、打包并执行远程原子发布 powershell -ExecutionPolicy Bypass -File .\update_vps.ps1 ``` #### 双层健康门禁 (Health Gate) 与自动回滚 部署控制器切换软链并重启服务后,将执行最多 10 次双层健康检查: 1. 本地 Kestrel (`http://127.0.0.1:5000/api/health`) 确认 `status=Healthy` 且 `database=Connected`。 2. 公网 Caddy 域名 (`https://classnotify.paradise.eu.org/api/health`) 确认外部代理正常。 - **通过**: 标记 `DEPLOY SUCCESS`,自动保留最近 5 个成功版本,清理陈旧 release(绝不误删 current 与 previous)。 - **失败**: 立即触发**自动回滚**(2秒内将 `current` 指向旧版本并重启服务),标记故障包为 `.failed` 并退出非零码。 #### 故障演练命令 ```powershell # 模拟损坏 DLL 的故障发布,实测秒级自动回滚能力 powershell -ExecutionPolicy Bypass -File .\update_vps.ps1 -BrokenTest ``` --- ### 2. 生产 Caddy 配置管理 生产 Caddyfile 采用 `import /etc/caddy/classnotify.caddy` 结构,将 ClassNotify 业务与主机其他私密配置彻底物理解耦: ```powershell # 部署并验证 Caddy 片段 powershell -ExecutionPolicy Bypass -File .\ops\Deploy-CaddyConfig.ps1 ``` - 部署脚本自动调用 `caddy validate` 执行静态校验,校验失败绝对不覆盖生产环境。 - 自动校验 SPA 页面 (200)、`/api/health`、SignalR `/hubs/device` (400握手) 及审计端点。 --- ### 3. 数据库容灾与异地备份框架 - **本地保留策略**: `/var/backups/classnotify/` 每日定时备份,保留最近 7 个 daily 镜像与最近 4 周的 weekly 镜像。 - **异地对象存储框架**: 通过 `ops/classnotify-offsite-backup.sh` 支持 `rclone` 自动同步至外部 S3/R2 存储。 - **安全凭据隔离**: 凭据严格置于 `/etc/classnotify/backup.env`(`600 root:root`),绝不进入 Git 仓库与审计镜像。 - **诚实状态汇报**: 未配置外部对象存储凭据时,脚本明确上报 `OFFSITE BACKUP STATUS: BLOCKED - external storage credentials required`,杜绝任何假备份。 --- ### 4. 系统健康监控与定时器 - **巡检脚本**: `/usr/local/bin/classnotify-healthcheck.sh` - **定时调度**: `classnotify-healthcheck.timer` 每 5 分钟自动执行一次。 - **分级告警指标**: - **核心服务**: `classnotify.service`, `postgresql.service`, `caddy.service` 必须处于 `active` 状态。 - **健康接口**: `/api/health` 必须返回 `Healthy` 且数据库 `Connected`。 - **磁盘告警**: 磁盘空间 `< 75%` 判定为 OK;`75% - 85%` 触发 WARN;`> 85%` 触发 CRITICAL 并记录系统错误。 - **备份新鲜度**: 每日备份文件修改时间超过 26 小时触发 CRITICAL;备份解压数据小于 10KB 视为异常。 - **告警推送**: 支持 `/etc/classnotify/monitor.env` 中配置 `ALERT_WEBHOOK_URL` 异步接收告警。 --- ### 5. 生产配置一致性自检 通过单条命令验证整机是否满足零配置漂移与安全基线: ```bash /usr/local/bin/verify-production-config.sh ``` 检验项包括: - `classnotify.service` SHA-256 与仓库 100% 一致 - `classnotify.caddy` SHA-256 与仓库 100% 一致 - `/etc/classnotify/*.env` 权限严格为 `600 root:root` - DataProtection keys 目录权限严格为 `700 www-data:www-data` - PostgreSQL 仅监听 `127.0.0.1:5432` - Kestrel 仅监听 `127.0.0.1:5000` - 各系统守护服务运行正常 --- ## 💻 源码编译与测试 ### 1. 全解决方案编译 ```powershell & "C:\Program Files\dotnet\dotnet.exe" build ClassNotify.sln -c Release # 必须为 0 个警告,0 个错误 ``` ### 2. 自动化集成测试 ```powershell # 运行限流隔离性集成测试 (Auth IP, Activation IP, Send UserId) & "C:\Program Files\dotnet\dotnet.exe" run --project tests/ClassNotify.RateLimitTests -c Release # 运行密码哈希与认证安全测试 (PasswordHasher, JWT Strict Guard) & "C:\Program Files\dotnet\dotnet.exe" run --project tests/ClassNotify.AuthTests -c Release ``` ### 3. 发布不可变审计快照 (Audit Snapshot) ```powershell powershell -ExecutionPolicy Bypass -File .\Publish-AuditSnapshot.ps1 ``` 快照发布系统将全量源码、测试集、运维脚本打包压缩,并在 Oracle VPS 形成版本不可变的归档制品(如 `https://audit.paradise.eu.org/snapshot//manifest.json`),提供给独立审计端查验。 ================================================================================ FILE: schema.sql ================================================================================ -- -- PostgreSQL database dump -- \restrict 72KM05IzNyW7A1TPKp4X6PDt23eMqgwTMDUiZru0Prf9RQcWtauAkd8x8zdv1UB -- Dumped from database version 16.15 (Ubuntu 16.15-1.pgdg22.04+2) -- Dumped by pg_dump version 16.15 (Ubuntu 16.15-1.pgdg22.04+2) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: public; Type: SCHEMA; Schema: -; Owner: postgres -- -- *not* creating schema, since initdb creates it ALTER SCHEMA public OWNER TO postgres; -- -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres -- COMMENT ON SCHEMA public IS ''; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: ActivationCodes; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."ActivationCodes" ( "Code" character varying(50) NOT NULL, "TenantId" text NOT NULL, "ClassroomId" character varying(50) NOT NULL, "ExpiresAt" timestamp with time zone NOT NULL, "IsUsed" boolean NOT NULL, "UsedAt" timestamp with time zone, "UsedByDeviceId" text, "InstallationId" character varying(100) ); ALTER TABLE public."ActivationCodes" OWNER TO classnotify; -- -- Name: Classrooms; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Classrooms" ( "Id" text NOT NULL, "TenantId" text NOT NULL, "DisplayName" character varying(100) NOT NULL, "Grade" character varying(50), "RoomNumber" character varying(50), "CreatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."Classrooms" OWNER TO classnotify; -- -- Name: DeviceCredentials; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."DeviceCredentials" ( "DeviceId" text NOT NULL, "InstallationId" character varying(100) NOT NULL, "DeviceTokenHash" text NOT NULL, "EncryptedRecoverableToken" text NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "RotatedAt" timestamp with time zone ); ALTER TABLE public."DeviceCredentials" OWNER TO classnotify; -- -- Name: Devices; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Devices" ( "Id" text NOT NULL, "TenantId" text NOT NULL, "ClassroomId" text NOT NULL, "DeviceTokenHash" text NOT NULL, "RawDeviceToken" text, "InstallationId" character varying(100), "Hostname" character varying(200), "IsActive" boolean NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "LastHeartbeatAt" timestamp with time zone ); ALTER TABLE public."Devices" OWNER TO classnotify; -- -- Name: DeviceCommands; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."DeviceCommands" ( "Id" character varying(100) NOT NULL, "TenantId" character varying(100) NOT NULL, "DeviceId" character varying(100) NOT NULL, "CommandType" character varying(50) NOT NULL, "Parameters" text, "CreatedBy" character varying(100) NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "ExpiresAt" timestamp with time zone NOT NULL, "StartedAt" timestamp with time zone, "CompletedAt" timestamp with time zone, "Status" character varying(50) NOT NULL, "ResultCode" integer, "ResultMessage" character varying(1000) ); ALTER TABLE public."DeviceCommands" OWNER TO classnotify; -- -- Name: MigrationMarkers; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."MigrationMarkers" ( "Id" character varying(100) NOT NULL, "MigratedAt" timestamp with time zone NOT NULL, "Details" text ); ALTER TABLE public."MigrationMarkers" OWNER TO classnotify; -- -- Name: NotificationReceipts; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."NotificationReceipts" ( "Id" character varying(100) NOT NULL, "NotificationId" character varying(100) NOT NULL, "DeviceId" character varying(100) NOT NULL, "Status" character varying(50) NOT NULL, "DeviceReceivedAt" timestamp with time zone, "DisplayedAt" timestamp with time zone, "AcknowledgedAt" timestamp with time zone, "FailedAt" timestamp with time zone, "FailureReason" character varying(500), "UpdatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."NotificationReceipts" OWNER TO classnotify; -- -- Name: Notifications; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Notifications" ( "Id" character varying(100) NOT NULL, "TenantId" text NOT NULL, "ClassroomId" character varying(50) NOT NULL, "SenderUserId" text, "SenderName" character varying(100) NOT NULL, "Message" text NOT NULL, "Title" character varying(200) NOT NULL, "Priority" character varying(50) NOT NULL, "CreatedAt" timestamp with time zone NOT NULL, "ExpiresAt" timestamp with time zone, "Voice" boolean DEFAULT true NOT NULL, "Shake" boolean DEFAULT true NOT NULL, "DurationSeconds" integer DEFAULT 15 NOT NULL ); ALTER TABLE public."Notifications" OWNER TO classnotify; -- -- Name: Tenants; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Tenants" ( "Id" text NOT NULL, "Name" character varying(200) NOT NULL, "IsActive" boolean NOT NULL, "CreatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."Tenants" OWNER TO classnotify; -- -- Name: Users; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."Users" ( "Id" text NOT NULL, "TenantId" text NOT NULL, "Username" character varying(100) NOT NULL, "PasswordHash" text NOT NULL, "FullName" character varying(100) NOT NULL, "Role" character varying(50) NOT NULL, "CreatedAt" timestamp with time zone NOT NULL ); ALTER TABLE public."Users" OWNER TO classnotify; -- -- Name: __EFMigrationsHistory; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE public."__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL ); ALTER TABLE public."__EFMigrationsHistory" OWNER TO classnotify; -- -- Name: ActivationCodes PK_ActivationCodes; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."ActivationCodes" ADD CONSTRAINT "PK_ActivationCodes" PRIMARY KEY ("Code"); -- -- Name: Classrooms PK_Classrooms; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Classrooms" ADD CONSTRAINT "PK_Classrooms" PRIMARY KEY ("TenantId", "Id"); -- -- Name: DeviceCredentials PK_DeviceCredentials; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCredentials" ADD CONSTRAINT "PK_DeviceCredentials" PRIMARY KEY ("DeviceId"); -- -- Name: Devices PK_Devices; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Devices" ADD CONSTRAINT "PK_Devices" PRIMARY KEY ("Id"); -- -- Name: DeviceCommands PK_DeviceCommands; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCommands" ADD CONSTRAINT "PK_DeviceCommands" PRIMARY KEY ("Id"); -- -- Name: MigrationMarkers PK_MigrationMarkers; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."MigrationMarkers" ADD CONSTRAINT "PK_MigrationMarkers" PRIMARY KEY ("Id"); -- -- Name: NotificationReceipts PK_NotificationReceipts; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."NotificationReceipts" ADD CONSTRAINT "PK_NotificationReceipts" PRIMARY KEY ("Id"); -- -- Name: Notifications PK_Notifications; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Notifications" ADD CONSTRAINT "PK_Notifications" PRIMARY KEY ("Id"); -- -- Name: Tenants PK_Tenants; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Tenants" ADD CONSTRAINT "PK_Tenants" PRIMARY KEY ("Id"); -- -- Name: Users PK_Users; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Users" ADD CONSTRAINT "PK_Users" PRIMARY KEY ("Id"); -- -- Name: __EFMigrationsHistory PK___EFMigrationsHistory; Type: CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."__EFMigrationsHistory" ADD CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId"); -- -- Name: IX_ActivationCodes_ClassroomId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_ActivationCodes_ClassroomId" ON public."ActivationCodes" USING btree ("ClassroomId"); -- -- Name: IX_ActivationCodes_Code; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_ActivationCodes_Code" ON public."ActivationCodes" USING btree ("Code"); -- -- Name: IX_ActivationCodes_InstallationId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_ActivationCodes_InstallationId" ON public."ActivationCodes" USING btree ("InstallationId"); -- -- Name: IX_ActivationCodes_TenantId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_ActivationCodes_TenantId" ON public."ActivationCodes" USING btree ("TenantId"); -- -- Name: IX_Classrooms_TenantId_Id; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Classrooms_TenantId_Id" ON public."Classrooms" USING btree ("TenantId", "Id"); -- -- Name: IX_DeviceCredentials_DeviceId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_DeviceCredentials_DeviceId" ON public."DeviceCredentials" USING btree ("DeviceId"); -- -- Name: IX_DeviceCredentials_InstallationId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_DeviceCredentials_InstallationId" ON public."DeviceCredentials" USING btree ("InstallationId"); -- -- Name: IX_Devices_Id; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_Devices_Id" ON public."Devices" USING btree ("Id"); -- -- Name: IX_Devices_InstallationId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_Devices_InstallationId" ON public."Devices" USING btree ("InstallationId") WHERE ("InstallationId" IS NOT NULL); -- -- Name: IX_Devices_TenantId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Devices_TenantId" ON public."Devices" USING btree ("TenantId"); -- -- Name: IX_Devices_TenantId_ClassroomId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Devices_TenantId_ClassroomId" ON public."Devices" USING btree ("TenantId", "ClassroomId"); -- -- Name: IX_DeviceCommands_DeviceId_Status; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_DeviceCommands_DeviceId_Status" ON public."DeviceCommands" USING btree ("DeviceId", "Status"); -- -- Name: IX_DeviceCommands_Status_ExpiresAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_DeviceCommands_Status_ExpiresAt" ON public."DeviceCommands" USING btree ("Status", "ExpiresAt"); -- -- Name: IX_DeviceCommands_TenantId_DeviceId_CreatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_DeviceCommands_TenantId_DeviceId_CreatedAt" ON public."DeviceCommands" USING btree ("TenantId", "DeviceId", "CreatedAt" DESC); -- -- Name: IX_NotificationReceipts_DeviceId_UpdatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_NotificationReceipts_DeviceId_UpdatedAt" ON public."NotificationReceipts" USING btree ("DeviceId", "UpdatedAt" DESC); -- -- Name: IX_NotificationReceipts_NotificationId_DeviceId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_NotificationReceipts_NotificationId_DeviceId" ON public."NotificationReceipts" USING btree ("NotificationId", "DeviceId"); -- -- Name: IX_NotificationReceipts_DeviceId_Status; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_NotificationReceipts_DeviceId_Status" ON public."NotificationReceipts" USING btree ("DeviceId", "Status"); -- -- Name: IX_Notifications_TenantId_ClassroomId_ExpiresAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Notifications_TenantId_ClassroomId_ExpiresAt" ON public."Notifications" USING btree ("TenantId", "ClassroomId", "ExpiresAt"); -- -- Name: IX_Notifications_ClassroomId_CreatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Notifications_ClassroomId_CreatedAt" ON public."Notifications" USING btree ("ClassroomId", "CreatedAt" DESC); -- -- Name: IX_Notifications_TenantId_CreatedAt; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Notifications_TenantId_CreatedAt" ON public."Notifications" USING btree ("TenantId", "CreatedAt" DESC); -- -- Name: IX_Users_TenantId; Type: INDEX; Schema: public; Owner: classnotify -- CREATE INDEX "IX_Users_TenantId" ON public."Users" USING btree ("TenantId"); -- -- Name: IX_Users_Username; Type: INDEX; Schema: public; Owner: classnotify -- CREATE UNIQUE INDEX "IX_Users_Username" ON public."Users" USING btree ("Username"); -- -- Name: ActivationCodes FK_ActivationCodes_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."ActivationCodes" ADD CONSTRAINT "FK_ActivationCodes_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE RESTRICT; -- -- Name: Classrooms FK_Classrooms_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Classrooms" ADD CONSTRAINT "FK_Classrooms_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE; -- -- Name: DeviceCommands FK_DeviceCommands_Devices_DeviceId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCommands" ADD CONSTRAINT "FK_DeviceCommands_Devices_DeviceId" FOREIGN KEY ("DeviceId") REFERENCES public."Devices"("Id") ON DELETE CASCADE; -- -- Name: DeviceCommands FK_DeviceCommands_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."DeviceCommands" ADD CONSTRAINT "FK_DeviceCommands_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE; -- -- Name: Devices FK_Devices_Classrooms_TenantId_ClassroomId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Devices" ADD CONSTRAINT "FK_Devices_Classrooms_TenantId_ClassroomId" FOREIGN KEY ("TenantId", "ClassroomId") REFERENCES public."Classrooms"("TenantId", "Id") ON DELETE RESTRICT; -- -- Name: Devices FK_Devices_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Devices" ADD CONSTRAINT "FK_Devices_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE RESTRICT; -- -- Name: NotificationReceipts FK_NotificationReceipts_Devices_DeviceId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."NotificationReceipts" ADD CONSTRAINT "FK_NotificationReceipts_Devices_DeviceId" FOREIGN KEY ("DeviceId") REFERENCES public."Devices"("Id") ON DELETE CASCADE; -- -- Name: NotificationReceipts FK_NotificationReceipts_Notifications_NotificationId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."NotificationReceipts" ADD CONSTRAINT "FK_NotificationReceipts_Notifications_NotificationId" FOREIGN KEY ("NotificationId") REFERENCES public."Notifications"("Id") ON DELETE CASCADE; -- -- Name: Notifications FK_Notifications_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Notifications" ADD CONSTRAINT "FK_Notifications_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE; -- -- Name: Users FK_Users_Tenants_TenantId; Type: FK CONSTRAINT; Schema: public; Owner: classnotify -- ALTER TABLE ONLY public."Users" ADD CONSTRAINT "FK_Users_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE RESTRICT; -- -- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres -- REVOKE USAGE ON SCHEMA public FROM PUBLIC; GRANT ALL ON SCHEMA public TO classnotify; -- -- Name: DeviceSupportBundles; Type: TABLE; Schema: public; Owner: classnotify -- CREATE TABLE IF NOT EXISTS public."DeviceSupportBundles" ( "Id" character varying(100) NOT NULL, "ClientRequestId" character varying(64) NOT NULL, "TenantId" character varying(100) NOT NULL, "DeviceId" character varying(100) NOT NULL, "CorrelationId" character varying(32) NOT NULL, "RequestedByUserId" character varying(100) NOT NULL, "Status" character varying(32) NOT NULL, "CreatedAtUtc" timestamp with time zone NOT NULL, "UpdatedAtUtc" timestamp with time zone NOT NULL, "DeadlineAtUtc" timestamp with time zone NOT NULL, "DispatchedAtUtc" timestamp with time zone, "CompletedAtUtc" timestamp with time zone, "ExpiresAtUtc" timestamp with time zone, "DispatchAttemptCount" integer NOT NULL DEFAULT 0, "LastDispatchAttemptAtUtc" timestamp with time zone, "NextDispatchAttemptAtUtc" timestamp with time zone, "StoragePath" character varying(500), "SizeBytes" bigint, "Sha256" character varying(64), "ErrorCode" character varying(100), CONSTRAINT "PK_DeviceSupportBundles" PRIMARY KEY ("Id"), CONSTRAINT "CK_DeviceSupportBundles_Status" CHECK ("Status" IN ('PendingDispatch', 'Collecting', 'Available', 'Failed', 'TimedOut', 'Expired')), CONSTRAINT "FK_DeviceSupportBundles_Tenants_TenantId" FOREIGN KEY ("TenantId") REFERENCES public."Tenants"("Id") ON DELETE CASCADE, CONSTRAINT "FK_DeviceSupportBundles_Devices_DeviceId" FOREIGN KEY ("DeviceId") REFERENCES public."Devices"("Id") ON DELETE CASCADE ); CREATE UNIQUE INDEX IF NOT EXISTS "IX_DeviceSupportBundles_RequestedByUserId_ClientRequestId" ON public."DeviceSupportBundles" ("RequestedByUserId", "ClientRequestId"); CREATE UNIQUE INDEX IF NOT EXISTS "UX_DeviceSupportBundles_Device_Active" ON public."DeviceSupportBundles" ("DeviceId") WHERE ("Status" IN ('PendingDispatch', 'Collecting')); CREATE INDEX IF NOT EXISTS "IX_DeviceSupportBundles_Status_NextDispatchAttemptAtUtc" ON public."DeviceSupportBundles" ("Status", "NextDispatchAttemptAtUtc"); CREATE INDEX IF NOT EXISTS "IX_DeviceSupportBundles_TenantId_CreatedAtUtc" ON public."DeviceSupportBundles" ("TenantId", "CreatedAtUtc"); CREATE INDEX IF NOT EXISTS "IX_DeviceSupportBundles_DeviceId_CreatedAtUtc" ON public."DeviceSupportBundles" ("DeviceId", "CreatedAtUtc"); CREATE INDEX IF NOT EXISTS "IX_DeviceSupportBundles_CorrelationId" ON public."DeviceSupportBundles" ("CorrelationId"); CREATE INDEX IF NOT EXISTS "IX_DeviceSupportBundles_ExpiresAtUtc" ON public."DeviceSupportBundles" ("ExpiresAtUtc"); -- -- PostgreSQL database dump complete -- \unrestrict 72KM05IzNyW7A1TPKp4X6PDt23eMqgwTMDUiZru0Prf9RQcWtauAkd8x8zdv1UB ================================================================================ FILE: src/Android/ClassNotify.Android/app/build.gradle.kts ================================================================================ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") } android { namespace = "com.classnotify.app" compileSdk = 34 defaultConfig { applicationId = "com.classnotify.app" minSdk = 26 targetSdk = 34 versionCode = 1 versionName = "2.1.0" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true } } buildTypes { release { isMinifyEnabled = false proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" ) } } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17" } buildFeatures { compose = true buildConfig = true } composeOptions { kotlinCompilerExtensionVersion = "1.5.11" } testOptions { unitTests.isReturnDefaultValues = true } packaging { resources { excludes += "/META-INF/{AL2.0,LGPL2.1}" } } } dependencies { // AndroidX Core & Lifecycle implementation("androidx.core:core-ktx:1.12.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0") implementation("androidx.lifecycle:lifecycle-process:2.7.0") implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0") implementation("androidx.activity:activity-compose:1.8.2") // Jetpack Compose & Material 3 val composeBom = platform("androidx.compose:compose-bom:2024.04.00") implementation(composeBom) implementation("androidx.compose.ui:ui") implementation("androidx.compose.ui:ui-graphics") implementation("androidx.compose.ui:ui-tooling-preview") implementation("androidx.compose.material3:material3") implementation("androidx.compose.material:material-icons-extended") implementation("androidx.navigation:navigation-compose:2.7.7") // Retrofit & OkHttp implementation("com.squareup.retrofit2:retrofit:2.9.0") implementation("com.squareup.retrofit2:converter-gson:2.9.0") implementation("com.squareup.okhttp3:okhttp:4.12.0") implementation("com.squareup.okhttp3:logging-interceptor:4.12.0") // Microsoft SignalR Client implementation("com.microsoft.signalr:signalr:8.0.0") // Coroutines implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0") // Security Crypto / Encrypted SharedPreferences implementation("androidx.security:security-crypto:1.1.0-alpha06") // Testing testImplementation("junit:junit:4.13.2") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0") testImplementation("org.mockito:mockito-core:5.11.0") testImplementation("org.mockito.kotlin:mockito-kotlin:5.2.1") testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0") // Android Instrumentation Testing androidTestImplementation("androidx.test.ext:junit:1.1.5") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") androidTestImplementation("androidx.test:runner:1.5.2") androidTestImplementation("androidx.test:rules:1.5.0") androidTestImplementation(composeBom) androidTestImplementation("androidx.compose.ui:ui-test-junit4") // Debugging debugImplementation("androidx.compose.ui:ui-tooling") debugImplementation("androidx.compose.ui:ui-test-manifest") } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/androidTest/java/com/classnotify/app/SecureTokenStoreInstrumentedTest.kt ================================================================================ package com.classnotify.app import android.content.Context import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import com.classnotify.app.data.security.SecureTokenStore import org.junit.Assert.* import org.junit.Before import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class SecureTokenStoreInstrumentedTest { private lateinit var context: Context private lateinit var tokenStore: SecureTokenStore @Before fun setUp() { context = InstrumentationRegistry.getInstrumentation().targetContext tokenStore = SecureTokenStore(context) tokenStore.clearToken() } @Test fun testSaveAndReadToken() { val testJwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.testPayload.signature" tokenStore.saveToken(testJwt) val retrieved = tokenStore.getToken() assertEquals("Retrieved token should match saved token", testJwt, retrieved) } @Test fun testClearToken() { val testJwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.testPayload.signature" tokenStore.saveToken(testJwt) assertEquals(testJwt, tokenStore.getToken()) tokenStore.clearToken() assertNull("Token should be null after clearToken()", tokenStore.getToken()) } @Test fun testPurgeLegacyPlaintextPrefs() { val legacyPrefs = context.getSharedPreferences("classnotify_auth_prefs", Context.MODE_PRIVATE) legacyPrefs.edit().putString("jwt_token", "legacy_plaintext_secret").commit() val store = SecureTokenStore(context) assertTrue("Newly created store should be available", store.isSecureStorageAvailable) // verify legacy prefs was purged on init val remaining = legacyPrefs.getString("jwt_token", null) assertNull("Legacy plaintext token must be purged on SecureTokenStore init", remaining) } @Test fun testSecurityStorageAvailability() { // In Android instrumentation test with Keystore, isSecureStorageAvailable should be true assertTrue("Keystore secure storage should be initialized in instrumentation environment", tokenStore.isSecureStorageAvailable) } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/androidTest/java/com/classnotify/app/StartupNavigationInstrumentedTest.kt ================================================================================ package com.classnotify.app import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.onNodeWithText import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import com.classnotify.app.data.security.SecureTokenStore import org.junit.Before import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) class StartupNavigationInstrumentedTest { @Before fun setUp() { val context = InstrumentationRegistry.getInstrumentation().targetContext val tokenStore = SecureTokenStore(context) tokenStore.clearToken() } @get:Rule val composeTestRule = createAndroidComposeRule() @Test fun testNoTokenNavigatesToLogin() { composeTestRule.waitForIdle() composeTestRule.onNodeWithText("ClassNotify 教师端").assertIsDisplayed() composeTestRule.onNodeWithText("登 录").assertIsDisplayed() } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/AndroidManifest.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ClassNotifyApp.kt ================================================================================ package com.classnotify.app import android.app.Application import androidx.lifecycle.DefaultLifecycleObserver import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.ProcessLifecycleOwner import com.classnotify.app.data.api.AuthInterceptor import com.classnotify.app.data.api.ClassNotifyApi import com.classnotify.app.data.api.SignalRManager import com.classnotify.app.data.api.SignalRStatus import com.classnotify.app.data.network.NetworkMonitor import com.classnotify.app.data.repository.AuthRepository import com.classnotify.app.data.repository.NotificationRepository import okhttp3.OkHttpClient import okhttp3.logging.HttpLoggingInterceptor import retrofit2.Retrofit import retrofit2.converter.gson.GsonConverterFactory import java.util.concurrent.TimeUnit class AppLifecycleListener( private val authRepository: AuthRepository, private val signalRManager: SignalRManager ) : DefaultLifecycleObserver { override fun onStart(owner: LifecycleOwner) { // App returned to foreground: reconnect SignalR if logged in and disconnected if (authRepository.isLoggedIn() && signalRManager.connectionState.value != SignalRStatus.CONNECTED) { signalRManager.reconnectIfDisconnected() } } override fun onStop(owner: LifecycleOwner) { // App went to background: do NOT disconnect or logout } } class ClassNotifyApp : Application() { companion object { const val BASE_SERVER_URL = "https://classnotify.paradise.eu.org" const val BASE_API_URL = "$BASE_SERVER_URL/api/" lateinit var instance: ClassNotifyApp private set } lateinit var authRepository: AuthRepository private set lateinit var notificationRepository: NotificationRepository private set lateinit var signalRManager: SignalRManager private set lateinit var networkMonitor: NetworkMonitor private set override fun onCreate() { super.onCreate() instance = this // 1. Strict Logging Configuration: // Debug: BASIC level only (no body). Release: NONE (completely silent). // Header Authorization is redacted in all configurations. val logging = HttpLoggingInterceptor().apply { level = if (BuildConfig.DEBUG) { HttpLoggingInterceptor.Level.BASIC } else { HttpLoggingInterceptor.Level.NONE } redactHeader("Authorization") } // 2. Shared SignalR manager signalRManager = SignalRManager() var tokenProvider: () -> String? = { null } var sessionExpiredHandler: () -> Unit = {} val authInterceptor = AuthInterceptor( tokenProvider = { tokenProvider() }, onSessionExpired = { sessionExpiredHandler() } ) val okHttpClient = OkHttpClient.Builder() .addInterceptor(authInterceptor) .addInterceptor(logging) .connectTimeout(15, TimeUnit.SECONDS) .readTimeout(15, TimeUnit.SECONDS) .build() val retrofit = Retrofit.Builder() .baseUrl(BASE_API_URL) .client(okHttpClient) .addConverterFactory(GsonConverterFactory.create()) .build() val api = retrofit.create(ClassNotifyApi::class.java) // 3. Auth repository with immediate SignalR shutdown on session termination / 401 authRepository = AuthRepository( context = this, api = api, onSessionTerminated = { signalRManager.disconnect() } ) tokenProvider = { authRepository.getToken() } sessionExpiredHandler = { authRepository.terminateSession("HTTP 401 Unauthorized") } notificationRepository = NotificationRepository(api, signalRManager) networkMonitor = NetworkMonitor(this) // 4. Process Lifecycle Observer: Reconnect SignalR on foreground return ProcessLifecycleOwner.get().lifecycle.addObserver( AppLifecycleListener(authRepository, signalRManager) ) } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/api/AuthInterceptor.kt ================================================================================ package com.classnotify.app.data.api import okhttp3.Interceptor import okhttp3.Response class AuthInterceptor( private val tokenProvider: () -> String?, private val onSessionExpired: () -> Unit = {} ) : Interceptor { override fun intercept(chain: Interceptor.Chain): Response { val original = chain.request() val token = tokenProvider() val requestBuilder = original.newBuilder() if (!token.isNullOrBlank()) { requestBuilder.header("Authorization", "Bearer $token") } val response = chain.proceed(requestBuilder.build()) // 401 Unauthorized: token expired, signature invalidated, or revoked if (response.code == 401 && !token.isNullOrBlank()) { onSessionExpired() } return response } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/api/ClassNotifyApi.kt ================================================================================ package com.classnotify.app.data.api import com.classnotify.app.data.model.ClassroomDto import com.classnotify.app.data.model.LoginRequest import com.classnotify.app.data.model.LoginResponse import com.classnotify.app.data.model.NotificationRecordDto import com.classnotify.app.data.model.SendNotificationRequest import com.classnotify.app.data.model.SendNotificationResponse import com.classnotify.app.data.model.UserProfile import retrofit2.http.Body import retrofit2.http.GET import retrofit2.http.POST import retrofit2.http.Query interface ClassNotifyApi { @POST("auth/login") suspend fun login(@Body request: LoginRequest): LoginResponse @GET("auth/me") suspend fun getMe(): UserProfile @GET("notification/classes") suspend fun getTeacherClasses(): List @POST("notification/send") suspend fun sendNotification(@Body request: SendNotificationRequest): SendNotificationResponse @GET("notification/history") suspend fun getTeacherHistory( @Query("classId") classId: String? = null, @Query("limit") limit: Int = 20 ): List } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/api/SignalRManager.kt ================================================================================ package com.classnotify.app.data.api import android.util.Log import com.classnotify.app.data.model.AckReceiptDto import com.classnotify.app.data.model.DeviceStatusDto import com.microsoft.signalr.HubConnection import com.microsoft.signalr.HubConnectionBuilder import com.microsoft.signalr.HubConnectionState import io.reactivex.rxjava3.core.Completable import io.reactivex.rxjava3.core.Single import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job import kotlinx.coroutines.delay import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asSharedFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.launch import kotlinx.coroutines.suspendCancellableCoroutine import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock import kotlin.coroutines.resume import kotlin.coroutines.resumeWithException /** * Non-blocking Coroutine extension for RxJava Completable. * Completely eliminates blockingAwait() to prevent UI freezing and ANRs. */ suspend fun Completable.await() = suspendCancellableCoroutine { cont -> val disposable = subscribe( { if (cont.isActive) cont.resume(Unit) }, { error -> if (cont.isActive) cont.resumeWithException(error) } ) cont.invokeOnCancellation { disposable.dispose() } } /** * Observable connection status for UI and ViewModels. */ enum class SignalRStatus { DISCONNECTED, CONNECTING, RECONNECTING, CONNECTED } /** * Interface abstraction over SignalR Hub connection for unit testing state transitions. */ interface HubConnectionClient { val connectionState: HubConnectionState suspend fun start() suspend fun stop() fun on(target: String, callback: (T) -> Unit, clazz: Class) fun onClosed(callback: (Exception?) -> Unit) } /** * Production implementation backed by Microsoft SignalR Java Client. */ class RealHubConnectionClient( hubUrl: String, tokenProvider: () -> String? ) : HubConnectionClient { private val connection: HubConnection = HubConnectionBuilder.create(hubUrl) .withAccessTokenProvider(Single.defer { Single.just(tokenProvider() ?: "") }) .build() override val connectionState: HubConnectionState get() = connection.connectionState override suspend fun start() { connection.start().await() } override suspend fun stop() { connection.stop().await() } override fun on(target: String, callback: (T) -> Unit, clazz: Class) { connection.on(target, { param: T -> callback(param) }, clazz) } override fun onClosed(callback: (Exception?) -> Unit) { connection.onClosed { error: Exception? -> callback(error) } } } class SignalRManager( private val hubFactory: (url: String, tokenProvider: () -> String?) -> HubConnectionClient = { url, tp -> RealHubConnectionClient(url, tp) }, private val scope: CoroutineScope = CoroutineScope(Dispatchers.IO) ) { companion object { private const val TAG = "SignalRManager" } private var client: HubConnectionClient? = null private val connectionMutex = Mutex() var activeServerUrl: String = "" private set var activeTokenProvider: (() -> String?) = { null } private set var shouldBeConnected = false private set var supervisorJob: Job? = null private set // Event flows private val _ackEvents = MutableSharedFlow(extraBufferCapacity = 64) val ackEvents: SharedFlow = _ackEvents.asSharedFlow() private val _deviceStatusEvents = MutableSharedFlow(extraBufferCapacity = 64) val deviceStatusEvents: SharedFlow = _deviceStatusEvents.asSharedFlow() // Observable connection state private val _connectionState = MutableStateFlow(SignalRStatus.DISCONNECTED) val connectionState: StateFlow = _connectionState.asStateFlow() fun connect(serverBaseUrl: String, tokenProvider: () -> String?) { activeServerUrl = serverBaseUrl activeTokenProvider = tokenProvider shouldBeConnected = true scope.launch { connectInternal() } } fun connect(serverBaseUrl: String, token: String) { connect(serverBaseUrl) { token } } suspend fun connectInternal() { connectionMutex.withLock { if (!shouldBeConnected) return@withLock if (client?.connectionState == HubConnectionState.CONNECTED && _connectionState.value == SignalRStatus.CONNECTED) { Log.d(TAG, "SignalR already connected.") return@withLock } val token = activeTokenProvider() if (token.isNullOrBlank()) { Log.w(TAG, "No valid token available. Skipping SignalR connection.") _connectionState.value = SignalRStatus.DISCONNECTED shouldBeConnected = false supervisorJob?.cancel() supervisorJob = null return@withLock } val hubUrl = "$activeServerUrl/hubs/teacher" Log.d(TAG, "Initiating non-blocking SignalR connection to: $hubUrl") try { // Safely clean up prior connection try { client?.stop() } catch (_: Exception) {} if (_connectionState.value != SignalRStatus.RECONNECTING) { _connectionState.value = SignalRStatus.CONNECTING } val newClient = hubFactory(hubUrl, activeTokenProvider) // Event handlers newClient.on("OnAckReceiptReceived", { ack: AckReceiptDto -> Log.d(TAG, "Received ACK via SignalR: ${ack.messageId} -> ${ack.status}") scope.launch { _ackEvents.emit(ack) } }, AckReceiptDto::class.java) newClient.on("OnDeviceStatusChanged", { status: DeviceStatusDto -> Log.d(TAG, "Device status changed: Class=${status.classId}, State=${status.state}") scope.launch { _deviceStatusEvents.emit(status) } }, DeviceStatusDto::class.java) // Lifecycle onClosed callback with auto-reconnect trigger newClient.onClosed { error: Exception? -> Log.w(TAG, "SignalR connection closed: ${error?.message}") if (shouldBeConnected) { _connectionState.value = SignalRStatus.RECONNECTING scheduleReconnectSupervisor() } else { _connectionState.value = SignalRStatus.DISCONNECTED } } client = newClient // Non-blocking async start newClient.start() _connectionState.value = SignalRStatus.CONNECTED Log.i(TAG, "SignalR connected successfully (non-blocking)!") } catch (e: Exception) { Log.e(TAG, "SignalR non-blocking connection failed: ${e.message}") if (shouldBeConnected) { _connectionState.value = SignalRStatus.RECONNECTING scheduleReconnectSupervisor() } else { _connectionState.value = SignalRStatus.DISCONNECTED } } } } private fun scheduleReconnectSupervisor() { supervisorJob?.cancel() supervisorJob = scope.launch { var retryDelay = 2000L while (shouldBeConnected && _connectionState.value != SignalRStatus.CONNECTED) { Log.d(TAG, "SignalR supervisor waiting ${retryDelay}ms before reconnection attempt...") delay(retryDelay) if (!shouldBeConnected) break try { connectInternal() } catch (e: Exception) { Log.w(TAG, "Reconnection attempt failed: ${e.message}") } retryDelay = (retryDelay * 2).coerceAtMost(30000L) } } } fun reconnectIfDisconnected() { if (shouldBeConnected && _connectionState.value != SignalRStatus.CONNECTED) { Log.i(TAG, "reconnectIfDisconnected triggered (network change/resumed).") scope.launch { connectInternal() } } } fun disconnect() { shouldBeConnected = false supervisorJob?.cancel() supervisorJob = null scope.launch { connectionMutex.withLock { try { client?.stop() } catch (e: Exception) { Log.w(TAG, "SignalR disconnect warning: ${e.message}") } finally { client = null _connectionState.value = SignalRStatus.DISCONNECTED Log.d(TAG, "SignalR disconnected cleanly.") } } } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/AckStatus.kt ================================================================================ package com.classnotify.app.data.model enum class AckStatus(val value: Int) { Sent(0), Delivered(1), Acknowledged(2), Timeout(3), Failed(4), Unknown(-1); companion object { fun fromValue(value: Int): AckStatus = entries.find { it.value == value } ?: Unknown } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/AuthModels.kt ================================================================================ package com.classnotify.app.data.model import com.google.gson.annotations.SerializedName data class LoginRequest( @SerializedName("username") val username: String, @SerializedName("password") val password: String ) data class LoginResponse( @SerializedName("success") val success: Boolean, @SerializedName("token") val token: String?, @SerializedName("tenantId") val tenantId: String?, @SerializedName("userId") val userId: String?, @SerializedName("fullName") val fullName: String?, @SerializedName("role") val role: String?, @SerializedName("errorMessage") val errorMessage: String? ) data class UserProfile( @SerializedName("userId") val userId: String, @SerializedName(value = "fullName", alternate = ["name"]) val fullName: String, @SerializedName("role") val role: String, @SerializedName("tenantId") val tenantId: String ) ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/ClassroomModels.kt ================================================================================ package com.classnotify.app.data.model import com.google.gson.annotations.SerializedName data class ClassroomDto( @SerializedName("id") val id: String, @SerializedName("tenantId") val tenantId: String, @SerializedName("displayName") val displayName: String, @SerializedName("grade") val grade: String?, @SerializedName("roomNumber") val roomNumber: String?, var isDeviceOnline: Boolean = false ) data class DeviceStatusDto( @SerializedName("classId") val classId: String, @SerializedName("className") val className: String?, @SerializedName("hostname") val hostname: String?, @SerializedName("state") val state: Int, // 0 = Offline, 1 = Online @SerializedName("lastHeartbeat") val lastHeartbeat: String?, @SerializedName("agentVersion") val agentVersion: String? ) { val isOnline: Boolean get() = state == 1 } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/model/NotificationModels.kt ================================================================================ package com.classnotify.app.data.model import com.google.gson.annotations.SerializedName data class SendNotificationRequest( @SerializedName("classId") val classId: String, @SerializedName("studentName") val studentName: String?, @SerializedName("title") val title: String, @SerializedName("message") val message: String, @SerializedName("type") val type: Int = 0, // 0=Call, 1=Broadcast, 2=Urgent @SerializedName("voice") val voice: Boolean = true, @SerializedName("shake") val shake: Boolean = true, @SerializedName("durationSeconds") val durationSeconds: Int = 15 ) data class SendNotificationResponse( @SerializedName("success") val success: Boolean, @SerializedName("messageId") val messageId: String?, @SerializedName("tenantId") val tenantId: String?, @SerializedName("classId") val classId: String?, @SerializedName("className") val className: String?, @SerializedName("message") val message: String? ) data class NotificationRecordDto( @SerializedName("id") val id: String, @SerializedName("tenantId") val tenantId: String, @SerializedName("classId") val classId: String, @SerializedName("className") val className: String, @SerializedName("senderName") val senderName: String, @SerializedName("message") val message: String, @SerializedName("priority") val priority: String, @SerializedName("createdAt") val createdAt: String, @SerializedName("status") var status: String, // Sent, Delivered, Acknowledged, Timeout @SerializedName("confirmedAt") var confirmedAt: String? = null ) data class AckReceiptDto( @SerializedName("messageId") val messageId: String, @SerializedName("classId") val classId: String, @SerializedName("status") val status: Int, // 0=Sent, 1=Delivered, 2=Acknowledged, 3=Timeout @SerializedName("timestamp") val timestamp: String ) ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/network/NetworkMonitor.kt ================================================================================ package com.classnotify.app.data.network import android.content.Context import android.net.ConnectivityManager import android.net.Network import android.net.NetworkCapabilities import android.net.NetworkRequest import android.util.Log import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asSharedFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.launch /** * Monitors device network state and handles network switches (Wi-Fi <-> Cellular) * and connectivity recovery. */ class NetworkMonitor(context: Context) { companion object { private const val TAG = "NetworkMonitor" } private val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as? ConnectivityManager private val scope = CoroutineScope(Dispatchers.IO) private val _isOnline = MutableStateFlow(checkInitialConnectivity()) val isOnline: StateFlow = _isOnline.asStateFlow() private val _networkRecoveredEvents = MutableSharedFlow(extraBufferCapacity = 1) val networkRecoveredEvents: SharedFlow = _networkRecoveredEvents.asSharedFlow() private val networkCallback = object : ConnectivityManager.NetworkCallback() { override fun onAvailable(network: Network) { Log.i(TAG, "Network became available: $network") val wasOffline = !_isOnline.value _isOnline.value = true if (wasOffline) { scope.launch { _networkRecoveredEvents.emit(Unit) } } } override fun onLost(network: Network) { Log.w(TAG, "Network lost: $network") _isOnline.value = checkInitialConnectivity() } override fun onCapabilitiesChanged( network: Network, networkCapabilities: NetworkCapabilities ) { val hasInternet = networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) && networkCapabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED) val wasOffline = !_isOnline.value _isOnline.value = hasInternet if (hasInternet && wasOffline) { Log.i(TAG, "Internet validated after capability change") scope.launch { _networkRecoveredEvents.emit(Unit) } } } } init { registerCallback() } private fun registerCallback() { try { val request = NetworkRequest.Builder() .addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) .build() connectivityManager?.registerNetworkCallback(request, networkCallback) Log.d(TAG, "Network callback registered successfully") } catch (e: Exception) { Log.e(TAG, "Failed to register network callback", e) } } private fun checkInitialConnectivity(): Boolean { val cm = connectivityManager ?: return true val activeNetwork = cm.activeNetwork ?: return false val capabilities = cm.getNetworkCapabilities(activeNetwork) ?: return false return capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) } fun unregister() { try { connectivityManager?.unregisterNetworkCallback(networkCallback) } catch (_: Exception) {} } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/repository/AuthRepository.kt ================================================================================ package com.classnotify.app.data.repository import android.content.Context import android.content.SharedPreferences import android.util.Log import com.classnotify.app.data.api.ClassNotifyApi import com.classnotify.app.data.model.LoginRequest import com.classnotify.app.data.model.UserProfile import com.classnotify.app.data.security.SecureTokenStore import com.classnotify.app.data.security.TokenStore import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asSharedFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.withContext import retrofit2.HttpException import java.io.IOException class AuthRepository( private val context: Context, private val api: ClassNotifyApi, val tokenStore: TokenStore = SecureTokenStore(context), private val onSessionTerminated: () -> Unit = {} ) { companion object { private const val TAG = "AuthRepository" private const val PROFILE_CACHE_PREFS = "classnotify_profile_cache" private const val KEY_USER_ID = "user_id" private const val KEY_FULL_NAME = "full_name" private const val KEY_USER_ROLE = "user_role" private const val KEY_TENANT_ID = "tenant_id" } private val profileCache: SharedPreferences = context.getSharedPreferences(PROFILE_CACHE_PREFS, Context.MODE_PRIVATE) private val _userProfile = MutableStateFlow(loadCachedProfile()) val userProfile: StateFlow = _userProfile.asStateFlow() private val _sessionExpiredEvents = MutableSharedFlow(extraBufferCapacity = 1) val sessionExpiredEvents: SharedFlow = _sessionExpiredEvents.asSharedFlow() private fun loadCachedProfile(): UserProfile? { val userId = profileCache.getString(KEY_USER_ID, null) ?: return null val fullName = profileCache.getString(KEY_FULL_NAME, "") ?: "" val role = profileCache.getString(KEY_USER_ROLE, "") ?: "" val tenantId = profileCache.getString(KEY_TENANT_ID, "") ?: "" return UserProfile(userId, fullName, role, tenantId) } private fun saveCachedProfile(profile: UserProfile) { profileCache.edit() .putString(KEY_USER_ID, profile.userId) .putString(KEY_FULL_NAME, profile.fullName) .putString(KEY_USER_ROLE, profile.role) .putString(KEY_TENANT_ID, profile.tenantId) .apply() } fun getToken(): String? = tokenStore.getToken() fun isLoggedIn(): Boolean = !getToken().isNullOrBlank() fun getUserProfile(): UserProfile? = _userProfile.value /** * Cold startup session verification via GET /api/auth/me * Results: * - Success (200): profile updated, valid session * - 401 Unauthorized: token expired/invalid, token wiped, session terminated * - Network / Timeout: returns failure WITHOUT wiping token (allows offline retry) */ suspend fun checkSession(): Result = withContext(Dispatchers.IO) { val token = getToken() if (token.isNullOrBlank()) { return@withContext Result.failure(IllegalStateException("No saved token")) } try { Log.d(TAG, "Verifying saved session with GET /api/auth/me...") val profile = api.getMe() _userProfile.value = profile saveCachedProfile(profile) Log.i(TAG, "Session verified successfully for user: ${profile.fullName}") Result.success(profile) } catch (e: HttpException) { if (e.code() == 401) { Log.w(TAG, "GET /api/auth/me returned 401 Unauthorized. Session invalidated.") terminateSession("会话已过期,请重新登录") Result.failure(e) } else { Log.e(TAG, "GET /api/auth/me HTTP error: ${e.code()}", e) Result.failure(e) } } catch (e: IOException) { // Network connection error / timeout: DO NOT wipe token Log.w(TAG, "Network error during /api/auth/me check: ${e.message}. Preserving token for retry.") Result.failure(e) } catch (e: Exception) { Log.e(TAG, "Unexpected error during /api/auth/me: ${e.message}", e) Result.failure(e) } } suspend fun login(username: String, pass: String): Result = withContext(Dispatchers.IO) { try { val response = api.login(LoginRequest(username, pass)) if (response.success && !response.token.isNullOrBlank()) { tokenStore.saveToken(response.token) val profile = UserProfile( userId = response.userId ?: "", fullName = response.fullName ?: username, role = response.role ?: "Teacher", tenantId = response.tenantId ?: "" ) _userProfile.value = profile saveCachedProfile(profile) Result.success(profile) } else { Result.failure(Exception(response.errorMessage ?: "登录失败,请检查账号密码")) } } catch (e: Exception) { Result.failure(e) } } /** * Unified session termination for 401 and manual logout. * Immediately stops SignalR, clears tokens, and emits sessionExpired. */ fun terminateSession(reason: String = "Session expired") { Log.w(TAG, "Terminating session: $reason") try { onSessionTerminated() } catch (e: Exception) { Log.w(TAG, "Error in onSessionTerminated callback", e) } tokenStore.clearToken() profileCache.edit().clear().apply() _userProfile.value = null _sessionExpiredEvents.tryEmit(reason) } fun logout() { terminateSession("User logged out") } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/repository/NotificationRepository.kt ================================================================================ package com.classnotify.app.data.repository import com.classnotify.app.data.api.ClassNotifyApi import com.classnotify.app.data.api.SignalRManager import com.classnotify.app.data.api.SignalRStatus import com.classnotify.app.data.model.AckReceiptDto import com.classnotify.app.data.model.ClassroomDto import com.classnotify.app.data.model.DeviceStatusDto import com.classnotify.app.data.model.NotificationRecordDto import com.classnotify.app.data.model.SendNotificationRequest import com.classnotify.app.data.model.SendNotificationResponse import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.withContext class NotificationRepository( private val api: ClassNotifyApi, private val signalRManager: SignalRManager ) { val ackEvents: SharedFlow = signalRManager.ackEvents val deviceStatusEvents: SharedFlow = signalRManager.deviceStatusEvents val signalRState: StateFlow = signalRManager.connectionState fun startSignalR(serverUrl: String, tokenProvider: () -> String?) { signalRManager.connect(serverUrl, tokenProvider) } fun startSignalR(serverUrl: String, token: String) { signalRManager.connect(serverUrl, token) } fun reconnectSignalRIfDisconnected() { signalRManager.reconnectIfDisconnected() } fun stopSignalR() { signalRManager.disconnect() } suspend fun getTeacherClasses(): Result> = withContext(Dispatchers.IO) { try { val classes = api.getTeacherClasses() Result.success(classes) } catch (e: Exception) { Result.failure(e) } } suspend fun sendNotification(request: SendNotificationRequest): Result = withContext(Dispatchers.IO) { try { val res = api.sendNotification(request) if (res.success) { Result.success(res) } else { Result.failure(Exception(res.message ?: "发送失败")) } } catch (e: Exception) { Result.failure(e) } } suspend fun getHistory(classId: String? = null): Result> = withContext(Dispatchers.IO) { try { val history = api.getTeacherHistory(classId) Result.success(history) } catch (e: Exception) { Result.failure(e) } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/data/security/TokenStore.kt ================================================================================ package com.classnotify.app.data.security import android.content.Context import android.content.SharedPreferences import android.util.Log import androidx.security.crypto.EncryptedSharedPreferences import androidx.security.crypto.MasterKey interface TokenStore { fun saveToken(token: String) fun getToken(): String? fun clearToken() val isSecureStorageAvailable: Boolean } class SecureTokenStore(private val context: Context) : TokenStore { companion object { private const val TAG = "SecureTokenStore" private const val SECURE_PREFS_NAME = "classnotify_secure_prefs" private const val LEGACY_PREFS_NAME = "classnotify_auth_prefs" private const val KEY_JWT_TOKEN = "jwt_token" } private var inMemoryToken: String? = null override var isSecureStorageAvailable: Boolean = false private set private val securePrefs: SharedPreferences? by lazy { initSecurePreferences() } init { // Force initialization and clean any legacy plaintext files purgeLegacyPlaintextPrefs() } private fun initSecurePreferences(): SharedPreferences? { return try { val masterKey = MasterKey.Builder(context) .setKeyScheme(MasterKey.KeyScheme.AES256_GCM) .build() val prefs = EncryptedSharedPreferences.create( context, SECURE_PREFS_NAME, masterKey, EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV, EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM ) isSecureStorageAvailable = true Log.i(TAG, "EncryptedSharedPreferences initialized successfully") prefs } catch (e: Exception) { Log.e(TAG, "FATAL: Failed to initialize EncryptedSharedPreferences. Hardware Keystore issue.", e) isSecureStorageAvailable = false // Strict security: Never fall back to plaintext SharedPreferences on disk null } } private fun purgeLegacyPlaintextPrefs() { try { val legacy = context.getSharedPreferences(LEGACY_PREFS_NAME, Context.MODE_PRIVATE) if (legacy.all.isNotEmpty()) { legacy.edit().clear().apply() Log.i(TAG, "Legacy plaintext preferences wiped clean.") } } catch (e: Exception) { Log.w(TAG, "Purge legacy prefs exception", e) } } override fun saveToken(token: String) { inMemoryToken = token val prefs = securePrefs if (prefs != null && isSecureStorageAvailable) { prefs.edit().putString(KEY_JWT_TOKEN, token).apply() } else { Log.w(TAG, "Secure storage unavailable: token kept in-memory only for current process, NOT persisted to disk.") } } override fun getToken(): String? { if (!inMemoryToken.isNullOrBlank()) { return inMemoryToken } val prefs = securePrefs return if (prefs != null && isSecureStorageAvailable) { val diskToken = prefs.getString(KEY_JWT_TOKEN, null) inMemoryToken = diskToken diskToken } else { inMemoryToken } } override fun clearToken() { inMemoryToken = null try { securePrefs?.edit()?.clear()?.apply() } catch (e: Exception) { Log.w(TAG, "Error clearing secure prefs", e) } purgeLegacyPlaintextPrefs() } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/MainActivity.kt ================================================================================ package com.classnotify.app import android.os.Bundle import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Refresh import androidx.compose.material.icons.filled.WifiOff import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.lifecycle.viewmodel.compose.viewModel import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable import androidx.navigation.compose.rememberNavController import com.classnotify.app.data.model.UserProfile import com.classnotify.app.ui.login.LoginScreen import com.classnotify.app.ui.login.LoginViewModel import com.classnotify.app.ui.teacher.TeacherMainScreen import com.classnotify.app.ui.teacher.TeacherViewModel import com.classnotify.app.ui.theme.* import kotlinx.coroutines.launch import retrofit2.HttpException sealed class StartupState { object CheckingSession : StartupState() object LoggedOut : StartupState() data class LoggedIn(val profile: UserProfile) : StartupState() data class NetworkUnavailable(val message: String) : StartupState() } class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { ClassNotifyTheme { Surface( modifier = Modifier.fillMaxSize(), color = Slate950 ) { ClassNotifyAppRoot() } } } } } @Composable fun ClassNotifyAppRoot() { val context = LocalContext.current val app = ClassNotifyApp.instance val scope = rememberCoroutineScope() var startupState by remember { mutableStateOf(StartupState.CheckingSession) } fun verifySession() { if (!app.authRepository.isLoggedIn()) { startupState = StartupState.LoggedOut return } startupState = StartupState.CheckingSession scope.launch { val result = app.authRepository.checkSession() result.onSuccess { profile -> startupState = StartupState.LoggedIn(profile) }.onFailure { err -> if (err is HttpException && err.code() == 401) { startupState = StartupState.LoggedOut } else { startupState = StartupState.NetworkUnavailable(err.message ?: "网络超时,无法验证登录会话") } } } } LaunchedEffect(Unit) { verifySession() } // Global session expired event handling LaunchedEffect(Unit) { app.authRepository.sessionExpiredEvents.collect { reason -> Toast.makeText(context, reason, Toast.LENGTH_LONG).show() startupState = StartupState.LoggedOut } } when (val state = startupState) { is StartupState.CheckingSession -> { StartupLoadingScreen() } is StartupState.NetworkUnavailable -> { StartupNetworkUnavailableScreen( message = state.message, onRetry = { verifySession() }, onLogout = { app.authRepository.logout() startupState = StartupState.LoggedOut } ) } is StartupState.LoggedOut, is StartupState.LoggedIn -> { ClassNotifyNavigation( initialLoggedIn = state is StartupState.LoggedIn, onSessionExpired = { startupState = StartupState.LoggedOut } ) } } } @Composable fun StartupLoadingScreen() { Box( modifier = Modifier .fillMaxSize() .background(Slate950), contentAlignment = Alignment.Center ) { Column(horizontalAlignment = Alignment.CenterHorizontally) { Surface( modifier = Modifier.size(64.dp), shape = RoundedCornerShape(20.dp), color = Indigo600 ) { Box(contentAlignment = Alignment.Center) { Text(text = "🔔", fontSize = 32.sp) } } Spacer(modifier = Modifier.height(20.dp)) CircularProgressIndicator( modifier = Modifier.size(28.dp), color = Indigo500, strokeWidth = 3.dp ) Spacer(modifier = Modifier.height(14.dp)) Text( text = "正在安全校验教师登录会话...", color = Slate400, fontSize = 13.sp ) } } } @Composable fun StartupNetworkUnavailableScreen( message: String, onRetry: () -> Unit, onLogout: () -> Unit ) { Box( modifier = Modifier .fillMaxSize() .background(Slate950) .padding(28.dp), contentAlignment = Alignment.Center ) { Card( shape = RoundedCornerShape(24.dp), colors = CardDefaults.cardColors(containerColor = Slate900), modifier = Modifier.fillMaxWidth() ) { Column( modifier = Modifier.padding(24.dp), horizontalAlignment = Alignment.CenterHorizontally ) { Icon( imageVector = Icons.Default.WifiOff, contentDescription = null, tint = Amber400, modifier = Modifier.size(48.dp) ) Spacer(modifier = Modifier.height(16.dp)) Text( text = "网络连接不可用", fontSize = 18.sp, fontWeight = FontWeight.Bold, color = Slate100 ) Spacer(modifier = Modifier.height(8.dp)) Text( text = message, fontSize = 12.sp, color = Slate400, textAlign = androidx.compose.ui.text.style.TextAlign.Center ) Spacer(modifier = Modifier.height(24.dp)) Button( onClick = onRetry, shape = RoundedCornerShape(12.dp), colors = ButtonDefaults.buttonColors(containerColor = Indigo600), modifier = Modifier.fillMaxWidth() ) { Icon(Icons.Default.Refresh, contentDescription = null, modifier = Modifier.size(16.dp)) Spacer(modifier = Modifier.width(6.dp)) Text("重试连接", fontWeight = FontWeight.SemiBold) } Spacer(modifier = Modifier.height(8.dp)) TextButton(onClick = onLogout) { Text("重新登录账号", color = Slate400, fontSize = 12.sp) } } } } } @Composable fun ClassNotifyNavigation( initialLoggedIn: Boolean, onSessionExpired: () -> Unit ) { val navController = rememberNavController() val app = ClassNotifyApp.instance NavHost( navController = navController, startDestination = if (initialLoggedIn) "teacher_main" else "login" ) { composable("login") { val loginViewModel: LoginViewModel = viewModel( factory = LoginViewModel.Factory(app.authRepository) ) LoginScreen( viewModel = loginViewModel, onLoginSuccess = { navController.navigate("teacher_main") { popUpTo("login") { inclusive = true } } } ) } composable("teacher_main") { val teacherViewModel: TeacherViewModel = viewModel( factory = TeacherViewModel.Factory( app.authRepository, app.notificationRepository, app.networkMonitor ) ) TeacherMainScreen( viewModel = teacherViewModel, onLogout = { onSessionExpired() navController.navigate("login") { popUpTo(0) { inclusive = true } } } ) } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/login/LoginScreen.kt ================================================================================ package com.classnotify.app.ui.login import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Lock import androidx.compose.material.icons.filled.Person import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.input.PasswordVisualTransformation import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.classnotify.app.data.model.UserProfile import com.classnotify.app.ui.theme.* @OptIn(ExperimentalMaterial3Api::class) @Composable fun LoginScreen( viewModel: LoginViewModel, onLoginSuccess: (UserProfile) -> Unit ) { val uiState by viewModel.uiState.collectAsState() var username by remember { mutableStateOf("") } var password by remember { mutableStateOf("") } LaunchedEffect(uiState) { if (uiState is LoginUiState.Success) { onLoginSuccess((uiState as LoginUiState.Success).profile) } } Box( modifier = Modifier .fillMaxSize() .background(Slate950) .padding(24.dp), contentAlignment = Alignment.Center ) { Card( modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(24.dp), colors = CardDefaults.cardColors(containerColor = Slate900) ) { Column( modifier = Modifier .fillMaxWidth() .padding(28.dp), horizontalAlignment = Alignment.CenterHorizontally ) { // Header Logo Surface( modifier = Modifier.size(60.dp), shape = RoundedCornerShape(18.dp), color = Indigo600 ) { Box(contentAlignment = Alignment.Center) { Text(text = "🔔", fontSize = 28.sp) } } Spacer(modifier = Modifier.height(16.dp)) Text( text = "ClassNotify 教师端", color = Slate100, fontSize = 22.sp, fontWeight = FontWeight.Bold ) Text( text = "智慧教室即时点呼与通知", color = Slate400, fontSize = 13.sp, modifier = Modifier.padding(top = 4.dp) ) Spacer(modifier = Modifier.height(28.dp)) // Error Message if (uiState is LoginUiState.Error) { Surface( modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(12.dp), color = Rose400.copy(alpha = 0.15f) ) { Text( text = (uiState as LoginUiState.Error).message, color = Rose400, fontSize = 12.sp, modifier = Modifier.padding(12.dp) ) } Spacer(modifier = Modifier.height(16.dp)) } // Username field OutlinedTextField( value = username, onValueChange = { username = it }, label = { Text("教师账号") }, leadingIcon = { Icon(Icons.Default.Person, contentDescription = null, tint = Slate400) }, modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(14.dp), colors = OutlinedTextFieldDefaults.colors( focusedTextColor = Slate100, unfocusedTextColor = Slate300, focusedBorderColor = Indigo500, unfocusedBorderColor = Slate700, focusedLabelColor = Indigo500, unfocusedLabelColor = Slate400 ), singleLine = true ) Spacer(modifier = Modifier.height(14.dp)) // Password field OutlinedTextField( value = password, onValueChange = { password = it }, label = { Text("登录密码") }, leadingIcon = { Icon(Icons.Default.Lock, contentDescription = null, tint = Slate400) }, visualTransformation = PasswordVisualTransformation(), modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(14.dp), colors = OutlinedTextFieldDefaults.colors( focusedTextColor = Slate100, unfocusedTextColor = Slate300, focusedBorderColor = Indigo500, unfocusedBorderColor = Slate700, focusedLabelColor = Indigo500, unfocusedLabelColor = Slate400 ), singleLine = true ) Spacer(modifier = Modifier.height(24.dp)) // Submit Button Button( onClick = { viewModel.login(username, password) }, modifier = Modifier .fillMaxWidth() .height(50.dp), shape = RoundedCornerShape(14.dp), colors = ButtonDefaults.buttonColors(containerColor = Indigo600), enabled = uiState !is LoginUiState.Loading ) { if (uiState is LoginUiState.Loading) { CircularProgressIndicator( modifier = Modifier.size(20.dp), color = Color.White, strokeWidth = 2.dp ) } else { Text(text = "登 录", fontWeight = FontWeight.SemiBold, fontSize = 15.sp) } } Spacer(modifier = Modifier.height(24.dp)) HorizontalDivider(color = Slate800) if (com.classnotify.app.BuildConfig.DEBUG) { Spacer(modifier = Modifier.height(16.dp)) OutlinedButton( onClick = { username = "teacher_zhang" }, modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(12.dp), colors = ButtonDefaults.outlinedButtonColors(contentColor = Emerald400) ) { Text(text = "⚡ 调试模式:快捷填入教师账号", fontSize = 12.sp) } } } } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/login/LoginViewModel.kt ================================================================================ package com.classnotify.app.ui.login import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.viewModelScope import com.classnotify.app.data.model.UserProfile import com.classnotify.app.data.repository.AuthRepository import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.launch sealed class LoginUiState { object Idle : LoginUiState() object Loading : LoginUiState() data class Success(val profile: UserProfile) : LoginUiState() data class Error(val message: String) : LoginUiState() } class LoginViewModel(private val authRepository: AuthRepository) : ViewModel() { private val _uiState = MutableStateFlow(LoginUiState.Idle) val uiState: StateFlow = _uiState.asStateFlow() init { // Auto-login if session exists val current = authRepository.getUserProfile() if (current != null) { _uiState.value = LoginUiState.Success(current) } } fun login(username: String, pass: String) { if (username.isBlank() || pass.isBlank()) { _uiState.value = LoginUiState.Error("用户名与密码不可为空") return } viewModelScope.launch { _uiState.value = LoginUiState.Loading val result = authRepository.login(username.trim(), pass.trim()) result.onSuccess { profile -> _uiState.value = LoginUiState.Success(profile) }.onFailure { error -> _uiState.value = LoginUiState.Error(error.message ?: "登录失败,请检查网络或密码") } } } fun resetState() { _uiState.value = LoginUiState.Idle } class Factory(private val authRepository: AuthRepository) : ViewModelProvider.Factory { @Suppress("UNCHECKED_CAST") override fun create(modelClass: Class): T { if (modelClass.isAssignableFrom(LoginViewModel::class.java)) { return LoginViewModel(authRepository) as T } throw IllegalArgumentException("Unknown ViewModel class: ${modelClass.name}") } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/teacher/TeacherMainScreen.kt ================================================================================ package com.classnotify.app.ui.teacher import android.widget.Toast import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.items import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.* import androidx.compose.material3.* import androidx.compose.runtime.* import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import com.classnotify.app.data.model.NotificationRecordDto import com.classnotify.app.ui.theme.* @OptIn(ExperimentalMaterial3Api::class) @Composable fun TeacherMainScreen( viewModel: TeacherViewModel, onLogout: () -> Unit ) { val context = LocalContext.current val userProfile by viewModel.userProfile.collectAsState() val classes by viewModel.classes.collectAsState() val selectedClassId by viewModel.selectedClassId.collectAsState() val history by viewModel.history.collectAsState() val isSending by viewModel.isSending.collectAsState() val signalRState by viewModel.signalRState.collectAsState() val isOnline by viewModel.isOnline.collectAsState() var studentName by remember { mutableStateOf("") } var message by remember { mutableStateOf("") } var voice by remember { mutableStateOf(true) } var shake by remember { mutableStateOf(true) } var isUrgent by remember { mutableStateOf(false) } var durationSeconds by remember { mutableStateOf(15) } val presets = listOf( "请带各科作业本到办公室", "马上到操场集合整队", "课代表请到教研室领试卷", "午休时间请教室内保持安静", "请班长负责维护自习纪律", "放学后值日生留下来打扫卫生" ) Scaffold( topBar = { TopAppBar( title = { Column { Text( text = "ClassNotify 教师端", fontSize = 17.sp, fontWeight = FontWeight.Bold, color = Slate100 ) Text( text = "${userProfile?.fullName ?: "老师"} · ${userProfile?.tenantId ?: "学校"}", fontSize = 11.sp, color = Slate400 ) } }, actions = { IconButton(onClick = { viewModel.logout() onLogout() }) { Icon(Icons.Default.ExitToApp, contentDescription = "退出", tint = Slate400) } }, colors = TopAppBarDefaults.topAppBarColors(containerColor = Slate950) ) }, containerColor = Slate950 ) { padding -> LazyColumn( modifier = Modifier .fillMaxSize() .padding(padding) .padding(horizontal = 16.dp), verticalArrangement = Arrangement.spacedBy(16.dp) ) { // Section 1: Class Selector item { Text( text = "1. 选择教学班级", color = Slate300, fontSize = 13.sp, fontWeight = FontWeight.SemiBold, modifier = Modifier.padding(top = 8.dp, bottom = 4.dp) ) LazyRow( horizontalArrangement = Arrangement.spacedBy(10.dp) ) { items(classes) { c -> val isSelected = c.id == selectedClassId Card( modifier = Modifier .width(140.dp) .clickable { viewModel.selectClass(c.id) }, shape = RoundedCornerShape(14.dp), colors = CardDefaults.cardColors( containerColor = if (isSelected) Emerald500.copy(alpha = 0.15f) else Slate900 ), border = if (isSelected) androidx.compose.foundation.BorderStroke(1.5.dp, Emerald500) else androidx.compose.foundation.BorderStroke(1.dp, Slate800) ) { Column(modifier = Modifier.padding(12.dp)) { Row( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.SpaceBetween, modifier = Modifier.fillMaxWidth() ) { Text( text = c.displayName, fontWeight = FontWeight.Bold, fontSize = 14.sp, color = if (isSelected) Slate100 else Slate300 ) // Live Online Status Dot Box( modifier = Modifier .size(8.dp) .background( color = if (c.isDeviceOnline) Emerald400 else Slate700, shape = CircleShape ) ) } Text( text = c.id, fontSize = 11.sp, color = Slate500, modifier = Modifier.padding(top = 2.dp) ) } } } } } // Section 2: Form (Student & Message) item { Card( modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(20.dp), colors = CardDefaults.cardColors(containerColor = Slate900) ) { Column(modifier = Modifier.padding(16.dp)) { Text( text = "2. 呼叫内容", color = Slate300, fontSize = 13.sp, fontWeight = FontWeight.SemiBold, modifier = Modifier.padding(bottom = 8.dp) ) // Student Name (Optional) OutlinedTextField( value = studentName, onValueChange = { studentName = it }, placeholder = { Text("呼叫指定学生姓名 (选填,留空则全班广播)", fontSize = 13.sp) }, leadingIcon = { Icon(Icons.Default.Person, contentDescription = null, tint = Slate400, modifier = Modifier.size(18.dp)) }, modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(12.dp), colors = OutlinedTextFieldDefaults.colors( focusedTextColor = Slate100, unfocusedTextColor = Slate300, focusedBorderColor = Indigo500, unfocusedBorderColor = Slate800, focusedContainerColor = Slate950, unfocusedContainerColor = Slate950 ), singleLine = true ) Spacer(modifier = Modifier.height(12.dp)) // Quick Presets Text( text = "快捷常用语:", color = Slate400, fontSize = 11.sp, modifier = Modifier.padding(bottom = 6.dp) ) LazyRow( horizontalArrangement = Arrangement.spacedBy(6.dp) ) { items(presets) { p -> Surface( modifier = Modifier.clickable { message = p }, shape = RoundedCornerShape(8.dp), color = Slate800 ) { Text( text = p, color = Slate300, fontSize = 11.sp, modifier = Modifier.padding(horizontal = 8.dp, vertical = 5.dp) ) } } } Spacer(modifier = Modifier.height(12.dp)) // Message Text OutlinedTextField( value = message, onValueChange = { message = it }, placeholder = { Text("输入要下发到大屏的通知内容...", fontSize = 13.sp) }, modifier = Modifier .fillMaxWidth() .height(90.dp), shape = RoundedCornerShape(12.dp), colors = OutlinedTextFieldDefaults.colors( focusedTextColor = Slate100, unfocusedTextColor = Slate300, focusedBorderColor = Indigo500, unfocusedBorderColor = Slate800, focusedContainerColor = Slate950, unfocusedContainerColor = Slate950 ) ) Spacer(modifier = Modifier.height(14.dp)) // Control Switches Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) { // TTS Switch Row(verticalAlignment = Alignment.CenterVertically) { Switch( checked = voice, onCheckedChange = { voice = it }, colors = SwitchDefaults.colors(checkedThumbColor = Emerald400, checkedTrackColor = Emerald500.copy(alpha = 0.3f)) ) Spacer(modifier = Modifier.width(4.dp)) Text("语音朗读", color = Slate300, fontSize = 12.sp) } // Shake Switch Row(verticalAlignment = Alignment.CenterVertically) { Switch( checked = shake, onCheckedChange = { shake = it }, colors = SwitchDefaults.colors(checkedThumbColor = Indigo500, checkedTrackColor = Indigo600.copy(alpha = 0.3f)) ) Spacer(modifier = Modifier.width(4.dp)) Text("窗口震颤", color = Slate300, fontSize = 12.sp) } // Urgent Switch Row(verticalAlignment = Alignment.CenterVertically) { Switch( checked = isUrgent, onCheckedChange = { isUrgent = it }, colors = SwitchDefaults.colors(checkedThumbColor = Rose400, checkedTrackColor = Rose400.copy(alpha = 0.3f)) ) Spacer(modifier = Modifier.width(4.dp)) Text("置顶紧急", color = Slate300, fontSize = 12.sp) } } Spacer(modifier = Modifier.height(16.dp)) // Submit Button Button( onClick = { viewModel.sendNotification( studentName = studentName, message = message, voice = voice, shake = shake, isUrgent = isUrgent, durationSeconds = durationSeconds, onSuccess = { message = "" studentName = "" Toast.makeText(context, "已成功下发至教室大屏!", Toast.LENGTH_SHORT).show() }, onError = { err -> Toast.makeText(context, err, Toast.LENGTH_LONG).show() } ) }, modifier = Modifier .fillMaxWidth() .height(48.dp), shape = RoundedCornerShape(12.dp), colors = ButtonDefaults.buttonColors(containerColor = Emerald500), enabled = !isSending && selectedClassId.isNotEmpty() && message.isNotBlank() ) { if (isSending) { CircularProgressIndicator( modifier = Modifier.size(18.dp), color = Color.White, strokeWidth = 2.dp ) } else { Icon(Icons.Default.Send, contentDescription = null, modifier = Modifier.size(16.dp)) Spacer(modifier = Modifier.width(6.dp)) Text("下发到教室大屏", fontWeight = FontWeight.SemiBold, fontSize = 14.sp) } } } } } // Section 3: Live ACK Timeline item { Row( verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.SpaceBetween, modifier = Modifier.fillMaxWidth().padding(top = 4.dp) ) { Text( text = "3. 实时回执动态 (ACK)", color = Slate300, fontSize = 13.sp, fontWeight = FontWeight.SemiBold ) val (statusColor, statusText) = when { !isOnline -> Pair(Rose400, "网络断开") signalRState == com.classnotify.app.data.api.SignalRStatus.CONNECTED -> Pair(Emerald400, "SignalR 在线") signalRState == com.classnotify.app.data.api.SignalRStatus.RECONNECTING -> Pair(Amber400, "SignalR 重连中...") signalRState == com.classnotify.app.data.api.SignalRStatus.CONNECTING -> Pair(Sky400, "SignalR 连接中...") else -> Pair(Slate500, "SignalR 离线") } Row(verticalAlignment = Alignment.CenterVertically) { Box( modifier = Modifier .size(7.dp) .background(color = statusColor, shape = CircleShape) ) Spacer(modifier = Modifier.width(5.dp)) Text( text = statusText, color = statusColor, fontSize = 11.sp, fontWeight = FontWeight.Medium ) } } } if (history.isEmpty()) { item { Box( modifier = Modifier .fillMaxWidth() .padding(vertical = 32.dp), contentAlignment = Alignment.Center ) { Text("暂无呼叫记录", color = Slate500, fontSize = 12.sp) } } } else { items(history) { item -> NotificationAckCard(item) } } } } } @Composable fun NotificationAckCard(item: NotificationRecordDto) { Card( modifier = Modifier.fillMaxWidth(), shape = RoundedCornerShape(16.dp), colors = CardDefaults.cardColors(containerColor = Slate900), border = androidx.compose.foundation.BorderStroke(1.dp, Slate800) ) { Column(modifier = Modifier.padding(14.dp)) { Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) { Text( text = item.className, fontWeight = FontWeight.Bold, fontSize = 14.sp, color = Slate100 ) Text( text = item.createdAt.takeLast(8), fontSize = 11.sp, color = Slate500 ) } Text( text = item.message, fontSize = 12.sp, color = Slate300, modifier = Modifier.padding(vertical = 6.dp) ) HorizontalDivider(color = Slate800.copy(alpha = 0.6f), modifier = Modifier.padding(vertical = 4.dp)) Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween, verticalAlignment = Alignment.CenterVertically ) { Text( text = "回执状态:", fontSize = 11.sp, color = Slate400 ) when (item.status) { "Acknowledged" -> { Row(verticalAlignment = Alignment.CenterVertically) { Icon(Icons.Default.CheckCircle, contentDescription = null, tint = Emerald400, modifier = Modifier.size(14.dp)) Spacer(modifier = Modifier.width(4.dp)) Text("学生已点击确认", color = Emerald400, fontSize = 11.sp, fontWeight = FontWeight.SemiBold) } } "Delivered" -> { Row(verticalAlignment = Alignment.CenterVertically) { Icon(Icons.Default.Send, contentDescription = null, tint = Sky400, modifier = Modifier.size(14.dp)) Spacer(modifier = Modifier.width(4.dp)) Text("教室大屏已接收", color = Sky400, fontSize = 11.sp, fontWeight = FontWeight.Medium) } } "Timeout" -> { Text("超时自动关闭", color = Slate500, fontSize = 11.sp) } "Failed" -> { Row(verticalAlignment = Alignment.CenterVertically) { Icon(Icons.Default.Close, contentDescription = null, tint = Rose400, modifier = Modifier.size(14.dp)) Spacer(modifier = Modifier.width(4.dp)) Text("下发失败", color = Rose400, fontSize = 11.sp, fontWeight = FontWeight.SemiBold) } } else -> { Row(verticalAlignment = Alignment.CenterVertically) { Icon(Icons.Default.Refresh, contentDescription = null, tint = Amber400, modifier = Modifier.size(14.dp)) Spacer(modifier = Modifier.width(4.dp)) Text("云端下发中...", color = Amber400, fontSize = 11.sp) } } } } } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/teacher/TeacherViewModel.kt ================================================================================ package com.classnotify.app.ui.teacher import android.util.Log import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.viewModelScope import com.classnotify.app.ClassNotifyApp import com.classnotify.app.data.api.SignalRStatus import com.classnotify.app.data.model.ClassroomDto import com.classnotify.app.data.model.NotificationRecordDto import com.classnotify.app.data.model.SendNotificationRequest import com.classnotify.app.data.model.UserProfile import com.classnotify.app.data.network.NetworkMonitor import com.classnotify.app.data.repository.AuthRepository import com.classnotify.app.data.repository.NotificationRepository import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.SharedFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.launch class TeacherViewModel( private val authRepository: AuthRepository, private val notificationRepository: NotificationRepository, private val networkMonitor: NetworkMonitor ) : ViewModel() { companion object { private const val TAG = "TeacherViewModel" } private val _classes = MutableStateFlow>(emptyList()) val classes: StateFlow> = _classes.asStateFlow() private val _selectedClassId = MutableStateFlow("") val selectedClassId: StateFlow = _selectedClassId.asStateFlow() private val _history = MutableStateFlow>(emptyList()) val history: StateFlow> = _history.asStateFlow() private val _isSending = MutableStateFlow(false) val isSending: StateFlow = _isSending.asStateFlow() private val _userProfile = MutableStateFlow(authRepository.getUserProfile()) val userProfile: StateFlow = _userProfile.asStateFlow() val signalRState: StateFlow = notificationRepository.signalRState val isOnline: StateFlow = networkMonitor.isOnline val sessionExpiredEvents: SharedFlow = authRepository.sessionExpiredEvents init { loadData() startSignalR() listenSignalREvents() listenNetworkRecovery() } fun refreshData() { loadData() notificationRepository.reconnectSignalRIfDisconnected() } private fun loadData() { viewModelScope.launch { // Load classes val classResult = notificationRepository.getTeacherClasses() classResult.onSuccess { list -> _classes.value = list if (list.isNotEmpty() && _selectedClassId.value.isEmpty()) { _selectedClassId.value = list.first().id } }.onFailure { e -> Log.w(TAG, "Failed to load classes: ${e.message}") } // Load history val histResult = notificationRepository.getHistory() histResult.onSuccess { _history.value = it }.onFailure { e -> Log.w(TAG, "Failed to load history: ${e.message}") } } } private fun startSignalR() { notificationRepository.startSignalR(ClassNotifyApp.BASE_SERVER_URL) { authRepository.getToken() } } private fun listenNetworkRecovery() { viewModelScope.launch { networkMonitor.networkRecoveredEvents.collect { Log.i(TAG, "Network restored event received. Refreshing classes and SignalR connection.") notificationRepository.reconnectSignalRIfDisconnected() loadData() } } } private fun listenSignalREvents() { // 1. Listen for real-time ACK updates viewModelScope.launch { notificationRepository.ackEvents.collect { ack -> val currentList = _history.value.toMutableList() val idx = currentList.indexOfFirst { it.id == ack.messageId } if (idx != -1) { val ackStatus = com.classnotify.app.data.model.AckStatus.fromValue(ack.status) val statusText = when (ackStatus) { com.classnotify.app.data.model.AckStatus.Delivered -> "Delivered" com.classnotify.app.data.model.AckStatus.Acknowledged -> "Acknowledged" com.classnotify.app.data.model.AckStatus.Timeout -> "Timeout" com.classnotify.app.data.model.AckStatus.Failed -> "Failed" com.classnotify.app.data.model.AckStatus.Sent -> "Sent" com.classnotify.app.data.model.AckStatus.Unknown -> "Unknown" } val updated = currentList[idx].copy( status = statusText, confirmedAt = if (ackStatus == com.classnotify.app.data.model.AckStatus.Acknowledged) ack.timestamp else currentList[idx].confirmedAt ) currentList[idx] = updated _history.value = currentList } } } // 2. Listen for device online/offline status updates viewModelScope.launch { notificationRepository.deviceStatusEvents.collect { status -> val currentClasses = _classes.value.toMutableList() val idx = currentClasses.indexOfFirst { it.id == status.classId } if (idx != -1) { val updated = currentClasses[idx].copy(isDeviceOnline = status.isOnline) currentClasses[idx] = updated _classes.value = currentClasses } } } } fun selectClass(classId: String) { _selectedClassId.value = classId } fun sendNotification( studentName: String?, message: String, voice: Boolean, shake: Boolean, isUrgent: Boolean, durationSeconds: Int, onSuccess: () -> Unit, onError: (String) -> Unit ) { val classId = _selectedClassId.value if (classId.isEmpty() || message.isBlank()) { onError("请选择班级并输入通知内容") return } val targetClass = _classes.value.find { it.id == classId } val title = if (!studentName.isNullOrBlank()) { "🔔 老师呼叫: ${studentName.trim()}" } else { "📢 ${targetClass?.displayName ?: "班级"}通知" } viewModelScope.launch { _isSending.value = true val request = SendNotificationRequest( classId = classId, studentName = studentName?.takeIf { it.isNotBlank() }, title = title, message = message.trim(), type = if (isUrgent) 2 else 0, voice = voice, shake = shake, durationSeconds = durationSeconds ) val result = notificationRepository.sendNotification(request) _isSending.value = false result.onSuccess { res -> // Prepend to local history val newRecord = NotificationRecordDto( id = res.messageId ?: "msg_${System.currentTimeMillis()}", tenantId = res.tenantId ?: "", classId = classId, className = targetClass?.displayName ?: classId, senderName = _userProfile.value?.fullName ?: "我", message = message.trim(), priority = if (isUrgent) "Urgent" else "Normal", createdAt = java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", java.util.Locale.getDefault()).format(java.util.Date()), status = "Sent" ) _history.value = listOf(newRecord) + _history.value onSuccess() }.onFailure { err -> onError(err.message ?: "下发失败,请重试") } } } fun logout() { notificationRepository.stopSignalR() authRepository.logout() } override fun onCleared() { super.onCleared() notificationRepository.stopSignalR() } class Factory( private val authRepository: AuthRepository, private val notificationRepository: NotificationRepository, private val networkMonitor: NetworkMonitor ) : ViewModelProvider.Factory { @Suppress("UNCHECKED_CAST") override fun create(modelClass: Class): T { if (modelClass.isAssignableFrom(TeacherViewModel::class.java)) { return TeacherViewModel(authRepository, notificationRepository, networkMonitor) as T } throw IllegalArgumentException("Unknown ViewModel class: ${modelClass.name}") } } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/theme/Color.kt ================================================================================ package com.classnotify.app.ui.theme import androidx.compose.ui.graphics.Color val Slate950 = Color(0xFF020617) val Slate900 = Color(0xFF0F172A) val Slate800 = Color(0xFF1E293B) val Slate700 = Color(0xFF334155) val Slate500 = Color(0xFF64748B) val Slate400 = Color(0xFF94A3B8) val Slate300 = Color(0xFFCBD5E1) val Slate100 = Color(0xFFF1F5F9) val Indigo500 = Color(0xFF6366F1) val Indigo600 = Color(0xFF4F46E5) val Violet500 = Color(0xFF8B5CF6) val Emerald400 = Color(0xFF34D399) val Emerald500 = Color(0xFF10B981) val Sky400 = Color(0xFF38BDF8) val Amber400 = Color(0xFFFBBF24) val Rose400 = Color(0xFFFB7185) ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/java/com/classnotify/app/ui/theme/Theme.kt ================================================================================ package com.classnotify.app.ui.theme import android.app.Activity import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme import androidx.compose.runtime.Composable import androidx.compose.runtime.SideEffect import androidx.compose.ui.graphics.toArgb import androidx.compose.ui.platform.LocalView import androidx.core.view.WindowCompat private val DarkColorScheme = darkColorScheme( primary = Indigo500, secondary = Violet500, background = Slate950, surface = Slate900, onPrimary = Slate100, onSecondary = Slate100, onBackground = Slate100, onSurface = Slate100, ) @Composable fun ClassNotifyTheme( darkTheme: Boolean = true, // Default to dark theme for professional console look content: @Composable () -> Unit ) { val colorScheme = DarkColorScheme val view = LocalView.current if (!view.isInEditMode) { SideEffect { val window = (view.context as Activity).window window.statusBarColor = Slate950.toArgb() WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = false } } MaterialTheme( colorScheme = colorScheme, content = content ) } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/drawable/ic_launcher_foreground.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/mipmap/ic_launcher.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/mipmap/ic_launcher_round.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/values/colors.xml ================================================================================ #2563EB ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/values/strings.xml ================================================================================ ClassNotify ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/values/themes.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/xml/backup_rules.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/main/res/xml/data_extraction_rules.xml ================================================================================ ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/AuthInterceptorTest.kt ================================================================================ package com.classnotify.app import com.classnotify.app.data.api.AuthInterceptor import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.mockwebserver.MockResponse import okhttp3.mockwebserver.MockWebServer import org.junit.After import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertNull import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test class AuthInterceptorTest { private lateinit var mockWebServer: MockWebServer private var token: String? = null private var sessionExpiredCalled = false @Before fun setUp() { mockWebServer = MockWebServer() mockWebServer.start() token = null sessionExpiredCalled = false } @After fun tearDown() { mockWebServer.shutdown() } @Test fun interceptor_attachesBearerToken_whenTokenAvailable() { token = "test_valid_jwt_token_12345" val interceptor = AuthInterceptor( tokenProvider = { token }, onSessionExpired = { sessionExpiredCalled = true } ) mockWebServer.enqueue(MockResponse().setResponseCode(200).setBody("{}")) val client = OkHttpClient.Builder().addInterceptor(interceptor).build() val request = Request.Builder().url(mockWebServer.url("/api/test")).build() client.newCall(request).execute() val recorded = mockWebServer.takeRequest() assertEquals("Bearer test_valid_jwt_token_12345", recorded.getHeader("Authorization")) assertFalse("Session expiration should not trigger on HTTP 200", sessionExpiredCalled) } @Test fun interceptor_omitsAuthHeader_whenTokenIsNull() { token = null val interceptor = AuthInterceptor( tokenProvider = { token }, onSessionExpired = { sessionExpiredCalled = true } ) mockWebServer.enqueue(MockResponse().setResponseCode(200).setBody("{}")) val client = OkHttpClient.Builder().addInterceptor(interceptor).build() val request = Request.Builder().url(mockWebServer.url("/api/test")).build() client.newCall(request).execute() val recorded = mockWebServer.takeRequest() assertNull(recorded.getHeader("Authorization")) assertFalse(sessionExpiredCalled) } @Test fun interceptor_triggersSessionExpired_whenServerReturns401() { token = "expired_jwt_token" val interceptor = AuthInterceptor( tokenProvider = { token }, onSessionExpired = { sessionExpiredCalled = true } ) mockWebServer.enqueue(MockResponse().setResponseCode(401).setBody("{\"message\":\"Unauthorized\"}")) val client = OkHttpClient.Builder().addInterceptor(interceptor).build() val request = Request.Builder().url(mockWebServer.url("/api/test")).build() val response = client.newCall(request).execute() assertEquals(401, response.code) assertTrue("onSessionExpired callback must be invoked on HTTP 401", sessionExpiredCalled) } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/LoginViewModelTest.kt ================================================================================ package com.classnotify.app import com.classnotify.app.data.model.UserProfile import com.classnotify.app.data.repository.AuthRepository import com.classnotify.app.ui.login.LoginUiState import com.classnotify.app.ui.login.LoginViewModel import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.StandardTestDispatcher import kotlinx.coroutines.test.advanceUntilIdle import kotlinx.coroutines.test.resetMain import kotlinx.coroutines.test.runTest import kotlinx.coroutines.test.setMain import org.junit.After import org.junit.Assert.assertEquals import org.junit.Assert.assertNotNull import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Test import org.mockito.Mockito.mock import org.mockito.Mockito.`when` @OptIn(ExperimentalCoroutinesApi::class) class LoginViewModelTest { private val testDispatcher = StandardTestDispatcher() private lateinit var authRepository: AuthRepository @Before fun setUp() { Dispatchers.setMain(testDispatcher) authRepository = mock(AuthRepository::class.java) } @After fun tearDown() { Dispatchers.resetMain() } @Test fun login_withBlankFields_setsErrorStateImmediately() { `when`(authRepository.getUserProfile()).thenReturn(null) val viewModel = LoginViewModel(authRepository) viewModel.login("", "password123") assertTrue(viewModel.uiState.value is LoginUiState.Error) assertEquals("用户名与密码不可为空", (viewModel.uiState.value as LoginUiState.Error).message) viewModel.login("teacher", " ") assertTrue(viewModel.uiState.value is LoginUiState.Error) assertEquals("用户名与密码不可为空", (viewModel.uiState.value as LoginUiState.Error).message) } @Test fun login_withValidCredentials_transitionsToSuccessState() = runTest(testDispatcher) { val fakeProfile = UserProfile( userId = "u1", fullName = "张老师", role = "Teacher", tenantId = "school1" ) `when`(authRepository.getUserProfile()).thenReturn(null) `when`(authRepository.login("teacher", "password123")).thenReturn(Result.success(fakeProfile)) val viewModel = LoginViewModel(authRepository) viewModel.login("teacher", "password123") advanceUntilIdle() assertTrue(viewModel.uiState.value is LoginUiState.Success) val successState = viewModel.uiState.value as LoginUiState.Success assertEquals("张老师", successState.profile.fullName) assertEquals("u1", successState.profile.userId) } @Test fun login_withInvalidCredentials_transitionsToErrorState() = runTest(testDispatcher) { `when`(authRepository.getUserProfile()).thenReturn(null) `when`(authRepository.login("teacher", "wrongpass")).thenReturn(Result.failure(Exception("账号或密码错误"))) val viewModel = LoginViewModel(authRepository) viewModel.login("teacher", "wrongpass") advanceUntilIdle() assertTrue(viewModel.uiState.value is LoginUiState.Error) val errorState = viewModel.uiState.value as LoginUiState.Error assertEquals("账号或密码错误", errorState.message) } @Test fun factory_createsLoginViewModelInstance() { val factory = LoginViewModel.Factory(authRepository) val created = factory.create(LoginViewModel::class.java) assertNotNull(created) } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/SecureTokenStoreTest.kt ================================================================================ package com.classnotify.app import android.content.Context import android.content.SharedPreferences import com.classnotify.app.data.security.SecureTokenStore import org.junit.Assert.assertFalse import org.junit.Assert.assertNull import org.junit.Before import org.junit.Test import org.mockito.Mockito.mock import org.mockito.Mockito.`when` class SecureTokenStoreTest { private lateinit var mockContext: Context private lateinit var legacyPrefs: SharedPreferences private lateinit var legacyEditor: SharedPreferences.Editor @Before fun setUp() { mockContext = mock(Context::class.java) legacyPrefs = mock(SharedPreferences::class.java) legacyEditor = mock(SharedPreferences.Editor::class.java) `when`(legacyEditor.clear()).thenReturn(legacyEditor) `when`(legacyPrefs.edit()).thenReturn(legacyEditor) `when`(legacyPrefs.all).thenReturn(emptyMap()) `when`(mockContext.getSharedPreferences("classnotify_auth_prefs", Context.MODE_PRIVATE)).thenReturn(legacyPrefs) } @Test fun cryptoFailure_neverFallsBackToPlaintextSharedPreferencesOnDisk() { // When EncryptedSharedPreferences fails to initialize (mock Context throws on EncryptedSharedPreferences) val store = SecureTokenStore(mockContext) assertFalse("Secure storage must report unavailable upon crypto initialization failure", store.isSecureStorageAvailable) // Attempt to save token in degraded state store.saveToken("sample_jwt_token_123") // Verify that plaintext disk file "classnotify_auth_prefs" was never written with jwt_token assertNull("Plaintext preferences must NEVER contain jwt_token", legacyPrefs.getString("jwt_token", null)) } } ================================================================================ FILE: src/Android/ClassNotify.Android/app/src/test/java/com/classnotify/app/SignalRManagerTest.kt ================================================================================ package com.classnotify.app import com.classnotify.app.data.api.HubConnectionClient import com.classnotify.app.data.api.SignalRManager import com.classnotify.app.data.api.SignalRStatus import com.microsoft.signalr.HubConnectionState import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.StandardTestDispatcher import kotlinx.coroutines.test.TestScope import kotlinx.coroutines.test.advanceUntilIdle import kotlinx.coroutines.test.runTest import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertNull import org.junit.Assert.assertTrue import org.junit.Test class FakeHubConnectionClient( val hubUrl: String, val tokenProvider: () -> String?, var shouldFailStart: Boolean = false ) : HubConnectionClient { override var connectionState: HubConnectionState = HubConnectionState.DISCONNECTED private var onClosedCallback: ((Exception?) -> Unit)? = null var startCallCount = 0 var stopCallCount = 0 override suspend fun start() { startCallCount++ if (shouldFailStart) { connectionState = HubConnectionState.DISCONNECTED throw RuntimeException("Simulated connection failure") } connectionState = HubConnectionState.CONNECTED } override suspend fun stop() { stopCallCount++ connectionState = HubConnectionState.DISCONNECTED } override fun on(target: String, callback: (T) -> Unit, clazz: Class) {} override fun onClosed(callback: (Exception?) -> Unit) { onClosedCallback = callback } fun triggerOnClosed(error: Exception? = null) { connectionState = HubConnectionState.DISCONNECTED onClosedCallback?.invoke(error) } } @OptIn(ExperimentalCoroutinesApi::class) class SignalRManagerTest { private val testDispatcher = StandardTestDispatcher() private val testScope = TestScope(testDispatcher) @Test fun testA_connectLifecycle_transitionsFromDisconnectedToConnected() = testScope.runTest { var createdClient: FakeHubConnectionClient? = null val manager = SignalRManager( hubFactory = { url, tp -> FakeHubConnectionClient(url, tp).also { createdClient = it } }, scope = this ) assertEquals(SignalRStatus.DISCONNECTED, manager.connectionState.value) manager.connect("https://example.com") { "valid_test_token" } advanceUntilIdle() assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) assertEquals(1, createdClient?.startCallCount) } @Test fun testB_onClosed_transitionsToReconnectingAndRecovers() = testScope.runTest { var lastCreatedClient: FakeHubConnectionClient? = null val manager = SignalRManager( hubFactory = { url, tp -> FakeHubConnectionClient(url, tp).also { lastCreatedClient = it } }, scope = this ) manager.connect("https://example.com") { "valid_test_token" } advanceUntilIdle() assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) // Simulate server dropped connection lastCreatedClient?.triggerOnClosed(Exception("Socket closed")) assertEquals(SignalRStatus.RECONNECTING, manager.connectionState.value) assertTrue(manager.shouldBeConnected) // Allow supervisor retry advanceUntilIdle() assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) } @Test fun testC_duplicateConnect_onlyCreatesSingleActiveConnection() = testScope.runTest { var creationCount = 0 val manager = SignalRManager( hubFactory = { url, tp -> creationCount++ FakeHubConnectionClient(url, tp) }, scope = this ) // Rapid duplicate connect calls manager.connect("https://example.com") { "valid_test_token" } manager.connect("https://example.com") { "valid_test_token" } manager.connect("https://example.com") { "valid_test_token" } advanceUntilIdle() assertEquals(1, creationCount) assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) } @Test fun testD_disconnectDuringReconnect_cancelsSupervisorAndResetsState() = testScope.runTest { var lastCreatedClient: FakeHubConnectionClient? = null val manager = SignalRManager( hubFactory = { url, tp -> FakeHubConnectionClient(url, tp).also { lastCreatedClient = it } }, scope = this ) manager.connect("https://example.com") { "valid_test_token" } advanceUntilIdle() // Drop connection into reconnecting state lastCreatedClient?.triggerOnClosed(Exception("Network dropped")) assertEquals(SignalRStatus.RECONNECTING, manager.connectionState.value) // Explicit logout / disconnect manager.disconnect() advanceUntilIdle() assertEquals(SignalRStatus.DISCONNECTED, manager.connectionState.value) assertFalse(manager.shouldBeConnected) assertNull(manager.supervisorJob) } @Test fun testE_networkRecovery_triggersReconnectWhenDisconnected() = testScope.runTest { var creationCount = 0 var shouldFailNext = false var lastCreatedClient: FakeHubConnectionClient? = null val manager = SignalRManager( hubFactory = { url, tp -> creationCount++ FakeHubConnectionClient(url, tp, shouldFailStart = shouldFailNext).also { lastCreatedClient = it } }, scope = this ) // 1. Initial connect -> Connected manager.connect("https://example.com") { "valid_test_token" } advanceUntilIdle() assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) assertEquals(1, creationCount) val initialClient = lastCreatedClient // 2. Simulate network loss: connection closes and background reconnect fails while network is down shouldFailNext = true initialClient?.triggerOnClosed(Exception("Socket dropped")) testScheduler.advanceTimeBy(2500L) testScheduler.runCurrent() assertEquals(SignalRStatus.RECONNECTING, manager.connectionState.value) val countAfterFailure = creationCount assertTrue("At least one reconnect attempt occurred during network outage", countAfterFailure > 1) // 3. Network recovers: network monitor notifies manager via reconnectIfDisconnected() shouldFailNext = false manager.reconnectIfDisconnected() advanceUntilIdle() // 4. Assert: New connection created/started and final state restored to Connected assertTrue("A new connection client must be created on network recovery", creationCount > countAfterFailure) assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) assertEquals(HubConnectionState.CONNECTED, lastCreatedClient?.connectionState) manager.disconnect() advanceUntilIdle() } @Test fun testF_tokenDisappears_reconnectDoesNotLoopOrEstablishHub() = testScope.runTest { var token: String? = "initial_token" var lastCreatedClient: FakeHubConnectionClient? = null var creationCount = 0 val manager = SignalRManager( hubFactory = { url, tp -> creationCount++ FakeHubConnectionClient(url, tp).also { lastCreatedClient = it } }, scope = this ) manager.connect("https://example.com") { token } advanceUntilIdle() assertEquals(SignalRStatus.CONNECTED, manager.connectionState.value) assertEquals(1, creationCount) // Token wiped on session invalidation, then connection is lost token = null lastCreatedClient?.triggerOnClosed() advanceUntilIdle() // Verify no new connection was created and reconnect loop was halted assertEquals(1, creationCount) assertFalse("shouldBeConnected must be disabled when token is gone", manager.shouldBeConnected) assertEquals(SignalRStatus.DISCONNECTED, manager.connectionState.value) assertNull(manager.supervisorJob) } } ================================================================================ FILE: src/Android/ClassNotify.Android/build.gradle.kts ================================================================================ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id("com.android.application") version "8.3.2" apply false id("org.jetbrains.kotlin.android") version "1.9.23" apply false } ================================================================================ FILE: src/Android/ClassNotify.Android/gradle.properties ================================================================================ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 android.useAndroidX=true android.nonTransitiveRClass=true kotlin.code.style=official ================================================================================ FILE: src/Android/ClassNotify.Android/gradle/wrapper/gradle-wrapper.properties ================================================================================ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ================================================================================ FILE: src/Android/ClassNotify.Android/gradlew ================================================================================ #!/bin/sh # # Copyright © 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ############################################################################## # # Gradle start up script for POSIX generated by Gradle. # # Important for running: # # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is # noncompliant, but you have some other compliant shell such as ksh or # bash, then to run this script, type that shell name before the whole # command line, like: # # ksh Gradle # # Busybox and similar reduced shells will NOT work, because this script # requires all of these POSIX shell features: # * functions; # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», # «${var#prefix}», «${var%suffix}», and «$( cmd )»; # * compound commands having a testable exit status, especially «case»; # * various built-in commands including «command», «set», and «ulimit». # # Important for patching: # # (2) This script targets any POSIX shell, so it avoids extensions provided # by Bash, Ksh, etc; in particular arrays are avoided. # # The "traditional" practice of packing multiple parameters into a # space-separated string is a well documented source of bugs and security # problems, so this is (mostly) avoided, by progressively accumulating # options in "$@", and eventually passing that to Java. # # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; # see the in-line comments for details. # # There are tweaks for specific operating systems such as AIX, CygWin, # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. # ############################################################################## # Attempt to set APP_HOME # Resolve links: $0 may be a link app_path=$0 # Need this for daisy-chained symlinks. while APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path [ -h "$app_path" ] do ls=$( ls -ld "$app_path" ) link=${ls#*' -> '} case $link in #( /*) app_path=$link ;; #( *) app_path=$APP_HOME$link ;; esac done # This is normally unused # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { echo "$*" } >&2 die () { echo echo "$*" echo exit 1 } >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false case "$( uname )" in #( CYGWIN* ) cygwin=true ;; #( Darwin* ) darwin=true ;; #( MSYS* | MINGW* ) msys=true ;; #( NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD=$JAVA_HOME/jre/sh/java else JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD=java if ! command -v java >/dev/null 2>&1 then die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. # shellcheck disable=SC2039,SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. # shellcheck disable=SC2039,SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac fi # Collect all arguments for the java command, stacking in reverse order: # * args from the command line # * the main class name # * -classpath # * -D...appname settings # * --module-path (only if needed) # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) JAVACMD=$( cygpath --unix "$JAVACMD" ) # Now convert the arguments - kludge to limit ourselves to /bin/sh for arg do if case $arg in #( -*) false ;; # don't mess with options #( /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath [ -e "$t" ] ;; #( *) false ;; esac then arg=$( cygpath --path --ignore --mixed "$arg" ) fi # Roll the args list around exactly as many times as the number of # args, so each arg winds up back in the position where it started, but # possibly modified. # # NB: a `for` loop captures its iteration list before it begins, so # changing the positional parameters here affects neither the number of # iterations, nor the values presented in `arg`. shift # remove old arg set -- "$@" "$arg" # push replacement arg done fi # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' # Collect all arguments for the java command: # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # and any embedded shellness will be escaped. # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # treated as '${Hostname}' itself on the command line. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ -classpath "$CLASSPATH" \ org.gradle.wrapper.GradleWrapperMain \ "$@" # Stop when "xargs" is not available. if ! command -v xargs >/dev/null 2>&1 then die "xargs is not available" fi # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. # # In Bash we could simply go: # # readarray ARGS < <( xargs -n1 <<<"$var" ) && # set -- "${ARGS[@]}" "$@" # # but POSIX shell has neither arrays nor command substitution, so instead we # post-process each arg (as a line of input to sed) to backslash-escape any # character that might be a shell metacharacter, then use eval to reverse # that process (while maintaining the separation between arguments), and wrap # the whole thing up as a single "set" statement. # # This will of course break if any of these variables contains a newline or # an unmatched quote. # eval "set -- $( printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | xargs -n1 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | tr '\n' ' ' )" '"$@"' exec "$JAVACMD" "$@" ================================================================================ FILE: src/Android/ClassNotify.Android/gradlew.bat ================================================================================ @rem @rem Copyright 2015 the original author or authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem https://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable law or agreed to in writing, software @rem distributed under the License is distributed on an "AS IS" BASIS, @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%"=="" set DIRNAME=. @rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Resolve any "." and ".." in APP_HOME to make it shorter. for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! set EXIT_CODE=%ERRORLEVEL% if %EXIT_CODE% equ 0 set EXIT_CODE=1 if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal :omega ================================================================================ FILE: src/Android/ClassNotify.Android/local.properties ================================================================================ sdk.dir=C\:\\Android ================================================================================ FILE: src/Android/ClassNotify.Android/README.md ================================================================================ # ClassNotify Android 教师端应用 采用 **Kotlin + Jetpack Compose + Material 3** 原生开发,直连东京云端服务器(`https://classnotify.paradise.eu.org`)。 --- ## 🌟 核心功能特性 1. **登录与会话保持**: - 教师工号 + 密码鉴权,JWT 自动持久化存储,下次启动免登录。 - 内置 **“⚡ 快捷体验:张老师”** 一键填充与登录。 2. **班级看板与实时硬件状态**: - 横向滑动查看所带班级(八年级(1)班、八年级(2)班等)。 - **教室大屏硬件实时状态指示灯**(🟢 在线 / 🔴 离线),由 SignalR WebSocket 毫秒级动态推送。 3. **呼叫表单与高频短语**: - 支持呼叫指定学生姓名(选填),留空则全班广播。 - 常用快捷短语标签一键填入(“请带作业本到办公室”、“马上到操场集合”等)。 - 控制开关:TTS 语音朗读、窗口震颤、置顶紧急广播、倒计时时长。 4. **实时回执时间线 (ACK)**: - 直连云端 `SignalR`(`com.microsoft.signalr:signalr:8.0.0`),长连接监听回执事件。 - 毫秒级动态展示: - `云端下发中...`(Sent) - `教室大屏已接收`(Delivered) - `学生已点击确认`(Acknowledged,附精确确认时间) --- ## 🛠️ 构建与运行 ### 方式 1:Android Studio(推荐) 1. 使用 **Android Studio Hedgehog (2023.1.1)** 或更高版本打开目录: `src/Android/ClassNotify.Android` 2. 等待 Gradle Sync 完成。 3. 连接 Android 真机(开启 USB 调试)或启动 Android 模拟器。 4. 点击 **Run 'app'** 即可直接在手机上运行调试。 5. 生成发布版 APK:点击菜单 **Build > Build Bundle(s) / APK(s) > Build APK(s)**。 ### 方式 2:命令行构建(需 JDK 17+ 和 Android SDK) ```bash cd src/Android/ClassNotify.Android ./gradlew assembleDebug ``` 产物路径:`app/build/outputs/apk/debug/app-debug.apk`。 ================================================================================ FILE: src/Android/ClassNotify.Android/settings.gradle.kts ================================================================================ pluginManagement { repositories { google { content { includeGroupByRegex("com\\.android.*") includeGroupByRegex("com\\.google.*") includeGroupByRegex("androidx.*") } } mavenCentral() gradlePluginPortal() } } dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() } } rootProject.name = "ClassNotify" include(":app") ================================================================================ FILE: src/Scripts/Install-ClassNotify.ps1 ================================================================================ # Install-ClassNotify.ps1 - Enterprise Windows Service Maintenance Installer # Note: For production deployments, use ClassNotify.Setup.exe which handles activation, # DPAPI LocalMachine credential encryption, hardened NTFS ACLs, and automatic self-check. param( [string]$ClassId = "801", [string]$ClassName = "八年级(1)班", [string]$ServerUrl = "https://notice.yourdomain.com/hubs/device" ) # Ensure running as Administrator if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Error "请以管理员身份运行此脚本!(Run as Administrator)" exit 1 } Write-Host "=========================================" -ForegroundColor Cyan Write-Host " ClassNotify V2.0 商业级服务端部署程序 " -ForegroundColor Cyan Write-Host "=========================================" -ForegroundColor Cyan $InstallDir = "C:\ProgramData\ClassNotify" $SourceDir = Split-Path -Parent $MyInvocation.MyCommand.Path # 1. Prepare Directory Write-Host "[1/4] 创建企业级安装目录: $InstallDir ..." -ForegroundColor Yellow if (-not (Test-Path $InstallDir)) { New-Item -ItemType Directory -Force -Path $InstallDir | Out-Null } $logDir = Join-Path $InstallDir "logs" if (-not (Test-Path $logDir)) { New-Item -ItemType Directory -Force -Path $logDir | Out-Null } # 2. Copy Binaries Write-Host "[2/4] 部署服务与客户端二进制文件..." -ForegroundColor Yellow $binaries = @("ClassNotify.Service.exe", "ClassNotify.Client.exe", "ClassNotify.Shared.dll") foreach ($bin in $binaries) { $src = Join-Path $SourceDir $bin if (Test-Path $src) { Copy-Item -Path $src -Destination $InstallDir -Force } } # 3. Generate AppSettings (No plaintext secret tokens! Credentials managed via DPAPI) Write-Host "[3/4] 写入服务运行配置 appsettings.json..." -ForegroundColor Yellow $configObj = @{ Logging = @{ LogLevel = @{ Default = "Information" "Microsoft.Hosting.Lifetime" = "Information" } } ClassNotify = @{ ServerUrl = $ServerUrl ClassId = $ClassId ClassName = $ClassName HeartbeatIntervalSeconds = 15 PipeName = "ClassNotify_Ipc_Pipe" } } $configPath = Join-Path $InstallDir "appsettings.json" $configObj | ConvertTo-Json -Depth 5 | Set-Content -Path $configPath -Encoding UTF8 # 4. Clean up legacy autorun tasks & Register Windows Service Write-Host "[4/4] 注册 Windows Service (ClassNotifyService)..." -ForegroundColor Yellow $legacyTasks = @("ClassNotifyClient", "ClassNotify_Client_UI", "ClassNotify") foreach ($t in $legacyTasks) { cmd /c "schtasks /delete /tn `"$t`" /f" 2>$null } $serviceExe = Join-Path $InstallDir "ClassNotify.Service.exe" $existingService = Get-Service -Name "ClassNotifyService" -ErrorAction SilentlyContinue if ($existingService) { Stop-Service -Name "ClassNotifyService" -Force -ErrorAction SilentlyContinue sc.exe delete ClassNotifyService | Out-Null Start-Sleep -Seconds 1 } sc.exe create ClassNotifyService binPath= "`"$serviceExe`"" start= auto DisplayName= "ClassNotify 班级实时通信服务" | Out-Null sc.exe failure ClassNotifyService reset= 86400 actions= restart/60000/restart/60000/restart/60000 | Out-Null # Start Service (Service watchdog will securely launch Client with ephemeral token) Start-Service -Name "ClassNotifyService" -ErrorAction SilentlyContinue Write-Host "`n=========================================" -ForegroundColor Green Write-Host " [成功] ClassNotify V2.0 商业级部署完成!" -ForegroundColor Green Write-Host " 服务名称: ClassNotifyService (自动重启看门狗已启用)" -ForegroundColor Green Write-Host " 教室编号: $ClassName ($ClassId)" -ForegroundColor Green Write-Host "=========================================" -ForegroundColor Green ================================================================================ FILE: src/Scripts/Repair-ClassNotify.ps1 ================================================================================ # Repair-ClassNotify.ps1 - One-click enterprise diagnosis & self-healing script if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Error "请以管理员身份运行此脚本!(Run as Administrator)" exit 1 } Write-Host "=========================================" -ForegroundColor Cyan Write-Host " ClassNotify 一键自动化诊断与修复工具 " -ForegroundColor Cyan Write-Host "=========================================" -ForegroundColor Cyan $InstallDir = "C:\ProgramData\ClassNotify" $configPath = Join-Path $InstallDir "appsettings.json" # 1. Check Service Write-Host "[1/4] 检查 Windows 服务状态..." -ForegroundColor Yellow $svc = Get-Service -Name "ClassNotifyService" -ErrorAction SilentlyContinue if (-not $svc) { Write-Host " [警告] ClassNotifyService 未安装,正在尝试重新注册..." -ForegroundColor Red $serviceExe = Join-Path $InstallDir "ClassNotify.Service.exe" if (Test-Path $serviceExe) { sc.exe create ClassNotifyService binPath= "`"$serviceExe`"" start= auto DisplayName= "ClassNotify 班级实时通信服务" | Out-Null sc.exe failure ClassNotifyService reset= 86400 actions= restart/60000/restart/60000/restart/60000 | Out-Null Start-Service -Name "ClassNotifyService" Write-Host " [恢复] 服务已重新注册并启动!" -ForegroundColor Green } } elseif ($svc.Status -ne "Running") { Write-Host " [警告] 服务当前处于停止状态 ($($svc.Status)),正在强制重启..." -ForegroundColor Yellow Restart-Service -Name "ClassNotifyService" -Force Write-Host " [恢复] 服务已重新启动!" -ForegroundColor Green } else { Write-Host " [正常] ClassNotifyService 运行正常。" -ForegroundColor Green } # 2. Check UI Process Write-Host "[2/4] 检查前台 UI 进程..." -ForegroundColor Yellow $uiProc = Get-Process -Name "ClassNotify.Client" -ErrorAction SilentlyContinue if (-not $uiProc) { Write-Host " [提示] 前台 UI 进程未运行。根据 Batch 8 安全规范,客户端必须由守护服务通过动态 Launch Token 安全拉起。" -ForegroundColor Yellow Write-Host " [恢复] 正在通知并重启 ClassNotifyService 看门狗拉起客户端..." -ForegroundColor Green Restart-Service -Name "ClassNotifyService" -Force -ErrorAction SilentlyContinue Start-Sleep -Seconds 2 } else { Write-Host " [正常] 前台 UI 进程运行正常。" -ForegroundColor Green } # 3. Check Network & SignalR Write-Host "[3/4] 检查云端连通性..." -ForegroundColor Yellow if (Test-Path $configPath) { try { $cfg = Get-Content -Path $configPath -Raw | ConvertFrom-Json $serverUrl = $cfg.ClassNotify.ServerUrl $uri = [System.Uri]$serverUrl $ip = [System.Net.Dns]::GetHostAddresses($uri.DnsSafeHost) if ($ip.Length -gt 0) { Write-Host " [正常] 云端域名解析成功 ($($uri.DnsSafeHost) -> $($ip[0]))" -ForegroundColor Green } } catch { Write-Host " [警告] 云端解析异常: $_" -ForegroundColor Red } } # 4. Check TTS Sound Engine Write-Host "[4/4] 测试本地 TTS 中文语音引擎..." -ForegroundColor Yellow try { Add-Type -AssemblyName System.Speech -ErrorAction Stop $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer $voices = $synth.GetInstalledVoices() if ($voices.Count -gt 0) { Write-Host " [正常] 发现 $($voices.Count) 个系统语音包,TTS 引擎就绪。" -ForegroundColor Green } $synth.Dispose() } catch { Write-Host " [警告] TTS 引擎初始化失败: $_" -ForegroundColor Red } Write-Host "`n[诊断完成] 核心组件与自愈排错流程已执行完毕。" -ForegroundColor Cyan ================================================================================ FILE: src/Scripts/SelfCheck.ps1 ================================================================================ # SelfCheck.ps1 - Detailed environment diagnostic tool $InstallDir = "C:\ProgramData\ClassNotify" $configPath = Join-Path $InstallDir "appsettings.json" Write-Host "=========================================" -ForegroundColor Cyan Write-Host " ClassNotify 运行环境与组件健康自检 " -ForegroundColor Cyan Write-Host "=========================================" -ForegroundColor Cyan $report = [PSCustomObject]@{ WindowsService = "Missing" UiProcess = "Stopped" ConfigValid = (Test-Path $configPath) TtsAvailable = $false DnsResolution = $false } # 1. Service $svc = Get-Service -Name "ClassNotifyService" -ErrorAction SilentlyContinue if ($svc) { $report.WindowsService = $svc.Status.ToString() } # 2. UI Process $proc = Get-Process -Name "ClassNotify.Client" -ErrorAction SilentlyContinue if ($proc) { $report.UiProcess = "Running" } # 3. TTS try { Add-Type -AssemblyName System.Speech -ErrorAction Stop $synth = New-Object System.Speech.Synthesis.SpeechSynthesizer if ($synth.GetInstalledVoices().Count -gt 0) { $report.TtsAvailable = $true } $synth.Dispose() } catch {} # 4. Network DNS if (Test-Path $configPath) { try { $cfg = Get-Content -Path $configPath -Raw | ConvertFrom-Json $uri = [System.Uri]$cfg.ClassNotify.ServerUrl if ([System.Net.Dns]::GetHostAddresses($uri.DnsSafeHost).Length -gt 0) { $report.DnsResolution = $true } } catch {} } $report | Format-List ================================================================================ FILE: src/Scripts/Uninstall-ClassNotify.ps1 ================================================================================ # Uninstall-ClassNotify.ps1 - Clean enterprise uninstaller if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Error "请以管理员身份运行此脚本!(Run as Administrator)" exit 1 } Write-Host "正在停止并清理 ClassNotifyService..." -ForegroundColor Yellow Stop-Service -Name "ClassNotifyService" -Force -ErrorAction SilentlyContinue sc.exe delete ClassNotifyService | Out-Null Write-Host "正在停止前台 UI 进程..." -ForegroundColor Yellow Stop-Process -Name "ClassNotify.Client" -Force -ErrorAction SilentlyContinue Write-Host "清理计划任务..." -ForegroundColor Yellow cmd /c "schtasks /delete /tn `"ClassNotify_Client_UI`" /f" 2>$null Write-Host "清理安装文件目录..." -ForegroundColor Yellow $InstallDir = "C:\ProgramData\ClassNotify" if (Test-Path $InstallDir) { Remove-Item -Path $InstallDir -Recurse -Force -ErrorAction SilentlyContinue } Write-Host "ClassNotify 商业级组件已彻底卸载干净。" -ForegroundColor Green ================================================================================ FILE: src/Server/Caddyfile ================================================================================ # Caddyfile - Production reverse proxy for ClassNotify on Linux # Caddy automatically handles HTTPS provisioning, renewal, and WebSocket tunneling. notify.yourdomain.com { reverse_proxy 127.0.0.1:5000 { header_up Host {host} header_up X-Real-IP {remote_host} } } ================================================================================ FILE: src/Server/ClassNotify.Server/ClassNotify.Server.csproj ================================================================================ net8.0 enable enable all runtime; build; native; contentfiles; analyzers; buildtransitive ================================================================================ FILE: src/Server/ClassNotify.Server/Configuration/DeviceVersionPolicyOptions.cs ================================================================================ namespace ClassNotify.Server.Configuration; public sealed class DeviceVersionPolicyOptions { public string MinimumServiceVersion { get; set; } = "2.4.0"; public string RecommendedServiceVersion { get; set; } = "2.5.0"; public string MinimumClientVersion { get; set; } = "2.4.0"; public string RecommendedClientVersion { get; set; } = "2.5.0"; public int MinimumProtocolVersion { get; set; } = 1; public string EvaluateVersionStatus(string? serviceVersion, string? clientVersion, int? protocolVersion) { if (string.IsNullOrWhiteSpace(serviceVersion) && string.IsNullOrWhiteSpace(clientVersion)) { return "Unknown"; } if (protocolVersion.HasValue && protocolVersion.Value < MinimumProtocolVersion) { return "Unsupported"; } bool isServiceUnsupported = !string.IsNullOrEmpty(serviceVersion) && CompareVersions(serviceVersion, MinimumServiceVersion) < 0; bool isClientUnsupported = !string.IsNullOrEmpty(clientVersion) && CompareVersions(clientVersion, MinimumClientVersion) < 0; if (isServiceUnsupported || isClientUnsupported) { return "Unsupported"; } bool isServiceOutdated = !string.IsNullOrEmpty(serviceVersion) && CompareVersions(serviceVersion, RecommendedServiceVersion) < 0; bool isClientOutdated = !string.IsNullOrEmpty(clientVersion) && CompareVersions(clientVersion, RecommendedClientVersion) < 0; if (isServiceOutdated || isClientOutdated) { return "Outdated"; } return "Current"; } private static int CompareVersions(string a, string b) { if (Version.TryParse(a, out var vA) && Version.TryParse(b, out var vB)) { return vA.CompareTo(vB); } return string.Compare(a, b, StringComparison.OrdinalIgnoreCase); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Configuration/JwtOptions.cs ================================================================================ namespace ClassNotify.Server.Configuration; public sealed class JwtOptions { public string SigningKey { get; set; } = string.Empty; public string Issuer { get; set; } = string.Empty; public string Audience { get; set; } = string.Empty; public int LifetimeDays { get; set; } = 14; } ================================================================================ FILE: src/Server/ClassNotify.Server/Configuration/RateLimitOptions.cs ================================================================================ namespace ClassNotify.Server.Configuration; public class RateLimitOptions { public int AuthPermitLimit { get; set; } = 60; public int ActivationPermitLimit { get; set; } = 30; public int SendPermitLimit { get; set; } = 120; } ================================================================================ FILE: src/Server/ClassNotify.Server/Configuration/SupportBundleOptions.cs ================================================================================ using System; using System.IO; namespace ClassNotify.Server.Configuration; /// /// 设备技术诊断包存储与生命周期配置选项 /// public class SupportBundleOptions { /// /// 诊断包根存储目录 (必须为绝对路径,若为空则自动使用默认或环境变量) /// public string? StorageRoot { get; set; } /// /// 解析最终生效的 StorageRoot 规范化绝对路径 /// public string GetEffectiveStorageRoot() { if (!string.IsNullOrWhiteSpace(StorageRoot)) { return Path.GetFullPath(StorageRoot); } var env = Environment.GetEnvironmentVariable("CLASSNOTIFY_SUPPORT_BUNDLE_STORAGE"); if (!string.IsNullOrWhiteSpace(env)) { return Path.GetFullPath(env); } return Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "storage", "support-bundles")); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/AdminController.cs ================================================================================ using System.Security.Claims; using System.Text.Json; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Hubs; using ClassNotify.Server.Infrastructure.Correlation; using ClassNotify.Server.Services; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Enums; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Controllers; [ApiController] [Route("api/[controller]")] [Authorize(Roles = "SuperAdmin")] public class AdminController : ControllerBase { private readonly ISecurityService _securityService; private readonly IHubContext _deviceHub; private readonly IHubContext _teacherHub; private readonly ILogger _logger; private readonly ClassNotifyDbContext _dbContext; private readonly ICorrelationContext _correlationContext; public AdminController( ISecurityService securityService, IHubContext deviceHub, IHubContext teacherHub, ILogger logger, ClassNotifyDbContext dbContext, ICorrelationContext correlationContext) { _securityService = securityService; _deviceHub = deviceHub; _teacherHub = teacherHub; _logger = logger; _dbContext = dbContext; _correlationContext = correlationContext; } private string GetActorUsername() => User.FindFirst(ClaimTypes.Name)?.Value ?? "admin"; private string GetActorRole() => User.FindFirst(ClaimTypes.Role)?.Value ?? "SuperAdmin"; private string? GetClientIp() => HttpContext.Connection.RemoteIpAddress?.ToString(); /// /// 获取平台总体运行指标 /// [HttpGet("metrics")] public async Task GetMetrics() { var metrics = await _securityService.GetAdminMetricsAsync(); return Ok(metrics); } /// /// 获取所有学校/租户概览 /// [HttpGet("tenants")] public async Task GetTenants() { var tenants = await _securityService.GetTenantsOverviewAsync(); return Ok(tenants); } /// /// 创建新学校/租户 /// [HttpPost("tenants")] public async Task CreateTenant([FromBody] CreateTenantRequest req) { if (string.IsNullOrWhiteSpace(req.Id) || string.IsNullOrWhiteSpace(req.Name)) { return BadRequest(new { success = false, message = "学校代码与名称不能为空" }); } try { var tenant = await _securityService.CreateTenantAsync(req.Id.Trim(), req.Name.Trim(), GetActorUsername(), GetActorRole(), GetClientIp()); return Ok(tenant); } catch (InvalidOperationException ex) { return Conflict(new { success = false, message = ex.Message }); } } /// /// 更新学校信息或停用/启用学校 /// [HttpPatch("tenants/{tenantId}")] public async Task UpdateTenant(string tenantId, [FromBody] UpdateTenantRequest req) { if (string.IsNullOrWhiteSpace(req.Name)) { return BadRequest(new { success = false, message = "学校名称不能为空" }); } var updated = await _securityService.UpdateTenantAsync(tenantId, req.Name.Trim(), req.IsActive, GetActorUsername(), GetActorRole(), GetClientIp()); if (updated == null) { return NotFound(new { success = false, message = "未找到指定学校" }); } return Ok(updated); } /// /// 获取平台用户列表 (支持按租户和角色筛选) /// [HttpGet("users")] public async Task GetUsers([FromQuery] string? tenantId, [FromQuery] string? role) { var users = await _securityService.GetAllUsersAdminAsync(tenantId, role); return Ok(users); } /// /// 创建新用户 (严格执行角色白名单校验: 仅限 SchoolAdmin 或 Teacher) /// [HttpPost("users")] public async Task CreateUser([FromBody] CreateUserAdminRequest req) { if (string.IsNullOrWhiteSpace(req.Username) || string.IsNullOrWhiteSpace(req.Password)) { return BadRequest(new { success = false, message = "用户名与密码不能为空" }); } if (req.Password.Length < 8) { return BadRequest(new { success = false, message = "用户密码长度不得小于 8 个字符" }); } if (string.IsNullOrWhiteSpace(req.TenantId)) { return BadRequest(new { success = false, message = "必须指定归属学校" }); } if (req.Role != "SchoolAdmin" && req.Role != "Teacher") { return BadRequest(new { success = false, message = "只允许创建校区管理员 (SchoolAdmin) 或教师账号 (Teacher)" }); } try { var user = await _securityService.CreateUserAdminAsync(req, GetActorUsername(), GetActorRole(), GetClientIp()); return Ok(user); } catch (InvalidOperationException ex) { return Conflict(new { success = false, message = ex.Message }); } } /// /// 管理员重置指定用户密码 /// [HttpPost("users/{userId}/reset-password")] public async Task ResetPassword(string userId, [FromBody] ResetPasswordRequest req) { if (string.IsNullOrWhiteSpace(req.NewPassword)) { return BadRequest(new { success = false, message = "新密码不能为空" }); } if (req.NewPassword.Length < 8) { return BadRequest(new { success = false, message = "新密码长度不得小于 8 个字符" }); } var ok = await _securityService.ResetPasswordAsync(userId, req.NewPassword, GetActorUsername(), GetActorRole(), GetClientIp()); if (!ok) { return NotFound(new { success = false, message = "用户不存在" }); } return Ok(new { success = true, message = "密码已成功重置" }); } /// /// 锁定或解锁用户账号 /// [HttpPost("users/{userId}/lock")] public async Task SetUserLock(string userId, [FromBody] LockUserRequest req) { var ok = await _securityService.SetUserLockAsync(userId, req.IsLocked, GetActorUsername(), GetActorRole(), GetClientIp()); if (!ok) { return NotFound(new { success = false, message = "用户不存在" }); } var detail = req.IsLocked ? "锁定账号 (禁止登录)" : "解锁账号 (恢复登录)"; return Ok(new { success = true, isLocked = req.IsLocked, message = detail }); } /// /// 删除指定用户 /// [HttpDelete("users/{userId}")] public async Task DeleteUser(string userId) { var ok = await _securityService.DeleteUserAsync(userId, GetActorUsername(), GetActorRole(), GetClientIp()); if (!ok) { return NotFound(new { success = false, message = "用户不存在或无法删除" }); } return Ok(new { success = true, message = "用户已删除" }); } /// /// 获取全网所有设备及其在线状态、心跳、版本 /// [HttpGet("devices")] public async Task GetDevices() { var devices = await _securityService.GetAllDevicesAsync(); return Ok(devices); } /// /// 更新设备信息 (主机名/重命名、绑定班级) /// [HttpPatch("devices/{deviceId}")] public async Task UpdateDevice(string deviceId, [FromBody] UpdateDeviceRequest req) { try { var ok = await _securityService.UpdateDeviceAsync(deviceId, req.Hostname, req.ClassroomId, GetActorUsername(), GetActorRole(), GetClientIp()); if (!ok) { return NotFound(new { success = false, message = "设备不存在" }); } return Ok(new { success = true, message = "设备信息已更新" }); } catch (InvalidOperationException ex) { return BadRequest(new { success = false, message = ex.Message }); } } /// /// 清退并注销指定设备 /// [HttpPost("devices/{deviceId}/decommission")] public async Task DecommissionDevice(string deviceId) { var ok = await _securityService.DecommissionDeviceAsync(deviceId, GetActorUsername(), GetActorRole(), GetClientIp()); if (!ok) { return NotFound(new { success = false, message = "设备不存在" }); } return Ok(new { success = true, message = "设备已注销并清退" }); } /// /// 向指定设备下发远程维护指令 (SelfCheck, RestartClient, Reconnect, RefreshConfig) /// [HttpPost("devices/{deviceId}/command")] public async Task SendDeviceCommand(string deviceId, [FromBody] RemoteCommandRequestDto req) { if (string.IsNullOrWhiteSpace(deviceId) || string.IsNullOrWhiteSpace(req.Command)) { return BadRequest(new { success = false, message = "设备编号与指令内容不可为空" }); } try { var adminUser = GetActorUsername(); var cmdType = req.Command; if (cmdType.Equals("ping", StringComparison.OrdinalIgnoreCase)) cmdType = DeviceCommandTypes.SelfCheck; else if (cmdType.Equals("restart_client", StringComparison.OrdinalIgnoreCase)) cmdType = DeviceCommandTypes.RestartClient; else if (cmdType.Equals("refresh_config", StringComparison.OrdinalIgnoreCase)) cmdType = DeviceCommandTypes.RefreshConfig; else if (cmdType.Equals("reconnect", StringComparison.OrdinalIgnoreCase)) cmdType = DeviceCommandTypes.Reconnect; if (!DeviceCommandTypes.IsSupported(cmdType)) { return BadRequest(new { success = false, message = $"不支持的指令类型: '{req.Command}'。允许指令: {string.Join(", ", DeviceCommandTypes.AllSupported)}" }); } var cmdDto = await _securityService.CreateDeviceCommandAsync(null, deviceId, cmdType, req.Parameters, adminUser, GetActorRole(), GetClientIp()); var connId = _securityService.GetDeviceConnectionId(deviceId); if (!string.IsNullOrEmpty(connId)) { await _deviceHub.Clients.Client(connId).ReceiveRemoteCommand(cmdDto); await _securityService.MarkCommandDispatchedAsync(cmdDto.CommandId); cmdDto.Status = DeviceCommandStatuses.Dispatched; _logger.LogInformation("Admin dispatched remote command {CommandId} ('{Command}') to device {DeviceId} ({ConnId})", cmdDto.CommandId, cmdDto.CommandType, deviceId, connId); await _securityService.LogAdminAuditAsync( adminUser, GetActorRole(), "REMOTE_COMMAND_DISPATCHED", "Device", deviceId, $"指令已实时通过 SignalR 下发: {cmdDto.CommandType} (CommandId: {cmdDto.CommandId})", GetClientIp()); } else { _logger.LogInformation("Device {DeviceId} is offline. Remote command {CommandId} queued as Pending (expires at {ExpiresAt})", deviceId, cmdDto.CommandId, cmdDto.ExpiresAt); await _securityService.LogAdminAuditAsync( adminUser, GetActorRole(), "REMOTE_COMMAND_QUEUED", "Device", deviceId, $"设备离线,指令已入队待补发: {cmdDto.CommandType} (CommandId: {cmdDto.CommandId})", GetClientIp()); } return Ok(new { success = true, commandId = cmdDto.CommandId, deviceId, command = cmdDto.CommandType, status = cmdDto.Status, expiresAt = cmdDto.ExpiresAt, message = string.IsNullOrEmpty(connId) ? $"设备当前离线,指令 [{cmdDto.CommandType}] 已入队,将在设备上线时自动补发 (有效期至 {cmdDto.ExpiresAt:u})" : $"远程指令 [{cmdDto.CommandType}] 已通过 SignalR 实时下发至设备" }); } catch (ArgumentException ex) { return BadRequest(new { success = false, message = ex.Message }); } catch (InvalidOperationException ex) { return NotFound(new { success = false, message = ex.Message }); } } /// /// 触发指定终端设备执行全面自检 (7 项诊断) 并开启端到端追踪 /// [HttpPost("devices/{deviceId}/self-check")] public async Task TriggerDeviceSelfCheck(string deviceId) { if (string.IsNullOrWhiteSpace(deviceId)) { return BadRequest(new { success = false, message = "设备编号不可为空" }); } var dev = await _dbContext.Devices.FirstOrDefaultAsync(d => d.Id == deviceId); if (dev == null) { return NotFound(new { success = false, message = $"未找到设备 {deviceId}" }); } var adminUser = GetActorUsername(); var correlationId = _correlationContext.CorrelationId; if (string.IsNullOrEmpty(correlationId)) { correlationId = $"sc_corr_{Guid.NewGuid():N}"[..20]; } var selfCheckId = $"sc_{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}_{Guid.NewGuid():N}"[..24]; var requestedAt = DateTimeOffset.UtcNow; var run = new DeviceSelfCheckRun { Id = selfCheckId, TenantId = dev.TenantId, DeviceId = dev.Id, CorrelationId = correlationId, Status = "Pending", RequestedAtUtc = requestedAt, RequestedByUserId = adminUser }; _dbContext.DeviceSelfChecks.Add(run); await _dbContext.SaveChangesAsync(); var selfCheckReq = new DeviceSelfCheckRequestDto { SelfCheckId = selfCheckId, CorrelationId = correlationId, RequestedAtUtc = requestedAt, TimeoutSeconds = 15 }; var payload = JsonSerializer.Serialize(selfCheckReq); var cmdDto = await _securityService.CreateDeviceCommandAsync( dev.TenantId, dev.Id, DeviceCommandTypes.SelfCheck, payload, adminUser, GetActorRole(), GetClientIp()); var connId = _securityService.GetDeviceConnectionId(deviceId); bool isOnline = !string.IsNullOrEmpty(connId); if (isOnline) { await _deviceHub.Clients.Client(connId!).ReceiveRemoteCommand(cmdDto); await _securityService.MarkCommandDispatchedAsync(cmdDto.CommandId); cmdDto.Status = DeviceCommandStatuses.Dispatched; _logger.LogInformation("Dispatched SelfCheck command {CommandId} (SelfCheckId: {SelfCheckId}) to Device {DeviceId} ({ConnId})", cmdDto.CommandId, selfCheckId, deviceId, connId); } else { _logger.LogInformation("Device {DeviceId} is offline. SelfCheck command {CommandId} (SelfCheckId: {SelfCheckId}) queued as Pending", deviceId, cmdDto.CommandId, selfCheckId); } await _securityService.LogAdminAuditAsync( adminUser, GetActorRole(), "DEVICE_SELF_CHECK_TRIGGERED", "Device", deviceId, $"发起设备自检: SelfCheckId={selfCheckId}, CorrelationId={correlationId}, Online={isOnline}", GetClientIp()); return Ok(new { success = true, selfCheckId, correlationId, commandId = cmdDto.CommandId, isOnline, message = isOnline ? "自检指令已下发,正在等待终端上报诊断报告" : "设备当前离线,自检指令已入队,待上线后触发" }); } /// /// 获取指定终端设备最近的自检诊断记录 /// [HttpGet("devices/{deviceId}/self-checks")] public async Task GetDeviceSelfChecks(string deviceId) { var runs = await _dbContext.DeviceSelfChecks .Where(r => r.DeviceId == deviceId) .OrderByDescending(r => r.RequestedAtUtc) .Take(20) .ToListAsync(); return Ok(runs); } /// /// 获取单次自检详细诊断结果 /// [HttpGet("devices/self-checks/{selfCheckId}")] public async Task GetDeviceSelfCheckById(string selfCheckId) { var run = await _dbContext.DeviceSelfChecks.FirstOrDefaultAsync(r => r.Id == selfCheckId); if (run == null) { return NotFound(new { success = false, message = "未找到自检记录" }); } return Ok(run); } /// /// 获取指定学校的所有班级列表 (供管理端激活码生成等下拉选择) /// [HttpGet("classes")] public async Task GetClasses([FromQuery] string tenantId) { if (string.IsNullOrWhiteSpace(tenantId)) { return BadRequest(new { success = false, message = "租户代码不可为空" }); } var classes = await _securityService.GetClassroomsAsync(tenantId.Trim()); return Ok(classes); } /// /// 获取全网激活码列表 /// [HttpGet("activation-codes")] public async Task GetActivationCodes() { var codes = await _securityService.GetActivationCodesAsync(null); return Ok(codes); } /// /// 超级管理员直接生成指定学校指定班级的激活码 /// [HttpPost("activation-codes")] public async Task GenerateActivationCode([FromQuery] string tenantId, [FromQuery] string classId) { if (string.IsNullOrWhiteSpace(tenantId) || string.IsNullOrWhiteSpace(classId)) { return BadRequest(new { success = false, message = "租户与班级不可为空" }); } try { var code = await _securityService.GenerateActivationCodeAsync(tenantId, classId, GetActorUsername(), GetActorRole(), GetClientIp()); return Ok(new { success = true, code, tenantId, classId, message = "激活码生成成功" }); } catch (InvalidOperationException ex) { return BadRequest(new { success = false, message = ex.Message }); } } /// /// 作废或删除激活码 /// [HttpDelete("activation-codes/{code}")] public async Task DeleteActivationCode(string code) { var ok = await _securityService.DeleteActivationCodeAsync(code, GetActorUsername(), GetActorRole(), GetClientIp()); if (!ok) { return NotFound(new { success = false, message = "激活码不存在" }); } return Ok(new { success = true, message = "激活码已成功作废" }); } /// /// 获取全平台最新通知历史记录与 ACK /// [HttpGet("notifications")] public async Task GetNotifications([FromQuery] int limit = 50) { var list = await _securityService.GetNotificationsAsync(null, null, limit); return Ok(list); } /// /// 超级管理员跨租户/全网紧急广播下发 /// [HttpPost("broadcasts")] public async Task EmergencyBroadcast([FromBody] EmergencyBroadcastRequest req) { if (string.IsNullOrWhiteSpace(req.Message)) { return BadRequest(new { success = false, message = "广播内容不能为空" }); } if (req.Message.Length > 2000) { return BadRequest(new { success = false, message = "广播内容长度不能超过 2000 字符" }); } if (!string.IsNullOrWhiteSpace(req.Title) && req.Title.Length > 100) { return BadRequest(new { success = false, message = "广播标题长度不能超过 100 字符" }); } if (req.DurationSeconds < 5 || req.DurationSeconds > 600) { return BadRequest(new { success = false, message = "广播显示时长必须在 5 至 600 秒之间" }); } var actor = GetActorUsername(); var targetTenants = new List(); if (string.IsNullOrWhiteSpace(req.TenantId) || req.TenantId == "*") { var all = await _securityService.GetTenantsOverviewAsync(); targetTenants = all.Where(t => t.IsActive).ToList(); } else { var all = await _securityService.GetTenantsOverviewAsync(); var found = all.FirstOrDefault(t => t.Id == req.TenantId); if (found != null) { if (!found.IsActive) { return BadRequest(new { success = false, message = $"目标学校 '{found.Name}' 当前已被停用,无法接收应急广播" }); } targetTenants.Add(found); } else return NotFound(new { success = false, message = $"未找到指定学校: {req.TenantId}" }); } // P0-FailClosed Audit: Persist BROADCAST_REQUESTED audit BEFORE triggering any SignalR broadcast. // If audit write fails (e.g. DB error or trigger block), an exception is thrown and NO broadcast is ever dispatched. await _securityService.LogAdminAuditAsync( actor, GetActorRole(), "EMERGENCY_BROADCAST_REQUESTED", "System", req.TenantId ?? "ALL", $"请求下发紧急广播: {req.Title} (计划覆盖 {targetTenants.Count} 所学校)", GetClientIp()); var broadcastId = $"bcast_{Guid.NewGuid():N}"; int dispatchedCount = 0; var duration = req.DurationSeconds; foreach (var tenant in targetTenants) { var classrooms = await _securityService.GetClassroomsAsync(tenant.Id); foreach (var cls in classrooms) { var notif = new NotificationDto { Id = $"msg_emerg_{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}_{Guid.NewGuid().ToString("N")[..4]}", BroadcastId = broadcastId, TenantId = tenant.Id, ClassId = cls.Id, Title = string.IsNullOrWhiteSpace(req.Title) ? "⚠️ 全校紧急通知" : req.Title, Message = req.Message, Type = NotificationType.Urgent, CreatedAt = DateTimeOffset.UtcNow, ExpiresAt = DateTimeOffset.UtcNow.AddSeconds(duration + 120), DurationSeconds = duration, Voice = req.Voice, Shake = req.Shake }; await _securityService.RecordNotificationAsync(notif, null, "系统超级管理员 (应急广播)"); // Dispatch to SignalR classroom group await _deviceHub.Clients.Group($"t:{tenant.Id}:c:{cls.Id}").ReceiveNotification(notif); // Dispatch to Teacher Hub await _teacherHub.Clients.Group($"t:{tenant.Id}:teachers").OnNewNotificationBroadcast(notif); dispatchedCount++; } } await _securityService.LogAdminAuditAsync( actor, GetActorRole(), "EMERGENCY_BROADCAST_COMPLETED", "System", req.TenantId ?? "ALL", $"紧急广播下发完成: {req.Title} - {req.Message} (覆盖 {dispatchedCount} 个班级, BroadcastId: {broadcastId})", GetClientIp()); return Ok(new { success = true, broadcastId, dispatchedCount, targetSchools = targetTenants.Count, message = $"紧急广播已成功下发至 {targetTenants.Count} 所学校共 {dispatchedCount} 个班级,正在等待设备回执" }); } /// /// 获取紧急广播真实设备回执聚合状态 /// [HttpGet("broadcasts/{broadcastId}/receipt-summary")] public async Task GetBroadcastReceiptSummary(string broadcastId, CancellationToken ct) { var summary = await _securityService.GetBroadcastReceiptSummaryAsync(broadcastId, ct); if (summary == null) { return NotFound(new { success = false, message = "未找到该广播记录" }); } return Ok(summary); } /// /// 获取平台真实系统健康状态 (数据库连通性、延迟、内存、运行时间、连接数) /// [HttpGet("system/health")] public async Task GetSystemHealth() { var health = await _securityService.GetSystemHealthAsync(); return Ok(health); } /// /// 获取超级管理员关键操作审计日志 /// [HttpGet("audit-logs")] public async Task GetAuditLogs([FromQuery] int limit = 100) { var logs = await _securityService.GetAdminAuditLogsAsync(limit); return Ok(logs); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/AuthController.cs ================================================================================ using System.Security.Claims; using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.RateLimiting; namespace ClassNotify.Server.Controllers; [ApiController] [Route("api/[controller]")] [EnableRateLimiting("AuthLimiter")] public class AuthController : ControllerBase { private readonly ISecurityService _securityService; public AuthController(ISecurityService securityService) { _securityService = securityService; } /// /// 统一登录接口 (返回包含 Role / TenantId 的 JWT Token) /// [HttpPost("login")] public async Task Login([FromBody] TeacherLoginDto dto) { var remoteIp = HttpContext.Connection.RemoteIpAddress?.ToString(); var result = await _securityService.LoginTeacherAsync(dto, remoteIp); if (!result.Success) { return Unauthorized(result); } return Ok(result); } /// /// 获取当前登录用户画像与角色 /// [HttpGet("me")] [Authorize] public IActionResult GetMe() { return Ok(new { userId = User.FindFirst(ClaimTypes.NameIdentifier)?.Value, name = User.FindFirst(ClaimTypes.Name)?.Value, role = User.FindFirst(ClaimTypes.Role)?.Value, tenantId = User.FindFirst("tenant_id")?.Value }); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/DeviceCommandController.cs ================================================================================ using ClassNotify.Server.Hubs; using ClassNotify.Server.Services; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; namespace ClassNotify.Server.Controllers; public class SendDeviceCommandRequest { public string DeviceId { get; set; } = string.Empty; public string CommandType { get; set; } = string.Empty; public string? Parameters { get; set; } } [ApiController] [Route("api/device-command")] [Authorize] public class DeviceCommandController : ControllerBase { private readonly ISecurityService _securityService; private readonly IHubContext _deviceHub; private readonly ILogger _logger; public DeviceCommandController( ISecurityService securityService, IHubContext deviceHub, ILogger logger) { _securityService = securityService; _deviceHub = deviceHub; _logger = logger; } /// /// 下发受控远程运维命令 (SelfCheck, RestartClient, Reconnect, RefreshConfig) /// [HttpPost("send")] [Authorize(Roles = "SuperAdmin,SchoolAdmin,Teacher")] public async Task SendCommand([FromBody] SendDeviceCommandRequest req) { if (req == null || string.IsNullOrWhiteSpace(req.DeviceId) || string.IsNullOrWhiteSpace(req.CommandType)) { return BadRequest(new { success = false, message = "设备编号与指令类型不可为空" }); } var isSuperAdmin = User.IsInRole("SuperAdmin"); var tenantId = isSuperAdmin ? null : User.FindFirst("tenant_id")?.Value; var callerUser = User.Identity?.Name ?? User.FindFirst("name")?.Value ?? "User"; try { var cmdDto = await _securityService.CreateDeviceCommandAsync( tenantId, req.DeviceId, req.CommandType, req.Parameters, callerUser); var connId = _securityService.GetDeviceConnectionId(req.DeviceId); if (!string.IsNullOrEmpty(connId)) { await _deviceHub.Clients.Client(connId).ReceiveRemoteCommand(cmdDto); await _securityService.MarkCommandDispatchedAsync(cmdDto.CommandId); cmdDto.Status = DeviceCommandStatuses.Dispatched; _logger.LogInformation("Dispatched command {CommandId} ({Type}) to device {DeviceId} via SignalR {ConnId}", cmdDto.CommandId, cmdDto.CommandType, req.DeviceId, connId); } else { _logger.LogInformation("Device {DeviceId} is offline. Command {CommandId} queued as Pending until {ExpiresAt:u}", req.DeviceId, cmdDto.CommandId, cmdDto.ExpiresAt); } return Ok(new { success = true, command = cmdDto, isDispatched = !string.IsNullOrEmpty(connId), message = string.IsNullOrEmpty(connId) ? $"设备当前离线,指令已排队,将在设备上线且未过期时补发 (过期时间: {cmdDto.ExpiresAt:u})" : $"指令已通过 SignalR 实时下发至设备 (过期时间: {cmdDto.ExpiresAt:u})" }); } catch (ArgumentException ex) { return BadRequest(new { success = false, message = ex.Message }); } catch (UnauthorizedAccessException ex) { return StatusCode(StatusCodes.Status403Forbidden, new { success = false, message = ex.Message }); } catch (InvalidOperationException ex) { return NotFound(new { success = false, message = ex.Message }); } catch (Exception ex) { _logger.LogError(ex, "Unexpected error sending command to device {DeviceId}", req.DeviceId); return StatusCode(500, new { success = false, message = "下发指令内部错误" }); } } /// /// 查询单条命令当前状态与执行结果 /// [HttpGet("{commandId}")] public async Task GetCommand(string commandId) { if (string.IsNullOrWhiteSpace(commandId)) { return BadRequest(new { success = false, message = "CommandId 不可为空" }); } var isSuperAdmin = User.IsInRole("SuperAdmin"); var tenantId = isSuperAdmin ? null : User.FindFirst("tenant_id")?.Value; var cmd = await _securityService.GetDeviceCommandAsync(commandId, tenantId); if (cmd == null) { return NotFound(new { success = false, message = "命令未找到或无权访问" }); } return Ok(cmd); } /// /// 获取命令审计流水历史记录 /// [HttpGet("history")] public async Task GetHistory( [FromQuery] string? deviceId = null, [FromQuery] string? status = null, [FromQuery] int limit = 50) { var isSuperAdmin = User.IsInRole("SuperAdmin"); var tenantId = isSuperAdmin ? null : User.FindFirst("tenant_id")?.Value; var history = await _securityService.GetDeviceCommandHistoryAsync(tenantId, deviceId, status, limit); return Ok(history); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/DeviceController.cs ================================================================================ using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Infrastructure.Correlation; using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.RateLimiting; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Controllers; [ApiController] [Route("api/[controller]")] [EnableRateLimiting("ActivationLimiter")] public class DeviceController : ControllerBase { private readonly ISecurityService _securityService; private readonly IVisualReceiptService _visualReceiptService; private readonly ClassNotifyDbContext _dbContext; private readonly ICorrelationContext _correlationContext; private readonly ILogger _logger; public DeviceController( ISecurityService securityService, IVisualReceiptService visualReceiptService, ClassNotifyDbContext dbContext, ICorrelationContext correlationContext, ILogger logger) { _securityService = securityService; _visualReceiptService = visualReceiptService; _dbContext = dbContext; _correlationContext = correlationContext; _logger = logger; } /// /// 设备端健康心跳与时间同步探针接口 /// [HttpGet("ping")] [HttpGet("/api/devices/ping")] public IActionResult Ping([FromServices] IConfiguration config) { var releaseId = Environment.GetEnvironmentVariable("CLASSNOTIFY_RELEASE_ID") ?? (System.IO.File.Exists("release.txt") ? System.IO.File.ReadAllText("release.txt").Trim() : null) ?? config["Release:Id"] ?? "20260925-P25-RC0"; return Ok(new { serverUtc = DateTimeOffset.UtcNow, releaseId = releaseId, correlationId = _correlationContext.CorrelationId }); } /// /// 教室端初次安装激活接口 (通过一次性激活码换取永久硬件凭据) /// [HttpPost("activate")] public async Task Activate([FromBody] DeviceActivationRequestDto dto) { var result = await _securityService.ActivateDeviceAsync(dto); if (!result.Success) { if (result.ErrorMessage?.Contains("其他设备安装实例") == true) { return Conflict(result); } return BadRequest(result); } return Ok(result); } /// /// 学校教师/管理员在线生成班级一次性设备激活码 /// [HttpPost("generate-code")] [Microsoft.AspNetCore.Authorization.Authorize(Roles = "SuperAdmin,SchoolAdmin")] public async Task GenerateCode([FromQuery] string classId) { var tenantId = User.FindFirst("tenant_id")?.Value; if (string.IsNullOrEmpty(tenantId)) { return Unauthorized(new { success = false, message = "未发现合法的租户信息" }); } if (string.IsNullOrWhiteSpace(classId)) { return BadRequest(new { success = false, message = "班级编号不可为空" }); } var classroom = await _securityService.GetClassroomAsync(tenantId, classId); if (classroom == null) { return NotFound(new { success = false, message = $"班级 {classId} 不存在或不属于当前学校" }); } try { var code = await _securityService.GenerateActivationCodeAsync(tenantId, classId); return Ok(new { success = true, code, tenantId, classId, message = "激活码已生成,有效期 7 天" }); } catch (Exception ex) { return BadRequest(new { success = false, message = ex.Message }); } } /// /// 教室 Windows 客户端上传单帧通知视觉回执 (JPEG 格式, 最大 512KB) /// [HttpPost("notifications/{notificationId}/visual-receipt")] [HttpPost("/api/devices/notifications/{notificationId}/visual-receipt")] [RequestSizeLimit(524288)] // 512 KiB public async Task UploadVisualReceipt(string notificationId) { var deviceId = Request.Headers["X-Device-Id"].FirstOrDefault(); var deviceToken = Request.Headers["X-Device-Token"].FirstOrDefault(); if (string.IsNullOrWhiteSpace(deviceId) || string.IsNullOrWhiteSpace(deviceToken)) { return Unauthorized(new { success = false, message = "缺少设备鉴权凭据 (X-Device-Id / X-Device-Token)" }); } if (Request.ContentType?.StartsWith("image/jpeg", StringComparison.OrdinalIgnoreCase) != true) { return StatusCode(415, new { success = false, message = "仅支持 image/jpeg 格式内容" }); } using var ms = new MemoryStream(); await Request.Body.CopyToAsync(ms); var bytes = ms.ToArray(); var result = await _visualReceiptService.SaveVisualReceiptAsync(notificationId, deviceId, deviceToken, bytes); if (!result.Success) { return StatusCode(result.StatusCode, new { success = false, message = result.Message }); } return Ok(new { success = true, receiptId = result.ReceiptId, notificationId, visualReceiptState = "Available", capturedAt = result.CapturedAt, expiresAt = result.ExpiresAt, message = result.Message }); } private static readonly System.Collections.Concurrent.ConcurrentDictionary _selfCheckLocks = new(); /// /// 终端上报结构化自检诊断报告 /// [HttpPost("self-check/{selfCheckId}/result")] [HttpPost("/api/devices/self-check/{selfCheckId}/result")] public async Task ReportSelfCheckResult(string selfCheckId, [FromBody] DeviceSelfCheckResultDto dto) { var deviceId = Request.Headers["X-Device-Id"].FirstOrDefault(); var deviceToken = Request.Headers["X-Device-Token"].FirstOrDefault(); if (string.IsNullOrWhiteSpace(deviceId) || string.IsNullOrWhiteSpace(deviceToken)) { return Unauthorized(new { success = false, message = "缺少设备鉴权凭据 (X-Device-Id / X-Device-Token)" }); } var device = await _securityService.ValidateDeviceAsync(deviceId, deviceToken); if (device == null) { return Unauthorized(new { success = false, message = "设备鉴权失败" }); } var resultJson = System.Text.Json.JsonSerializer.Serialize(dto); var now = DateTimeOffset.UtcNow; if (_dbContext.Database.IsRelational()) { var affected = await _dbContext.DeviceSelfChecks .Where(r => r.Id == selfCheckId && r.DeviceId == deviceId && r.TenantId == device.TenantId && (r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched)) .ExecuteUpdateAsync(s => s .SetProperty(r => r.RunState, SelfCheckRunStates.Completed) .SetProperty(r => r.OverallStatus, dto.OverallStatus.ToString()) .SetProperty(r => r.Status, dto.OverallStatus.ToString()) .SetProperty(r => r.CompletedAtUtc, dto.CompletedAtUtc != default ? dto.CompletedAtUtc : now) .SetProperty(r => r.ResultJson, resultJson)); if (affected == 1) { var batchId = await _dbContext.DeviceSelfChecks .Where(r => r.Id == selfCheckId) .Select(r => r.BatchId) .FirstOrDefaultAsync(); if (!string.IsNullOrEmpty(batchId)) { var activeCount = await _dbContext.DeviceSelfChecks .CountAsync(r => r.BatchId == batchId && (r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched)); if (activeCount == 0) { await _dbContext.DeviceSelfCheckBatches .Where(b => b.Id == batchId && b.Status == "Running") .ExecuteUpdateAsync(s => s .SetProperty(b => b.Status, "Completed") .SetProperty(b => b.CompletedAtUtc, now) .SetProperty(b => b.UpdatedAtUtc, now)); } } int failedChecks = dto.Checks?.Count(c => c.Status == SelfCheckStatus.Failed) ?? 0; int warningChecks = dto.Checks?.Count(c => c.Status == SelfCheckStatus.Warning) ?? 0; _logger.LogInformation("SelfCheck result recorded: BatchId={BatchId}, SelfCheckId={SelfCheckId}, DeviceId={DeviceId}, OverallStatus={OverallStatus}, FailedChecks={Failed}, WarningChecks={Warning}", batchId, selfCheckId, deviceId, dto.OverallStatus, failedChecks, warningChecks); return Ok(new { success = true, accepted = true, duplicate = false, selfCheckId, status = dto.OverallStatus.ToString() }); } } // Concurrency gate for In-Memory and fallback evaluation var sem = _selfCheckLocks.GetOrAdd(selfCheckId, _ => new SemaphoreSlim(1, 1)); await sem.WaitAsync(); try { var current = await _dbContext.DeviceSelfChecks .FirstOrDefaultAsync(r => r.Id == selfCheckId); if (current == null) { var newRun = new DeviceSelfCheckRun { Id = selfCheckId, TenantId = device.TenantId, DeviceId = deviceId, CorrelationId = string.IsNullOrEmpty(dto.CorrelationId) ? _correlationContext.CorrelationId : dto.CorrelationId, Status = dto.OverallStatus.ToString(), RunState = SelfCheckRunStates.Completed, OverallStatus = dto.OverallStatus.ToString(), RequestedAtUtc = dto.StartedAtUtc != default ? dto.StartedAtUtc : now, CompletedAtUtc = dto.CompletedAtUtc != default ? dto.CompletedAtUtc : now, ResultJson = resultJson, RequestedByUserId = "Device" }; _dbContext.DeviceSelfChecks.Add(newRun); await _dbContext.SaveChangesAsync(); return Ok(new { success = true, accepted = true, duplicate = false, selfCheckId, status = dto.OverallStatus.ToString() }); } // Cross-device/tenant defense if (current.DeviceId != deviceId || current.TenantId != device.TenantId) { return StatusCode(403, new { success = false, message = "越权拒绝:禁止提交其他终端或租户的自检记录" }); } // Already TimedOut or expired if (current.RunState == SelfCheckRunStates.TimedOut || (current.DeadlineAtUtc != default && current.DeadlineAtUtc < now)) { if (current.RunState != SelfCheckRunStates.TimedOut) { current.RunState = SelfCheckRunStates.TimedOut; current.Status = "Timeout"; current.CompletedAtUtc = now; await _dbContext.SaveChangesAsync(); } _logger.LogWarning("LateSelfCheckResultIgnored: Run {SelfCheckId} expired at {Deadline:u} and cannot be transitioned to Completed. BatchId={BatchId}, DeviceId={DeviceId}", selfCheckId, current.DeadlineAtUtc, current.BatchId, deviceId); return Ok(new { success = true, accepted = false, reason = "RunExpired", duplicate = false, selfCheckId, status = "Timeout" }); } // Already Completed (First-wins duplicate) if (current.RunState == SelfCheckRunStates.Completed) { _logger.LogInformation("SelfCheckResultIdempotent: Run {SelfCheckId} is already completed with status {OverallStatus}. Ignoring duplicate report.", selfCheckId, current.OverallStatus); return Ok(new { success = true, accepted = true, duplicate = true, selfCheckId, status = current.OverallStatus }); } // Transition to Completed current.RunState = SelfCheckRunStates.Completed; current.OverallStatus = dto.OverallStatus.ToString(); current.Status = dto.OverallStatus.ToString(); current.CompletedAtUtc = dto.CompletedAtUtc != default ? dto.CompletedAtUtc : now; current.ResultJson = resultJson; await _dbContext.SaveChangesAsync(); if (!string.IsNullOrEmpty(current.BatchId)) { var activeCount = await _dbContext.DeviceSelfChecks .CountAsync(r => r.BatchId == current.BatchId && (r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched)); if (activeCount == 0) { var batch = await _dbContext.DeviceSelfCheckBatches.FirstOrDefaultAsync(b => b.Id == current.BatchId); if (batch != null && batch.Status == "Running") { batch.Status = "Completed"; batch.CompletedAtUtc = now; batch.UpdatedAtUtc = now; await _dbContext.SaveChangesAsync(); } } } int failed = dto.Checks?.Count(c => c.Status == SelfCheckStatus.Failed) ?? 0; int warning = dto.Checks?.Count(c => c.Status == SelfCheckStatus.Warning) ?? 0; _logger.LogInformation("SelfCheck result recorded: BatchId={BatchId}, SelfCheckId={SelfCheckId}, DeviceId={DeviceId}, OverallStatus={OverallStatus}, FailedChecks={Failed}, WarningChecks={Warning}", current.BatchId, selfCheckId, deviceId, dto.OverallStatus, failed, warning); return Ok(new { success = true, accepted = true, duplicate = false, selfCheckId, status = current.OverallStatus }); } finally { sem.Release(); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/DeviceSupportBundlesController.cs ================================================================================ using System; using System.Collections.Concurrent; using System.IO; using System.IO.Compression; using System.Security.Cryptography; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; namespace ClassNotify.Server.Controllers; /// /// 终端诊断包上传与上报接口 (P2.5 RC1-3 Phase 2: Device-Authenticated Secure Upload) /// 严格满足 SB4 (设备越权阻断)、SB5 (白名单校验)、SB6 (防秘密注入)、SB7 (5MiB硬限制)、 /// SB8 (恶意路径阻断)、SB9 (First-Wins 原子胜出) 与防压缩炸弹约束 /// [ApiController] [Route("api/device/support-bundles")] public class DeviceSupportBundlesController : ControllerBase { private readonly ClassNotifyDbContext _db; private readonly ISecurityService _securityService; private readonly ILogger _logger; private readonly string _storageBaseDir; private static readonly ConcurrentDictionary _bundleLocks = new(); public DeviceSupportBundlesController( ClassNotifyDbContext db, ISecurityService securityService, ILogger logger) { _db = db; _securityService = securityService; _logger = logger; // 私有安全存储目录 (绝不暴露在 wwwroot 下,杜绝直接 HTTP 静态访问) var envStorage = Environment.GetEnvironmentVariable("CLASSNOTIFY_SUPPORT_BUNDLE_STORAGE"); _storageBaseDir = !string.IsNullOrWhiteSpace(envStorage) ? envStorage : Path.Combine(AppContext.BaseDirectory, "storage", "support-bundles"); } /// /// 终端上传诊断包 ZIP (P2-1 ~ P2-10, SB4, SB5, SB7, SB8, SB9) /// [HttpPost("{supportBundleId}/upload")] [DisableRequestSizeLimit] public async Task UploadSupportBundle( [FromRoute] string supportBundleId, CancellationToken ct) { // 1. 终端鉴权 (X-Device-Id, X-Device-Token) var deviceId = Request.Headers["X-Device-Id"].ToString(); var deviceToken = Request.Headers["X-Device-Token"].ToString(); if (string.IsNullOrWhiteSpace(deviceId) || string.IsNullOrWhiteSpace(deviceToken)) { return Unauthorized(new { errorCode = "Unauthorized", message = "Missing device authentication credentials." }); } var device = await _securityService.ValidateDeviceAsync(deviceId, deviceToken); if (device == null) { return Unauthorized(new { errorCode = "Unauthorized", message = "Invalid device credentials." }); } // 2. 加载诊断包任务记录 var bundle = await _db.DeviceSupportBundles.FirstOrDefaultAsync(b => b.Id == supportBundleId, ct); if (bundle == null) { return NotFound(new { errorCode = "SupportBundleNotFound", message = $"Support bundle '{supportBundleId}' not found." }); } // 3. 校验设备越权与租户隔离 (SB4: Device A 不得上传 Device B 的 Bundle,跨校拦截) if (!string.Equals(bundle.DeviceId, device.Id, StringComparison.OrdinalIgnoreCase) || !string.Equals(bundle.TenantId, device.TenantId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("Device {DeviceId} (Tenant={Tenant}) attempted unauthorized upload for bundle {BundleId} owned by device {OwnerDevice} (Tenant={OwnerTenant}). 403 Forbidden.", device.Id, device.TenantId, supportBundleId, bundle.DeviceId, bundle.TenantId); return StatusCode(403, new { errorCode = SupportBundleErrorCodes.DeviceMismatch, message = "Device is not authorized to upload this support bundle." }); } // 4. 状态校验 (只允许 Collecting 状态接收上传;终态已超时/失败禁止复活) if (bundle.Status == SupportBundleStatuses.TimedOut || bundle.Status == SupportBundleStatuses.Failed || bundle.Status == SupportBundleStatuses.Expired) { return Conflict(new { errorCode = SupportBundleErrorCodes.BundleNotAcceptingUpload, message = $"Support bundle is in terminal state '{bundle.Status}' and cannot accept uploads." }); } // 5. 流式写入唯一临时文件,并实施 5 MiB 硬限制 (SB7) var tmpDir = Path.Combine(_storageBaseDir, "tmp"); Directory.CreateDirectory(tmpDir); var tempFilePath = Path.Combine(tmpDir, $"{supportBundleId}.{Guid.NewGuid():N}.upload"); const long maxSizeBytes = 5 * 1024 * 1024; // 5 MiB long totalBytesRead = 0; try { await using (var fileStream = new FileStream(tempFilePath, FileMode.Create, FileAccess.Write, FileShare.None, 81920, useAsync: true)) { var buffer = new byte[81920]; int read; while ((read = await Request.Body.ReadAsync(buffer.AsMemory(0, buffer.Length), ct)) > 0) { totalBytesRead += read; if (totalBytesRead > maxSizeBytes) { await fileStream.DisposeAsync(); TryDeleteFile(tempFilePath); return StatusCode(413, new { errorCode = SupportBundleErrorCodes.BundleTooLarge, message = "Uploaded bundle exceeds maximum allowed size (5 MiB)." }); } await fileStream.WriteAsync(buffer.AsMemory(0, read), ct); } } if (totalBytesRead == 0) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.InvalidZip, message = "Uploaded bundle stream is empty." }); } // 6. ZIP 安全合规核验 (P2-1, P2-4, P2-7, P2-8) ZipArchive archive; try { archive = ZipFile.OpenRead(tempFilePath); } catch (Exception) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.InvalidZip, message = "Uploaded payload is not a valid ZIP archive." }); } using (archive) { // Entry 数量严格限制为 4 (SB5) if (archive.Entries.Count != 4) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.UnexpectedEntry, message = $"ZIP must contain exactly 4 entries, found {archive.Entries.Count}." }); } var allowedEntries = new HashSet(StringComparer.Ordinal) { "manifest.json", "runtime.json", "selfcheck.json", "events.ndjson" }; long totalExpandedSize = 0; ZipArchiveEntry? manifestEntry = null; foreach (var entry in archive.Entries) { // 恶意路径防护 (SB8: 严禁目录、父级相对路径 ../、绝对路径等) if (entry.FullName.Contains('/') || entry.FullName.Contains('\\') || entry.FullName.Contains("..") || entry.FullName.Contains(':')) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.InvalidZip, message = $"Malicious path in ZIP entry: '{entry.FullName}'." }); } if (!allowedEntries.Contains(entry.FullName)) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.UnexpectedEntry, message = $"Forbidden entry '{entry.FullName}' found in bundle." }); } // 防压缩炸弹检查 (P2-8: 解压后总量不超过 10 MiB) totalExpandedSize += entry.Length; if (totalExpandedSize > 10 * 1024 * 1024) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.ExpandedSizeExceeded, message = "Expanded bundle size exceeds 10 MiB limit." }); } if (entry.FullName == "manifest.json") { manifestEntry = entry; } } // 7. manifest.json 二次核验 (P2-9) if (manifestEntry == null) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.InvalidManifest, message = "manifest.json missing." }); } using var manifestStream = manifestEntry.Open(); SupportBundleManifestV1? manifest; try { manifest = await JsonSerializer.DeserializeAsync(manifestStream, cancellationToken: ct); } catch (Exception) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.InvalidManifest, message = "Failed to parse manifest.json." }); } if (manifest == null || manifest.FormatVersion != 1 || !string.Equals(manifest.SupportBundleId, supportBundleId, StringComparison.OrdinalIgnoreCase) || !string.Equals(manifest.DeviceId, device.Id, StringComparison.OrdinalIgnoreCase)) { TryDeleteFile(tempFilePath); return BadRequest(new { errorCode = SupportBundleErrorCodes.InvalidManifest, message = "manifest.json attributes do not match route ID or authenticated device." }); } } // 8. 计算整个 ZIP 文件 SHA256 (全系统小写 64 hex) string sha256; using (var sha = SHA256.Create()) await using (var fileStream = System.IO.File.OpenRead(tempFilePath)) { var hashBytes = await sha.ComputeHashAsync(fileStream, ct); sha256 = Convert.ToHexString(hashBytes).ToLowerInvariant(); } // 9. 存储至私有不可覆盖的 immutable blob 文件路径 var todayStr = DateTime.UtcNow.ToString("yyyyMMdd"); var relativeFilePath = $"{todayStr}/{supportBundleId}.{sha256}.zip"; var targetDir = Path.Combine(_storageBaseDir, todayStr); Directory.CreateDirectory(targetDir); var finalFilePath = Path.Combine(targetDir, $"{supportBundleId}.{sha256}.zip"); // 将临时文件移动到最终路径 (若已存在相同哈希则保留) if (!System.IO.File.Exists(finalFilePath)) { System.IO.File.Move(tempFilePath, finalFilePath); } else { TryDeleteFile(tempFilePath); } // 10. 数据库原子条件更新 (First-Wins, SB9) // 严格仅在 Status == 'Collecting' 时允许流转为 'Available' // 并且 DB 中 StoragePath 严格仅保存相对路径 (yyyyMMdd/sb_xxx.sha.zip) var now = DateTimeOffset.UtcNow; int affected; if (_db.Database.IsRelational()) { affected = await _db.DeviceSupportBundles .Where(x => x.Id == supportBundleId && x.DeviceId == device.Id && x.Status == SupportBundleStatuses.Collecting) .ExecuteUpdateAsync(setters => setters .SetProperty(x => x.Status, SupportBundleStatuses.Available) .SetProperty(x => x.StoragePath, relativeFilePath) .SetProperty(x => x.SizeBytes, totalBytesRead) .SetProperty(x => x.Sha256, sha256) .SetProperty(x => x.CompletedAtUtc, now) .SetProperty(x => x.ExpiresAtUtc, now.AddHours(24)) .SetProperty(x => x.UpdatedAtUtc, now), ct); } else { var sem = _bundleLocks.GetOrAdd(supportBundleId, _ => new SemaphoreSlim(1, 1)); await sem.WaitAsync(ct); try { var b = await _db.DeviceSupportBundles .FirstOrDefaultAsync(x => x.Id == supportBundleId && x.DeviceId == device.Id && x.Status == SupportBundleStatuses.Collecting, ct); if (b != null) { b.Status = SupportBundleStatuses.Available; b.StoragePath = relativeFilePath; b.SizeBytes = totalBytesRead; b.Sha256 = sha256; b.CompletedAtUtc = now; b.ExpiresAtUtc = now.AddHours(24); b.UpdatedAtUtc = now; await _db.SaveChangesAsync(ct); affected = 1; } else { affected = 0; } } finally { sem.Release(); } } if (affected == 1) { _logger.LogInformation("Support bundle {BundleId} successfully transitioned to Available (Winner). Size={Size}, SHA256={Sha256}", supportBundleId, totalBytesRead, sha256); return Ok(new { success = true, duplicate = false, supportBundleId = supportBundleId, status = SupportBundleStatuses.Available, sha256 = sha256, sizeBytes = totalBytesRead }); } // 若 affected == 0,说明存在并发竞争,检查是否已被前一个上传完成 var current = await _db.DeviceSupportBundles.AsNoTracking().FirstOrDefaultAsync(x => x.Id == supportBundleId, ct); if (current != null && current.Status == SupportBundleStatuses.Available) { // 核心安全原则:任何文件在删除之前,必须证明它没有被当前 DB StoragePath / Sha256 引用 if (string.Equals(current.StoragePath, finalFilePath, StringComparison.OrdinalIgnoreCase) || string.Equals(current.Sha256, sha256, StringComparison.OrdinalIgnoreCase)) { // DB winner 正在引用这个 canonical file。无论此请求是不是创建文件的人,都绝不能删。 return Ok(new { success = true, duplicate = true, supportBundleId = supportBundleId, status = SupportBundleStatuses.Available, sha256 = current.Sha256, sizeBytes = current.SizeBytes }); } // 当前请求生成的是另一个内容不同、未被 DB 引用的 candidate,清理其孤立文件 (SB9) TryDeleteFile(finalFilePath); _logger.LogWarning("Concurrent upload collision for bundle {BundleId}: loser with SHA {Sha} rejected and unreferenced blob cleaned up.", supportBundleId, sha256); return Conflict(new { errorCode = SupportBundleErrorCodes.BundleAlreadyCompleted, message = "Support bundle was already completed by a concurrent upload." }); } // 非 Available 终态或异常:仅当该文件未被当前 DB 记录引用时才清理 if (!string.Equals(current?.StoragePath, finalFilePath, StringComparison.OrdinalIgnoreCase)) { TryDeleteFile(finalFilePath); } return Conflict(new { errorCode = SupportBundleErrorCodes.BundleNotAcceptingUpload, message = $"Support bundle is in state '{current?.Status}' and cannot be updated." }); } catch (Exception ex) { TryDeleteFile(tempFilePath); _logger.LogError(ex, "Unexpected error processing support bundle upload for {BundleId}", supportBundleId); return StatusCode(500, new { errorCode = SupportBundleErrorCodes.StorageFailure, message = "Internal storage error processing bundle upload." }); } } /// /// 终端主动上报采集失败 (P2-12) /// [HttpPost("{supportBundleId}/failed")] public async Task ReportFailure( [FromRoute] string supportBundleId, [FromBody] SupportBundleFailureReportDto? report, CancellationToken ct) { var deviceId = Request.Headers["X-Device-Id"].ToString(); var deviceToken = Request.Headers["X-Device-Token"].ToString(); if (string.IsNullOrWhiteSpace(deviceId) || string.IsNullOrWhiteSpace(deviceToken)) { return Unauthorized(new { errorCode = "Unauthorized", message = "Missing device authentication credentials." }); } var device = await _securityService.ValidateDeviceAsync(deviceId, deviceToken); if (device == null) { return Unauthorized(new { errorCode = "Unauthorized", message = "Invalid device credentials." }); } var bundle = await _db.DeviceSupportBundles.FirstOrDefaultAsync(b => b.Id == supportBundleId, ct); if (bundle == null) { return NotFound(new { errorCode = "SupportBundleNotFound", message = $"Support bundle '{supportBundleId}' not found." }); } if (!string.Equals(bundle.DeviceId, device.Id, StringComparison.OrdinalIgnoreCase) || !string.Equals(bundle.TenantId, device.TenantId, StringComparison.OrdinalIgnoreCase)) { return StatusCode(403, new { errorCode = SupportBundleErrorCodes.DeviceMismatch, message = "Device is not authorized to update this support bundle." }); } var now = DateTimeOffset.UtcNow; var errorCode = report?.ErrorCode ?? SupportBundleErrorCodes.CollectionFailure; int affected; if (_db.Database.IsRelational()) { affected = await _db.DeviceSupportBundles .Where(x => x.Id == supportBundleId && x.DeviceId == device.Id && x.Status == SupportBundleStatuses.Collecting) .ExecuteUpdateAsync(setters => setters .SetProperty(x => x.Status, SupportBundleStatuses.Failed) .SetProperty(x => x.ErrorCode, errorCode) .SetProperty(x => x.CompletedAtUtc, now) .SetProperty(x => x.UpdatedAtUtc, now), ct); } else { var sem = _bundleLocks.GetOrAdd(supportBundleId, _ => new SemaphoreSlim(1, 1)); await sem.WaitAsync(ct); try { var b = await _db.DeviceSupportBundles .FirstOrDefaultAsync(x => x.Id == supportBundleId && x.DeviceId == device.Id && x.Status == SupportBundleStatuses.Collecting, ct); if (b != null) { b.Status = SupportBundleStatuses.Failed; b.ErrorCode = errorCode; b.CompletedAtUtc = now; b.UpdatedAtUtc = now; await _db.SaveChangesAsync(ct); affected = 1; } else { affected = 0; } } finally { sem.Release(); } } if (affected == 1) { _logger.LogInformation("Support bundle {BundleId} marked as Failed by device {DeviceId}. ErrorCode={ErrorCode}", supportBundleId, device.Id, errorCode); return Ok(new { success = true, supportBundleId, status = SupportBundleStatuses.Failed }); } return Conflict(new { errorCode = SupportBundleErrorCodes.BundleNotAcceptingUpload, message = "Support bundle is not in Collecting state." }); } private static void TryDeleteFile(string path) { try { if (System.IO.File.Exists(path)) System.IO.File.Delete(path); } catch { } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/FleetController.cs ================================================================================ using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace ClassNotify.Server.Controllers; [ApiController] [Route("api/admin/fleet")] [Authorize(Roles = "SuperAdmin")] public sealed class FleetController : ControllerBase { private readonly IFleetVersionService _fleet; public FleetController(IFleetVersionService fleet) { _fleet = fleet; } [HttpGet("version-summary")] public async Task> GetSummary(CancellationToken ct) { var summary = await _fleet.GetFleetVersionSummaryAsync(ct); return Ok(summary); } [HttpGet("devices")] public async Task>> GetDevices( [FromQuery] FleetDeviceVersionQuery query, CancellationToken ct) { var devices = await _fleet.GetFleetDevicesAsync(query, ct); return Ok(devices); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/HealthDiagnosticsController.cs ================================================================================ using System.Diagnostics; using System.Text.Json; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Diagnostics; using ClassNotify.Server.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Controllers; [ApiController] public class HealthDiagnosticsController : ControllerBase { private readonly ClassNotifyDbContext _db; private readonly OperationalHealthState _healthState; private readonly ISecurityService _securityService; private readonly IConfiguration _config; private readonly ILogger _logger; public HealthDiagnosticsController( ClassNotifyDbContext db, OperationalHealthState healthState, ISecurityService securityService, IConfiguration config, ILogger logger) { _db = db; _healthState = healthState; _securityService = securityService; _config = config; _logger = logger; } /// /// 进程存活探针: 仅判断 ASP.NET Core 主进程是否存活,不连数据库 /// [HttpGet("/health/live")] [AllowAnonymous] public IActionResult GetLive() { return Ok(new { status = "Healthy" }); } /// /// 流量就绪探针: 校验核心数据库连通性与响应时间 /// [HttpGet("/health/ready")] [AllowAnonymous] public async Task GetReady(CancellationToken ct) { var sw = Stopwatch.StartNew(); try { var canConnect = await _db.Database.CanConnectAsync(ct); sw.Stop(); if (!canConnect) { return StatusCode(503, new { status = "Unhealthy", error = "Database connection failed" }); } if (sw.ElapsedMilliseconds > 500) { return StatusCode(200, new { status = "Degraded", latencyMs = sw.ElapsedMilliseconds }); } return Ok(new { status = "Healthy", latencyMs = sw.ElapsedMilliseconds }); } catch (Exception ex) { sw.Stop(); _logger.LogError(ex, "Ready health check failed"); return StatusCode(503, new { status = "Unhealthy", error = "Database check exception" }); } } /// /// 超管深度运维诊断端点: 返回数据库、磁盘、备份状态、清理任务及活跃连接全量指标 /// 绝不暴露数据库密码、连接串或任何敏感密钥 /// [HttpGet("api/health/diagnostics")] [Authorize(Roles = "SuperAdmin")] public async Task> GetDiagnostics(CancellationToken ct) { var dto = new DiagnosticsDto { ServerUtc = DateTimeOffset.UtcNow, UptimeSeconds = (long)(DateTimeOffset.UtcNow - _healthState.StartedAtUtc).TotalSeconds, ReleaseId = Environment.GetEnvironmentVariable("CLASSNOTIFY_RELEASE_ID") ?? (System.IO.File.Exists("release.txt") ? System.IO.File.ReadAllText("release.txt").Trim() : null) ?? _config["Release:Id"] ?? "20260925-P25-RC0" }; // 1. Database Check var swDb = Stopwatch.StartNew(); try { var canConnect = await _db.Database.CanConnectAsync(ct); swDb.Stop(); if (canConnect) { dto.Database.LatencyMs = swDb.ElapsedMilliseconds; if (swDb.ElapsedMilliseconds <= 500) { dto.Database.Status = "Healthy"; dto.Database.Summary = $"PostgreSQL connected ({swDb.ElapsedMilliseconds}ms)"; } else { dto.Database.Status = "Degraded"; dto.Database.Summary = $"PostgreSQL latency elevated ({swDb.ElapsedMilliseconds}ms)"; } dto.Database.LastSuccessUtc = DateTimeOffset.UtcNow; } else { dto.Database.Status = "Unhealthy"; dto.Database.Summary = "PostgreSQL cannot connect"; } } catch (Exception ex) { swDb.Stop(); dto.Database.Status = "Unhealthy"; dto.Database.Summary = "PostgreSQL error"; _logger.LogWarning(ex, "Database diagnostic probe failed"); } // 2. Disk Check try { var drive = new DriveInfo(Path.GetPathRoot(AppContext.BaseDirectory) ?? "/"); var freeBytes = drive.AvailableFreeSpace; var totalBytes = drive.TotalSize; var freePercent = (double)freeBytes / totalBytes * 100.0; var freeGb = freeBytes / (1024.0 * 1024 * 1024); if (freePercent >= 10.0) { dto.Disk.Status = "Healthy"; dto.Disk.Summary = $"可用空间 {freeGb:F1} GB ({freePercent:F1}%)"; } else if (freePercent >= 5.0) { dto.Disk.Status = "Degraded"; dto.Disk.Summary = $"磁盘余量偏低: {freeGb:F1} GB ({freePercent:F1}%)"; } else { dto.Disk.Status = "Unhealthy"; dto.Disk.Summary = $"磁盘空间不足严重告警: {freeGb:F1} GB ({freePercent:F1}%)"; } } catch { dto.Disk.Status = "Healthy"; dto.Disk.Summary = "Disk check skipped on current environment"; } // 3. Backup Check (reads status file generated by classnotify-backup.sh) var backupStatusPath = OperatingSystem.IsLinux() ? "/var/lib/classnotify/ops/backup-status.json" : Path.Combine(AppContext.BaseDirectory, "backup-status.json"); if (System.IO.File.Exists(backupStatusPath)) { try { var json = await System.IO.File.ReadAllTextAsync(backupStatusPath, ct); using var doc = JsonDocument.Parse(json); if (doc.RootElement.TryGetProperty("lastSuccessUtc", out var lastUtcProp) && DateTimeOffset.TryParse(lastUtcProp.GetString(), out var lastUtc)) { dto.Backup.LastSuccessUtc = lastUtc; var ageHours = (DateTimeOffset.UtcNow - lastUtc).TotalHours; if (ageHours < 26) { dto.Backup.Status = "Healthy"; dto.Backup.Summary = $"最新自动备份完成于 {ageHours:F1} 小时前"; } else if (ageHours < 48) { dto.Backup.Status = "Degraded"; dto.Backup.Summary = $"自动备份超过 24 小时未更新 ({ageHours:F1} 小时前)"; } else { dto.Backup.Status = "Unhealthy"; dto.Backup.Summary = $"备份超期严重告警: 距上次备份已达 {ageHours:F1} 小时"; } } } catch { dto.Backup.Status = "Degraded"; dto.Backup.Summary = "无法读取备份状态文件"; } } else { dto.Backup.Status = "Healthy"; dto.Backup.Summary = "系统备份任务就绪 (待首期周期触发)"; } // 4. Visual Receipt Cleanup Check if (_healthState.LastVisualReceiptCleanupSuccessUtc.HasValue) { dto.VisualReceiptCleanup.LastSuccessUtc = _healthState.LastVisualReceiptCleanupSuccessUtc; var ageHours = (DateTimeOffset.UtcNow - _healthState.LastVisualReceiptCleanupSuccessUtc.Value).TotalHours; if (ageHours < 2) { dto.VisualReceiptCleanup.Status = "Healthy"; dto.VisualReceiptCleanup.Summary = $"视觉回执定时清理正常运行 ({ageHours * 60:F0} 分钟前)"; } else if (ageHours < 6) { dto.VisualReceiptCleanup.Status = "Degraded"; dto.VisualReceiptCleanup.Summary = $"视觉回执清理已延迟 {ageHours:F1} 小时"; } else { dto.VisualReceiptCleanup.Status = "Unhealthy"; dto.VisualReceiptCleanup.Summary = $"视觉回执清理停滞 ({ageHours:F1} 小时未执行)"; } } else { dto.VisualReceiptCleanup.Status = "Healthy"; dto.VisualReceiptCleanup.Summary = "视觉回执清理任务已启动"; } // 5. Active Connections Count (Information only, does not degrade server health) dto.ActiveDeviceConnections = _healthState.ActiveDeviceConnections; dto.ActiveTeacherConnections = _healthState.ActiveTeacherConnections; // 6. Overall Status Determination if (dto.Database.Status == "Unhealthy" || dto.Disk.Status == "Unhealthy" || dto.Backup.Status == "Unhealthy") { dto.OverallStatus = "Unhealthy"; } else if (dto.Database.Status == "Degraded" || dto.Disk.Status == "Degraded" || dto.Backup.Status == "Degraded" || dto.VisualReceiptCleanup.Status == "Degraded") { dto.OverallStatus = "Degraded"; } else { dto.OverallStatus = "Healthy"; } return Ok(dto); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/NotificationController.cs ================================================================================ using System.Security.Claims; using ClassNotify.Server.Hubs; using ClassNotify.Server.Infrastructure.Correlation; using ClassNotify.Server.Infrastructure.Logging; using ClassNotify.Server.Services; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.RateLimiting; using Microsoft.AspNetCore.SignalR; namespace ClassNotify.Server.Controllers; [ApiController] [Route("api/[controller]")] [Authorize] [EnableRateLimiting("SendLimiter")] public class NotificationController : ControllerBase { private readonly IHubContext _deviceHubContext; private readonly IHubContext _teacherHubContext; private readonly ISecurityService _securityService; private readonly IVisualReceiptService _visualReceiptService; private readonly ICorrelationContext _correlationContext; private readonly ILogger _logger; public NotificationController( IHubContext deviceHubContext, IHubContext teacherHubContext, ISecurityService securityService, IVisualReceiptService visualReceiptService, ICorrelationContext correlationContext, ILogger logger) { _deviceHubContext = deviceHubContext; _teacherHubContext = teacherHubContext; _securityService = securityService; _visualReceiptService = visualReceiptService; _correlationContext = correlationContext; _logger = logger; } /// /// 教师向指定班级下发呼叫通知 (严格校验租户与班级权限) /// [HttpPost("send")] public async Task SendNotification([FromBody] NotificationDto notification) { // 1. Extract and validate tenant from authenticated teacher claims var teacherTenantId = User.FindFirst("tenant_id")?.Value; var teacherName = User.FindFirst(ClaimTypes.Name)?.Value ?? "未知老师"; var teacherId = User.FindFirst(ClaimTypes.NameIdentifier)?.Value; if (string.IsNullOrEmpty(teacherTenantId)) { return Unauthorized(new { success = false, message = "未发现合法的租户信息" }); } if (string.IsNullOrWhiteSpace(notification.ClassId) || string.IsNullOrWhiteSpace(notification.Message)) { return BadRequest(new { success = false, message = "班级编号与通知内容不可为空" }); } // 2. Multi-tenant Scope Validation: Ensure target classroom exists in teacher's tenant! var classroom = await _securityService.GetClassroomAsync(teacherTenantId, notification.ClassId); if (classroom == null) { _logger.LogWarning("Cross-tenant attempt or invalid class: Teacher {TeacherId} (Tenant: {TenantId}) tried to notify Class {ClassId}", teacherId, teacherTenantId, notification.ClassId); return StatusCode(403, new { success = false, message = "无权访问该班级,或班级不属于当前学校" }); } // 3. Stamp metadata & Business TTL Policy notification.Id = $"msg_{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}_{Guid.NewGuid().ToString("N")[..4]}"; notification.TenantId = teacherTenantId; notification.CreatedAt = DateTimeOffset.UtcNow; if (string.IsNullOrWhiteSpace(notification.CorrelationId)) { notification.CorrelationId = _correlationContext.CorrelationId; } else if (notification.CorrelationId.Length > 32) { notification.CorrelationId = notification.CorrelationId[..32]; } using var logScope = _logger.BeginClassNotifyScope( notification.CorrelationId, teacherTenantId, notification.ClassId, null, notification.Id, "Server.SendNotification"); if (notification.ExpiresAt.HasValue) { if (notification.ExpiresAt.Value <= notification.CreatedAt) { return BadRequest(new { success = false, message = "消息过期时间必须在创建时间之后" }); } // Max TTL cap: 7 days var maxExpiresAt = notification.CreatedAt.AddDays(7); if (notification.ExpiresAt.Value > maxExpiresAt) { notification.ExpiresAt = maxExpiresAt; } } else { // Default TTL based on NotificationType urgency notification.ExpiresAt = notification.Type switch { ClassNotify.Shared.Enums.NotificationType.Call => notification.CreatedAt.AddMinutes(10), ClassNotify.Shared.Enums.NotificationType.Notice => notification.CreatedAt.AddMinutes(60), ClassNotify.Shared.Enums.NotificationType.Urgent => notification.CreatedAt.AddHours(24), _ => notification.CreatedAt.AddMinutes(15) }; } await _securityService.RecordNotificationAsync(notification, teacherId, teacherName); _logger.LogInformation("Teacher {TeacherName} ({TenantId}) sending notification to {ClassName} ({ClassId}): Length={MessageLength}, Type={NotificationType}", teacherName, teacherTenantId, classroom.DisplayName, classroom.Id, notification.Message.Length, notification.Type); // 4. Send to tenant-isolated SignalR classroom group var tenantClassGroup = $"t:{teacherTenantId}:c:{notification.ClassId}"; await _deviceHubContext.Clients.Group(tenantClassGroup).ReceiveNotification(notification); // 5. Broadcast only to teachers of THIS tenant var tenantTeacherGroup = $"t:{teacherTenantId}:teachers"; await _teacherHubContext.Clients.Group(tenantTeacherGroup).OnNewNotificationBroadcast(notification); return Ok(new { success = true, messageId = notification.Id, correlationId = notification.CorrelationId, tenantId = teacherTenantId, classId = notification.ClassId, className = classroom.DisplayName, message = "通知已成功下发至教室大屏" }); } /// /// 获取当前教师所在学校的班级列表 /// [HttpGet("classes")] public async Task GetTeacherClasses() { var tenantId = User.FindFirst("tenant_id")?.Value; if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var classes = await _securityService.GetClassroomsAsync(tenantId); return Ok(classes); } /// /// 获取当前教师所在学校的历史通知记录与回执 /// [HttpGet("history")] public async Task GetNotificationHistory([FromQuery] string? classId, [FromQuery] int limit = 50) { var tenantId = User.FindFirst("tenant_id")?.Value; if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var list = await _securityService.GetNotificationsAsync(tenantId, classId, limit); return Ok(list); } /// /// 查看指定通知在指定教室设备的视觉回执现场画面 (受权限保护的短效 JPEG) /// [HttpGet("{notificationId}/receipts/{deviceId}/visual-receipt")] [HttpGet("/api/notifications/{notificationId}/receipts/{deviceId}/visual-receipt")] public async Task GetVisualReceipt(string notificationId, string deviceId) { var result = await _visualReceiptService.GetVisualReceiptFileAsync(notificationId, deviceId, User); if (!result.Success) { return StatusCode(result.StatusCode, new { success = false, message = result.ErrorMessage }); } Response.Headers["Cache-Control"] = "private, no-store, max-age=0"; Response.Headers["Pragma"] = "no-cache"; Response.Headers["X-Content-Type-Options"] = "nosniff"; return PhysicalFile(result.FilePath!, "image/jpeg"); } /// /// 撤回/提前关闭正在显示的通知 /// [HttpPost("{id}/cancel")] [HttpPost("/api/notifications/{id}/cancel")] public async Task CancelNotification(string id, CancellationToken ct) { var tenantId = User.FindFirst("tenant_id")?.Value; var userName = User.FindFirst(ClaimTypes.Name)?.Value ?? "未知操作者"; var userRole = User.FindFirst(ClaimTypes.Role)?.Value ?? "Teacher"; var userId = User.FindFirst(ClaimTypes.NameIdentifier)?.Value ?? ""; var ip = HttpContext.Connection.RemoteIpAddress?.ToString(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); CancelNotificationResult result; try { result = await _securityService.CancelNotificationAsync( id, userId, userName, userRole, tenantId, ip, ct); } catch (KeyNotFoundException ex) { return NotFound(new { success = false, message = ex.Message }); } catch (UnauthorizedAccessException ex) { return StatusCode(403, new { success = false, message = ex.Message }); } bool devicePushOk = true; bool teacherPushOk = true; if (!string.IsNullOrEmpty(result.ClassroomId)) { try { var tenantClassGroup = $"t:{result.TenantId}:c:{result.ClassroomId}"; await _deviceHubContext.Clients.Group(tenantClassGroup).CancelNotification(id); } catch (Exception ex) { devicePushOk = false; _logger.LogError(ex, "Failed to broadcast CancelNotification to device group for {NotificationId}", id); } } try { var tenantTeacherGroup = $"t:{result.TenantId}:teachers"; await _teacherHubContext.Clients.Group(tenantTeacherGroup).OnNotificationCancelled(id); } catch (Exception ex) { teacherPushOk = false; _logger.LogError(ex, "Failed to broadcast OnNotificationCancelled to teacher group for {NotificationId}", id); } return Ok(new { success = true, notificationId = id, alreadyCancelled = result.AlreadyCancelled, cancelledAt = result.CancelledAt, realtimeDeviceCloseSent = devicePushOk, realtimeTeacherUpdateSent = teacherPushOk, message = result.AlreadyCancelled ? "通知此前已被撤回" : devicePushOk ? "通知已成功撤回并请求大屏立即关闭" : "通知已撤回;实时关闭信令部分失败,但该通知不会再次补发" }); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/SchoolAdminController.cs ================================================================================ using System.Security.Claims; using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace ClassNotify.Server.Controllers; [ApiController] [Route("api/[controller]")] [Route("api/school-admin")] [Authorize(Roles = "SchoolAdmin,SuperAdmin")] public class SchoolAdminController : ControllerBase { private readonly ISecurityService _securityService; private readonly ILogger _logger; public SchoolAdminController(ISecurityService securityService, ILogger logger) { _securityService = securityService; _logger = logger; } private string? GetTenantId() { // If SuperAdmin, can specify tenant_id via query or header, otherwise use claim var claimTenant = User.FindFirst("tenant_id")?.Value; if (claimTenant == "global" && Request.Query.ContainsKey("tenant_id")) { return Request.Query["tenant_id"].ToString(); } return claimTenant; } /// /// 获取本校基础统计 /// [HttpGet("overview")] public async Task GetOverview() { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var tenant = await _securityService.GetTenantAsync(tenantId); var classes = await _securityService.GetClassroomsAsync(tenantId); var devices = await _securityService.GetTenantDevicesAsync(tenantId); var teachers = await _securityService.GetUsersAsync(tenantId); return Ok(new { tenantId, tenantName = tenant?.Name ?? tenantId, classCount = classes.Count, deviceCount = devices.Count, onlineCount = devices.Count(d => d.IsOnline), teacherCount = teachers.Count }); } /// /// 获取本校所有班级 /// [HttpGet("classes")] public async Task GetClasses() { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var classes = await _securityService.GetClassroomsAsync(tenantId); return Ok(classes); } /// /// 为本校新增班级 /// [HttpPost("classes")] public async Task CreateClass([FromBody] CreateClassroomDto dto) { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); if (string.IsNullOrWhiteSpace(dto.Id) || string.IsNullOrWhiteSpace(dto.DisplayName)) { return BadRequest(new { success = false, message = "班级编号与班级名称不可为空" }); } var ok = await _securityService.CreateClassroomAsync(tenantId, dto); if (!ok) { return BadRequest(new { success = false, message = $"班级编号 {dto.Id} 已存在" }); } return Ok(new { success = true, message = "班级创建成功" }); } /// /// 获取本校所有教师与管理员账号 /// [HttpGet("teachers")] public async Task GetTeachers() { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var users = await _securityService.GetUsersAsync(tenantId); var result = users.Select(u => new { u.Id, u.Username, u.FullName, u.Role, u.IsLocked, u.CreatedAt, u.LastLoginAt }); return Ok(result); } /// /// 学校管理员为本校教师重置密码 /// [HttpPost("teachers/{userId}/reset-password")] public async Task ResetTeacherPassword(string userId, [FromBody] ResetPasswordRequest req) { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); if (string.IsNullOrWhiteSpace(req.NewPassword) || req.NewPassword.Length < 8) { return BadRequest(new { success = false, message = "新密码长度不得小于 8 个字符" }); } var actor = User.FindFirst(ClaimTypes.Name)?.Value ?? "SchoolAdmin"; var ip = HttpContext.Connection.RemoteIpAddress?.ToString(); try { await _securityService.ResetSchoolTeacherPasswordAsync(tenantId, userId, req.NewPassword, actor, ip); return Ok(new { success = true, message = "教师密码已成功重置,历史登录会话已失效" }); } catch (ArgumentException ex) { return BadRequest(new { success = false, message = ex.Message }); } catch (UnauthorizedAccessException ex) { return StatusCode(403, new { success = false, message = ex.Message }); } catch (KeyNotFoundException ex) { return NotFound(new { success = false, message = ex.Message }); } } /// /// 学校管理员停用或启用本校教师账号 /// [HttpPost("teachers/{userId}/lock")] public async Task SetTeacherLock(string userId, [FromBody] LockUserRequest req) { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var actor = User.FindFirst(ClaimTypes.Name)?.Value ?? "SchoolAdmin"; var ip = HttpContext.Connection.RemoteIpAddress?.ToString(); try { var changed = await _securityService.SetSchoolTeacherLockAsync(tenantId, userId, req.IsLocked, actor, ip); return Ok(new { success = true, changed, isLocked = req.IsLocked, message = changed ? (req.IsLocked ? "教师账号已停用并强制下线" : "教师账号已恢复启用") : "账号已处于目标状态" }); } catch (UnauthorizedAccessException ex) { return StatusCode(403, new { success = false, message = ex.Message }); } catch (KeyNotFoundException ex) { return NotFound(new { success = false, message = ex.Message }); } } /// /// 为本校创建教师账号 /// [HttpPost("teachers")] public async Task CreateTeacher([FromBody] CreateTeacherDto dto) { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); if (string.IsNullOrWhiteSpace(dto.Username) || string.IsNullOrWhiteSpace(dto.Password) || string.IsNullOrWhiteSpace(dto.FullName)) { return BadRequest(new { success = false, message = "账号、密码和姓名不可为空" }); } // P0-02: Prevent privilege escalation. // SchoolAdmin can only create Teacher accounts. // SuperAdmin can create SchoolAdmin or Teacher, but never SuperAdmin here. if (!User.IsInRole("SuperAdmin")) { dto.Role = "Teacher"; } else { if (dto.Role == "SuperAdmin") { return BadRequest(new { success = false, message = "禁止通过此接口创建平台超级管理员账号" }); } if (string.IsNullOrWhiteSpace(dto.Role)) { dto.Role = "Teacher"; } } var ok = await _securityService.CreateUserAsync(tenantId, dto); if (!ok) { return BadRequest(new { success = false, message = $"用户名 {dto.Username} 已存在" }); } return Ok(new { success = true, message = "教师账号创建成功" }); } /// /// 获取本校所有设备 /// [HttpGet("devices")] public async Task GetDevices() { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var devices = await _securityService.GetTenantDevicesAsync(tenantId); return Ok(devices); } /// /// 获取本校激活码 /// [HttpGet("activation-codes")] public async Task GetActivationCodes() { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); var codes = await _securityService.GetActivationCodesAsync(tenantId); return Ok(codes); } /// /// 本校管理员生成班级激活码 /// [HttpPost("activation-codes")] public async Task GenerateActivationCode([FromQuery] string classId) { var tenantId = GetTenantId(); if (string.IsNullOrEmpty(tenantId)) return Unauthorized(); if (string.IsNullOrWhiteSpace(classId)) { return BadRequest(new { success = false, message = "班级编号不可为空" }); } var classroom = await _securityService.GetClassroomAsync(tenantId, classId); if (classroom == null) { return NotFound(new { success = false, message = $"班级 {classId} 不存在或不属于该学校" }); } try { var code = await _securityService.GenerateActivationCodeAsync(tenantId, classId); return Ok(new { success = true, code, tenantId, classId, message = "激活码生成成功" }); } catch (Exception ex) { return BadRequest(new { success = false, message = ex.Message }); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/SelfCheckBatchesController.cs ================================================================================ using System.Security.Claims; using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace ClassNotify.Server.Controllers; /// /// 终端批量自检与故障下钻运维接口 (P2.5 RC1-2) /// 严格仅限 SuperAdmin 权限访问 /// 满足 SCB1-SCB15 全部门禁规范 /// [ApiController] [Route("api/admin/self-check-batches")] [Authorize(Roles = "SuperAdmin")] public class SelfCheckBatchesController : ControllerBase { private readonly ISelfCheckBatchService _batchService; private readonly ILogger _logger; public SelfCheckBatchesController( ISelfCheckBatchService batchService, ILogger logger) { _batchService = batchService; _logger = logger; } private string GetActorUsername() => User.FindFirst(ClaimTypes.Name)?.Value ?? User.FindFirst(ClaimTypes.NameIdentifier)?.Value ?? "SuperAdmin"; private string GetClientIp() => HttpContext.Connection.RemoteIpAddress?.ToString() ?? "127.0.0.1"; /// /// 发起批量终端自检 (SCB1, SCB2, SCB3, SCB4, SCB6) /// [HttpPost] public async Task CreateBatch( [FromBody] CreateSelfCheckBatchRequest request, CancellationToken ct) { if (request == null) { return BadRequest(new { success = false, message = "请求体不可为空" }); } try { var actor = GetActorUsername(); var ip = GetClientIp(); var created = await _batchService.CreateBatchAsync(request, actor, ip, ct); return Ok(created); } catch (ArgumentException ex) { return BadRequest(new { success = false, message = ex.Message }); } } /// /// 获取最近批量自检批次列表及动态指标 /// [HttpGet] public async Task GetBatches( [FromQuery] string? status, [FromQuery] int take = 20, CancellationToken ct = default) { var batches = await _batchService.GetBatchesAsync(status, take, ct); return Ok(batches); } /// /// 获取指定批次详情、完成度指标与 7 项探针故障聚合分布 (SCB12) /// [HttpGet("{batchId}")] public async Task GetBatchById( string batchId, CancellationToken ct) { if (string.IsNullOrWhiteSpace(batchId)) { return BadRequest(new { success = false, message = "批次编号不可为空" }); } var detail = await _batchService.GetBatchAsync(batchId, ct); if (detail == null) { return NotFound(new { success = false, message = $"未找到批次 {batchId}" }); } return Ok(detail); } /// /// 批次下设备自检运行明细多维过滤与分页查询 (SCB13, SCB14) /// [HttpGet("{batchId}/devices")] public async Task GetBatchDevices( string batchId, [FromQuery] SelfCheckBatchDeviceQuery query, CancellationToken ct) { if (string.IsNullOrWhiteSpace(batchId)) { return BadRequest(new { success = false, message = "批次编号不可为空" }); } var paged = await _batchService.GetBatchDevicesAsync(batchId, query, ct); return Ok(paged); } /// /// 单台终端自检运行明细与 7 项探针深度下钻 /// [HttpGet("{batchId}/runs/{runId}")] public async Task GetBatchDeviceRunDetail( string batchId, string runId, CancellationToken ct) { if (string.IsNullOrWhiteSpace(batchId) || string.IsNullOrWhiteSpace(runId)) { return BadRequest(new { success = false, message = "批次编号与自检编号不可为空" }); } var detail = await _batchService.GetBatchDeviceRunDetailAsync(batchId, runId, ct); if (detail == null) { return NotFound(new { success = false, message = $"未找到自检运行记录 {runId}" }); } return Ok(detail); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Controllers/SupportBundlesController.cs ================================================================================ using System.IO; using System.Security.Claims; using System.Threading; using System.Threading.Tasks; using ClassNotify.Server.Services; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace ClassNotify.Server.Controllers; /// /// 设备技术诊断包管控接口 (P2.5 RC1-3 Support Bundle Phase 1, Phase 2, Phase 3) /// 覆盖诊断包发起、状态查询、历史恢复与管理员安全下载 /// [ApiController] public class SupportBundlesController : ControllerBase { private readonly ISupportBundleService _bundleService; private readonly ILogger _logger; public SupportBundlesController( ISupportBundleService bundleService, ILogger logger) { _bundleService = bundleService; _logger = logger; } private string GetActorUsername() => User.FindFirst(ClaimTypes.Name)?.Value ?? User.FindFirst(ClaimTypes.NameIdentifier)?.Value ?? "Admin"; private string GetActorRole() => User.FindFirst(ClaimTypes.Role)?.Value ?? (User.IsInRole("SuperAdmin") ? "SuperAdmin" : "SchoolAdmin"); private string? GetActorTenantId() => User.FindFirst("tenant_id")?.Value ?? User.FindFirst("TenantId")?.Value; private string GetClientIp() => HttpContext.Connection.RemoteIpAddress?.ToString() ?? "127.0.0.1"; /// /// 请求生成设备技术诊断包 (SB1-SB3, P1-1 ~ P1-10) /// [HttpPost("api/admin/devices/{deviceId}/support-bundles")] [Authorize(Roles = "SuperAdmin,SchoolAdmin")] public async Task CreateSupportBundle( [FromRoute] string deviceId, [FromBody] CreateSupportBundleRequest? request, CancellationToken ct) { var actorUser = GetActorUsername(); var actorRole = GetActorRole(); var actorTenant = GetActorTenantId(); var clientIp = GetClientIp(); // 支持非生产环境测试事务原子性测试桩 bool simulateAuditFailure = Request.Headers.TryGetValue("X-Simulate-Audit-Failure", out var headerVal) && string.Equals(headerVal, "true", StringComparison.OrdinalIgnoreCase); var result = await _bundleService.CreateSupportBundleAsync( deviceId, request ?? new CreateSupportBundleRequest(), actorUser, actorRole, actorTenant, clientIp, simulateAuditFailure, ct); if (result.StatusCode == 202) { var locationUrl = $"/api/admin/support-bundles/{result.Dto!.SupportBundleId}"; return Accepted(locationUrl, result.Dto); } if (result.StatusCode == 409) { return Conflict(new { errorCode = result.ErrorCode, supportBundleId = result.ExistingBundleId, message = result.ErrorMessage }); } if (result.StatusCode == 403) { return StatusCode(403, new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } if (result.StatusCode == 404) { return NotFound(new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } return BadRequest(new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } /// /// 获取技术诊断包状态与详情 (P3-1: 严格 RBAC,杜绝暴露服务器物理路径) /// [HttpGet("api/admin/support-bundles/{bundleId}")] [Authorize(Roles = "SuperAdmin,SchoolAdmin")] public async Task GetSupportBundle( [FromRoute] string bundleId, CancellationToken ct) { var actorRole = GetActorRole(); var actorTenant = GetActorTenantId(); var result = await _bundleService.GetSupportBundleStatusAsync(bundleId, actorRole, actorTenant, ct); if (result.StatusCode == 403) { return StatusCode(403, new { errorCode = "Forbidden", message = result.ErrorMessage }); } if (result.StatusCode == 404) { return NotFound(new { errorCode = SupportBundleErrorCodes.SupportBundleNotFound, message = result.ErrorMessage }); } return Ok(result.Data); } /// /// 获取指定设备最近技术诊断包记录 (P3-11: 页面刷新恢复,最多 20 条) /// [HttpGet("api/admin/devices/{deviceId}/support-bundles")] [Authorize(Roles = "SuperAdmin,SchoolAdmin")] public async Task GetDeviceSupportBundles( [FromRoute] string deviceId, [FromQuery] int take = 5, CancellationToken ct = default) { var actorRole = GetActorRole(); var actorTenant = GetActorTenantId(); var result = await _bundleService.GetDeviceSupportBundlesAsync(deviceId, take, actorRole, actorTenant, ct); if (result.StatusCode == 403) { return StatusCode(403, new { errorCode = "Forbidden", message = result.ErrorMessage }); } if (result.StatusCode == 404) { return NotFound(new { errorCode = "DeviceNotFound", message = result.ErrorMessage }); } return Ok(result.Data); } /// /// 管理员安全下载诊断包 (P3-2 ~ P3-5, P3-8, P3-9) /// 严格防目录越界、防过期、防非就绪下载,成功后生成标准下载文件名与 Audit 记录 /// [HttpGet("api/admin/support-bundles/{bundleId}/download")] [Authorize(Roles = "SuperAdmin,SchoolAdmin")] public async Task DownloadSupportBundle( [FromRoute] string bundleId, CancellationToken ct) { var actorUser = GetActorUsername(); var actorRole = GetActorRole(); var actorTenant = GetActorTenantId(); var clientIp = GetClientIp(); var result = await _bundleService.PrepareDownloadAsync(bundleId, actorRole, actorTenant, actorUser, clientIp, ct); if (result.StatusCode == 403) { return StatusCode(403, new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } if (result.StatusCode == 404) { return NotFound(new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } if (result.StatusCode == 409) { return Conflict(new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } if (result.StatusCode == 410) { return StatusCode(410, new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } if (result.StatusCode == 400) { return BadRequest(new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } if (result.StatusCode == 500) { return StatusCode(500, new { errorCode = result.ErrorCode, message = result.ErrorMessage }); } Response.Headers["Cache-Control"] = "private, no-store"; Response.Headers["Pragma"] = "no-cache"; Response.Headers["X-Content-Type-Options"] = "nosniff"; var fileStream = new FileStream(result.PhysicalPath!, FileMode.Open, FileAccess.Read, FileShare.Read, 81920, useAsync: true); return File(fileStream, "application/zip", result.DownloadFileName, enableRangeProcessing: false); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/ClassNotifyDbContext.cs ================================================================================ using ClassNotify.Server.Domain.Entities; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Data; public class ClassNotifyDbContext : DbContext { public ClassNotifyDbContext(DbContextOptions options) : base(options) { } public DbSet Tenants => Set(); public DbSet Classrooms => Set(); public DbSet Users => Set(); public DbSet Devices => Set(); public DbSet DeviceCredentials => Set(); public DbSet ActivationCodes => Set(); public DbSet Notifications => Set(); public DbSet NotificationReceipts => Set(); public DbSet MigrationMarkers => Set(); public DbSet DeviceCommands => Set(); public DbSet AdminAuditEvents => Set(); public DbSet DeviceSelfChecks => Set(); public DbSet DeviceSelfCheckBatches => Set(); public DbSet DeviceSupportBundles => Set(); protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); // 1. Tenant modelBuilder.Entity(entity => { entity.HasKey(t => t.Id); entity.Property(t => t.Name).IsRequired().HasMaxLength(200); }); // 2. Classroom (Composite key for multi-tenant isolation) modelBuilder.Entity(entity => { entity.HasKey(c => new { c.TenantId, c.Id }); entity.Property(c => c.DisplayName).IsRequired().HasMaxLength(100); entity.Property(c => c.Grade).HasMaxLength(50); entity.Property(c => c.RoomNumber).HasMaxLength(50); entity.HasOne(c => c.Tenant) .WithMany(t => t.Classrooms) .HasForeignKey(c => c.TenantId) .OnDelete(DeleteBehavior.Cascade); entity.HasIndex(c => new { c.TenantId, c.Id }); }); // 3. User modelBuilder.Entity(entity => { entity.HasKey(u => u.Id); entity.Property(u => u.Username).IsRequired().HasMaxLength(100); entity.Property(u => u.PasswordHash).IsRequired(); entity.Property(u => u.FullName).IsRequired().HasMaxLength(100); entity.Property(u => u.Role).IsRequired().HasMaxLength(50); entity.HasIndex(u => u.Username).IsUnique(); entity.HasIndex(u => u.TenantId); entity.HasOne(u => u.Tenant) .WithMany(t => t.Users) .HasForeignKey(u => u.TenantId) .OnDelete(DeleteBehavior.Restrict); }); // 4. Device modelBuilder.Entity(entity => { entity.HasKey(d => d.Id); entity.Property(d => d.DeviceTokenHash).IsRequired(); entity.Property(d => d.InstallationId).HasMaxLength(100); entity.Property(d => d.Hostname).HasMaxLength(200); entity.HasIndex(d => d.Id).IsUnique(); entity.HasIndex(d => d.InstallationId).IsUnique().HasFilter("\"InstallationId\" IS NOT NULL"); entity.HasIndex(d => new { d.TenantId, d.ClassroomId }); entity.HasIndex(d => d.TenantId); entity.HasOne(d => d.Tenant) .WithMany(t => t.Devices) .HasForeignKey(d => d.TenantId) .OnDelete(DeleteBehavior.Restrict); entity.HasOne(d => d.Classroom) .WithMany(c => c.Devices) .HasForeignKey(d => new { d.TenantId, d.ClassroomId }) .OnDelete(DeleteBehavior.Restrict); }); // 5. DeviceCredentialRecord modelBuilder.Entity(entity => { entity.HasKey(c => c.DeviceId); entity.Property(c => c.InstallationId).IsRequired().HasMaxLength(100); entity.Property(c => c.DeviceTokenHash).IsRequired(); entity.Property(c => c.EncryptedRecoverableToken).IsRequired(); entity.HasIndex(c => c.DeviceId).IsUnique(); entity.HasIndex(c => c.InstallationId).IsUnique(); }); // 6. ActivationCode modelBuilder.Entity(entity => { entity.HasKey(a => a.Code); entity.Property(a => a.Code).HasMaxLength(50); entity.Property(a => a.ClassroomId).IsRequired().HasMaxLength(50); entity.Property(a => a.InstallationId).HasMaxLength(100); entity.HasIndex(a => a.Code).IsUnique(); entity.HasIndex(a => a.TenantId); entity.HasIndex(a => a.ClassroomId); entity.HasIndex(a => a.InstallationId); entity.HasOne(a => a.Tenant) .WithMany(t => t.ActivationCodes) .HasForeignKey(a => a.TenantId) .OnDelete(DeleteBehavior.Restrict); }); // 7. Notification modelBuilder.Entity(entity => { entity.HasKey(n => n.Id); entity.Property(n => n.Id).HasMaxLength(100); entity.Property(n => n.ClassroomId).IsRequired().HasMaxLength(50); entity.Property(n => n.SenderName).IsRequired().HasMaxLength(100); entity.Property(n => n.Message).IsRequired(); entity.Property(n => n.Title).IsRequired().HasMaxLength(200); entity.Property(n => n.Priority).IsRequired().HasMaxLength(50); entity.Property(n => n.CorrelationId).HasMaxLength(32); entity.HasIndex(n => n.CorrelationId); entity.HasIndex(n => new { n.TenantId, n.CreatedAt }).IsDescending(false, true); entity.HasIndex(n => new { n.ClassroomId, n.CreatedAt }).IsDescending(false, true); entity.HasIndex(n => new { n.TenantId, n.ClassroomId, n.ExpiresAt }); entity.HasOne(n => n.Tenant) .WithMany(t => t.Notifications) .HasForeignKey(n => n.TenantId) .OnDelete(DeleteBehavior.Cascade); }); // 8. NotificationReceipt (per-device ACK state isolation) modelBuilder.Entity(entity => { entity.HasKey(r => r.Id); entity.Property(r => r.Id).HasMaxLength(100); entity.Property(r => r.NotificationId).IsRequired().HasMaxLength(100); entity.Property(r => r.DeviceId).IsRequired().HasMaxLength(100); entity.Property(r => r.Status).IsRequired().HasMaxLength(50); entity.Property(r => r.FailureReason).HasMaxLength(500); entity.Property(r => r.VisualReceiptState).IsRequired().HasMaxLength(32).HasDefaultValue("None"); entity.Property(r => r.VisualReceiptPath).HasMaxLength(500); entity.Property(r => r.VisualReceiptSha256).HasMaxLength(64); entity.HasIndex(r => new { r.NotificationId, r.DeviceId }).IsUnique(); entity.HasIndex(r => new { r.DeviceId, r.UpdatedAt }).IsDescending(false, true); entity.HasIndex(r => new { r.DeviceId, r.Status }); entity.HasIndex(r => r.VisualReceiptExpiresAt); entity.HasOne(r => r.Notification) .WithMany(n => n.Receipts) .HasForeignKey(r => r.NotificationId) .OnDelete(DeleteBehavior.Cascade); entity.HasOne(r => r.Device) .WithMany(d => d.Receipts) .HasForeignKey(r => r.DeviceId) .OnDelete(DeleteBehavior.Cascade); }); // 9. MigrationMarker modelBuilder.Entity(entity => { entity.HasKey(m => m.Id); entity.Property(m => m.Id).HasMaxLength(100); }); // 10. DeviceCommand modelBuilder.Entity(entity => { entity.HasKey(c => c.Id); entity.Property(c => c.Id).HasMaxLength(100); entity.Property(c => c.TenantId).IsRequired().HasMaxLength(100); entity.Property(c => c.DeviceId).IsRequired().HasMaxLength(100); entity.Property(c => c.CommandType).IsRequired().HasMaxLength(50); entity.Property(c => c.CreatedBy).IsRequired().HasMaxLength(100); entity.Property(c => c.Status).IsRequired().HasMaxLength(50); entity.Property(c => c.DurationMs); entity.Property(c => c.ResultMessage).HasMaxLength(1000); entity.HasIndex(c => new { c.TenantId, c.DeviceId, c.CreatedAt }).IsDescending(false, false, true); entity.HasIndex(c => new { c.DeviceId, c.Status }); entity.HasIndex(c => new { c.Status, c.ExpiresAt }); entity.HasOne(c => c.Tenant) .WithMany() .HasForeignKey(c => c.TenantId) .OnDelete(DeleteBehavior.Cascade); entity.HasOne(c => c.Device) .WithMany() .HasForeignKey(c => c.DeviceId) .OnDelete(DeleteBehavior.Cascade); }); // 11. DeviceSelfCheckRun modelBuilder.Entity(entity => { entity.HasKey(sc => sc.Id); entity.Property(sc => sc.Id).HasMaxLength(100); entity.Property(sc => sc.BatchId).HasMaxLength(100); entity.Property(sc => sc.TenantId).IsRequired().HasMaxLength(100); entity.Property(sc => sc.DeviceId).IsRequired().HasMaxLength(100); entity.Property(sc => sc.CorrelationId).HasMaxLength(32); entity.Property(sc => sc.Status).IsRequired().HasMaxLength(50); entity.Property(sc => sc.RunState).IsRequired().HasMaxLength(32).HasDefaultValue(ClassNotify.Shared.Models.SelfCheckRunStates.PendingDispatch); entity.Property(sc => sc.OverallStatus).HasMaxLength(32); entity.Property(sc => sc.ResultJson).HasMaxLength(32768); entity.Property(sc => sc.RequestedByUserId).HasMaxLength(100); entity.HasIndex(sc => new { sc.DeviceId, sc.RequestedAtUtc }).IsDescending(false, true); entity.HasIndex(sc => sc.CorrelationId); entity.HasIndex(sc => new { sc.TenantId, sc.Status }); entity.HasIndex(sc => new { sc.BatchId, sc.RunState }); entity.HasIndex(sc => new { sc.BatchId, sc.OverallStatus }); entity.HasIndex(sc => new { sc.BatchId, sc.DeviceId }).IsUnique().HasFilter("\"BatchId\" IS NOT NULL"); entity.HasOne(sc => sc.Tenant) .WithMany() .HasForeignKey(sc => sc.TenantId) .OnDelete(DeleteBehavior.Cascade); entity.HasOne(sc => sc.Device) .WithMany() .HasForeignKey(sc => sc.DeviceId) .OnDelete(DeleteBehavior.Cascade); entity.HasOne(sc => sc.Batch) .WithMany() .HasForeignKey(sc => sc.BatchId) .OnDelete(DeleteBehavior.Restrict); }); // 12. DeviceSelfCheckBatch (P2.5 RC1-2) modelBuilder.Entity(entity => { entity.HasKey(x => x.Id); entity.Property(x => x.Id).HasMaxLength(100); entity.Property(x => x.CorrelationId).HasMaxLength(32).IsRequired(); entity.Property(x => x.ClientRequestId).HasMaxLength(64).IsRequired(); entity.Property(x => x.CreatedByUserId).HasMaxLength(100).IsRequired(); entity.Property(x => x.Status).HasMaxLength(32).IsRequired(); entity.HasIndex(x => x.CreatedAtUtc); entity.HasIndex(x => new { x.CreatedByUserId, x.ClientRequestId }).IsUnique(); }); // 13. DeviceSupportBundle (P2.5 RC1-3 Support Bundle) modelBuilder.Entity(entity => { entity.ToTable("DeviceSupportBundles", t => { t.HasCheckConstraint("CK_DeviceSupportBundles_Status", "\"Status\" IN ('PendingDispatch', 'Collecting', 'Available', 'Failed', 'TimedOut', 'Expired')"); }); entity.HasKey(sb => sb.Id); entity.Property(sb => sb.Id).HasMaxLength(100); entity.Property(sb => sb.ClientRequestId).HasMaxLength(64).IsRequired(); entity.Property(sb => sb.TenantId).IsRequired().HasMaxLength(100); entity.Property(sb => sb.DeviceId).IsRequired().HasMaxLength(100); entity.Property(sb => sb.CorrelationId).HasMaxLength(32).IsRequired(); entity.Property(sb => sb.RequestedByUserId).HasMaxLength(100).IsRequired(); entity.Property(sb => sb.Status).IsRequired().HasMaxLength(32); entity.Property(sb => sb.StoragePath).HasMaxLength(500); entity.Property(sb => sb.Sha256).HasMaxLength(64); entity.Property(sb => sb.ErrorCode).HasMaxLength(100); // 1. (RequestedByUserId, ClientRequestId) UNIQUE entity.HasIndex(sb => new { sb.RequestedByUserId, sb.ClientRequestId }).IsUnique(); // 2. Partial Unique Index: DeviceId where Status IN ('PendingDispatch', 'Collecting') entity.HasIndex(sb => sb.DeviceId) .IsUnique() .HasDatabaseName("UX_DeviceSupportBundles_Device_Active") .HasFilter("\"Status\" IN ('PendingDispatch', 'Collecting')"); // 3. (Status, NextDispatchAttemptAtUtc) entity.HasIndex(sb => new { sb.Status, sb.NextDispatchAttemptAtUtc }); // 4. (TenantId, CreatedAtUtc) entity.HasIndex(sb => new { sb.TenantId, sb.CreatedAtUtc }); // 5. (DeviceId, CreatedAtUtc) entity.HasIndex(sb => new { sb.DeviceId, sb.CreatedAtUtc }); // 6. CorrelationId entity.HasIndex(sb => sb.CorrelationId); // 7. ExpiresAtUtc entity.HasIndex(sb => sb.ExpiresAtUtc); entity.HasOne(sb => sb.Tenant) .WithMany() .HasForeignKey(sb => sb.TenantId) .OnDelete(DeleteBehavior.Cascade); entity.HasOne(sb => sb.Device) .WithMany() .HasForeignKey(sb => sb.DeviceId) .OnDelete(DeleteBehavior.Cascade); }); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/ClassNotifyDbContextFactory.cs ================================================================================ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; namespace ClassNotify.Server.Data; public class ClassNotifyDbContextFactory : IDesignTimeDbContextFactory { public ClassNotifyDbContext CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder(); // Default local/development connection string for migrations design-time // Note: Real production connection strings are loaded via EnvironmentFile on the VPS var connStr = Environment.GetEnvironmentVariable("ConnectionStrings__DefaultConnection") ?? "Host=127.0.0.1;Port=5432;Database=classnotify;Username=classnotify;Password=;"; optionsBuilder.UseNpgsql(connStr); return new ClassNotifyDbContext(optionsBuilder.Options); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/DbInitializer.cs ================================================================================ using System.Security.Cryptography; using System.Text; using ClassNotify.Server.Domain.Entities; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Data; public static class DbInitializer { public static async Task InitializeAsync(ClassNotifyDbContext dbContext, IHostEnvironment env, IConfiguration config, ILogger logger) { // 1. Always ensure 'global' tenant exists for SuperAdmin users if (!await dbContext.Tenants.AnyAsync(t => t.Id == "global")) { dbContext.Tenants.Add(new Tenant { Id = "global", Name = "全局平台管理", IsActive = true, CreatedAt = DateTimeOffset.UtcNow }); await dbContext.SaveChangesAsync(); } // 2. HARD PRODUCTION SEED GUARD: // In Production environment, NEVER allow development seeding under any circumstances, // even if SeedDevelopmentData is erroneously set to true in configuration. if (env.IsProduction()) { if (config.GetValue("SeedDevelopmentData")) { logger.LogWarning("SECURITY ALERT: SeedDevelopmentData=true was configured in Production environment! Hard guard engaged: development seeding is strictly prohibited in Production."); } logger.LogInformation("Production environment: Development seeding is strictly prohibited. Skipping."); return; } // Only seed sample schools/classes/devices in non-production development environments bool seedDevData = config.GetValue("SeedDevelopmentData") || env.IsDevelopment(); if (!seedDevData) { logger.LogInformation("Skipping development data seeding."); return; } // If tenants other than 'global' already exist, skip development seed if (await dbContext.Tenants.AnyAsync(t => t.Id != "global")) { return; } logger.LogInformation("Seeding initial development tenants, classrooms, users, and activation codes..."); // Development Tenants var t1 = new Tenant { Id = "t_beijing_no4", Name = "北京四中", IsActive = true, CreatedAt = DateTimeOffset.UtcNow }; var t2 = new Tenant { Id = "t_shanghai_high", Name = "上海实验学校", IsActive = true, CreatedAt = DateTimeOffset.UtcNow }; dbContext.Tenants.AddRange(t1, t2); // Development Classrooms var c1 = new Classroom { Id = "cls_801", TenantId = "t_beijing_no4", DisplayName = "八年级(1)班", Grade = "初二", RoomNumber = "综合楼301" }; var c2 = new Classroom { Id = "cls_802", TenantId = "t_beijing_no4", DisplayName = "八年级(2)班", Grade = "初二", RoomNumber = "综合楼302" }; var c3 = new Classroom { Id = "cls_801", TenantId = "t_shanghai_high", DisplayName = "高一(1)班", Grade = "高一", RoomNumber = "实验楼101" }; dbContext.Classrooms.AddRange(c1, c2, c3); // Development Users var hasher = new Microsoft.AspNetCore.Identity.PasswordHasher(); var uSuper = new User { Id = "usr_super", TenantId = "global", Username = "admin", FullName = "超级管理员", Role = "SuperAdmin" }; uSuper.PasswordHash = hasher.HashPassword(uSuper, "admin888"); var uAdminBj = new User { Id = "usr_admin_bj", TenantId = "t_beijing_no4", Username = "admin_bj4", FullName = "北京四中管理员", Role = "SchoolAdmin" }; uAdminBj.PasswordHash = hasher.HashPassword(uAdminBj, "admin123"); var uAdminSh = new User { Id = "usr_admin_sh", TenantId = "t_shanghai_high", Username = "admin_sh", FullName = "上海实验管理员", Role = "SchoolAdmin" }; uAdminSh.PasswordHash = hasher.HashPassword(uAdminSh, "admin123"); var u101 = new User { Id = "usr_101", TenantId = "t_beijing_no4", Username = "teacher_zhang", FullName = "张老师", Role = "Teacher" }; u101.PasswordHash = hasher.HashPassword(u101, "teacher123"); var u201 = new User { Id = "usr_201", TenantId = "t_shanghai_high", Username = "teacher_li", FullName = "李老师", Role = "Teacher" }; u201.PasswordHash = hasher.HashPassword(u201, "teacher123"); dbContext.Users.AddRange(uSuper, uAdminBj, uAdminSh, u101, u201); // Development Activation Codes dbContext.ActivationCodes.AddRange( new ActivationCode { Code = "TEST-2026", TenantId = "t_beijing_no4", ClassroomId = "cls_801", ExpiresAt = DateTimeOffset.UtcNow.AddDays(30), IsUsed = false }, new ActivationCode { Code = "BJ81-2026", TenantId = "t_beijing_no4", ClassroomId = "cls_801", ExpiresAt = DateTimeOffset.UtcNow.AddDays(30), IsUsed = false }, new ActivationCode { Code = "BJ82-2026", TenantId = "t_beijing_no4", ClassroomId = "cls_802", ExpiresAt = DateTimeOffset.UtcNow.AddDays(30), IsUsed = false }, new ActivationCode { Code = "BJ81-DEMO", TenantId = "t_beijing_no4", ClassroomId = "cls_801", ExpiresAt = DateTimeOffset.UtcNow.AddDays(30), IsUsed = false }, new ActivationCode { Code = "SH01-2026", TenantId = "t_shanghai_high", ClassroomId = "cls_801", ExpiresAt = DateTimeOffset.UtcNow.AddDays(30), IsUsed = false } ); await dbContext.SaveChangesAsync(); logger.LogInformation("Development seed completed successfully."); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/JsonMigrationService.cs ================================================================================ using System.Text.Json; using ClassNotify.Server.Domain.Entities; using ClassNotify.Shared.Models; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Data; public class JsonMigrationResult { public bool Migrated { get; set; } public string? BackupPath { get; set; } public int TenantsCount { get; set; } public int ClassroomsCount { get; set; } public int UsersCount { get; set; } public int DevicesCount { get; set; } public int CredentialsCount { get; set; } public int ActivationCodesCount { get; set; } public int NotificationsCount { get; set; } } public static class JsonMigrationService { public static async Task MigrateAsync(ClassNotifyDbContext dbContext, string? dataDirectory, ILogger logger) { var result = new JsonMigrationResult(); var marker = await dbContext.MigrationMarkers.FindAsync("JsonMigration_v1"); if (marker != null) { logger.LogInformation("JSON migration marker 'JsonMigration_v1' already exists (migrated at {MigratedAt}). Skipping migration.", marker.MigratedAt); return result; } var dataDir = dataDirectory ?? Path.Combine(AppContext.BaseDirectory, "data"); if (!Directory.Exists(dataDir)) { logger.LogInformation("No 'data' directory found at {DataDir}. Skipping JSON migration.", dataDir); return result; } var tenantsFile = Path.Combine(dataDir, "tenants.json"); var classroomsFile = Path.Combine(dataDir, "classrooms.json"); var usersFile = Path.Combine(dataDir, "users.json"); var devicesFile = Path.Combine(dataDir, "devices.json"); var credsFile = Path.Combine(dataDir, "device_credentials.json"); var codesFile = Path.Combine(dataDir, "activation_codes.json"); var notifsFile = Path.Combine(dataDir, "notifications.json"); if (!File.Exists(tenantsFile) && !File.Exists(classroomsFile) && !File.Exists(usersFile) && !File.Exists(devicesFile) && !File.Exists(credsFile) && !File.Exists(codesFile) && !File.Exists(notifsFile)) { logger.LogInformation("No legacy JSON data files found in {DataDir}. Skipping JSON migration.", dataDir); return result; } logger.LogInformation("Starting one-time legacy JSON to PostgreSQL transactional migration from {DataDir}...", dataDir); using var tx = await dbContext.Database.BeginTransactionAsync(); try { // 1. Tenants var tenantDict = new Dictionary(); if (!await dbContext.Tenants.AnyAsync(t => t.Id == "global")) { var globalTenant = new Tenant { Id = "global", Name = "全局平台管理", IsActive = true, CreatedAt = DateTimeOffset.UtcNow }; dbContext.Tenants.Add(globalTenant); tenantDict["global"] = globalTenant; } if (File.Exists(tenantsFile)) { var json = await File.ReadAllTextAsync(tenantsFile); var tenants = JsonSerializer.Deserialize>(json) ?? new(); foreach (var t in tenants) { if (!await dbContext.Tenants.AnyAsync(existing => existing.Id == t.Id) && !tenantDict.ContainsKey(t.Id)) { dbContext.Tenants.Add(t); tenantDict[t.Id] = t; result.TenantsCount++; } } await dbContext.SaveChangesAsync(); } // 2. Classrooms if (File.Exists(classroomsFile)) { var json = await File.ReadAllTextAsync(classroomsFile); var classrooms = JsonSerializer.Deserialize>(json) ?? new(); foreach (var c in classrooms) { if (!await dbContext.Classrooms.AnyAsync(existing => existing.TenantId == c.TenantId && existing.Id == c.Id)) { dbContext.Classrooms.Add(c); result.ClassroomsCount++; } } await dbContext.SaveChangesAsync(); } // 3. Users if (File.Exists(usersFile)) { var json = await File.ReadAllTextAsync(usersFile); var users = JsonSerializer.Deserialize>(json) ?? new(); foreach (var u in users) { if (!await dbContext.Users.AnyAsync(existing => existing.Username == u.Username)) { // Ensure tenant exists if (!string.IsNullOrEmpty(u.TenantId) && !await dbContext.Tenants.AnyAsync(t => t.Id == u.TenantId)) { var newTenant = new Tenant { Id = u.TenantId, Name = u.TenantId, IsActive = true, CreatedAt = DateTimeOffset.UtcNow }; dbContext.Tenants.Add(newTenant); await dbContext.SaveChangesAsync(); } dbContext.Users.Add(u); result.UsersCount++; } } await dbContext.SaveChangesAsync(); } // 4. Devices var migratedDevices = new List(); if (File.Exists(devicesFile)) { var json = await File.ReadAllTextAsync(devicesFile); var devices = JsonSerializer.Deserialize>(json) ?? new(); var usedInstallationIds = new HashSet(StringComparer.OrdinalIgnoreCase); foreach (var d in devices) { if (!await dbContext.Devices.AnyAsync(existing => existing.Id == d.Id)) { // Ensure tenant and classroom exist if (!await dbContext.Tenants.AnyAsync(t => t.Id == d.TenantId)) { dbContext.Tenants.Add(new Tenant { Id = d.TenantId, Name = d.TenantId, IsActive = true, CreatedAt = DateTimeOffset.UtcNow }); await dbContext.SaveChangesAsync(); } if (!await dbContext.Classrooms.AnyAsync(c => c.TenantId == d.TenantId && c.Id == d.ClassroomId)) { dbContext.Classrooms.Add(new Classroom { TenantId = d.TenantId, Id = d.ClassroomId, DisplayName = d.ClassroomId }); await dbContext.SaveChangesAsync(); } // Handle legacy duplicate InstallationId gracefully if (!string.IsNullOrEmpty(d.InstallationId)) { if (usedInstallationIds.Contains(d.InstallationId) || await dbContext.Devices.AnyAsync(existing => existing.InstallationId == d.InstallationId)) { logger.LogWarning("Legacy duplicate InstallationId {InstId} detected for Device {DeviceId}. Renaming for unique constraint.", d.InstallationId, d.Id); d.InstallationId = $"{d.InstallationId}_dup_{d.Id}"; } usedInstallationIds.Add(d.InstallationId); } dbContext.Devices.Add(d); migratedDevices.Add(d); result.DevicesCount++; } } await dbContext.SaveChangesAsync(); } // 5. Device Credentials if (File.Exists(credsFile)) { var json = await File.ReadAllTextAsync(credsFile); var creds = JsonSerializer.Deserialize>(json) ?? new(); var usedCredInstIds = new HashSet(StringComparer.OrdinalIgnoreCase); foreach (var c in creds) { if (!await dbContext.DeviceCredentials.AnyAsync(existing => existing.DeviceId == c.DeviceId)) { if (!string.IsNullOrEmpty(c.InstallationId)) { if (usedCredInstIds.Contains(c.InstallationId) || await dbContext.DeviceCredentials.AnyAsync(existing => existing.InstallationId == c.InstallationId)) { c.InstallationId = $"{c.InstallationId}_dup_{c.DeviceId}"; } usedCredInstIds.Add(c.InstallationId); } dbContext.DeviceCredentials.Add(c); result.CredentialsCount++; } } await dbContext.SaveChangesAsync(); } // 6. Activation Codes if (File.Exists(codesFile)) { var json = await File.ReadAllTextAsync(codesFile); var codes = JsonSerializer.Deserialize>(json) ?? new(); foreach (var a in codes) { if (!await dbContext.ActivationCodes.AnyAsync(existing => existing.Code == a.Code)) { if (!await dbContext.Tenants.AnyAsync(t => t.Id == a.TenantId)) { dbContext.Tenants.Add(new Tenant { Id = a.TenantId, Name = a.TenantId, IsActive = true, CreatedAt = DateTimeOffset.UtcNow }); await dbContext.SaveChangesAsync(); } dbContext.ActivationCodes.Add(a); result.ActivationCodesCount++; } } await dbContext.SaveChangesAsync(); } // 7. Notifications if (File.Exists(notifsFile)) { var json = await File.ReadAllTextAsync(notifsFile); var notifDtos = JsonSerializer.Deserialize>(json) ?? new(); var allDevices = await dbContext.Devices.ToListAsync(); foreach (var n in notifDtos) { if (!await dbContext.Notifications.AnyAsync(existing => existing.Id == n.Id)) { var notifEntity = new Notification { Id = n.Id, TenantId = n.TenantId, ClassroomId = n.ClassId, SenderName = string.IsNullOrWhiteSpace(n.SenderName) ? "系统" : n.SenderName, Message = n.Message, Title = "🔔 老师呼叫", Priority = string.IsNullOrWhiteSpace(n.Priority) ? "Normal" : n.Priority, CreatedAt = n.CreatedAt }; dbContext.Notifications.Add(notifEntity); result.NotificationsCount++; // Associate receipt if device exists in classroom var targetDev = allDevices.FirstOrDefault(d => d.TenantId == n.TenantId && d.ClassroomId == n.ClassId); if (targetDev != null) { var receipt = new NotificationReceipt { Id = $"rcpt_{Guid.NewGuid():N}", NotificationId = n.Id, DeviceId = targetDev.Id, Status = string.IsNullOrWhiteSpace(n.Status) ? "Sent" : n.Status, DeviceReceivedAt = n.CreatedAt, DisplayedAt = n.CreatedAt, AcknowledgedAt = n.ConfirmedAt, UpdatedAt = n.ConfirmedAt ?? n.CreatedAt }; dbContext.NotificationReceipts.Add(receipt); } } } await dbContext.SaveChangesAsync(); } // Write Migration Marker var markerRecord = new MigrationMarker { Id = "JsonMigration_v1", MigratedAt = DateTimeOffset.UtcNow, Details = $"Successfully migrated Tenants={result.TenantsCount}, Classrooms={result.ClassroomsCount}, Users={result.UsersCount}, Devices={result.DevicesCount}, Credentials={result.CredentialsCount}, Codes={result.ActivationCodesCount}, Notifications={result.NotificationsCount}." }; dbContext.MigrationMarkers.Add(markerRecord); await dbContext.SaveChangesAsync(); await tx.CommitAsync(); result.Migrated = true; logger.LogInformation("JSON to PostgreSQL transaction committed successfully: {Details}", markerRecord.Details); // Move legacy JSON files to data/json-backup-YYYYMMDD-HHmmss/ var backupDir = Path.Combine(dataDir, $"json-backup-{DateTime.UtcNow:yyyyMMdd-HHmmss}"); Directory.CreateDirectory(backupDir); result.BackupPath = backupDir; string[] jsonFiles = { tenantsFile, classroomsFile, usersFile, devicesFile, credsFile, codesFile, notifsFile }; foreach (var file in jsonFiles) { if (File.Exists(file)) { var dest = Path.Combine(backupDir, Path.GetFileName(file)); File.Move(file, dest, overwrite: true); } } logger.LogInformation("Legacy JSON files safely moved to backup directory: {BackupDir}", backupDir); return result; } catch (Exception ex) { await tx.RollbackAsync(); logger.LogError(ex, "FATAL: JSON to PostgreSQL migration failed. Transaction rolled back, legacy JSON files preserved."); throw; } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260920225928_InitialPostgreSql.cs ================================================================================ using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class InitialPostgreSql : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "DeviceCredentials", columns: table => new { DeviceId = table.Column(type: "text", nullable: false), InstallationId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), DeviceTokenHash = table.Column(type: "text", nullable: false), EncryptedRecoverableToken = table.Column(type: "text", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), RotatedAt = table.Column(type: "timestamp with time zone", nullable: true) }, constraints: table => { table.PrimaryKey("PK_DeviceCredentials", x => x.DeviceId); }); migrationBuilder.CreateTable( name: "MigrationMarkers", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), MigratedAt = table.Column(type: "timestamp with time zone", nullable: false), Details = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_MigrationMarkers", x => x.Id); }); migrationBuilder.CreateTable( name: "Tenants", columns: table => new { Id = table.Column(type: "text", nullable: false), Name = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), IsActive = table.Column(type: "boolean", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Tenants", x => x.Id); }); migrationBuilder.CreateTable( name: "ActivationCodes", columns: table => new { Code = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), TenantId = table.Column(type: "text", nullable: false), ClassroomId = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), ExpiresAt = table.Column(type: "timestamp with time zone", nullable: false), IsUsed = table.Column(type: "boolean", nullable: false), UsedAt = table.Column(type: "timestamp with time zone", nullable: true), UsedByDeviceId = table.Column(type: "text", nullable: true), InstallationId = table.Column(type: "character varying(100)", maxLength: 100, nullable: true) }, constraints: table => { table.PrimaryKey("PK_ActivationCodes", x => x.Code); table.ForeignKey( name: "FK_ActivationCodes_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Classrooms", columns: table => new { Id = table.Column(type: "text", nullable: false), TenantId = table.Column(type: "text", nullable: false), DisplayName = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Grade = table.Column(type: "character varying(50)", maxLength: 50, nullable: true), RoomNumber = table.Column(type: "character varying(50)", maxLength: 50, nullable: true), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Classrooms", x => new { x.TenantId, x.Id }); table.ForeignKey( name: "FK_Classrooms_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "Notifications", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), TenantId = table.Column(type: "text", nullable: false), ClassroomId = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), SenderUserId = table.Column(type: "text", nullable: true), SenderName = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Message = table.Column(type: "text", nullable: false), Title = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), Priority = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Notifications", x => x.Id); table.ForeignKey( name: "FK_Notifications_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( name: "Users", columns: table => new { Id = table.Column(type: "text", nullable: false), TenantId = table.Column(type: "text", nullable: false), Username = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), PasswordHash = table.Column(type: "text", nullable: false), FullName = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Role = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Users", x => x.Id); table.ForeignKey( name: "FK_Users_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "Devices", columns: table => new { Id = table.Column(type: "text", nullable: false), TenantId = table.Column(type: "text", nullable: false), ClassroomId = table.Column(type: "text", nullable: false), DeviceTokenHash = table.Column(type: "text", nullable: false), RawDeviceToken = table.Column(type: "text", nullable: true), InstallationId = table.Column(type: "character varying(100)", maxLength: 100, nullable: true), Hostname = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), IsActive = table.Column(type: "boolean", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), LastHeartbeatAt = table.Column(type: "timestamp with time zone", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Devices", x => x.Id); table.ForeignKey( name: "FK_Devices_Classrooms_TenantId_ClassroomId", columns: x => new { x.TenantId, x.ClassroomId }, principalTable: "Classrooms", principalColumns: new[] { "TenantId", "Id" }, onDelete: ReferentialAction.Restrict); table.ForeignKey( name: "FK_Devices_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateTable( name: "NotificationReceipts", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), NotificationId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), DeviceId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Status = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), DeviceReceivedAt = table.Column(type: "timestamp with time zone", nullable: true), DisplayedAt = table.Column(type: "timestamp with time zone", nullable: true), AcknowledgedAt = table.Column(type: "timestamp with time zone", nullable: true), FailedAt = table.Column(type: "timestamp with time zone", nullable: true), FailureReason = table.Column(type: "character varying(500)", maxLength: 500, nullable: true), UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_NotificationReceipts", x => x.Id); table.ForeignKey( name: "FK_NotificationReceipts_Devices_DeviceId", column: x => x.DeviceId, principalTable: "Devices", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_NotificationReceipts_Notifications_NotificationId", column: x => x.NotificationId, principalTable: "Notifications", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_ActivationCodes_ClassroomId", table: "ActivationCodes", column: "ClassroomId"); migrationBuilder.CreateIndex( name: "IX_ActivationCodes_Code", table: "ActivationCodes", column: "Code", unique: true); migrationBuilder.CreateIndex( name: "IX_ActivationCodes_InstallationId", table: "ActivationCodes", column: "InstallationId"); migrationBuilder.CreateIndex( name: "IX_ActivationCodes_TenantId", table: "ActivationCodes", column: "TenantId"); migrationBuilder.CreateIndex( name: "IX_Classrooms_TenantId_Id", table: "Classrooms", columns: new[] { "TenantId", "Id" }); migrationBuilder.CreateIndex( name: "IX_DeviceCredentials_DeviceId", table: "DeviceCredentials", column: "DeviceId", unique: true); migrationBuilder.CreateIndex( name: "IX_DeviceCredentials_InstallationId", table: "DeviceCredentials", column: "InstallationId", unique: true); migrationBuilder.CreateIndex( name: "IX_Devices_Id", table: "Devices", column: "Id", unique: true); migrationBuilder.CreateIndex( name: "IX_Devices_InstallationId", table: "Devices", column: "InstallationId", unique: true, filter: "\"InstallationId\" IS NOT NULL"); migrationBuilder.CreateIndex( name: "IX_Devices_TenantId", table: "Devices", column: "TenantId"); migrationBuilder.CreateIndex( name: "IX_Devices_TenantId_ClassroomId", table: "Devices", columns: new[] { "TenantId", "ClassroomId" }); migrationBuilder.CreateIndex( name: "IX_NotificationReceipts_DeviceId_UpdatedAt", table: "NotificationReceipts", columns: new[] { "DeviceId", "UpdatedAt" }, descending: new[] { false, true }); migrationBuilder.CreateIndex( name: "IX_NotificationReceipts_NotificationId_DeviceId", table: "NotificationReceipts", columns: new[] { "NotificationId", "DeviceId" }, unique: true); migrationBuilder.CreateIndex( name: "IX_Notifications_ClassroomId_CreatedAt", table: "Notifications", columns: new[] { "ClassroomId", "CreatedAt" }, descending: new[] { false, true }); migrationBuilder.CreateIndex( name: "IX_Notifications_TenantId_CreatedAt", table: "Notifications", columns: new[] { "TenantId", "CreatedAt" }, descending: new[] { false, true }); migrationBuilder.CreateIndex( name: "IX_Users_TenantId", table: "Users", column: "TenantId"); migrationBuilder.CreateIndex( name: "IX_Users_Username", table: "Users", column: "Username", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ActivationCodes"); migrationBuilder.DropTable( name: "DeviceCredentials"); migrationBuilder.DropTable( name: "MigrationMarkers"); migrationBuilder.DropTable( name: "NotificationReceipts"); migrationBuilder.DropTable( name: "Users"); migrationBuilder.DropTable( name: "Devices"); migrationBuilder.DropTable( name: "Notifications"); migrationBuilder.DropTable( name: "Classrooms"); migrationBuilder.DropTable( name: "Tenants"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260920225928_InitialPostgreSql.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260920225928_InitialPostgreSql")] partial class InitialPostgreSql { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.HasIndex("InstallationId") .IsUnique() .HasFilter("\"InstallationId\" IS NOT NULL"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredentialRecord", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("DeviceId") .IsUnique(); b.HasIndex("InstallationId") .IsUnique(); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260922000000_AddNotificationExpiresAtAndPendingIndex.cs ================================================================================ using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class AddNotificationExpiresAtAndPendingIndex : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ExpiresAt", table: "Notifications", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "Voice", table: "Notifications", type: "boolean", nullable: false, defaultValue: true); migrationBuilder.AddColumn( name: "Shake", table: "Notifications", type: "boolean", nullable: false, defaultValue: true); migrationBuilder.AddColumn( name: "DurationSeconds", table: "Notifications", type: "integer", nullable: false, defaultValue: 15); migrationBuilder.CreateIndex( name: "IX_Notifications_TenantId_ClassroomId_ExpiresAt", table: "Notifications", columns: new[] { "TenantId", "ClassroomId", "ExpiresAt" }); migrationBuilder.CreateIndex( name: "IX_NotificationReceipts_DeviceId_Status", table: "NotificationReceipts", columns: new[] { "DeviceId", "Status" }); // P1 Batch 9: Backfill legacy notifications where ExpiresAt IS NULL to CreatedAt (marking them expired) migrationBuilder.Sql("UPDATE \"Notifications\" SET \"ExpiresAt\" = \"CreatedAt\" WHERE \"ExpiresAt\" IS NULL;"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_NotificationReceipts_DeviceId_Status", table: "NotificationReceipts"); migrationBuilder.DropIndex( name: "IX_Notifications_TenantId_ClassroomId_ExpiresAt", table: "Notifications"); migrationBuilder.DropColumn( name: "DurationSeconds", table: "Notifications"); migrationBuilder.DropColumn( name: "Shake", table: "Notifications"); migrationBuilder.DropColumn( name: "Voice", table: "Notifications"); migrationBuilder.DropColumn( name: "ExpiresAt", table: "Notifications"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260922000000_AddNotificationExpiresAtAndPendingIndex.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260922000000_AddNotificationExpiresAtAndPendingIndex")] partial class AddNotificationExpiresAtAndPendingIndex { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.HasIndex("InstallationId") .IsUnique() .HasFilter("\"InstallationId\" IS NOT NULL"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredentialRecord", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("DeviceId") .IsUnique(); b.HasIndex("InstallationId") .IsUnique(); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("DeviceId", "Status"); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260922120000_AddDeviceCommandsTable.cs ================================================================================ using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class AddDeviceCommandsTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "DeviceCommands", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), TenantId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), DeviceId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CommandType = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), Parameters = table.Column(type: "text", nullable: true), CreatedBy = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), ExpiresAt = table.Column(type: "timestamp with time zone", nullable: false), StartedAt = table.Column(type: "timestamp with time zone", nullable: true), CompletedAt = table.Column(type: "timestamp with time zone", nullable: true), Status = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), ResultCode = table.Column(type: "integer", nullable: true), ResultMessage = table.Column(type: "character varying(1000)", maxLength: 1000, nullable: true) }, constraints: table => { table.PrimaryKey("PK_DeviceCommands", x => x.Id); table.ForeignKey( name: "FK_DeviceCommands_Devices_DeviceId", column: x => x.DeviceId, principalTable: "Devices", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_DeviceCommands_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_DeviceCommands_DeviceId_Status", table: "DeviceCommands", columns: new[] { "DeviceId", "Status" }); migrationBuilder.CreateIndex( name: "IX_DeviceCommands_Status_ExpiresAt", table: "DeviceCommands", columns: new[] { "Status", "ExpiresAt" }); migrationBuilder.CreateIndex( name: "IX_DeviceCommands_TenantId_DeviceId_CreatedAt", table: "DeviceCommands", columns: new[] { "TenantId", "DeviceId", "CreatedAt" }, descending: new[] { false, false, true }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "DeviceCommands"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260922120000_AddDeviceCommandsTable.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260922120000_AddDeviceCommandsTable")] partial class AddDeviceCommandsTable { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CommandType") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Parameters") .HasColumnType("text"); b.Property("ResultCode") .HasColumnType("integer"); b.Property("ResultMessage") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("Status", "ExpiresAt"); b.HasIndex("TenantId", "DeviceId", "CreatedAt") .IsDescending(false, false, true); b.ToTable("DeviceCommands"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredential", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("InstallationId"); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("DeviceId", "Status"); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260922130000_AddDeviceCommandDurationMs.cs ================================================================================ using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class AddDeviceCommandDurationMs : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DurationMs", table: "DeviceCommands", type: "bigint", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DurationMs", table: "DeviceCommands"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260922130000_AddDeviceCommandDurationMs.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260922130000_AddDeviceCommandDurationMs")] partial class AddDeviceCommandDurationMs { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("Id") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CurrentIp") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("DeviceTokenHash") .IsRequired() .HasMaxLength(128) .HasColumnType("character varying(128)"); b.Property("Hostname") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("LastHeartbeat") .HasColumnType("timestamp with time zone"); b.Property("OnlineState") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("ClassroomId"); b.HasIndex("DeviceTokenHash") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CommandType") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DurationMs") .HasColumnType("bigint"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Parameters") .HasColumnType("text"); b.Property("ResultCode") .HasColumnType("integer"); b.Property("ResultMessage") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("Status", "ExpiresAt"); b.HasIndex("TenantId", "DeviceId", "CreatedAt") .IsDescending(false, false, true); b.ToTable("DeviceCommands"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredential", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("EncryptedToken") .IsRequired() .HasColumnType("text"); b.Property("LastRotatedAt") .HasColumnType("timestamp with time zone"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("DeviceId"); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("character varying(100)"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.RateLimitAuditLog", b => { b.Property("Id") .HasColumnType("text"); b.Property("Action") .IsRequired() .HasColumnType("text"); b.Property("ClientIp") .IsRequired() .HasColumnType("text"); b.Property("Endpoint") .IsRequired() .HasColumnType("text"); b.Property("Reason") .IsRequired() .HasColumnType("text"); b.Property("TenantId") .HasColumnType("text"); b.Property("Timestamp") .HasColumnType("timestamp with time zone"); b.Property("UserId") .HasColumnType("text"); b.HasKey("Id"); b.ToTable("RateLimitAuditLogs"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Plan") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("PasswordHash") .IsRequired() .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Username") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("Id"); b.HasIndex("TenantId", "Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", null) .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("ClassroomId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260924165851_AddReliabilityBaselineAndCorrelation.cs ================================================================================ using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class AddReliabilityBaselineAndCorrelation : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "CorrelationId", table: "Notifications", type: "character varying(32)", maxLength: 32, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "Architecture", table: "Devices", type: "text", nullable: true); migrationBuilder.AddColumn( name: "ClientVersion", table: "Devices", type: "text", nullable: true); migrationBuilder.AddColumn( name: "LastHeartbeatCorrelationId", table: "Devices", type: "text", nullable: true); migrationBuilder.AddColumn( name: "OsVersion", table: "Devices", type: "text", nullable: true); migrationBuilder.AddColumn( name: "ProtocolVersion", table: "Devices", type: "integer", nullable: true); migrationBuilder.AddColumn( name: "ServiceVersion", table: "Devices", type: "text", nullable: true); migrationBuilder.CreateTable( name: "DeviceSelfChecks", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), TenantId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), DeviceId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CorrelationId = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), Status = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), RequestedAtUtc = table.Column(type: "timestamp with time zone", nullable: false), CompletedAtUtc = table.Column(type: "timestamp with time zone", nullable: true), ResultJson = table.Column(type: "character varying(32768)", maxLength: 32768, nullable: true), RequestedByUserId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false) }, constraints: table => { table.PrimaryKey("PK_DeviceSelfChecks", x => x.Id); table.ForeignKey( name: "FK_DeviceSelfChecks_Devices_DeviceId", column: x => x.DeviceId, principalTable: "Devices", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_DeviceSelfChecks_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_Notifications_CorrelationId", table: "Notifications", column: "CorrelationId"); migrationBuilder.CreateIndex( name: "IX_DeviceSelfChecks_CorrelationId", table: "DeviceSelfChecks", column: "CorrelationId"); migrationBuilder.CreateIndex( name: "IX_DeviceSelfChecks_DeviceId_RequestedAtUtc", table: "DeviceSelfChecks", columns: new[] { "DeviceId", "RequestedAtUtc" }, descending: new[] { false, true }); migrationBuilder.CreateIndex( name: "IX_DeviceSelfChecks_TenantId_Status", table: "DeviceSelfChecks", columns: new[] { "TenantId", "Status" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "DeviceSelfChecks"); migrationBuilder.DropIndex( name: "IX_Notifications_CorrelationId", table: "Notifications"); migrationBuilder.DropColumn( name: "CorrelationId", table: "Notifications"); migrationBuilder.DropColumn( name: "Architecture", table: "Devices"); migrationBuilder.DropColumn( name: "ClientVersion", table: "Devices"); migrationBuilder.DropColumn( name: "LastHeartbeatCorrelationId", table: "Devices"); migrationBuilder.DropColumn( name: "OsVersion", table: "Devices"); migrationBuilder.DropColumn( name: "ProtocolVersion", table: "Devices"); migrationBuilder.DropColumn( name: "ServiceVersion", table: "Devices"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260924165851_AddReliabilityBaselineAndCorrelation.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260924165851_AddReliabilityBaselineAndCorrelation")] partial class AddReliabilityBaselineAndCorrelation { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.AdminAuditEvent", b => { b.Property("Id") .HasColumnType("text"); b.Property("Action") .IsRequired() .HasColumnType("text"); b.Property("ActorRole") .IsRequired() .HasColumnType("text"); b.Property("ActorUsername") .IsRequired() .HasColumnType("text"); b.Property("Details") .HasColumnType("text"); b.Property("IpAddress") .HasColumnType("text"); b.Property("OccurredAt") .HasColumnType("timestamp with time zone"); b.Property("TargetId") .IsRequired() .HasColumnType("text"); b.Property("TargetType") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("AdminAuditEvents"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("Architecture") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("ClientVersion") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("LastHeartbeatCorrelationId") .HasColumnType("text"); b.Property("OsVersion") .HasColumnType("text"); b.Property("ProtocolVersion") .HasColumnType("integer"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("ServiceVersion") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.HasIndex("InstallationId") .IsUnique() .HasFilter("\"InstallationId\" IS NOT NULL"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CommandType") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DurationMs") .HasColumnType("bigint"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Parameters") .HasColumnType("text"); b.Property("ResultCode") .HasColumnType("integer"); b.Property("ResultMessage") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("Status", "ExpiresAt"); b.HasIndex("TenantId", "DeviceId", "CreatedAt") .IsDescending(false, false, true); b.ToTable("DeviceCommands"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredentialRecord", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("DeviceId") .IsUnique(); b.HasIndex("InstallationId") .IsUnique(); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RequestedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("RequestedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ResultJson") .HasMaxLength(32768) .HasColumnType("character varying(32768)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("DeviceId", "RequestedAtUtc") .IsDescending(false, true); b.HasIndex("TenantId", "Status"); b.ToTable("DeviceSelfChecks"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BroadcastId") .HasColumnType("text"); b.Property("CancelledAt") .HasColumnType("timestamp with time zone"); b.Property("CancelledBy") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("IsCancelled") .HasColumnType("boolean"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptCapturedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptPath") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("VisualReceiptSha256") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("VisualReceiptSizeBytes") .HasColumnType("bigint"); b.Property("VisualReceiptState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("None"); b.HasKey("Id"); b.HasIndex("VisualReceiptExpiresAt"); b.HasIndex("DeviceId", "Status"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsLocked") .HasColumnType("boolean"); b.Property("LastLoginAt") .HasColumnType("timestamp with time zone"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("TokenVersion") .HasColumnType("integer"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260925122539_AddDeviceSelfCheckBatch.cs ================================================================================ using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class AddDeviceSelfCheckBatch : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "BatchId", table: "DeviceSelfChecks", type: "character varying(100)", maxLength: 100, nullable: true); migrationBuilder.AddColumn( name: "DeadlineAtUtc", table: "DeviceSelfChecks", type: "timestamp with time zone", nullable: false, defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0))); migrationBuilder.AddColumn( name: "DispatchAttemptCount", table: "DeviceSelfChecks", type: "integer", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "DispatchedAtUtc", table: "DeviceSelfChecks", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "OverallStatus", table: "DeviceSelfChecks", type: "character varying(32)", maxLength: 32, nullable: true); migrationBuilder.AddColumn( name: "RunState", table: "DeviceSelfChecks", type: "character varying(32)", maxLength: 32, nullable: false, defaultValue: "PendingDispatch"); migrationBuilder.CreateTable( name: "DeviceSelfCheckBatches", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CorrelationId = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), ClientRequestId = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), CreatedByUserId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CreatedAtUtc = table.Column(type: "timestamp with time zone", nullable: false), DeadlineAtUtc = table.Column(type: "timestamp with time zone", nullable: false), CompletedAtUtc = table.Column(type: "timestamp with time zone", nullable: true), TargetDeviceCount = table.Column(type: "integer", nullable: false), Status = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), UpdatedAtUtc = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_DeviceSelfCheckBatches", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_DeviceSelfChecks_BatchId_DeviceId", table: "DeviceSelfChecks", columns: new[] { "BatchId", "DeviceId" }, unique: true, filter: "\"BatchId\" IS NOT NULL"); migrationBuilder.CreateIndex( name: "IX_DeviceSelfChecks_BatchId_OverallStatus", table: "DeviceSelfChecks", columns: new[] { "BatchId", "OverallStatus" }); migrationBuilder.CreateIndex( name: "IX_DeviceSelfChecks_BatchId_RunState", table: "DeviceSelfChecks", columns: new[] { "BatchId", "RunState" }); migrationBuilder.CreateIndex( name: "IX_DeviceSelfCheckBatches_CreatedAtUtc", table: "DeviceSelfCheckBatches", column: "CreatedAtUtc"); migrationBuilder.CreateIndex( name: "IX_DeviceSelfCheckBatches_CreatedByUserId_ClientRequestId", table: "DeviceSelfCheckBatches", columns: new[] { "CreatedByUserId", "ClientRequestId" }, unique: true); migrationBuilder.AddForeignKey( name: "FK_DeviceSelfChecks_DeviceSelfCheckBatches_BatchId", table: "DeviceSelfChecks", column: "BatchId", principalTable: "DeviceSelfCheckBatches", principalColumn: "Id", onDelete: ReferentialAction.Restrict); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_DeviceSelfChecks_DeviceSelfCheckBatches_BatchId", table: "DeviceSelfChecks"); migrationBuilder.DropTable( name: "DeviceSelfCheckBatches"); migrationBuilder.DropIndex( name: "IX_DeviceSelfChecks_BatchId_DeviceId", table: "DeviceSelfChecks"); migrationBuilder.DropIndex( name: "IX_DeviceSelfChecks_BatchId_OverallStatus", table: "DeviceSelfChecks"); migrationBuilder.DropIndex( name: "IX_DeviceSelfChecks_BatchId_RunState", table: "DeviceSelfChecks"); migrationBuilder.DropColumn( name: "BatchId", table: "DeviceSelfChecks"); migrationBuilder.DropColumn( name: "DeadlineAtUtc", table: "DeviceSelfChecks"); migrationBuilder.DropColumn( name: "DispatchAttemptCount", table: "DeviceSelfChecks"); migrationBuilder.DropColumn( name: "DispatchedAtUtc", table: "DeviceSelfChecks"); migrationBuilder.DropColumn( name: "OverallStatus", table: "DeviceSelfChecks"); migrationBuilder.DropColumn( name: "RunState", table: "DeviceSelfChecks"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260925122539_AddDeviceSelfCheckBatch.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260925122539_AddDeviceSelfCheckBatch")] partial class AddDeviceSelfCheckBatch { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.AdminAuditEvent", b => { b.Property("Id") .HasColumnType("text"); b.Property("Action") .IsRequired() .HasColumnType("text"); b.Property("ActorRole") .IsRequired() .HasColumnType("text"); b.Property("ActorUsername") .IsRequired() .HasColumnType("text"); b.Property("Details") .HasColumnType("text"); b.Property("IpAddress") .HasColumnType("text"); b.Property("OccurredAt") .HasColumnType("timestamp with time zone"); b.Property("TargetId") .IsRequired() .HasColumnType("text"); b.Property("TargetType") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("AdminAuditEvents"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("Architecture") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("ClientVersion") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("LastHeartbeatCorrelationId") .HasColumnType("text"); b.Property("OsVersion") .HasColumnType("text"); b.Property("ProtocolVersion") .HasColumnType("integer"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("ServiceVersion") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.HasIndex("InstallationId") .IsUnique() .HasFilter("\"InstallationId\" IS NOT NULL"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CommandType") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DurationMs") .HasColumnType("bigint"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Parameters") .HasColumnType("text"); b.Property("ResultCode") .HasColumnType("integer"); b.Property("ResultMessage") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("Status", "ExpiresAt"); b.HasIndex("TenantId", "DeviceId", "CreatedAt") .IsDescending(false, false, true); b.ToTable("DeviceCommands"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredentialRecord", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("DeviceId") .IsUnique(); b.HasIndex("InstallationId") .IsUnique(); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckBatch", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClientRequestId") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CreatedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("TargetDeviceCount") .HasColumnType("integer"); b.Property("UpdatedAtUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CreatedAtUtc"); b.HasIndex("CreatedByUserId", "ClientRequestId") .IsUnique(); b.ToTable("DeviceSelfCheckBatches"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BatchId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DispatchAttemptCount") .HasColumnType("integer"); b.Property("DispatchedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("OverallStatus") .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("RequestedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("RequestedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ResultJson") .HasMaxLength(32768) .HasColumnType("character varying(32768)"); b.Property("RunState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("PendingDispatch"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("BatchId", "DeviceId") .IsUnique() .HasFilter("\"BatchId\" IS NOT NULL"); b.HasIndex("BatchId", "OverallStatus"); b.HasIndex("BatchId", "RunState"); b.HasIndex("DeviceId", "RequestedAtUtc") .IsDescending(false, true); b.HasIndex("TenantId", "Status"); b.ToTable("DeviceSelfChecks"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BroadcastId") .HasColumnType("text"); b.Property("CancelledAt") .HasColumnType("timestamp with time zone"); b.Property("CancelledBy") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("IsCancelled") .HasColumnType("boolean"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptCapturedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptPath") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("VisualReceiptSha256") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("VisualReceiptSizeBytes") .HasColumnType("bigint"); b.Property("VisualReceiptState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("None"); b.HasKey("Id"); b.HasIndex("VisualReceiptExpiresAt"); b.HasIndex("DeviceId", "Status"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsLocked") .HasColumnType("boolean"); b.Property("LastLoginAt") .HasColumnType("timestamp with time zone"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("TokenVersion") .HasColumnType("integer"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.HasOne("ClassNotify.Server.Domain.Entities.DeviceSelfCheckBatch", "Batch") .WithMany() .HasForeignKey("BatchId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Batch"); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260925141051_AddDeviceSupportBundle.cs ================================================================================ using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ClassNotify.Server.Data.Migrations { /// public partial class AddDeviceSupportBundle : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "DeviceSupportBundles", columns: table => new { Id = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), ClientRequestId = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), TenantId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), DeviceId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CorrelationId = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), RequestedByUserId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Status = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), CreatedAtUtc = table.Column(type: "timestamp with time zone", nullable: false), UpdatedAtUtc = table.Column(type: "timestamp with time zone", nullable: false), DeadlineAtUtc = table.Column(type: "timestamp with time zone", nullable: false), DispatchedAtUtc = table.Column(type: "timestamp with time zone", nullable: true), CompletedAtUtc = table.Column(type: "timestamp with time zone", nullable: true), ExpiresAtUtc = table.Column(type: "timestamp with time zone", nullable: true), DispatchAttemptCount = table.Column(type: "integer", nullable: false), LastDispatchAttemptAtUtc = table.Column(type: "timestamp with time zone", nullable: true), NextDispatchAttemptAtUtc = table.Column(type: "timestamp with time zone", nullable: true), StoragePath = table.Column(type: "character varying(500)", maxLength: 500, nullable: true), SizeBytes = table.Column(type: "bigint", nullable: true), Sha256 = table.Column(type: "character varying(64)", maxLength: 64, nullable: true), ErrorCode = table.Column(type: "character varying(100)", maxLength: 100, nullable: true) }, constraints: table => { table.PrimaryKey("PK_DeviceSupportBundles", x => x.Id); table.ForeignKey( name: "FK_DeviceSupportBundles_Devices_DeviceId", column: x => x.DeviceId, principalTable: "Devices", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_DeviceSupportBundles_Tenants_TenantId", column: x => x.TenantId, principalTable: "Tenants", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.CheckConstraint( name: "CK_DeviceSupportBundles_Status", sql: "\"Status\" IN ('PendingDispatch', 'Collecting', 'Available', 'Failed', 'TimedOut', 'Expired')"); }); migrationBuilder.CreateIndex( name: "IX_DeviceSupportBundles_CorrelationId", table: "DeviceSupportBundles", column: "CorrelationId"); migrationBuilder.CreateIndex( name: "IX_DeviceSupportBundles_DeviceId_CreatedAtUtc", table: "DeviceSupportBundles", columns: new[] { "DeviceId", "CreatedAtUtc" }); migrationBuilder.CreateIndex( name: "IX_DeviceSupportBundles_ExpiresAtUtc", table: "DeviceSupportBundles", column: "ExpiresAtUtc"); migrationBuilder.CreateIndex( name: "IX_DeviceSupportBundles_RequestedByUserId_ClientRequestId", table: "DeviceSupportBundles", columns: new[] { "RequestedByUserId", "ClientRequestId" }, unique: true); migrationBuilder.CreateIndex( name: "IX_DeviceSupportBundles_Status_NextDispatchAttemptAtUtc", table: "DeviceSupportBundles", columns: new[] { "Status", "NextDispatchAttemptAtUtc" }); migrationBuilder.CreateIndex( name: "IX_DeviceSupportBundles_TenantId_CreatedAtUtc", table: "DeviceSupportBundles", columns: new[] { "TenantId", "CreatedAtUtc" }); migrationBuilder.CreateIndex( name: "UX_DeviceSupportBundles_Device_Active", table: "DeviceSupportBundles", column: "DeviceId", unique: true, filter: "\"Status\" IN ('PendingDispatch', 'Collecting')"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "DeviceSupportBundles"); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/20260925141051_AddDeviceSupportBundle.Designer.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] [Migration("20260925141051_AddDeviceSupportBundle")] partial class AddDeviceSupportBundle { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.AdminAuditEvent", b => { b.Property("Id") .HasColumnType("text"); b.Property("Action") .IsRequired() .HasColumnType("text"); b.Property("ActorRole") .IsRequired() .HasColumnType("text"); b.Property("ActorUsername") .IsRequired() .HasColumnType("text"); b.Property("Details") .HasColumnType("text"); b.Property("IpAddress") .HasColumnType("text"); b.Property("OccurredAt") .HasColumnType("timestamp with time zone"); b.Property("TargetId") .IsRequired() .HasColumnType("text"); b.Property("TargetType") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("AdminAuditEvents"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("Architecture") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("ClientVersion") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("LastHeartbeatCorrelationId") .HasColumnType("text"); b.Property("OsVersion") .HasColumnType("text"); b.Property("ProtocolVersion") .HasColumnType("integer"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("ServiceVersion") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.HasIndex("InstallationId") .IsUnique() .HasFilter("\"InstallationId\" IS NOT NULL"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CommandType") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DurationMs") .HasColumnType("bigint"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Parameters") .HasColumnType("text"); b.Property("ResultCode") .HasColumnType("integer"); b.Property("ResultMessage") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("Status", "ExpiresAt"); b.HasIndex("TenantId", "DeviceId", "CreatedAt") .IsDescending(false, false, true); b.ToTable("DeviceCommands"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredentialRecord", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("DeviceId") .IsUnique(); b.HasIndex("InstallationId") .IsUnique(); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckBatch", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClientRequestId") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CreatedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("TargetDeviceCount") .HasColumnType("integer"); b.Property("UpdatedAtUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CreatedAtUtc"); b.HasIndex("CreatedByUserId", "ClientRequestId") .IsUnique(); b.ToTable("DeviceSelfCheckBatches"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BatchId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DispatchAttemptCount") .HasColumnType("integer"); b.Property("DispatchedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("OverallStatus") .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("RequestedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("RequestedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ResultJson") .HasMaxLength(32768) .HasColumnType("character varying(32768)"); b.Property("RunState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("PendingDispatch"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("BatchId", "DeviceId") .IsUnique() .HasFilter("\"BatchId\" IS NOT NULL"); b.HasIndex("BatchId", "OverallStatus"); b.HasIndex("BatchId", "RunState"); b.HasIndex("DeviceId", "RequestedAtUtc") .IsDescending(false, true); b.HasIndex("TenantId", "Status"); b.ToTable("DeviceSelfChecks"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSupportBundle", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClientRequestId") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DispatchAttemptCount") .HasColumnType("integer"); b.Property("DispatchedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("ErrorCode") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ExpiresAtUtc") .HasColumnType("timestamp with time zone"); b.Property("LastDispatchAttemptAtUtc") .HasColumnType("timestamp with time zone"); b.Property("NextDispatchAttemptAtUtc") .HasColumnType("timestamp with time zone"); b.Property("RequestedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Sha256") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("SizeBytes") .HasColumnType("bigint"); b.Property("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("StoragePath") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("UpdatedAtUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("DeviceId") .IsUnique() .HasDatabaseName("UX_DeviceSupportBundles_Device_Active") .HasFilter("\"Status\" IN ('PendingDispatch', 'Collecting')"); b.HasIndex("ExpiresAtUtc"); b.HasIndex("DeviceId", "CreatedAtUtc"); b.HasIndex("RequestedByUserId", "ClientRequestId") .IsUnique(); b.HasIndex("Status", "NextDispatchAttemptAtUtc"); b.HasIndex("TenantId", "CreatedAtUtc"); b.ToTable("DeviceSupportBundles"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BroadcastId") .HasColumnType("text"); b.Property("CancelledAt") .HasColumnType("timestamp with time zone"); b.Property("CancelledBy") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("IsCancelled") .HasColumnType("boolean"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptCapturedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptPath") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("VisualReceiptSha256") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("VisualReceiptSizeBytes") .HasColumnType("bigint"); b.Property("VisualReceiptState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("None"); b.HasKey("Id"); b.HasIndex("VisualReceiptExpiresAt"); b.HasIndex("DeviceId", "Status"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsLocked") .HasColumnType("boolean"); b.Property("LastLoginAt") .HasColumnType("timestamp with time zone"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("TokenVersion") .HasColumnType("integer"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.HasOne("ClassNotify.Server.Domain.Entities.DeviceSelfCheckBatch", "Batch") .WithMany() .HasForeignKey("BatchId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Batch"); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSupportBundle", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Data/Migrations/ClassNotifyDbContextModelSnapshot.cs ================================================================================ // using System; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace ClassNotify.Server.Data.Migrations { [DbContext(typeof(ClassNotifyDbContext))] public partial class ClassNotifyDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.Property("Code") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsUsed") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("UsedAt") .HasColumnType("timestamp with time zone"); b.Property("UsedByDeviceId") .HasColumnType("text"); b.HasKey("Code"); b.HasIndex("ClassroomId"); b.HasIndex("Code") .IsUnique(); b.HasIndex("InstallationId"); b.HasIndex("TenantId"); b.ToTable("ActivationCodes"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.AdminAuditEvent", b => { b.Property("Id") .HasColumnType("text"); b.Property("Action") .IsRequired() .HasColumnType("text"); b.Property("ActorRole") .IsRequired() .HasColumnType("text"); b.Property("ActorUsername") .IsRequired() .HasColumnType("text"); b.Property("Details") .HasColumnType("text"); b.Property("IpAddress") .HasColumnType("text"); b.Property("OccurredAt") .HasColumnType("timestamp with time zone"); b.Property("TargetId") .IsRequired() .HasColumnType("text"); b.Property("TargetType") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("AdminAuditEvents"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Property("TenantId") .HasColumnType("text"); b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Grade") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("RoomNumber") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("TenantId", "Id"); b.HasIndex("TenantId", "Id"); b.ToTable("Classrooms"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Property("Id") .HasColumnType("text"); b.Property("Architecture") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasColumnType("text"); b.Property("ClientVersion") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("Hostname") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("InstallationId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LastHeartbeatAt") .HasColumnType("timestamp with time zone"); b.Property("LastHeartbeatCorrelationId") .HasColumnType("text"); b.Property("OsVersion") .HasColumnType("text"); b.Property("ProtocolVersion") .HasColumnType("integer"); b.Property("RawDeviceToken") .HasColumnType("text"); b.Property("ServiceVersion") .HasColumnType("text"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Id") .IsUnique(); b.HasIndex("InstallationId") .IsUnique() .HasFilter("\"InstallationId\" IS NOT NULL"); b.HasIndex("TenantId"); b.HasIndex("TenantId", "ClassroomId"); b.ToTable("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CommandType") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("CreatedBy") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DurationMs") .HasColumnType("bigint"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("Parameters") .HasColumnType("text"); b.Property("ResultCode") .HasColumnType("integer"); b.Property("ResultMessage") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property("StartedAt") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("DeviceId", "Status"); b.HasIndex("Status", "ExpiresAt"); b.HasIndex("TenantId", "DeviceId", "CreatedAt") .IsDescending(false, false, true); b.ToTable("DeviceCommands"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCredentialRecord", b => { b.Property("DeviceId") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceTokenHash") .IsRequired() .HasColumnType("text"); b.Property("EncryptedRecoverableToken") .IsRequired() .HasColumnType("text"); b.Property("InstallationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("RotatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("DeviceId"); b.HasIndex("DeviceId") .IsUnique(); b.HasIndex("InstallationId") .IsUnique(); b.ToTable("DeviceCredentials"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckBatch", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClientRequestId") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CreatedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("TargetDeviceCount") .HasColumnType("integer"); b.Property("UpdatedAtUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CreatedAtUtc"); b.HasIndex("CreatedByUserId", "ClientRequestId") .IsUnique(); b.ToTable("DeviceSelfCheckBatches"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BatchId") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DispatchAttemptCount") .HasColumnType("integer"); b.Property("DispatchedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("OverallStatus") .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("RequestedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("RequestedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ResultJson") .HasMaxLength(32768) .HasColumnType("character varying(32768)"); b.Property("RunState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("PendingDispatch"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("BatchId", "DeviceId") .IsUnique() .HasFilter("\"BatchId\" IS NOT NULL"); b.HasIndex("BatchId", "OverallStatus"); b.HasIndex("BatchId", "RunState"); b.HasIndex("DeviceId", "RequestedAtUtc") .IsDescending(false, true); b.HasIndex("TenantId", "Status"); b.ToTable("DeviceSelfChecks"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSupportBundle", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ClientRequestId") .IsRequired() .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("CompletedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeadlineAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DispatchAttemptCount") .HasColumnType("integer"); b.Property("DispatchedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("ErrorCode") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ExpiresAtUtc") .HasColumnType("timestamp with time zone"); b.Property("LastDispatchAttemptAtUtc") .HasColumnType("timestamp with time zone"); b.Property("NextDispatchAttemptAtUtc") .HasColumnType("timestamp with time zone"); b.Property("RequestedByUserId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Sha256") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("SizeBytes") .HasColumnType("bigint"); b.Property("Status") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("StoragePath") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("TenantId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("UpdatedAtUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("DeviceId") .IsUnique() .HasDatabaseName("UX_DeviceSupportBundles_Device_Active") .HasFilter("\"Status\" IN ('PendingDispatch', 'Collecting')"); b.HasIndex("ExpiresAtUtc"); b.HasIndex("DeviceId", "CreatedAtUtc"); b.HasIndex("RequestedByUserId", "ClientRequestId") .IsUnique(); b.HasIndex("Status", "NextDispatchAttemptAtUtc"); b.HasIndex("TenantId", "CreatedAtUtc"); b.ToTable("DeviceSupportBundles", t => { t.HasCheckConstraint("CK_DeviceSupportBundles_Status", "\"Status\" IN ('PendingDispatch', 'Collecting', 'Available', 'Failed', 'TimedOut', 'Expired')"); }); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.MigrationMarker", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Details") .HasColumnType("text"); b.Property("MigratedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("MigrationMarkers"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("BroadcastId") .HasColumnType("text"); b.Property("CancelledAt") .HasColumnType("timestamp with time zone"); b.Property("CancelledBy") .HasColumnType("text"); b.Property("ClassroomId") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DurationSeconds") .HasColumnType("integer"); b.Property("ExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("IsCancelled") .HasColumnType("boolean"); b.Property("Message") .IsRequired() .HasColumnType("text"); b.Property("Priority") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("SenderName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SenderUserId") .HasColumnType("text"); b.Property("Shake") .HasColumnType("boolean"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("Voice") .HasColumnType("boolean"); b.HasKey("Id"); b.HasIndex("CorrelationId"); b.HasIndex("ClassroomId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "CreatedAt") .IsDescending(false, true); b.HasIndex("TenantId", "ClassroomId", "ExpiresAt"); b.ToTable("Notifications"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.Property("Id") .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("AcknowledgedAt") .HasColumnType("timestamp with time zone"); b.Property("DeviceId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("DeviceReceivedAt") .HasColumnType("timestamp with time zone"); b.Property("DisplayedAt") .HasColumnType("timestamp with time zone"); b.Property("FailedAt") .HasColumnType("timestamp with time zone"); b.Property("FailureReason") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("NotificationId") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Status") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptCapturedAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptExpiresAt") .HasColumnType("timestamp with time zone"); b.Property("VisualReceiptPath") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("VisualReceiptSha256") .HasMaxLength(64) .HasColumnType("character varying(64)"); b.Property("VisualReceiptSizeBytes") .HasColumnType("bigint"); b.Property("VisualReceiptState") .IsRequired() .ValueGeneratedOnAdd() .HasMaxLength(32) .HasColumnType("character varying(32)") .HasDefaultValue("None"); b.HasKey("Id"); b.HasIndex("VisualReceiptExpiresAt"); b.HasIndex("DeviceId", "Status"); b.HasIndex("DeviceId", "UpdatedAt") .IsDescending(false, true); b.HasIndex("NotificationId", "DeviceId") .IsUnique(); b.ToTable("NotificationReceipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.ToTable("Tenants"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.Property("Id") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FullName") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("IsLocked") .HasColumnType("boolean"); b.Property("LastLoginAt") .HasColumnType("timestamp with time zone"); b.Property("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property("Role") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("TenantId") .IsRequired() .HasColumnType("text"); b.Property("TokenVersion") .HasColumnType("integer"); b.Property("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.ActivationCode", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("ActivationCodes") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Classrooms") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Devices") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Classroom", "Classroom") .WithMany("Devices") .HasForeignKey("TenantId", "ClassroomId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Classroom"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceCommand", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSelfCheckRun", b => { b.HasOne("ClassNotify.Server.Domain.Entities.DeviceSelfCheckBatch", "Batch") .WithMany() .HasForeignKey("BatchId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Batch"); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.DeviceSupportBundle", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany() .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany() .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Notifications") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.NotificationReceipt", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Device", "Device") .WithMany("Receipts") .HasForeignKey("DeviceId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("ClassNotify.Server.Domain.Entities.Notification", "Notification") .WithMany("Receipts") .HasForeignKey("NotificationId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Device"); b.Navigation("Notification"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.User", b => { b.HasOne("ClassNotify.Server.Domain.Entities.Tenant", "Tenant") .WithMany("Users") .HasForeignKey("TenantId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Tenant"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Classroom", b => { b.Navigation("Devices"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Device", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Notification", b => { b.Navigation("Receipts"); }); modelBuilder.Entity("ClassNotify.Server.Domain.Entities.Tenant", b => { b.Navigation("ActivationCodes"); b.Navigation("Classrooms"); b.Navigation("Devices"); b.Navigation("Notifications"); b.Navigation("Users"); }); #pragma warning restore 612, 618 } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Dockerfile ================================================================================ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /app # Copy solution and projects COPY ClassNotify.sln . COPY src/Shared/ClassNotify.Shared/ src/Shared/ClassNotify.Shared/ COPY src/Server/ClassNotify.Server/ src/Server/ClassNotify.Server/ # Restore and build Server RUN dotnet restore src/Server/ClassNotify.Server/ClassNotify.Server.csproj RUN dotnet publish src/Server/ClassNotify.Server/ClassNotify.Server.csproj -c Release -o /app/publish FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime WORKDIR /app COPY --from=build /app/publish . ENV ASPNETCORE_URLS=http://+:5000 EXPOSE 5000 ENTRYPOINT ["dotnet", "ClassNotify.Server.dll"] ================================================================================ FILE: src/Server/ClassNotify.Server/Domain/Diagnostics/DiagnosticsDto.cs ================================================================================ namespace ClassNotify.Server.Domain.Diagnostics; public sealed class DiagnosticsDto { public string OverallStatus { get; set; } = "Healthy"; // Healthy, Degraded, Unhealthy public DateTimeOffset ServerUtc { get; set; } = DateTimeOffset.UtcNow; public long UptimeSeconds { get; set; } public string ReleaseId { get; set; } = string.Empty; public DiagnosticComponentDto Database { get; set; } = new(); public DiagnosticComponentDto Disk { get; set; } = new(); public DiagnosticComponentDto Backup { get; set; } = new(); public DiagnosticComponentDto VisualReceiptCleanup { get; set; } = new(); public int ActiveDeviceConnections { get; set; } public int ActiveTeacherConnections { get; set; } } public sealed class DiagnosticComponentDto { public string Status { get; set; } = "Healthy"; // Healthy, Degraded, Unhealthy public string Summary { get; set; } = string.Empty; public long? LatencyMs { get; set; } public DateTimeOffset? LastSuccessUtc { get; set; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Domain/Entities/Entities.cs ================================================================================ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ClassNotify.Server.Domain.Entities; /// /// 学校/机构租户实体 /// public class Tenant { [Key] public string Id { get; set; } = string.Empty; // e.g. "t_beijing_no4" public string Name { get; set; } = string.Empty; // e.g. "北京四中" public bool IsActive { get; set; } = true; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public ICollection Classrooms { get; set; } = new List(); public ICollection Users { get; set; } = new List(); public ICollection Devices { get; set; } = new List(); public ICollection ActivationCodes { get; set; } = new List(); public ICollection Notifications { get; set; } = new List(); } /// /// 教师/管理员用户实体 /// public class User { [Key] public string Id { get; set; } = string.Empty; // e.g. "usr_1001" public string TenantId { get; set; } = string.Empty; public string Username { get; set; } = string.Empty; public string PasswordHash { get; set; } = string.Empty; public string FullName { get; set; } = string.Empty; [NotMapped] public string DisplayName => FullName; public string Role { get; set; } = "Teacher"; // Teacher, SchoolAdmin, SuperAdmin public bool IsLocked { get; set; } = false; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset? LastLoginAt { get; set; } public int TokenVersion { get; set; } = 1; public Tenant? Tenant { get; set; } } /// /// 班级实体 /// public class Classroom { public string Id { get; set; } = string.Empty; // e.g. "cls_801" public string TenantId { get; set; } = string.Empty; public string DisplayName { get; set; } = string.Empty; // e.g. "八年级(1)班" public string? Grade { get; set; } public string? RoomNumber { get; set; } public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public Tenant? Tenant { get; set; } public ICollection Devices { get; set; } = new List(); } /// /// 教室硬件多媒体设备实体 /// public class Device { [Key] public string Id { get; set; } = string.Empty; // e.g. "dev_52f0" public string TenantId { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string DeviceTokenHash { get; set; } = string.Empty; public string? RawDeviceToken { get; set; } // Kept only for legacy migration public string? InstallationId { get; set; } // Unique installation instance identifier public string? Hostname { get; set; } public bool IsActive { get; set; } = true; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset? LastHeartbeatAt { get; set; } public string? LastHeartbeatCorrelationId { get; set; } public string? ServiceVersion { get; set; } public string? ClientVersion { get; set; } public int? ProtocolVersion { get; set; } public string? OsVersion { get; set; } public string? Architecture { get; set; } [System.ComponentModel.DataAnnotations.Schema.NotMapped] public bool? ClientProcessAvailable { get; set; } public Tenant? Tenant { get; set; } public Classroom? Classroom { get; set; } public ICollection Receipts { get; set; } = new List(); } /// /// 设备加密凭据恢复记录 (仅用于 InstallationId 幂等恢复,不直接在业务代码暴露明文) /// public class DeviceCredentialRecord { [Key] public string DeviceId { get; set; } = string.Empty; public string InstallationId { get; set; } = string.Empty; public string DeviceTokenHash { get; set; } = string.Empty; public string EncryptedRecoverableToken { get; set; } = string.Empty; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset? RotatedAt { get; set; } } /// /// 一次性设备激活码实体 /// public class ActivationCode { [Key] public string Code { get; set; } = string.Empty; // e.g. "H8K4-29DP" public string TenantId { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public DateTimeOffset ExpiresAt { get; set; } = DateTimeOffset.UtcNow.AddDays(7); public bool IsUsed { get; set; } public DateTimeOffset? UsedAt { get; set; } public string? UsedByDeviceId { get; set; } public string? InstallationId { get; set; } // Bound to first installation instance public Tenant? Tenant { get; set; } } /// /// 教师/系统下发通知主表 (不存储单一设备 ACK 状态) /// public class Notification { [Key] public string Id { get; set; } = string.Empty; // e.g. "msg_1789944446934_0471" public string TenantId { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string? SenderUserId { get; set; } public string SenderName { get; set; } = string.Empty; public string Message { get; set; } = string.Empty; public string Title { get; set; } = "🔔 老师呼叫"; public string Priority { get; set; } = "Normal"; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset? ExpiresAt { get; set; } public bool Voice { get; set; } = true; public bool Shake { get; set; } = true; public int DurationSeconds { get; set; } = 15; public bool IsCancelled { get; set; } = false; public DateTimeOffset? CancelledAt { get; set; } public string? CancelledBy { get; set; } public string? BroadcastId { get; set; } public string CorrelationId { get; set; } = string.Empty; public Tenant? Tenant { get; set; } public ICollection Receipts { get; set; } = new List(); } /// /// 设备通知回执明细表 (按设备独立记录状态与时间线,防止单点覆盖) /// public class NotificationReceipt { [Key] public string Id { get; set; } = string.Empty; // e.g. "rcpt_..." public string NotificationId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; /// /// 回执阶段状态: Sent, DeviceReceived, Displayed, Acknowledged, Failed, Timeout /// public string Status { get; set; } = "Sent"; public DateTimeOffset? DeviceReceivedAt { get; set; } public DateTimeOffset? DisplayedAt { get; set; } public DateTimeOffset? AcknowledgedAt { get; set; } public DateTimeOffset? FailedAt { get; set; } public string? FailureReason { get; set; } /// /// 视觉回执状态: None, Available, Expired /// public string VisualReceiptState { get; set; } = "None"; public string? VisualReceiptPath { get; set; } public DateTimeOffset? VisualReceiptCapturedAt { get; set; } public DateTimeOffset? VisualReceiptExpiresAt { get; set; } public long? VisualReceiptSizeBytes { get; set; } public string? VisualReceiptSha256 { get; set; } public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow; public Notification? Notification { get; set; } public Device? Device { get; set; } } /// /// JSON 数据一次性迁移记录标记 /// public class MigrationMarker { [Key] public string Id { get; set; } = string.Empty; // e.g. "JsonMigration_v1" public DateTimeOffset MigratedAt { get; set; } = DateTimeOffset.UtcNow; public string? Details { get; set; } } /// /// 教室终端受控远程运维命令实体 /// 全链路统一 CommandId (cmd_xxxxx),从创建到最终上报不可篡改 /// public class DeviceCommand { [Key] public string Id { get; set; } = string.Empty; // e.g. "cmd_..." [Required] public string TenantId { get; set; } = string.Empty; [Required] public string DeviceId { get; set; } = string.Empty; [Required] public string CommandType { get; set; } = string.Empty; // "SelfCheck", "RestartClient", "Reconnect", "RefreshConfig" public string? Parameters { get; set; } [Required] public string CreatedBy { get; set; } = string.Empty; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset ExpiresAt { get; set; } public DateTimeOffset? StartedAt { get; set; } public DateTimeOffset? CompletedAt { get; set; } [Required] public string Status { get; set; } = "Pending"; // "Pending", "Dispatched", "Succeeded", "Failed", "TimedOut", "Expired" public int? ResultCode { get; set; } public long? DurationMs { get; set; } public string? ResultMessage { get; set; } public Tenant? Tenant { get; set; } public Device? Device { get; set; } } /// /// 全局唯一远程命令超期与超时状态终态化规则 /// 彻底消除各查询路径与后台 Worker 之间的状态竞态 /// public static class DeviceCommandNormalizer { public static bool NormalizeExpiredOrTimedOut(DeviceCommand cmd, DateTimeOffset now) { if (ClassNotify.Shared.Models.DeviceCommandStatuses.IsTerminal(cmd.Status)) { return false; } if (cmd.Status == ClassNotify.Shared.Models.DeviceCommandStatuses.Pending) { if (cmd.ExpiresAt <= now) { cmd.Status = ClassNotify.Shared.Models.DeviceCommandStatuses.Expired; cmd.CompletedAt = now; cmd.ResultCode = -2; cmd.ResultMessage = "Command pending expired before dispatch or device reconnect."; return true; } } else if (cmd.Status == ClassNotify.Shared.Models.DeviceCommandStatuses.Dispatched) { var dispatchedAt = cmd.StartedAt ?? cmd.CreatedAt; if (cmd.ExpiresAt <= now) { cmd.Status = ClassNotify.Shared.Models.DeviceCommandStatuses.TimedOut; cmd.CompletedAt = now; cmd.ResultCode = -4; cmd.ResultMessage = "Command expired after dispatch without device result."; return true; } else if (now - dispatchedAt >= TimeSpan.FromMinutes(2)) { cmd.Status = ClassNotify.Shared.Models.DeviceCommandStatuses.TimedOut; cmd.CompletedAt = now; cmd.ResultCode = -4; cmd.ResultMessage = "Command timed out (device did not report execution result within 2 minutes)."; return true; } } return false; } } /// /// 管理员操作审计事件实体 /// public class AdminAuditEvent { [Key] public string Id { get; set; } = string.Empty; public DateTimeOffset OccurredAt { get; set; } = DateTimeOffset.UtcNow; public string ActorUsername { get; set; } = string.Empty; public string ActorRole { get; set; } = string.Empty; public string Action { get; set; } = string.Empty; public string TargetType { get; set; } = string.Empty; public string TargetId { get; set; } = string.Empty; public string? Details { get; set; } public string? IpAddress { get; set; } } /// /// 终端批量自检批次实体 (P2.5 RC1-2) /// 严格不绑定单一 TenantId,支持 SuperAdmin 跨校集中运维 /// 状态统计由关联的 DeviceSelfCheckRun 动态聚合计算,防止字段状态漂移 /// public class DeviceSelfCheckBatch { [Key] public string Id { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public string ClientRequestId { get; set; } = string.Empty; public string CreatedByUserId { get; set; } = string.Empty; public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset DeadlineAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public int TargetDeviceCount { get; set; } public string Status { get; set; } = "Running"; public DateTimeOffset UpdatedAtUtc { get; set; } = DateTimeOffset.UtcNow; } /// /// 设备远程诊断/自检运行记录 /// public class DeviceSelfCheckRun { [Key] public string Id { get; set; } = string.Empty; // e.g. "sc_1790268406949_0471" public string? BatchId { get; set; } public string TenantId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public string Status { get; set; } = "Pending"; // Pending, Completed, Failed, Timeout (Legacy mirror) public string RunState { get; set; } = ClassNotify.Shared.Models.SelfCheckRunStates.PendingDispatch; // PendingDispatch, Dispatched, Completed, Unreachable, TimedOut public string? OverallStatus { get; set; } // Healthy, Warning, Failed public int DispatchAttemptCount { get; set; } public DateTimeOffset RequestedAtUtc { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset? DispatchedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public string? ResultJson { get; set; } public string RequestedByUserId { get; set; } = string.Empty; public Tenant? Tenant { get; set; } public Device? Device { get; set; } public DeviceSelfCheckBatch? Batch { get; set; } } /// /// 设备技术诊断包实体 (P2.5 RC1-3 Support Bundle) /// public sealed class DeviceSupportBundle { [Key] public string Id { get; set; } = string.Empty; public string ClientRequestId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public string RequestedByUserId { get; set; } = string.Empty; public string Status { get; set; } = ClassNotify.Shared.Models.SupportBundleStatuses.PendingDispatch; public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset UpdatedAtUtc { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset DeadlineAtUtc { get; set; } public DateTimeOffset? DispatchedAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public DateTimeOffset? ExpiresAtUtc { get; set; } public int DispatchAttemptCount { get; set; } public DateTimeOffset? LastDispatchAttemptAtUtc { get; set; } public DateTimeOffset? NextDispatchAttemptAtUtc { get; set; } public string? StoragePath { get; set; } public long? SizeBytes { get; set; } public string? Sha256 { get; set; } public string? ErrorCode { get; set; } public Tenant? Tenant { get; set; } public Device? Device { get; set; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Hubs/DeviceHub.cs ================================================================================ using ClassNotify.Server.Services; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Enums; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.SignalR; namespace ClassNotify.Server.Hubs; public class DeviceHub : Hub { private readonly ILogger _logger; private readonly IHubContext _teacherHub; private readonly ISecurityService _securityService; private readonly ISupportBundleDispatchNotifier? _bundleNotifier; // Track active connection -> { TenantId, ClassroomId, DeviceId } private static readonly Dictionary _connectionTenantMap = new(); public DeviceHub( ILogger logger, IHubContext teacherHub, ISecurityService securityService, ISupportBundleDispatchNotifier? bundleNotifier = null) { _logger = logger; _teacherHub = teacherHub; _securityService = securityService; _bundleNotifier = bundleNotifier; } public override async Task OnConnectedAsync() { var httpContext = Context.GetHttpContext(); var deviceId = httpContext?.Request.Headers["X-Device-Id"].FirstOrDefault() ?? httpContext?.Request.Query["device_id"].FirstOrDefault(); var deviceToken = httpContext?.Request.Headers["X-Device-Token"].FirstOrDefault() ?? httpContext?.Request.Query["device_token"].FirstOrDefault(); var clientVersion = httpContext?.Request.Headers["X-Client-Version"].FirstOrDefault() ?? "2.1.0"; var remoteIp = httpContext?.Connection.RemoteIpAddress?.ToString() ?? "127.0.0.1"; if (string.IsNullOrEmpty(deviceId) || string.IsNullOrEmpty(deviceToken)) { _logger.LogWarning("Rejecting unauthorized device connection {ConnId}: Missing device credentials.", Context.ConnectionId); Context.Abort(); return; } var device = await _securityService.ValidateDeviceAsync(deviceId, deviceToken); if (device == null) { _logger.LogWarning("Rejecting unauthorized device connection {ConnId}: Invalid device ID or token ({DeviceId}).", Context.ConnectionId, deviceId); Context.Abort(); return; } // Add to Tenant-Isolated Groups var tenantClassGroup = $"t:{device.TenantId}:c:{device.ClassroomId}"; await Groups.AddToGroupAsync(Context.ConnectionId, tenantClassGroup); var tenantDeviceGroup = $"t:{device.TenantId}:d:{device.Id}"; await Groups.AddToGroupAsync(Context.ConnectionId, tenantDeviceGroup); lock (_connectionTenantMap) { _connectionTenantMap[Context.ConnectionId] = (device.TenantId, device.ClassroomId, device.Id); } // Register in SecurityService Live Registry var regResult = await _securityService.RegisterDeviceConnectionAsync( Context.ConnectionId, device.Id, device.TenantId, device.ClassroomId, device.Hostname, remoteIp, clientVersion); if (!string.IsNullOrEmpty(regResult.ReplacedConnectionId) && regResult.ReplacedConnectionId != Context.ConnectionId) { await Groups.RemoveFromGroupAsync(regResult.ReplacedConnectionId, tenantClassGroup); await Groups.RemoveFromGroupAsync(regResult.ReplacedConnectionId, tenantDeviceGroup); _logger.LogInformation("Removed replaced connection {OldConnId} from class group {Group} and device group {DevGroup}; current connection is {NewConnId}", regResult.ReplacedConnectionId, tenantClassGroup, tenantDeviceGroup, Context.ConnectionId); } _logger.LogInformation("Device {DeviceId} authenticated successfully. Joined groups {ClassGroup} and {DevGroup} at {ConnId}", device.Id, tenantClassGroup, tenantDeviceGroup, Context.ConnectionId); // Notify teachers of THIS tenant var classroom = await _securityService.GetClassroomAsync(device.TenantId, device.ClassroomId); var status = new DeviceStatusDto { DeviceId = device.Id, ClassId = device.ClassroomId, ClassName = classroom?.DisplayName ?? device.ClassroomId, Hostname = device.Hostname ?? "Classroom-PC", State = DeviceOnlineState.Online, LastHeartbeat = DateTimeOffset.UtcNow, AgentVersion = clientVersion }; await _teacherHub.Clients.Group($"t:{device.TenantId}:teachers").OnDeviceStatusChanged(status); await base.OnConnectedAsync(); // P1 Batch 9: Catch-up pending notifications for this reconnected device (Caller unicast only) try { var pendingNotifications = await _securityService.GetPendingNotificationsForDeviceAsync(device.Id); if (pendingNotifications.Count > 0) { _logger.LogInformation("Device {DeviceId} connected with {Count} pending notification(s) to catch up.", device.Id, pendingNotifications.Count); foreach (var pending in pendingNotifications) { await Clients.Caller.ReceiveNotification(pending); } } } catch (Exception ex) { _logger.LogError(ex, "Error catching up pending notifications for Device {DeviceId}", device.Id); } // P1 Batch 10: Catch-up pending commands for this reconnected device (Caller unicast only) try { var pendingCommands = await _securityService.GetPendingCommandsForDeviceAsync(device.Id); if (pendingCommands.Count > 0) { _logger.LogInformation("Device {DeviceId} connected with {Count} pending command(s) to catch up.", device.Id, pendingCommands.Count); foreach (var pendingCmd in pendingCommands) { await Clients.Caller.ReceiveRemoteCommand(pendingCmd); await _securityService.MarkCommandDispatchedAsync(pendingCmd.CommandId); } } } catch (Exception ex) { _logger.LogError(ex, "Error catching up pending commands for Device {DeviceId}", device.Id); } // Wake up support bundle dispatch worker if any pending requests exist _bundleNotifier?.Notify(); } public async Task SendAckReceipt(AckReceiptDto ack) { string? tenantId = null; string? classroomId = null; string? deviceId = null; lock (_connectionTenantMap) { if (_connectionTenantMap.TryGetValue(Context.ConnectionId, out var info)) { tenantId = info.TenantId; classroomId = info.ClassroomId; deviceId = info.DeviceId; } } if (tenantId == null || classroomId == null || deviceId == null) { _logger.LogWarning("Rejecting ACK from unauthenticated connection {ConnId}", Context.ConnectionId); return; } // Must be current connection for this device if (!_securityService.IsCurrentDeviceConnection(deviceId, Context.ConnectionId)) { _logger.LogWarning("Ignored stale ACK from {ConnId} for Device {DeviceId}", Context.ConnectionId, deviceId); return; } // P0-11: Enforce device ACK attribution validation. // Force ClassId to match the connection's authenticated classroom (never trust client-supplied ClassId). ack.ClassId = classroomId; // Verify that this notification was actually sent to this tenant and classroom if (!await _securityService.ValidateNotificationTargetAsync(ack.MessageId, tenantId, classroomId)) { _logger.LogWarning("Spoofed or unknown ACK rejected: Message {MsgId} does not match Tenant {TenantId}, Class {ClassId} (Device {DeviceId})", ack.MessageId, tenantId, classroomId, deviceId); return; } _logger.LogInformation("ACK validated from Tenant {TenantId}, Class {ClassId} (Device {DeviceId}): Message {MsgId} -> {Status}", tenantId, classroomId, deviceId, ack.MessageId, ack.Status); // Record ACK in history (NotificationReceipt per device) await _securityService.RecordAckAsync(ack.MessageId, deviceId, ack); // Relay ONLY to teachers belonging to THIS tenant! await _teacherHub.Clients.Group($"t:{tenantId}:teachers").OnAckReceiptReceived(ack); } public async Task ReportCommandResult(DeviceCommandResultDto result) { string? tenantId = null; string? deviceId = null; lock (_connectionTenantMap) { if (_connectionTenantMap.TryGetValue(Context.ConnectionId, out var info)) { tenantId = info.TenantId; deviceId = info.DeviceId; } } if (tenantId == null || deviceId == null) { _logger.LogWarning("Rejecting command result from unauthenticated connection {ConnId}", Context.ConnectionId); return; } if (!_securityService.IsCurrentDeviceConnection(deviceId, Context.ConnectionId)) { _logger.LogWarning("Ignored stale command result from {ConnId} for Device {DeviceId}", Context.ConnectionId, deviceId); return; } // Security enforcement: force DeviceId from authenticated connection! result.DeviceId = deviceId; var recorded = await _securityService.RecordCommandResultAsync(result, deviceId, tenantId); if (recorded != null) { // Relay to teachers and administrators of THIS tenant! await _teacherHub.Clients.Group($"t:{tenantId}:teachers").OnDeviceCommandStatusChanged(recorded); } } public async Task SendHealthReport(DeviceHealthReportDto report) { string? tenantId = null; string? deviceId = null; lock (_connectionTenantMap) { if (_connectionTenantMap.TryGetValue(Context.ConnectionId, out var info)) { tenantId = info.TenantId; deviceId = info.DeviceId; } } if (tenantId == null || deviceId == null) return; if (!_securityService.IsCurrentDeviceConnection(deviceId, Context.ConnectionId)) { _logger.LogWarning("Ignored stale health report from {ConnId} for Device {DeviceId}", Context.ConnectionId, deviceId); return; } // Security requirement: Force DeviceId from authenticated connection! report.DeviceId = deviceId; await _teacherHub.Clients.Group($"t:{tenantId}:teachers").OnHealthReportReceived(report); } public async Task SendHeartbeat(string classId) { string? deviceId = null; lock (_connectionTenantMap) { if (_connectionTenantMap.TryGetValue(Context.ConnectionId, out var info)) { deviceId = info.DeviceId; } } if (deviceId == null) { _logger.LogWarning("Rejecting heartbeat from unauthenticated connection {ConnId}", Context.ConnectionId); return; } if (!_securityService.IsCurrentDeviceConnection(deviceId, Context.ConnectionId)) { _logger.LogWarning("Ignored stale heartbeat from {ConnId} for Device {DeviceId}", Context.ConnectionId, deviceId); return; } await _securityService.UpdateDeviceHeartbeatAsync(Context.ConnectionId); _logger.LogDebug("Received heartbeat from Device {DeviceId} ({ConnId})", deviceId, Context.ConnectionId); } public async Task SendHeartbeatWithReport(DeviceHeartbeatDto heartbeat) { string? deviceId = null; lock (_connectionTenantMap) { if (_connectionTenantMap.TryGetValue(Context.ConnectionId, out var info)) { deviceId = info.DeviceId; } } if (deviceId == null) { _logger.LogWarning("Rejecting heartbeat report from unauthenticated connection {ConnId}", Context.ConnectionId); return; } if (!_securityService.IsCurrentDeviceConnection(deviceId, Context.ConnectionId)) { _logger.LogWarning("Ignored stale heartbeat report from {ConnId} for Device {DeviceId}", Context.ConnectionId, deviceId); return; } await _securityService.UpdateDeviceHeartbeatAsync(Context.ConnectionId, heartbeat); _logger.LogDebug("Received structured heartbeat report from Device {DeviceId} ({ConnId}): Svc={ServiceVersion}, Client={ClientVersion}, Corr={CorrId}", deviceId, Context.ConnectionId, heartbeat.ServiceVersion, heartbeat.ClientVersion, heartbeat.CorrelationId); } public override async Task OnDisconnectedAsync(Exception? exception) { string? tenantId = null; string? classId = null; string? deviceId = null; lock (_connectionTenantMap) { if (_connectionTenantMap.TryGetValue(Context.ConnectionId, out var info)) { tenantId = info.TenantId; classId = info.ClassroomId; deviceId = info.DeviceId; _connectionTenantMap.Remove(Context.ConnectionId); } } var isCurrentDisconnected = await _securityService.UnregisterDeviceConnectionAsync(Context.ConnectionId); if (tenantId != null && classId != null && deviceId != null) { if (isCurrentDisconnected) { _logger.LogInformation("Device {DeviceId} disconnected for Tenant {TenantId}, Class {ClassId}", deviceId, tenantId, classId); var status = new DeviceStatusDto { DeviceId = deviceId, ClassId = classId, State = DeviceOnlineState.Offline, LastHeartbeat = DateTimeOffset.UtcNow }; await _teacherHub.Clients.Group($"t:{tenantId}:teachers").OnDeviceStatusChanged(status); } else { _logger.LogInformation("Stale connection {ConnId} disconnected for Device {DeviceId} (Tenant {TenantId}, Class {ClassId}); device is still active on newer connection. Skipping Offline status broadcast.", Context.ConnectionId, deviceId, tenantId, classId); } } await base.OnDisconnectedAsync(exception); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Hubs/TeacherHub.cs ================================================================================ using System.Security.Claims; using ClassNotify.Shared.Contracts; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; namespace ClassNotify.Server.Hubs; /// /// 教师端 SignalR Hub (强制 JWT 认证,基于 TenantId 强隔离事件流) /// [Authorize] public class TeacherHub : Hub { private readonly ILogger _logger; public TeacherHub(ILogger logger) { _logger = logger; } public override async Task OnConnectedAsync() { var tenantId = Context.User?.FindFirst("tenant_id")?.Value; var teacherName = Context.User?.FindFirst(ClaimTypes.Name)?.Value ?? "教师"; if (string.IsNullOrEmpty(tenantId)) { _logger.LogWarning("Rejecting teacher connection {ConnId}: Missing tenant_id claim.", Context.ConnectionId); Context.Abort(); return; } // Join tenant-specific teacher event channel var tenantTeacherGroup = $"t:{tenantId}:teachers"; await Groups.AddToGroupAsync(Context.ConnectionId, tenantTeacherGroup); _logger.LogInformation("Teacher {TeacherName} connected to SignalR Hub. Joined group {Group} at {ConnId}", teacherName, tenantTeacherGroup, Context.ConnectionId); await base.OnConnectedAsync(); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Infrastructure/Correlation/CorrelationContext.cs ================================================================================ namespace ClassNotify.Server.Infrastructure.Correlation; public interface ICorrelationContext { string CorrelationId { get; } } public sealed class CorrelationContext : ICorrelationContext { public string CorrelationId { get; internal set; } = string.Empty; } ================================================================================ FILE: src/Server/ClassNotify.Server/Infrastructure/Correlation/CorrelationMiddleware.cs ================================================================================ using System.Diagnostics; namespace ClassNotify.Server.Infrastructure.Correlation; public sealed class CorrelationMiddleware { public const string HeaderName = "X-Correlation-Id"; private readonly RequestDelegate _next; private readonly ILogger _logger; public CorrelationMiddleware(RequestDelegate next, ILogger logger) { _next = next; _logger = logger; } public async Task InvokeAsync(HttpContext context, CorrelationContext correlation) { var incoming = context.Request.Headers[HeaderName].FirstOrDefault(); var correlationId = IsValid(incoming) ? incoming!.ToLowerInvariant() : ActivityTraceId.CreateRandom().ToHexString(); correlation.CorrelationId = correlationId; context.Response.Headers[HeaderName] = correlationId; var traceId = Activity.Current?.TraceId.ToHexString() ?? string.Empty; using (_logger.BeginScope(new Dictionary { ["CorrelationId"] = correlationId, ["TraceId"] = traceId, ["HttpRequestId"] = context.TraceIdentifier })) { await _next(context); } } private static bool IsValid(string? value) { if (string.IsNullOrWhiteSpace(value) || value.Length != 32) return false; foreach (var c in value) { if (!Uri.IsHexDigit(c)) return false; } return true; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Infrastructure/Logging/LoggingExtensions.cs ================================================================================ namespace ClassNotify.Server.Infrastructure.Logging; public static class LoggingExtensions { public static IDisposable? BeginClassNotifyScope( this ILogger logger, string correlationId, string? tenantId = null, string? classroomId = null, string? deviceId = null, string? notificationId = null, string? stage = null) { return logger.BeginScope(new Dictionary { ["CorrelationId"] = correlationId, ["TenantId"] = tenantId, ["ClassroomId"] = classroomId, ["DeviceId"] = deviceId, ["NotificationId"] = notificationId, ["Stage"] = stage }); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Program.cs ================================================================================ using System.Net; using System.Security.Claims; using System.Text; using System.Threading.RateLimiting; using ClassNotify.Server.Configuration; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Hubs; using ClassNotify.Server.Infrastructure.Correlation; using ClassNotify.Server.Infrastructure.Logging; using ClassNotify.Server.Services; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.RateLimiting; using Microsoft.EntityFrameworkCore; using Microsoft.IdentityModel.Tokens; using Microsoft.Extensions.Options; using Serilog; Log.Logger = new LoggerConfiguration() .MinimumLevel.Information() .WriteTo.Console() .CreateLogger(); try { var builder = WebApplication.CreateBuilder(args); builder.Host.UseSerilog(); builder.Services.AddControllers(); builder.Services.AddSignalR(); // 1. PostgreSQL EF Core DbContext var defaultConn = builder.Configuration.GetConnectionString("DefaultConnection") ?? Environment.GetEnvironmentVariable("ConnectionStrings__DefaultConnection") ?? "Host=127.0.0.1;Port=5432;Database=classnotify;Username=classnotify;Password=;"; builder.Services.AddDbContext(options => { options.UseNpgsql(defaultConn); }); // 2. Data Protection for Encrypted Recoverable Device Tokens var keysPath = OperatingSystem.IsLinux() ? "/var/lib/classnotify/keys" : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "ClassNotify", "keys"); if (!Directory.Exists(keysPath)) { Directory.CreateDirectory(keysPath); } builder.Services.AddDataProtection() .PersistKeysToFileSystem(new DirectoryInfo(keysPath)) .SetApplicationName("ClassNotify"); // 3. ASP.NET Core PasswordHasher builder.Services.AddSingleton, PasswordHasher>(); // 4. JWT Options Binding & Strict Production Guard builder.Services.Configure(builder.Configuration.GetSection("Jwt")); var jwtOptions = builder.Configuration.GetSection("Jwt").Get() ?? new JwtOptions(); if (builder.Environment.IsProduction()) { if (string.IsNullOrWhiteSpace(jwtOptions.SigningKey) || Encoding.UTF8.GetByteCount(jwtOptions.SigningKey) < 64) { throw new InvalidOperationException("Production Guard: Jwt__SigningKey is missing or has insufficient length (minimum 64 bytes required in Production). Refusing to start."); } if (string.IsNullOrWhiteSpace(jwtOptions.Issuer)) { throw new InvalidOperationException("Production Guard: Jwt__Issuer is missing. Refusing to start."); } if (string.IsNullOrWhiteSpace(jwtOptions.Audience)) { throw new InvalidOperationException("Production Guard: Jwt__Audience is missing. Refusing to start."); } } else { // Non-production fallback for design-time / local dev if unconfigured if (string.IsNullOrWhiteSpace(jwtOptions.SigningKey) || Encoding.UTF8.GetByteCount(jwtOptions.SigningKey) < 32) { jwtOptions.SigningKey = "DEV_ONLY_INSECURE_SIGNING_KEY_FOR_LOCAL_TESTING_PURPOSES_ONLY_MIN_64_BYTES_LONG_!"; } if (string.IsNullOrWhiteSpace(jwtOptions.Issuer)) jwtOptions.Issuer = "ClassNotify.Server"; if (string.IsNullOrWhiteSpace(jwtOptions.Audience)) jwtOptions.Audience = "ClassNotify.Clients"; } builder.Services.AddSingleton(); builder.Services.AddScoped(); builder.Services.AddHostedService(); builder.Services.AddHostedService(); builder.Services.AddScoped(); builder.Services.AddScoped(sp => sp.GetRequiredService()); builder.Services.AddSingleton(); builder.Services.Configure(builder.Configuration.GetSection("DeviceVersionPolicy")); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddScoped(); builder.Services.AddSingleton(); builder.Services.AddScoped(); builder.Services.AddHostedService(); builder.Services.AddHostedService(); // P2.5 RC1-3 Support Bundle Services builder.Services.Configure(builder.Configuration.GetSection("SupportBundles")); builder.Services.AddSingleton(); builder.Services.AddScoped(); builder.Services.AddHostedService(); builder.Services.AddHostedService(); // 5. JWT Authentication with Strict Validation builder.Services.AddAuthentication(options => { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }) .AddJwtBearer(options => { // Support SignalR query string token for WebSocket connections options.Events = new JwtBearerEvents { OnMessageReceived = context => { var accessToken = context.Request.Query["access_token"]; var path = context.HttpContext.Request.Path; if (!string.IsNullOrEmpty(accessToken) && (path.StartsWithSegments("/hubs/teacher") || path.StartsWithSegments("/hubs/device"))) { context.Token = accessToken; } return Task.CompletedTask; }, OnTokenValidated = async context => { var userId = context.Principal?.FindFirst(ClaimTypes.NameIdentifier)?.Value; var tenantId = context.Principal?.FindFirst("tenant_id")?.Value; if (string.IsNullOrEmpty(userId)) { context.Fail("Invalid token claims: missing NameIdentifier."); return; } var dbContext = context.HttpContext.RequestServices.GetRequiredService(); var user = await dbContext.Users.AsNoTracking().FirstOrDefaultAsync(u => u.Id == userId); if (user == null || user.IsLocked) { context.Fail("User account has been locked or deactivated."); return; } var tokenVersionClaim = context.Principal?.FindFirst("token_version")?.Value; if (string.IsNullOrWhiteSpace(tokenVersionClaim) || !int.TryParse(tokenVersionClaim, out var tokenVersion)) { context.Fail("Invalid token claims: missing or invalid token_version (fail-closed against legacy tokens)."); return; } if (user.TokenVersion != tokenVersion) { context.Fail("Token has been revoked due to security event or password reset."); return; } if (!string.IsNullOrEmpty(tenantId) && tenantId != "global") { var tenant = await dbContext.Tenants.AsNoTracking().FirstOrDefaultAsync(t => t.Id == tenantId); if (tenant == null || !tenant.IsActive) { context.Fail("Tenant is inactive or suspended."); return; } } } }; }); builder.Services.AddOptions(JwtBearerDefaults.AuthenticationScheme) .Configure>((options, jwtOptAccessor) => { var currentJwt = jwtOptAccessor.Value; var keyStr = currentJwt.SigningKey; if (string.IsNullOrWhiteSpace(keyStr) || Encoding.UTF8.GetByteCount(keyStr) < 32) { keyStr = "DEV_ONLY_INSECURE_SIGNING_KEY_FOR_LOCAL_TESTING_PURPOSES_ONLY_MIN_64_BYTES_LONG_!"; } var iss = !string.IsNullOrWhiteSpace(currentJwt.Issuer) ? currentJwt.Issuer : "ClassNotify.Server"; var aud = !string.IsNullOrWhiteSpace(currentJwt.Audience) ? currentJwt.Audience : "ClassNotify.Clients"; options.TokenValidationParameters = new TokenValidationParameters { ValidateIssuer = true, ValidateAudience = true, ValidateLifetime = true, ValidateIssuerSigningKey = true, ValidIssuer = iss, ValidAudience = aud, IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(keyStr)), ClockSkew = TimeSpan.FromMinutes(1) }; }); builder.Services.AddAuthorization(); // 6. Partitioned Rate Limiting (按来源分区,避免全局限流瓶颈) builder.Services.Configure(builder.Configuration.GetSection("RateLimit")); builder.Services.AddRateLimiter(options => { options.RejectionStatusCode = StatusCodes.Status429TooManyRequests; // AuthLimiter: requests / minute / IP options.AddPolicy("AuthLimiter", httpContext => { var rateOpts = httpContext.RequestServices.GetRequiredService>().Value; var remoteIp = httpContext.Connection.RemoteIpAddress?.ToString() ?? "unknown_ip"; return RateLimitPartition.GetFixedWindowLimiter(remoteIp, _ => new FixedWindowRateLimiterOptions { PermitLimit = rateOpts.AuthPermitLimit > 0 ? rateOpts.AuthPermitLimit : 60, Window = TimeSpan.FromMinutes(1), QueueLimit = 0 }); }); // ActivationLimiter: requests / minute / IP options.AddPolicy("ActivationLimiter", httpContext => { var rateOpts = httpContext.RequestServices.GetRequiredService>().Value; var remoteIp = httpContext.Connection.RemoteIpAddress?.ToString() ?? "unknown_ip"; return RateLimitPartition.GetFixedWindowLimiter(remoteIp, _ => new FixedWindowRateLimiterOptions { PermitLimit = rateOpts.ActivationPermitLimit > 0 ? rateOpts.ActivationPermitLimit : 30, Window = TimeSpan.FromMinutes(1), QueueLimit = 0 }); }); // SendLimiter: notifications / minute / user (fallback to IP) options.AddPolicy("SendLimiter", httpContext => { var rateOpts = httpContext.RequestServices.GetRequiredService>().Value; var userId = httpContext.User.FindFirst(ClaimTypes.NameIdentifier)?.Value; var partitionKey = !string.IsNullOrEmpty(userId) ? $"user_{userId}" : $"ip_{httpContext.Connection.RemoteIpAddress?.ToString() ?? "unknown_ip"}"; return RateLimitPartition.GetFixedWindowLimiter(partitionKey, _ => new FixedWindowRateLimiterOptions { PermitLimit = rateOpts.SendPermitLimit > 0 ? rateOpts.SendPermitLimit : 120, Window = TimeSpan.FromMinutes(1), QueueLimit = 0 }); }); }); // 7. CORS Hardening (Production strictly allows official domain only) builder.Services.AddCors(options => { options.AddPolicy("CorsPolicy", policy => { if (builder.Environment.IsDevelopment()) { policy.WithOrigins("http://localhost:5173", "http://127.0.0.1:5173") .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials(); } else { policy.WithOrigins("https://classnotify.paradise.eu.org") .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials(); } }); }); // 6. Forwarded Headers for Linux reverse proxy (Caddy / Nginx) // Only trust loopback reverse proxy (Caddy on same host) with ForwardLimit = 1 builder.Services.Configure(options => { options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto; options.KnownNetworks.Clear(); options.KnownProxies.Clear(); options.KnownProxies.Add(IPAddress.Loopback); options.KnownProxies.Add(IPAddress.IPv6Loopback); options.ForwardLimit = 1; }); var app = builder.Build(); app.UseForwardedHeaders(); app.UseMiddleware(); // Database Initialization & One-Time JSON Migration using (var scope = app.Services.CreateScope()) { var db = scope.ServiceProvider.GetRequiredService(); try { if (db.Database.IsRelational()) { await db.Database.MigrateAsync(); } await DbInitializer.InitializeAsync(db, app.Environment, app.Configuration, app.Logger); await JsonMigrationService.MigrateAsync(db, null, app.Logger); } catch (Exception ex) { app.Logger.LogError(ex, "Error during database initialization or JSON migration."); throw; } } // Serve React SPA static files from wwwroot app.UseDefaultFiles(); app.UseStaticFiles(); app.UseRouting(); app.UseCors("CorsPolicy"); app.UseAuthentication(); app.UseAuthorization(); app.UseRateLimiter(); app.MapControllers(); app.MapHub("/hubs/device"); app.MapHub("/hubs/teacher"); // Dedicated Real PostgreSQL Health Check Endpoint app.MapGet("/api/health", async (ClassNotifyDbContext dbContext) => { bool dbOk = false; string? dbError = null; try { using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(3)); dbOk = await dbContext.Database.CanConnectAsync(cts.Token); if (dbOk) { await dbContext.Database.ExecuteSqlRawAsync("SELECT 1", cts.Token); } } catch (Exception ex) { dbError = ex.Message; } var status = dbOk ? "Healthy" : "Degraded"; var result = new { service = "ClassNotify Commercial Server (ASP.NET Core on Linux)", version = "2.1.0", status = status, database = dbOk ? "Connected" : "Disconnected", databaseError = dbError, hubs = new[] { "/hubs/device", "/hubs/teacher" } }; return dbOk ? Results.Ok(result) : Results.Json(result, statusCode: 503); }); // Fallback to index.html for React SPA client-side routing app.MapFallbackToFile("index.html"); app.Run(); } catch (Exception ex) { Log.Fatal(ex, "ClassNotify Server terminated unexpectedly."); } finally { Log.CloseAndFlush(); } namespace ClassNotify.Server { public partial class Program { } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0", "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64": "8.0.31", "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64": "8.0.31" }, "runtime": { "ClassNotify.Server.dll": {} } }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.CSharp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.VisualBasic.Core.dll": { "assemblyVersion": "13.0.0.0", "fileVersion": "13.0.3126.42015" }, "Microsoft.VisualBasic.dll": { "assemblyVersion": "10.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Registry.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.AppContext.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Buffers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Concurrent.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Immutable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.NonGeneric.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Specialized.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Annotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.DataAnnotations.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.EventBasedAsync.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.TypeConverter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Configuration.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Core.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.DataSetExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Contracts.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.DiagnosticSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.FileVersionInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Process.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.StackTrace.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TextWriterTraceListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tools.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tracing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Dynamic.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Asn1.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Tar.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Calendars.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.Brotli.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.FileSystem.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.ZipFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.DriveInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Watcher.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.IsolatedStorage.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.MemoryMappedFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.UnmanagedMemoryStream.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Expressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Queryable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.HttpListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Mail.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NameResolution.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NetworkInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Ping.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Requests.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Security.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.ServicePoint.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebClient.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebHeaderCollection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.Client.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.Vectors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ObjectModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.CoreLib.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.DataContractSerialization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Uri.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.DispatchProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.ILGeneration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.Lightweight.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.TypeExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Reader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.ResourceManager.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Writer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.Unsafe.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.VisualC.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Handles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.JavaScript.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.RuntimeInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Intrinsics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Loader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Numerics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Formatters.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Claims.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Algorithms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Cng.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Csp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.OpenSsl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.X509Certificates.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.Windows.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.SecureString.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceModel.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceProcess.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.CodePages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encodings.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.RegularExpressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Channels.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Overlapped.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Dataflow.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Thread.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.ThreadPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Timer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.Local.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ValueTuple.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.HttpUtility.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Windows.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Linq.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.ReaderWriter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlSerializer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "WindowsBase.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "mscorlib.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "netstandard.dll": { "assemblyVersion": "2.1.0.0", "fileVersion": "8.0.3126.42015" } }, "native": { "createdump": { "fileVersion": "0.0.0.0" }, "libSystem.Globalization.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.IO.Compression.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Net.Security.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Security.Cryptography.Native.OpenSsl.so": { "fileVersion": "0.0.0.0" }, "libclrgc.so": { "fileVersion": "0.0.0.0" }, "libclrjit.so": { "fileVersion": "0.0.0.0" }, "libcoreclr.so": { "fileVersion": "0.0.0.0" }, "libcoreclrtraceptprovider.so": { "fileVersion": "0.0.0.0" }, "libhostfxr.so": { "fileVersion": "0.0.0.0" }, "libhostpolicy.so": { "fileVersion": "0.0.0.0" }, "libmscordaccore.so": { "fileVersion": "0.0.0.0" }, "libmscordbi.so": { "fileVersion": "0.0.0.0" } } }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.AspNetCore.Antiforgery.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.BearerToken.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Cookies.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.OAuth.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.Policy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Endpoints.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Forms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Server.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Connections.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.CookiePolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.Internal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HostFiltering.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Server.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Html.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Results.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpLogging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpOverrides.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpsPolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Identity.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ApiExplorer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.RazorPages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.TagHelpers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ViewFeatures.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.OutputCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RequestDecompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Rewrite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.HttpSys.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IIS.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IISIntegration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Session.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.StaticFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebUtilities.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Caching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Caching.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Binder.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.CommandLine.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.EnvironmentVariables.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.FileExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.Ini.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.KeyPerFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Configuration.UserSecrets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.DependencyInjection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Composite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Embedded.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Physical.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileSystemGlobbing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Identity.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Identity.Stores.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Logging.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1325.6609" }, "Microsoft.Extensions.Logging.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.ObjectPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Options.ConfigurationExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.224.6711" }, "Microsoft.Extensions.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.WebEncoders.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.JSInterop.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Net.Http.Headers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "System.Diagnostics.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1525.16413" }, "System.IO.Pipelines.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "System.Security.Cryptography.Pkcs.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "System.Security.Cryptography.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.2926.32403" }, "System.Threading.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } }, "runtimes": { "android-arm64": [ "android", "linux-bionic-arm64", "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-arm64": [ "linux", "unix-arm64", "unix", "any", "base" ], "linux-bionic-arm64": [ "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-musl-arm64": [ "linux-musl", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ] } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "includedFrameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.31" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.31" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish/web.config ================================================================================ ================================================================================ FILE: src/Server/ClassNotify.Server/publish/wwwroot/assets/index-Cw4C71zT.js ================================================================================ var Jf=Object.defineProperty;var Xf=(a,l,o)=>l in a?Jf(a,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[l]=o;var xt=(a,l,o)=>Xf(a,typeof l!="symbol"?l+"":l,o);function Gf(a,l){for(var o=0;ou[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=o(d);fetch(d.href,f)}})();function Td(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oo={exports:{}},pr={},Uo={exports:{}},me={};/** * @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 rd;function Yf(){if(rd)return me;rd=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),S=Symbol.iterator;function $(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,F={};function I(N,L,ie){this.props=N,this.context=L,this.refs=F,this.updater=ie||D}I.prototype.isReactComponent={},I.prototype.setState=function(N,L){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,L,"setState")},I.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function q(){}q.prototype=I.prototype;function G(N,L,ie){this.props=N,this.context=L,this.refs=F,this.updater=ie||D}var Z=G.prototype=new q;Z.constructor=G,H(Z,I.prototype),Z.isPureReactComponent=!0;var te=Array.isArray,O=Object.prototype.hasOwnProperty,K={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function pe(N,L,ie){var ce,he={},ve=null,ke=null;if(L!=null)for(ce in L.ref!==void 0&&(ke=L.ref),L.key!==void 0&&(ve=""+L.key),L)O.call(L,ce)&&!fe.hasOwnProperty(ce)&&(he[ce]=L[ce]);var Ne=arguments.length-2;if(Ne===1)he.children=ie;else if(1>>1,L=k[N];if(0>>1;Nd(he,T))ved(ke,he)?(k[N]=ke,k[ve]=T,N=ve):(k[N]=he,k[ce]=T,N=ce);else if(ved(ke,T))k[N]=ke,k[ve]=T,N=ve;else break e}}return W}function d(k,W){var T=k.sortIndex-W.sortIndex;return T!==0?T:k.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var p=[],j=[],C=1,S=null,$=3,D=!1,H=!1,F=!1,I=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Z(k){for(var W=o(j);W!==null;){if(W.callback===null)u(j);else if(W.startTime<=k)u(j),W.sortIndex=W.expirationTime,l(p,W);else break;W=o(j)}}function te(k){if(F=!1,Z(k),!H)if(o(p)!==null)H=!0,Te(O);else{var W=o(j);W!==null&&V(te,W.startTime-k)}}function O(k,W){H=!1,F&&(F=!1,q(pe),pe=-1),D=!0;var T=$;try{for(Z(W),S=o(p);S!==null&&(!(S.expirationTime>W)||k&&!Ee());){var N=S.callback;if(typeof N=="function"){S.callback=null,$=S.priorityLevel;var L=N(S.expirationTime<=W);W=a.unstable_now(),typeof L=="function"?S.callback=L:S===o(p)&&u(p),Z(W)}else u(p);S=o(p)}if(S!==null)var ie=!0;else{var ce=o(j);ce!==null&&V(te,ce.startTime-W),ie=!1}return ie}finally{S=null,$=T,D=!1}}var K=!1,fe=null,pe=-1,b=5,ne=-1;function Ee(){return!(a.unstable_now()-nek||125N?(k.sortIndex=T,l(j,k),o(p)===null&&k===o(j)&&(F?(q(pe),pe=-1):F=!0,V(te,T-N))):(k.sortIndex=L,l(p,k),H||D||(H=!0,Te(O))),k},a.unstable_shouldYield=Ee,a.unstable_wrapCallback=function(k){var W=$;return function(){var T=$;$=W;try{return k.apply(this,arguments)}finally{$=T}}}})(Ho)),Ho}var cd;function sm(){return cd||(cd=1,Bo.exports=nm()),Bo.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 ud;function rm(){if(ud)return gt;ud=1;var a=ta(),l=sm();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,C={},S={};function $(e){return p.call(S,e)?!0:p.call(C,e)?!1:j.test(e)?S[e]=!0:(C[e]=!0,!1)}function D(e,t,s,r){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H(e,t,s,r){if(t===null||typeof t>"u"||D(e,t,s,r))return!0;if(r)return!1;if(s!==null)switch(s.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 F(e,t,s,r,i,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new F(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){I[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function G(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(q,G);I[t]=new F(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(q,G);I[t]=new F(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(q,G);I[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z(e,t,s,r){var i=I.hasOwnProperty(t)?I[t]:null;(i!==null?i.type!==0:r||!(2x||i[h]!==c[x]){var v=` `+i[h].replace(" at new "," at ");return e.displayName&&v.includes("")&&(v=v.replace("",e.displayName)),v}while(1<=h&&0<=x);break}}}finally{ie=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?L(e):""}function he(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return""}}function ve(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 fe:return"Fragment";case K:return"Portal";case b:return"Profiler";case pe:return"StrictMode";case _e:return"Suspense";case Ue:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ee:return(e.displayName||"Context")+".Consumer";case ne:return(e._context.displayName||"Context")+".Provider";case je:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $e:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ke(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 ve(t);case 8:return t===pe?"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 Ne(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function de(e){var t=U(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var i=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=de(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),e=r,e!==s?(t.setValue(e),!0):!1}function We(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 Le(e,t){var s=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Jn(e,t){var s=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;s=Ne(t.value!=null?t.value:s),e._wrapperState={initialChecked:r,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nn(e,t){t=t.checked,t!=null&&Z(e,"checked",t,!1)}function Ql(e,t){nn(e,t);var s=Ne(t.value),r=t.type;if(s!=null)r==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,s):t.hasOwnProperty("defaultValue")&&ql(e,t.type,Ne(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,s){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,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function ql(e,t,s){(t!=="number"||We(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Ps=Array.isArray;function Xn(e,t,s,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Is(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Rs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yd=["Webkit","ms","Moz","O"];Object.keys(Rs).forEach(function(e){Yd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rs[t]=Rs[e]})});function ya(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||Rs.hasOwnProperty(e)&&Rs[e]?(""+t).trim():t+"px"}function wa(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var r=s.indexOf("--")===0,i=ya(s,t[s],r);s==="float"&&(s="cssFloat"),r?e.setProperty(s,i):e[s]=i}}var Zd=T({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xl(e,t){if(t){if(Zd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Gl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yl=null;function Zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,Gn=null,Yn=null;function ja(e){if(e=er(e)){if(typeof ei!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Gr(t),ei(e.stateNode,e.type,t))}}function Na(e){Gn?Yn?Yn.push(e):Yn=[e]:Gn=e}function ba(){if(Gn){var e=Gn,t=Yn;if(Yn=Gn=null,ja(e),t)for(e=0;e>>=0,e===0?32:31-(uh(e)/dh|0)|0}var Lr=64,Dr=4194304;function Ms(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $r(e,t){var s=e.pendingLanes;if(s===0)return 0;var r=0,i=e.suspendedLanes,c=e.pingedLanes,h=s&268435455;if(h!==0){var x=h&~i;x!==0?r=Ms(x):(c&=h,c!==0&&(r=Ms(c)))}else h=s&~i,h!==0?r=Ms(h):c!==0&&(r=Ms(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,c=t&-t,i>=c||i===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0s;s++)t.push(e);return t}function As(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=s}function ph(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vs),Ga=" ",Ya=!1;function Za(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ts=!1;function Vh(e,t){switch(e){case"compositionend":return ec(t);case"keypress":return t.which!==32?null:(Ya=!0,Ga);case"textInput":return e=t.data,e===Ga&&Ya?null:e;default:return null}}function Qh(e,t){if(ts)return e==="compositionend"||!vi&&Za(e,t)?(e=Va(),Ur=hi=an=null,ts=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=oc(s)}}function cc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uc(){for(var e=window,t=We();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=We(e.document)}return t}function ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tf(e){var t=uc(),s=e.focusedElem,r=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&cc(s.ownerDocument.documentElement,s)){if(r!==null&&ji(s)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=s.textContent.length,c=Math.min(r.start,i);r=r.end===void 0?c:Math.min(r.end,i),!e.extend&&c>r&&(i=r,r=c,c=i),i=ac(s,c);var h=ac(s,r);i&&h&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,ns=null,Ni=null,Js=null,bi=!1;function dc(e,t,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;bi||ns==null||ns!==We(r)||(r=ns,"selectionStart"in r&&ji(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Js&&Ks(Js,r)||(Js=r,r=Kr(Ni,"onSelect"),0os||(e.current=$i[os],$i[os]=null,os--)}function Pe(e,t){os++,$i[os]=e.current,e.current=t}var hn={},nt=dn(hn),dt=dn(!1),Pn=hn;function as(e,t){var s=e.type.contextTypes;if(!s)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},c;for(c in s)i[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function Yr(){Re(dt),Re(nt)}function Sc(e,t,s){if(nt.current!==hn)throw Error(o(168));Pe(nt,t),Pe(dt,s)}function Cc(e,t,s){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return s;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(o(108,ke(e)||"Unknown",i));return T({},s,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Pn=nt.current,Pe(nt,e),Pe(dt,dt.current),!0}function Ec(e,t,s){var r=e.stateNode;if(!r)throw Error(o(169));s?(e=Cc(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,Re(dt),Re(nt),Pe(nt,e)):Re(dt),Pe(dt,s)}var Kt=null,el=!1,Mi=!1;function Tc(e){Kt===null?Kt=[e]:Kt.push(e)}function mf(e){el=!0,Tc(e)}function fn(){if(!Mi&&Kt!==null){Mi=!0;var e=0,t=Se;try{var s=Kt;for(Se=1;e>=h,i-=h,Jt=1<<32-It(t)+i|s<le?(Ze=re,re=null):Ze=re.sibling;var we=M(_,re,E[le],B);if(we===null){re===null&&(re=Ze);break}e&&re&&we.alternate===null&&t(_,re),w=c(we,w,le),se===null?ee=we:se.sibling=we,se=we,re=Ze}if(le===E.length)return s(_,re),De&&Rn(_,le),ee;if(re===null){for(;lele?(Ze=re,re=null):Ze=re.sibling;var Nn=M(_,re,we.value,B);if(Nn===null){re===null&&(re=Ze);break}e&&re&&Nn.alternate===null&&t(_,re),w=c(Nn,w,le),se===null?ee=Nn:se.sibling=Nn,se=Nn,re=Ze}if(we.done)return s(_,re),De&&Rn(_,le),ee;if(re===null){for(;!we.done;le++,we=E.next())we=z(_,we.value,B),we!==null&&(w=c(we,w,le),se===null?ee=we:se.sibling=we,se=we);return De&&Rn(_,le),ee}for(re=r(_,re);!we.done;le++,we=E.next())we=Q(re,_,le,we.value,B),we!==null&&(e&&we.alternate!==null&&re.delete(we.key===null?le:we.key),w=c(we,w,le),se===null?ee=we:se.sibling=we,se=we);return e&&re.forEach(function(Kf){return t(_,Kf)}),De&&Rn(_,le),ee}function Be(_,w,E,B){if(typeof E=="object"&&E!==null&&E.type===fe&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case O:e:{for(var ee=E.key,se=w;se!==null;){if(se.key===ee){if(ee=E.type,ee===fe){if(se.tag===7){s(_,se.sibling),w=i(se,E.props.children),w.return=_,_=w;break e}}else if(se.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Te&&$c(ee)===se.type){s(_,se.sibling),w=i(se,E.props),w.ref=tr(_,se,E),w.return=_,_=w;break e}s(_,se);break}else t(_,se);se=se.sibling}E.type===fe?(w=Un(E.props.children,_.mode,B,E.key),w.return=_,_=w):(B=El(E.type,E.key,E.props,null,_.mode,B),B.ref=tr(_,w,E),B.return=_,_=B)}return h(_);case K:e:{for(se=E.key;w!==null;){if(w.key===se)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){s(_,w.sibling),w=i(w,E.children||[]),w.return=_,_=w;break e}else{s(_,w);break}else t(_,w);w=w.sibling}w=Do(E,_.mode,B),w.return=_,_=w}return h(_);case Te:return se=E._init,Be(_,w,se(E._payload),B)}if(Ps(E))return X(_,w,E,B);if(W(E))return Y(_,w,E,B);rl(_,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,w!==null&&w.tag===6?(s(_,w.sibling),w=i(w,E),w.return=_,_=w):(s(_,w),w=Lo(E,_.mode,B),w.return=_,_=w),h(_)):s(_,w)}return Be}var hs=Mc(!0),Ac=Mc(!1),ll=dn(null),il=null,fs=null,Bi=null;function Hi(){Bi=fs=il=null}function Wi(e){var t=ll.current;Re(ll),e._currentValue=t}function Vi(e,t,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===s)break;e=e.return}}function ms(e,t){il=e,Bi=fs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(Bi!==e)if(e={context:e,memoizedValue:t,next:null},fs===null){if(il===null)throw Error(o(308));fs=e,il.dependencies={lanes:0,firstContext:e}}else fs=fs.next=e;return t}var Ln=null;function Qi(e){Ln===null?Ln=[e]:Ln.push(e)}function zc(e,t,s,r){var i=t.interleaved;return i===null?(s.next=s,Qi(t)):(s.next=i.next,i.next=s),t.interleaved=s,Gt(e,r)}function Gt(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var mn=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ye&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,s)}return i=r.interleaved,i===null?(t.next=t,Qi(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,s)}function ol(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,oi(e,s)}}function Uc(e,t){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var i=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var h={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};c===null?i=c=h:c=c.next=h,s=s.next}while(s!==null);c===null?i=c=t:c=c.next=t}else i=c=t;s={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function al(e,t,s,r){var i=e.updateQueue;mn=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var v=x,P=v.next;v.next=null,h===null?c=P:h.next=P,h=v;var A=e.alternate;A!==null&&(A=A.updateQueue,x=A.lastBaseUpdate,x!==h&&(x===null?A.firstBaseUpdate=P:x.next=P,A.lastBaseUpdate=v))}if(c!==null){var z=i.baseState;h=0,A=P=v=null,x=c;do{var M=x.lane,Q=x.eventTime;if((r&M)===M){A!==null&&(A=A.next={eventTime:Q,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var X=e,Y=x;switch(M=t,Q=s,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){z=X.call(Q,z,M);break e}z=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,M=typeof X=="function"?X.call(Q,z,M):X,M==null)break e;z=T({},z,M);break e;case 2:mn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,M=i.effects,M===null?i.effects=[x]:M.push(x))}else Q={eventTime:Q,lane:M,tag:x.tag,payload:x.payload,callback:x.callback,next:null},A===null?(P=A=Q,v=z):A=A.next=Q,h|=M;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;M=x,x=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);if(A===null&&(v=z),i.baseState=v,i.firstBaseUpdate=P,i.lastBaseUpdate=A,t=i.shared.interleaved,t!==null){i=t;do h|=i.lane,i=i.next;while(i!==t)}else c===null&&(i.shared.lanes=0);Mn|=h,e.lanes=h,e.memoizedState=z}}function Fc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;ts?s:4,e(!0);var r=Yi.transition;Yi.transition={};try{e(!1),t()}finally{Se=s,Yi.transition=r}}function iu(){return Ct().memoizedState}function vf(e,t,s){var r=yn(e);if(s={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null},ou(e))au(t,s);else if(s=zc(e,t,s,r),s!==null){var i=ct();At(s,e,r,i),cu(s,t,r)}}function yf(e,t,s){var r=yn(e),i={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null};if(ou(e))au(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,s);if(i.hasEagerState=!0,i.eagerState=x,Rt(x,h)){var v=t.interleaved;v===null?(i.next=i,Qi(t)):(i.next=v.next,v.next=i),t.interleaved=i;return}}catch{}finally{}s=zc(e,t,i,r),s!==null&&(i=ct(),At(s,e,r,i),cu(s,t,r))}}function ou(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function au(e,t){lr=dl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function cu(e,t,s){if((s&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,oi(e,s)}}var ml={readContext:St,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},wf={readContext:St,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Yc,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,hl(4194308,4,tu.bind(null,t,e),s)},useLayoutEffect:function(e,t){return hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return hl(4,2,e,t)},useMemo:function(e,t){var s=Ht();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var r=Ht();return t=s!==void 0?s(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vf.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:lo,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=gf.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var r=Ae,i=Ht();if(De){if(s===void 0)throw Error(o(407));s=s()}else{if(s=t(),Ye===null)throw Error(o(349));($n&30)!==0||Vc(r,t,s)}i.memoizedState=s;var c={value:s,getSnapshot:t};return i.queue=c,Yc(qc.bind(null,r,c,e),[e]),r.flags|=2048,ar(9,Qc.bind(null,r,c,s,t),void 0,null),s},useId:function(){var e=Ht(),t=Ye.identifierPrefix;if(De){var s=Xt,r=Jt;s=(r&~(1<<32-It(r)-1)).toString(32)+s,t=":"+t+"R"+s,s=ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(s,{is:r.is}):(e=h.createElement(s),s==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,s),e[Ft]=t,e[Zs]=r,Tu(e,t,!1,!1),t.stateNode=e;e:{switch(h=Gl(s,r),s){case"dialog":Ie("cancel",e),Ie("close",e),i=r;break;case"iframe":case"object":case"embed":Ie("load",e),i=r;break;case"video":case"audio":for(i=0;iys&&(t.flags|=128,r=!0,cr(c,!1),t.lanes=4194304)}else{if(!r)if(e=cl(h),e!==null){if(t.flags|=128,r=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),cr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!De)return rt(t),null}else 2*Fe()-c.renderingStartTime>ys&&s!==1073741824&&(t.flags|=128,r=!0,cr(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(s=c.last,s!==null?s.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Fe(),t.sibling=null,s=Me.current,Pe(Me,r?s&1|2:s&1),t):(rt(t),null);case 22:case 23:return Po(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(jt&1073741824)!==0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Ef(e,t){switch(zi(t),t.tag){case 1:return ht(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ps(),Re(dt),Re(nt),Gi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ji(t),null;case 13:if(Re(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Me),null;case 4:return ps(),null;case 10:return Wi(t.type._context),null;case 22:case 23:return Po(),null;case 24:return null;default:return null}}var vl=!1,lt=!1,Tf=typeof WeakSet=="function"?WeakSet:Set,J=null;function gs(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(r){Oe(e,t,r)}else s.current=null}function vo(e,t,s){try{s()}catch(r){Oe(e,t,r)}}var Ru=!1;function Pf(e,t){if(Ti=zr,e=uc(),ji(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var i=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,x=-1,v=-1,P=0,A=0,z=e,M=null;t:for(;;){for(var Q;z!==s||i!==0&&z.nodeType!==3||(x=h+i),z!==c||r!==0&&z.nodeType!==3||(v=h+r),z.nodeType===3&&(h+=z.nodeValue.length),(Q=z.firstChild)!==null;)M=z,z=Q;for(;;){if(z===e)break t;if(M===s&&++P===i&&(x=h),M===c&&++A===r&&(v=h),(Q=z.nextSibling)!==null)break;z=M,M=z.parentNode}z=Q}s=x===-1||v===-1?null:{start:x,end:v}}else s=null}s=s||{start:0,end:0}}else s=null;for(Pi={focusedElem:e,selectionRange:s},zr=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var X=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Be=X.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Dt(t.type,Y),Be);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(B){Oe(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return X=Ru,Ru=!1,X}function ur(e,t,s){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var c=i.destroy;i.destroy=void 0,c!==void 0&&vo(t,s,c)}i=i.next}while(i!==r)}}function yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var r=s.create;s.destroy=r()}s=s.next}while(s!==t)}}function yo(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function Lu(e){var t=e.alternate;t!==null&&(e.alternate=null,Lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Zs],delete t[Di],delete t[hf],delete t[ff])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Du(e){return e.tag===5||e.tag===3||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Du(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wo(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(wo(e,t,s),e=e.sibling;e!==null;)wo(e,t,s),e=e.sibling}function jo(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jo(e,t,s),e=e.sibling;e!==null;)jo(e,t,s),e=e.sibling}var et=null,$t=!1;function xn(e,t,s){for(s=s.child;s!==null;)Mu(e,t,s),s=s.sibling}function Mu(e,t,s){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Rr,s)}catch{}switch(s.tag){case 5:lt||gs(s,t);case 6:var r=et,i=$t;et=null,xn(e,t,s),et=r,$t=i,et!==null&&($t?(e=et,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):et.removeChild(s.stateNode));break;case 18:et!==null&&($t?(e=et,s=s.stateNode,e.nodeType===8?Li(e.parentNode,s):e.nodeType===1&&Li(e,s),Bs(e)):Li(et,s.stateNode));break;case 4:r=et,i=$t,et=s.stateNode.containerInfo,$t=!0,xn(e,t,s),et=r,$t=i;break;case 0:case 11:case 14:case 15:if(!lt&&(r=s.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var c=i,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&vo(s,t,h),i=i.next}while(i!==r)}xn(e,t,s);break;case 1:if(!lt&&(gs(s,t),r=s.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=s.memoizedProps,r.state=s.memoizedState,r.componentWillUnmount()}catch(x){Oe(s,t,x)}xn(e,t,s);break;case 21:xn(e,t,s);break;case 22:s.mode&1?(lt=(r=lt)||s.memoizedState!==null,xn(e,t,s),lt=r):xn(e,t,s);break;default:xn(e,t,s)}}function Au(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Tf),t.forEach(function(r){var i=Of.bind(null,e,r);s.has(r)||(s.add(r),r.then(i,i))})}}function Mt(e,t){var s=t.deletions;if(s!==null)for(var r=0;ri&&(i=h),r&=~c}if(r=i,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rf(r/1960))-r,10e?16:e,vn===null)var r=!1;else{if(e=vn,vn=null,_l=0,(ye&6)!==0)throw Error(o(331));var i=ye;for(ye|=4,J=e.current;J!==null;){var c=J,h=c.child;if((J.flags&16)!==0){var x=c.deletions;if(x!==null){for(var v=0;vFe()-_o?zn(e,0):bo|=s),pt(e,t)}function Xu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dr,Dr<<=1,(Dr&130023424)===0&&(Dr=4194304)));var s=ct();e=Gt(e,t),e!==null&&(As(e,t,s),pt(e,s))}function zf(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Xu(e,s)}function Of(e,t){var s=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(s=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Xu(e,s)}var Gu;Gu=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ft=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return ft=!1,Sf(e,t,s);ft=(e.flags&131072)!==0}else ft=!1,De&&(t.flags&1048576)!==0&&Pc(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gl(e,t),e=t.pendingProps;var i=as(t,nt.current);ms(t,s),i=eo(null,t,r,e,i,s);var c=to();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(c=!0,Zr(t)):c=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qi(t),i.updater=pl,t.stateNode=i,i._reactInternals=t,oo(t,r,e,s),t=ho(null,t,r,!0,c,s)):(t.tag=0,De&&c&&Ai(t),at(null,t,i,s),t=t.child),t;case 16:r=t.elementType;e:{switch(gl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ff(r),e=Dt(r,e),i){case 0:t=uo(null,t,r,e,s);break e;case 1:t=bu(null,t,r,e,s);break e;case 11:t=vu(null,t,r,e,s);break e;case 14:t=yu(null,t,r,Dt(r.type,e),s);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),uo(e,t,r,i,s);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),bu(e,t,r,i,s);case 3:e:{if(_u(t),e===null)throw Error(o(387));r=t.pendingProps,c=t.memoizedState,i=c.element,Oc(e,t),al(t,r,null,s);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){i=xs(Error(o(423)),t),t=ku(e,t,r,s,i);break e}else if(r!==i){i=xs(Error(o(424)),t),t=ku(e,t,r,s,i);break e}else for(wt=un(t.stateNode.containerInfo.firstChild),yt=t,De=!0,Lt=null,s=Ac(t,null,r,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ds(),r===i){t=Zt(e,t,s);break e}at(e,t,r,s)}t=t.child}return t;case 5:return Bc(t),e===null&&Ui(t),r=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,h=i.children,Ii(r,i)?h=null:c!==null&&Ii(r,c)&&(t.flags|=32),Nu(e,t),at(e,t,h,s),t.child;case 6:return e===null&&Ui(t),null;case 13:return Su(e,t,s);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hs(t,null,r,s):at(e,t,r,s),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),vu(e,t,r,i,s);case 7:return at(e,t,t.pendingProps,s),t.child;case 8:return at(e,t,t.pendingProps.children,s),t.child;case 12:return at(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,c=t.memoizedProps,h=i.value,Pe(ll,r._currentValue),r._currentValue=h,c!==null)if(Rt(c.value,h)){if(c.children===i.children&&!dt.current){t=Zt(e,t,s);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var x=c.dependencies;if(x!==null){h=c.child;for(var v=x.firstContext;v!==null;){if(v.context===r){if(c.tag===1){v=Yt(-1,s&-s),v.tag=2;var P=c.updateQueue;if(P!==null){P=P.shared;var A=P.pending;A===null?v.next=v:(v.next=A.next,A.next=v),P.pending=v}}c.lanes|=s,v=c.alternate,v!==null&&(v.lanes|=s),Vi(c.return,s,t),x.lanes|=s;break}v=v.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(o(341));h.lanes|=s,x=h.alternate,x!==null&&(x.lanes|=s),Vi(h,s,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}at(e,t,i.children,s),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ms(t,s),i=St(i),r=r(i),t.flags|=1,at(e,t,r,s),t.child;case 14:return r=t.type,i=Dt(r,t.pendingProps),i=Dt(r.type,i),yu(e,t,r,i,s);case 15:return wu(e,t,t.type,t.pendingProps,s);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),gl(e,t),t.tag=1,ht(r)?(e=!0,Zr(t)):e=!1,ms(t,s),du(t,r,i),oo(t,r,i,s),ho(null,t,r,!0,e,s);case 19:return Eu(e,t,s);case 22:return ju(e,t,s)}throw Error(o(156,t.tag))};function Yu(e,t){return Ia(e,t)}function Uf(e,t,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,s,r){return new Uf(e,t,s,r)}function Ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ff(e){if(typeof e=="function")return Ro(e)?1:0;if(e!=null){if(e=e.$$typeof,e===je)return 11;if(e===$e)return 14}return 2}function jn(e,t){var s=e.alternate;return s===null?(s=Tt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function El(e,t,s,r,i,c){var h=2;if(r=e,typeof e=="function")Ro(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case fe:return Un(s.children,i,c,t);case pe:h=8,i|=8;break;case b:return e=Tt(12,s,t,i|2),e.elementType=b,e.lanes=c,e;case _e:return e=Tt(13,s,t,i),e.elementType=_e,e.lanes=c,e;case Ue:return e=Tt(19,s,t,i),e.elementType=Ue,e.lanes=c,e;case V:return Tl(s,i,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:h=10;break e;case Ee:h=9;break e;case je:h=11;break e;case $e:h=14;break e;case Te:h=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Tt(h,s,t,i),t.elementType=e,t.type=r,t.lanes=c,t}function Un(e,t,s,r){return e=Tt(7,e,r,t),e.lanes=s,e}function Tl(e,t,s,r){return e=Tt(22,e,r,t),e.elementType=V,e.lanes=s,e.stateNode={isHidden:!1},e}function Lo(e,t,s){return e=Tt(6,e,null,t),e.lanes=s,e}function Do(e,t,s){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bf(e,t,s,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ii(0),this.expirationTimes=ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $o(e,t,s,r,i,c,h,x,v){return e=new Bf(e,t,s,x,v),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Tt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(c),e}function Hf(e,t,s){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Fo.exports=rm(),Fo.exports}var hd;function lm(){if(hd)return Ml;hd=1;var a=Pd();return Ml.createRoot=a.createRoot,Ml.hydrateRoot=a.hydrateRoot,Ml}var im=lm();const om=Td(im);Pd();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function vr(){return vr=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Id(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function cm(){return Math.random().toString(36).substr(2,8)}function md(a,l){return{usr:a.state,key:a.key,idx:l}}function qo(a,l,o,u){return o===void 0&&(o=null),vr({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?Es(l):l,{state:o,key:l&&l.key||u||cm()})}function zl(a){let{pathname:l="/",search:o="",hash:u=""}=a;return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Es(a){let l={};if(a){let o=a.indexOf("#");o>=0&&(l.hash=a.substr(o),a=a.substr(0,o));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function um(a,l,o,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,y=bn.Pop,p=null,j=C();j==null&&(j=0,m.replaceState(vr({},m.state,{idx:j}),""));function C(){return(m.state||{idx:null}).idx}function S(){y=bn.Pop;let I=C(),q=I==null?null:I-j;j=I,p&&p({action:y,location:F.location,delta:q})}function $(I,q){y=bn.Push;let G=qo(F.location,I,q);j=C()+1;let Z=md(G,j),te=F.createHref(G);try{m.pushState(Z,"",te)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;d.location.assign(te)}f&&p&&p({action:y,location:F.location,delta:1})}function D(I,q){y=bn.Replace;let G=qo(F.location,I,q);j=C();let Z=md(G,j),te=F.createHref(G);m.replaceState(Z,"",te),f&&p&&p({action:y,location:F.location,delta:0})}function H(I){let q=d.location.origin!=="null"?d.location.origin:d.location.href,G=typeof I=="string"?I:zl(I);return G=G.replace(/ $/,"%20"),He(q,"No window.location.(origin|href) available to create URL for href: "+G),new URL(G,q)}let F={get action(){return y},get location(){return a(d,m)},listen(I){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(fd,S),p=I,()=>{d.removeEventListener(fd,S),p=null}},createHref(I){return l(d,I)},createURL:H,encodeLocation(I){let q=H(I);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:$,replace:D,go(I){return m.go(I)}};return F}var pd;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(pd||(pd={}));function dm(a,l,o){return o===void 0&&(o="/"),hm(a,l,o)}function hm(a,l,o,u){let d=typeof l=="string"?Es(l):l,f=sa(d.pathname||"/",o);if(f==null)return null;let m=Rd(a);fm(m);let y=null,p=km(f);for(let j=0;y==null&&j{let p={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(He(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=_n([u,p.relativePath]),C=o.concat(p);f.children&&f.children.length>0&&(He(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),Rd(f.children,l,C,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:wm(j,f.index),routesMeta:C})};return a.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,m);else for(let p of Ld(f.path))d(f,m,p)}),l}function Ld(a){let l=a.split("/");if(l.length===0)return[];let[o,...u]=l,d=o.endsWith("?"),f=o.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Ld(u.join("/")),y=[];return y.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&y.push(...m),y.map(p=>a.startsWith("/")&&p===""?"/":p)}function fm(a){a.sort((l,o)=>l.score!==o.score?o.score-l.score:jm(l.routesMeta.map(u=>u.childrenIndex),o.routesMeta.map(u=>u.childrenIndex)))}const mm=/^:[\w-]+$/,pm=3,xm=2,gm=1,vm=10,ym=-2,xd=a=>a==="*";function wm(a,l){let o=a.split("/"),u=o.length;return o.some(xd)&&(u+=ym),l&&(u+=xm),o.filter(d=>!xd(d)).reduce((d,f)=>d+(mm.test(f)?pm:f===""?gm:vm),u)}function jm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function Nm(a,l,o){let{routesMeta:u}=a,d={},f="/",m=[];for(let y=0;y{let{paramName:$,isOptional:D}=C;if($==="*"){let F=y[S]||"";m=f.slice(0,f.length-F.length).replace(/(.)\/+$/,"$1")}const H=y[S];return D&&!H?j[$]=void 0:j[$]=(H||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function _m(a,l,o){l===void 0&&(l=!1),o===void 0&&(o=!0),Id(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,p)=>(u.push({paramName:y,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function km(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Id(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function sa(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,u=a.charAt(o);return u&&u!=="/"?null:a.slice(o)||"/"}function Sm(a,l){l===void 0&&(l="/");let{pathname:o,search:u="",hash:d=""}=typeof a=="string"?Es(a):a,f;return o?(o=Dd(o),o.startsWith("/")?f=gd(o.substring(1),"/"):f=gd(o,l)):f=l,{pathname:f,search:Tm(u),hash:Pm(d)}}function gd(a,l){let o=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function Wo(a,l,o,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Cm(a){return a.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function ra(a,l){let o=Cm(a);return l?o.map((u,d)=>d===o.length-1?u.pathname:u.pathnameBase):o.map(u=>u.pathnameBase)}function la(a,l,o,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=Es(a):(d=vr({},a),He(!d.pathname||!d.pathname.includes("?"),Wo("?","pathname","search",d)),He(!d.pathname||!d.pathname.includes("#"),Wo("#","pathname","hash",d)),He(!d.search||!d.search.includes("#"),Wo("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,y;if(m==null)y=o;else{let S=l.length-1;if(!u&&m.startsWith("..")){let $=m.split("/");for(;$[0]==="..";)$.shift(),S-=1;d.pathname=$.join("/")}y=S>=0?l[S]:"/"}let p=Sm(d,y),j=m&&m!=="/"&&m.endsWith("/"),C=(f||m===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(j||C)&&(p.pathname+="/"),p}const Dd=a=>a.replace(/\/\/+/g,"/"),_n=a=>Dd(a.join("/")),Em=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Tm=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Pm=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function Im(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const $d=["post","put","patch","delete"];new Set($d);const Rm=["get",...$d];new Set(Rm);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function yr(){return yr=Object.assign?Object.assign.bind():function(a){for(var l=1;l{y.current=!0}),g.useCallback(function(j,C){if(C===void 0&&(C={}),!y.current)return;if(typeof j=="number"){u.go(j);return}let S=la(j,JSON.parse(m),f,C.relative==="path");a==null&&l!=="/"&&(S.pathname=S.pathname==="/"?l:_n([l,S.pathname])),(C.replace?u.replace:u.push)(S,C.state,C)},[l,u,m,f,a])}const Mm=g.createContext(null);function Am(a){let l=g.useContext(tn).outlet;return l&&g.createElement(Mm.Provider,{value:a},l)}function zd(a,l){let{relative:o}=l===void 0?{}:l,{future:u}=g.useContext(Cn),{matches:d}=g.useContext(tn),{pathname:f}=qn(),m=JSON.stringify(ra(d,u.v7_relativeSplatPath));return g.useMemo(()=>la(a,JSON.parse(m),f,o==="path"),[a,m,f,o])}function zm(a,l){return Om(a,l)}function Om(a,l,o,u){Ts()||He(!1);let{navigator:d}=g.useContext(Cn),{matches:f}=g.useContext(tn),m=f[f.length-1],y=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=qn(),C;if(l){var S;let I=typeof l=="string"?Es(l):l;p==="/"||(S=I.pathname)!=null&&S.startsWith(p)||He(!1),C=I}else C=j;let $=C.pathname||"/",D=$;if(p!=="/"){let I=p.replace(/^\//,"").split("/");D="/"+$.replace(/^\//,"").split("/").slice(I.length).join("/")}let H=dm(a,{pathname:D}),F=Wm(H&&H.map(I=>Object.assign({},I,{params:Object.assign({},y,I.params),pathname:_n([p,d.encodeLocation?d.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?p:_n([p,d.encodeLocation?d.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),f,o,u);return l&&F?g.createElement(Hl.Provider,{value:{location:yr({pathname:"/",search:"",hash:"",state:null,key:"default"},C),navigationType:bn.Pop}},F):F}function Um(){let a=Km(),l=Im(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},l),o?g.createElement("pre",{style:d},o):null,null)}const Fm=g.createElement(Um,null);class Bm extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){console.error("React Router caught the following error during render",l,o)}render(){return this.state.error!==void 0?g.createElement(tn.Provider,{value:this.props.routeContext},g.createElement(Md.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Hm(a){let{routeContext:l,match:o,children:u}=a,d=g.useContext(ia);return d&&d.static&&d.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=o.route.id),g.createElement(tn.Provider,{value:l},u)}function Wm(a,l,o,u){var d;if(l===void 0&&(l=[]),o===void 0&&(o=null),u===void 0&&(u=null),a==null){var f;if(!o)return null;if(o.errors)a=o.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let m=a,y=(d=o)==null?void 0:d.errors;if(y!=null){let C=m.findIndex(S=>S.route.id&&(y==null?void 0:y[S.route.id])!==void 0);C>=0||He(!1),m=m.slice(0,Math.min(m.length,C+1))}let p=!1,j=-1;if(o&&u&&u.v7_partialHydration)for(let C=0;C=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((C,S,$)=>{let D,H=!1,F=null,I=null;o&&(D=y&&S.route.id?y[S.route.id]:void 0,F=S.route.errorElement||Fm,p&&(j<0&&$===0?(Xm("route-fallback"),H=!0,I=null):j===$&&(H=!0,I=S.route.hydrateFallbackElement||null)));let q=l.concat(m.slice(0,$+1)),G=()=>{let Z;return D?Z=F:H?Z=I:S.route.Component?Z=g.createElement(S.route.Component,null):S.route.element?Z=S.route.element:Z=C,g.createElement(Hm,{match:S,routeContext:{outlet:C,matches:q,isDataRoute:o!=null},children:Z})};return o&&(S.route.ErrorBoundary||S.route.errorElement||$===0)?g.createElement(Bm,{location:o.location,revalidation:o.revalidation,component:F,error:D,children:G(),routeContext:{outlet:null,matches:q,isDataRoute:!0}}):G()},null)}var Od=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(Od||{}),Ud=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(Ud||{});function Vm(a){let l=g.useContext(ia);return l||He(!1),l}function Qm(a){let l=g.useContext(Lm);return l||He(!1),l}function qm(a){let l=g.useContext(tn);return l||He(!1),l}function Fd(a){let l=qm(),o=l.matches[l.matches.length-1];return o.route.id||He(!1),o.route.id}function Km(){var a;let l=g.useContext(Md),o=Qm(),u=Fd();return l!==void 0?l:(a=o.errors)==null?void 0:a[u]}function Jm(){let{router:a}=Vm(Od.UseNavigateStable),l=Fd(Ud.UseNavigateStable),o=g.useRef(!1);return Ad(()=>{o.current=!0}),g.useCallback(function(d,f){f===void 0&&(f={}),o.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,yr({fromRouteId:l},f)))},[a,l])}const vd={};function Xm(a,l,o){vd[a]||(vd[a]=!0)}function Gm(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Vt(a){let{to:l,replace:o,state:u,relative:d}=a;Ts()||He(!1);let{future:f,static:m}=g.useContext(Cn),{matches:y}=g.useContext(tn),{pathname:p}=qn(),j=Wl(),C=la(l,ra(y,f.v7_relativeSplatPath),p,d==="path"),S=JSON.stringify(C);return g.useEffect(()=>j(JSON.parse(S),{replace:o,state:u,relative:d}),[j,S,d,o,u]),null}function Bd(a){return Am(a.context)}function Qe(a){He(!1)}function Ym(a){let{basename:l="/",children:o=null,location:u,navigationType:d=bn.Pop,navigator:f,static:m=!1,future:y}=a;Ts()&&He(!1);let p=l.replace(/^\/*/,"/"),j=g.useMemo(()=>({basename:p,navigator:f,static:m,future:yr({v7_relativeSplatPath:!1},y)}),[p,y,f,m]);typeof u=="string"&&(u=Es(u));let{pathname:C="/",search:S="",hash:$="",state:D=null,key:H="default"}=u,F=g.useMemo(()=>{let I=sa(C,p);return I==null?null:{location:{pathname:I,search:S,hash:$,state:D,key:H},navigationType:d}},[p,C,S,$,D,H,d]);return F==null?null:g.createElement(Cn.Provider,{value:j},g.createElement(Hl.Provider,{children:o,value:F}))}function Zm(a){let{children:l,location:o}=a;return zm(Ko(l),o)}new Promise(()=>{});function Ko(a,l){l===void 0&&(l=[]);let o=[];return g.Children.forEach(a,(u,d)=>{if(!g.isValidElement(u))return;let f=[...l,d];if(u.type===g.Fragment){o.push.apply(o,Ko(u.props.children,f));return}u.type!==Qe&&He(!1),!u.props.index||!u.props.children||He(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=Ko(u.props.children,f)),o.push(m)}),o}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jo(){return Jo=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[o];return l.concat(Array.isArray(u)?u.map(d=>[o,d]):[[o,u]])},[]))}function sp(a,l){let o=Xo(a);return l&&l.forEach((u,d)=>{o.has(d)||l.getAll(d).forEach(f=>{o.append(d,f)})}),o}const rp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lp="6";try{window.__reactRouterVersion=lp}catch{}const ip="startTransition",yd=tm[ip];function op(a){let{basename:l,children:o,future:u,window:d}=a,f=g.useRef();f.current==null&&(f.current=am({window:d,v5Compat:!0}));let m=f.current,[y,p]=g.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},C=g.useCallback(S=>{j&&yd?yd(()=>p(S)):p(S)},[p,j]);return g.useLayoutEffect(()=>m.listen(C),[m,C]),g.useEffect(()=>Gm(u),[u]),g.createElement(Ym,{basename:l,children:o,location:y.location,navigationType:y.action,navigator:m,future:u})}const ap=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ge=g.forwardRef(function(l,o){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:y,target:p,to:j,preventScrollReset:C,viewTransition:S}=l,$=ep(l,rp),{basename:D}=g.useContext(Cn),H,F=!1;if(typeof j=="string"&&cp.test(j)&&(H=j,ap))try{let Z=new URL(window.location.href),te=j.startsWith("//")?new URL(Z.protocol+j):new URL(j),O=sa(te.pathname,D);te.origin===Z.origin&&O!=null?j=O+te.search+te.hash:F=!0}catch{}let I=Dm(j,{relative:d}),q=up(j,{replace:m,state:y,target:p,preventScrollReset:C,relative:d,viewTransition:S});function G(Z){u&&u(Z),Z.defaultPrevented||q(Z)}return g.createElement("a",Jo({},$,{href:H||I,onClick:F||f?u:G,ref:o,target:p}))});var wd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(wd||(wd={}));var jd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(jd||(jd={}));function up(a,l){let{target:o,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:y}=l===void 0?{}:l,p=Wl(),j=qn(),C=zd(a,{relative:m});return g.useCallback(S=>{if(np(S,o)){S.preventDefault();let $=u!==void 0?u:zl(j)===zl(C);p(a,{replace:$,state:d,preventScrollReset:f,relative:m,viewTransition:y})}},[j,p,C,u,d,o,a,f,m,y])}function dp(a){let l=g.useRef(Xo(a)),o=g.useRef(!1),u=qn(),d=g.useMemo(()=>sp(u.search,o.current?null:l.current),[u.search]),f=Wl(),m=g.useCallback((y,p)=>{const j=Xo(typeof y=="function"?y(d):y);o.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class hp{constructor(){xt(this,"listeners",new Set);xt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(o=>{try{o(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const Ns=new hp,Hd="/api";function Ss(){return localStorage.getItem("classnotify_token")}function fp(a){localStorage.setItem("classnotify_token",a)}function xr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function xe(a,l={}){const o=Ss(),u={"Content-Type":"application/json",...l.headers};o&&(u.Authorization=`Bearer ${o}`);const d=await fetch(`${Hd}${a}`,{...l,headers:u});if(d.status===401)throw xr(),Ns.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const oe={login:(a,l)=>xe("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>xe("/auth/me"),getAdminMetrics:()=>xe("/admin/metrics"),getTenants:()=>xe("/admin/tenants"),getAllDevices:()=>xe("/admin/devices"),sendDeviceCommand:(a,l,o)=>xe(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:o})}),getAdminActivationCodes:()=>xe("/admin/activation-codes"),getAdminClasses:a=>xe(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>xe(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>xe(`/admin/notifications?limit=${a}`),createTenant:a=>xe("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>xe(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const o=new URLSearchParams;a&&o.append("tenantId",a),l&&o.append("role",l);const u=o.toString();return xe(`/admin/users${u?`?${u}`:""}`)},createUser:a=>xe("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>xe(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>xe(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>xe(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>xe(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>xe(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>xe(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>xe("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getSystemHealth:()=>xe("/admin/system/health"),getAuditLogs:(a=100)=>xe(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>xe("/school-admin/overview"),getSchoolClasses:()=>xe("/school-admin/classes"),createSchoolClass:a=>xe("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>xe("/school-admin/teachers"),createSchoolTeacher:a=>xe("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),resetSchoolTeacherPassword:(a,l)=>xe(`/school-admin/teachers/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(a,l)=>xe(`/school-admin/teachers/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>xe("/school-admin/devices"),getSchoolCodes:()=>xe("/school-admin/activation-codes"),generateSchoolCode:a=>xe(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>xe("/notification/classes"),sendNotification:a=>xe("/notification/send",{method:"POST",body:JSON.stringify(a)}),cancelNotification:a=>xe(`/notifications/${encodeURIComponent(a)}/cancel`,{method:"POST"}),getTeacherHistory:(a,l=50)=>xe(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`),getVisualReceiptBlob:async(a,l)=>{const o=Ss(),u=await fetch(`${Hd}/notifications/${encodeURIComponent(a)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:o?{Authorization:`Bearer ${o}`}:{}});if(u.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(u.status===404)throw new Error("未找到该通知的视觉回执");if(!u.ok)throw new Error(`获取视觉回执失败 (${u.status})`);return u.blob()}};class Fn extends Error{constructor(l,o){const u=new.target.prototype;super(`${l}: Status code '${o}'`),this.statusCode=o,this.__proto__=u}}class oa extends Error{constructor(l="A timeout occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class zt extends Error{constructor(l="An abort occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class mp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="UnsupportedTransportError",this.__proto__=u}}class pp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="DisabledTransportError",this.__proto__=u}}class xp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="FailedToStartTransportError",this.__proto__=u}}class Nd extends Error{constructor(l){const o=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=o}}class gp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.innerErrors=o,this.__proto__=u}}class Wd{constructor(l,o,u){this.statusCode=l,this.statusText=o,this.content=u}}class Vl{get(l,o){return this.send({...o,method:"GET",url:l})}post(l,o){return this.send({...o,method:"POST",url:l})}delete(l,o){return this.send({...o,method:"DELETE",url:l})}getCookieString(l){return""}}var R;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(R||(R={}));class wr{constructor(){}log(l,o){}}wr.instance=new wr;const vp="8.0.29";class qe{static isRequired(l,o){if(l==null)throw new Error(`The '${o}' argument is required.`)}static isNotEmpty(l,o){if(!l||l.match(/^\s*$/))throw new Error(`The '${o}' argument should not be empty.`)}static isIn(l,o,u){if(!(l in o))throw new Error(`Unknown ${u} value: ${l}.`)}}class ze{static get isBrowser(){return!ze.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ze.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ze.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function jr(a,l){let o="";return Wn(a)?(o=`Binary data of length ${a.byteLength}`,l&&(o+=`. Content: '${yp(a)}'`)):typeof a=="string"&&(o=`String data of length ${a.length}`,l&&(o+=`. Content: '${a}'`)),o}function yp(a){const l=new Uint8Array(a);let o="";return l.forEach(u=>{const d=u<16?"0":"";o+=`0x${d}${u.toString(16)} `}),o.substr(0,o.length-1)}function Wn(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Vd(a,l,o,u,d,f){const m={},[y,p]=Cs();m[y]=p,a.log(R.Trace,`(${l} transport) sending data. ${jr(d,f.logMessageContent)}.`);const j=Wn(d)?"arraybuffer":"text",C=await o.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(R.Trace,`(${l} transport) request complete. Response status: ${C.statusCode}.`)}function wp(a){return a===void 0?new Ol(R.Information):a===null?wr.instance:a.log!==void 0?a:new Ol(a)}class jp{constructor(l,o){this._subject=l,this._observer=o}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(o=>{})}}class Ol{constructor(l){this._minLevel=l,this.out=console}log(l,o){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${R[l]}: ${o}`;switch(l){case R.Critical:case R.Error:this.out.error(u);break;case R.Warning:this.out.warn(u);break;case R.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function Cs(){let a="X-SignalR-User-Agent";return ze.isNode&&(a="User-Agent"),[a,Np(vp,bp(),kp(),_p())]}function Np(a,l,o,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${o}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function bp(){if(ze.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function _p(){if(ze.isNode)return process.versions.node}function kp(){return ze.isNode?"NodeJS":"Browser"}function Vo(a){return a.stack?a.stack:a.message?a.message:`${a}`}function Sp(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class Cp extends Vl{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||ze.isNode){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(o("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=o("node-fetch"):this._fetchType=fetch,this._fetchType=o("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Sp());if(typeof AbortController>"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=o("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new zt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const o=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{o.abort(),u=new zt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{o.abort(),this._logger.log(R.Warning,"Timeout from HTTP request."),u=new oa},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},Wn(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:o.signal})}catch(p){throw u||(this._logger.log(R.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await bd(f,"text");throw new Fn(p||f.statusText,f.status)}const y=await bd(f,l.responseType);return new Wd(f.status,f.statusText,y)}getCookieString(l){let o="";return ze.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>o=d.join("; ")),o}}function bd(a,l){let o;switch(l){case"arraybuffer":o=a.arrayBuffer();break;case"text":o=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:o=a.text();break}return o}class Ep extends Vl{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new zt):l.method?l.url?new Promise((o,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(Wn(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new zt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?o(new Wd(d.status,d.statusText,d.response||d.responseText)):u(new Fn(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(R.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new Fn(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(R.Warning,"Timeout from HTTP request."),u(new oa)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Tp extends Vl{constructor(l){if(super(),typeof fetch<"u"||ze.isNode)this._httpClient=new Cp(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Ep(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new zt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class Nt{static write(l){return`${l}${Nt.RecordSeparator}`}static parse(l){if(l[l.length-1]!==Nt.RecordSeparator)throw new Error("Message is incomplete.");const o=l.split(Nt.RecordSeparator);return o.pop(),o}}Nt.RecordSeparatorCode=30;Nt.RecordSeparator=String.fromCharCode(Nt.RecordSeparatorCode);class Pp{writeHandshakeRequest(l){return Nt.write(JSON.stringify(l))}parseHandshakeResponse(l){let o,u;if(Wn(l)){const y=new Uint8Array(l),p=y.indexOf(Nt.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=String.fromCharCode.apply(null,Array.prototype.slice.call(y.slice(0,j))),u=y.byteLength>j?y.slice(j).buffer:null}else{const y=l,p=y.indexOf(Nt.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=y.substring(0,j),u=y.length>j?y.substring(j):null}const d=Nt.parse(o),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var ue;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(ue||(ue={}));class Ip{constructor(){this.observers=[]}next(l){for(const o of this.observers)o.next(l)}error(l){for(const o of this.observers)o.error&&o.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new jp(this,l)}}class Rp{constructor(l,o,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=o,this._bufferSize=u}async _send(l){const o=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};Wn(o)?this._bufferedByteCount+=o.byteLength:this._bufferedByteCount+=o.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,y)=>{d=m,f=y})),this._messages.push(new Lp(o,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(o)}catch{this._disconnected()}await u}_ack(l){let o=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:ue.Sequence,sequenceId:l}));const o=this._messages;for(const u of o)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const o of this._messages)o._rejector(l)}_isInvocationMessage(l){switch(l.type){case ue.Invocation:case ue.StreamItem:case ue.Completion:case ue.StreamInvocation:case ue.CancelInvocation:return!0;case ue.Close:case ue.Sequence:case ue.Ping:case ue.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:ue.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Lp{constructor(l,o,u,d){this._message=l,this._id=o,this._resolver=u,this._rejector=d}}const Dp=30*1e3,$p=15*1e3,Mp=1e5;var Ce;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(Ce||(Ce={}));class aa{static create(l,o,u,d,f,m,y){return new aa(l,o,u,d,f,m,y)}constructor(l,o,u,d,f,m,y){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(R.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},qe.isRequired(l,"connection"),qe.isRequired(o,"logger"),qe.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Dp,this.keepAliveIntervalInMilliseconds=m??$p,this._statefulReconnectBufferSize=y??Mp,this._logger=o,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Pp,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ce.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:ue.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==Ce.Disconnected&&this._connectionState!==Ce.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ce.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ce.Connecting,this._logger.log(R.Debug,"Starting HubConnection.");try{await this._startInternal(),ze.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ce.Connected,this._connectionStarted=!0,this._logger.log(R.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=Ce.Disconnected,this._logger.log(R.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((o,u)=>{this._handshakeResolver=o,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let o=this._protocol.version;this.connection.features.reconnect||(o=1);const u={protocol:this._protocol.name,version:o};if(this._logger.log(R.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(R.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Rp(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(o){throw this._logger.log(R.Debug,`Hub handshake failed with error '${o}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(o),o}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===Ce.Disconnected)return this._logger.log(R.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ce.Disconnecting)return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const o=this._connectionState;return this._connectionState=Ce.Disconnecting,this._logger.log(R.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(R.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(o===Ce.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new zt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createStreamInvocation(l,o,d);let m;const y=new Ip;return y.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){y.error(j);return}else p&&(p.type===ue.Completion?p.error?y.error(new Error(p.error)):y.complete():y.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{y.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),y}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._sendWithProtocol(this._createInvocation(l,o,!0,d));return this._launchStreams(u,f),f}invoke(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createInvocation(l,o,!1,d);return new Promise((y,p)=>{this._callbacks[f.invocationId]=(C,S)=>{if(S){p(S);return}else C&&(C.type===ue.Completion?C.error?p(new Error(C.error)):y(C.result):p(new Error(`Unexpected message type: ${C.type}`)))};const j=this._sendWithProtocol(f).catch(C=>{p(C),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,o){!l||!o||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(o)===-1&&this._methods[l].push(o))}off(l,o){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(o){const d=u.indexOf(o);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const o=this._protocol.parseMessages(l,this._logger);for(const u of o)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case ue.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(R.Error,`Invoke client method threw error: ${Vo(d)}`)});break;case ue.StreamItem:case ue.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===ue.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(R.Error,`Stream callback threw error: ${Vo(f)}`)}}break}case ue.Ping:break;case ue.Close:{this._logger.log(R.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case ue.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case ue.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(R.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let o,u;try{[u,o]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(R.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(o.error){const d="Server returned handshake error: "+o.error;this._logger.log(R.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(R.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ce.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const o=l.target.toLowerCase(),u=this._methods[o];if(!u){this._logger.log(R.Warning,`No client method with the name '${o}' found.`),l.invocationId&&(this._logger.log(R.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,y,p;for(const j of d)try{const C=m;m=await j.apply(this,l.arguments),f&&m&&C&&(this._logger.log(R.Error,`Multiple results provided for '${o}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),y=void 0}catch(C){y=C,this._logger.log(R.Error,`A callback for the method '${o}' threw error '${C}'.`)}p?await this._sendWithProtocol(p):f?(y?p=this._createCompletionMessage(l.invocationId,`${y}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(R.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(R.Error,`Result given for '${o}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(R.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new zt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ce.Disconnecting?this._completeClose(l):this._connectionState===Ce.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===Ce.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=Ce.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),ze.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(o=>o.apply(this,[l]))}catch(o){this._logger.log(R.Error,`An onclose callback called with error '${l}' threw error '${o}'.`)}}}async _reconnect(l){const o=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(R.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=Ce.Reconnecting,l?this._logger.log(R.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(R.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(R.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==Ce.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(R.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ce.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ce.Connected,this._logger.log(R.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(R.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(R.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==Ce.Reconnecting){this._logger.log(R.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ce.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-o,d)}}this._logger.log(R.Information,`Reconnect retries have been exhausted after ${Date.now()-o} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,o,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:o,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(R.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${o}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const o=this._callbacks;this._callbacks={},Object.keys(o).forEach(u=>{const d=o[u];try{d(null,l)}catch(f){this._logger.log(R.Error,`Stream 'error' callback called with '${l}' threw error: ${Vo(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,o,u,d){if(u)return d.length!==0?{arguments:o,streamIds:d,target:l,type:ue.Invocation}:{arguments:o,target:l,type:ue.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:o,invocationId:f.toString(),streamIds:d,target:l,type:ue.Invocation}:{arguments:o,invocationId:f.toString(),target:l,type:ue.Invocation}}}_launchStreams(l,o){if(l.length!==0){o||(o=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{o=o.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const o=[],u=[];for(let d=0;d0)&&(o=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return o&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[Bn.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[Bn.Authorization]&&delete l.headers[Bn.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Xe;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Xe||(Xe={}));var it;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(it||(it={}));let Op=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class kd{get pollAborted(){return this._pollAbort.aborted}constructor(l,o,u){this._httpClient=l,this._logger=o,this._pollAbort=new Op,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,o){if(qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._url=l,this._logger.log(R.Trace,"(LongPolling transport) Connecting."),o===it.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=Cs(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};o===it.Binary&&(m.responseType="arraybuffer");const y=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${y}.`);const p=await this._httpClient.get(y,m);p.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new Fn(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,o){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,o);d.statusCode===204?(this._logger.log(R.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new Fn(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(R.Trace,`(LongPolling transport) data received. ${jr(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof oa?this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(R.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(R.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Vd(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(R.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(R.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[o,u]=Cs();l[o]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof Fn&&(f.statusCode===404?this._logger.log(R.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(R.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(R.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(R.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(R.Trace,l),this.onclose(this._closeError)}}}class Up{constructor(l,o,u,d){this._httpClient=l,this._accessToken=o,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,o){return qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._logger.log(R.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(o!==it.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(ze.isBrowser||ze.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const y=this._httpClient.getCookieString(l),p={};p.Cookie=y;const[j,C]=Cs();p[j]=C,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=y=>{if(this.onreceive)try{this._logger.log(R.Trace,`(SSE transport) data received. ${jr(y.data,this._options.logMessageContent)}.`),this.onreceive(y.data)}catch(p){this._close(p);return}},m.onerror=y=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(R.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(y){d(y);return}})}async send(l){return this._eventSource?Vd(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Fp{constructor(l,o,u,d,f,m){this._logger=u,this._accessTokenFactory=o,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,o){qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._logger.log(R.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const y=this._httpClient.getCookieString(l);let p=!1;if(ze.isNode||ze.isReactNative){const j={},[C,S]=Cs();j[C]=S,u&&(j[Bn.Authorization]=`Bearer ${u}`),y&&(j[Bn.Cookie]=y),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),o===it.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(R.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let C=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?C=j.error:C="There was an error with the transport",this._logger.log(R.Information,`(WebSockets transport) ${C}.`)},m.onmessage=j=>{if(this._logger.log(R.Trace,`(WebSockets transport) data received. ${jr(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(C){this._close(C);return}},m.onclose=j=>{if(p)this._close(j);else{let C=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?C=j.error:C="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(C))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(R.Trace,`(WebSockets transport) sending data. ${jr(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(R.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Sd=100;class Bp{constructor(l,o={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,qe.isRequired(l,"url"),this._logger=wp(o.logger),this.baseUrl=this._resolveUrl(l),o=o||{},o.logMessageContent=o.logMessageContent===void 0?!1:o.logMessageContent,typeof o.withCredentials=="boolean"||o.withCredentials===void 0)o.withCredentials=o.withCredentials===void 0?!0:o.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");o.timeout=o.timeout===void 0?100*1e3:o.timeout;let u=null,d=null;if(ze.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!ze.isNode&&typeof WebSocket<"u"&&!o.WebSocket?o.WebSocket=WebSocket:ze.isNode&&!o.WebSocket&&u&&(o.WebSocket=u),!ze.isNode&&typeof EventSource<"u"&&!o.EventSource?o.EventSource=EventSource:ze.isNode&&!o.EventSource&&typeof d<"u"&&(o.EventSource=d),this._httpClient=new zp(o.httpClient||new Tp(this._logger),o.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=o,this.onreceive=null,this.onclose=null}async start(l){if(l=l||it.Binary,qe.isIn(l,it,"transferFormat"),this._logger.log(R.Debug,`Starting connection with transfer format '${it[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const o="Failed to start the HttpConnection before stop() was called.";return this._logger.log(R.Error,o),await this._stopPromise,Promise.reject(new zt(o))}else if(this._connectionState!=="Connected"){const o="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(R.Error,o),Promise.reject(new zt(o))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new ca(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(o=>{this._stopPromiseResolver=o}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(o){this._logger.log(R.Error,`HttpConnection.transport.stop() threw error '${o}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(R.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let o=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Xe.WebSockets)this.transport=this._constructTransport(Xe.WebSockets),await this._startTransport(o,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(o),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new zt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(o=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new gp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Xe.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Fp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Xe.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Up(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Xe.LongPolling:return new kd(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,o){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,o),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,o)}_resolveTransportOrError(l,o,u,d){const f=Xe[l.transport];if(f==null)return this._logger.log(R.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Hp(o,f))if(l.transferFormats.map(y=>it[y]).indexOf(u)>=0){if(f===Xe.WebSockets&&!this._options.WebSocket||f===Xe.ServerSentEvents&&!this._options.EventSource)return this._logger.log(R.Debug,`Skipping transport '${Xe[f]}' because it is not supported in your environment.'`),new mp(`'${Xe[f]}' is not supported in your environment.`,f);this._logger.log(R.Debug,`Selecting transport '${Xe[f]}'.`);try{return this.features.reconnect=f===Xe.WebSockets?d:void 0,this._constructTransport(f)}catch(y){return y}}else return this._logger.log(R.Debug,`Skipping transport '${Xe[f]}' because it does not support the requested transfer format '${it[u]}'.`),new Error(`'${Xe[f]}' does not support ${it[u]}.`);else return this._logger.log(R.Debug,`Skipping transport '${Xe[f]}' because it was disabled by the client.`),new pp(`'${Xe[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(R.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(R.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(R.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(R.Error,`Connection disconnected with error '${l}'.`):this._logger.log(R.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(o=>{this._logger.log(R.Error,`TransportSendQueue.stop() threw error '${o}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(o){this._logger.log(R.Error,`HttpConnection.onclose(${l}) threw error '${o}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!ze.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const o=window.document.createElement("a");return o.href=l,this._logger.log(R.Information,`Normalizing '${l}' to '${o.href}'.`),o.href}_resolveNegotiateUrl(l){const o=new URL(l);o.pathname.endsWith("/")?o.pathname+="negotiate":o.pathname+="/negotiate";const u=new URLSearchParams(o.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),o.search=u.toString(),o.toString()}}function Hp(a,l){return!a||(l&a)!==0}class ca{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new Al,this._transportResult=new Al,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new Al),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Al;const l=this._transportResult;this._transportResult=void 0;const o=typeof this._buffer[0]=="string"?this._buffer.join(""):ca._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(o),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const o=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(o);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class Al{constructor(){this.promise=new Promise((l,o)=>[this._resolver,this._rejecter]=[l,o])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Wp="json";class Vp{constructor(){this.name=Wp,this.version=2,this.transferFormat=it.Text}parseMessages(l,o){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];o===null&&(o=wr.instance);const u=Nt.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case ue.Invocation:this._isInvocationMessage(m);break;case ue.StreamItem:this._isStreamItemMessage(m);break;case ue.Completion:this._isCompletionMessage(m);break;case ue.Ping:break;case ue.Close:break;case ue.Ack:this._isAckMessage(m);break;case ue.Sequence:this._isSequenceMessage(m);break;default:o.log(R.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return Nt.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,o){if(typeof l!="string"||l==="")throw new Error(o)}}const Qp={trace:R.Trace,debug:R.Debug,info:R.Information,information:R.Information,warn:R.Warning,warning:R.Warning,error:R.Error,critical:R.Critical,none:R.None};function qp(a){const l=Qp[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class Kp{configureLogging(l){if(qe.isRequired(l,"logging"),Jp(l))this.logger=l;else if(typeof l=="string"){const o=qp(l);this.logger=new Ol(o)}else this.logger=new Ol(l);return this}withUrl(l,o){return qe.isRequired(l,"url"),qe.isNotEmpty(l,"url"),this.url=l,typeof o=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...o}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:o},this}withHubProtocol(l){return qe.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new _d(l):this.reconnectPolicy=l:this.reconnectPolicy=new _d,this}withServerTimeout(l){return qe.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return qe.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const o=new Bp(this.url,l);return aa.create(o,this.logger||wr.instance,this.protocol||new Vp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function Jp(a){return a.log!==void 0}class Xp{constructor(){xt(this,"connection",null);xt(this,"state","Disconnected");xt(this,"startPromise",null);xt(this,"permanentRetryTimer",null);xt(this,"isAuthenticated",!1);xt(this,"stateListeners",new Set);xt(this,"ackListeners",new Set);xt(this,"deviceStatusListeners",new Set);xt(this,"healthReportListeners",new Set);xt(this,"notificationListeners",new Set);xt(this,"cancelledListeners",new Set);Ns.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(o=>o(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var o,u;if(!Ss()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((o=this.connection)==null?void 0:o.state)===Ce.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===Ce.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===Ce.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new Kp().withUrl("/hubs/teacher",{accessTokenFactory:()=>Ss()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(R.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(o=>o(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(o=>o(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(o=>o(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(o=>o(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(o=>o(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===Ce.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const Ot=new Xp,Qd=g.createContext(void 0),Gp=({children:a})=>{const[l,o]=g.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=g.useState(Ss()),[f,m]=g.useState(!0);g.useEffect(()=>{const j=Ns.subscribe(()=>{Ot.stop(),xr(),d(null),o(null)});return()=>j()},[]),g.useEffect(()=>{(async()=>{var S,$;if(Ss())try{const D=await oe.getMe();o(D),localStorage.setItem("classnotify_user",JSON.stringify(D)),Ns.reset(),Ot.start()}catch(D){((S=D==null?void 0:D.message)!=null&&S.includes("未授权")||($=D==null?void 0:D.message)!=null&&$.includes("401"))&&(xr(),d(null),o(null))}else xr(),o(null),d(null);m(!1)})()},[]);const y=async(j,C)=>{const S=await oe.login(j,C);if(!S.success||!S.token||!S.role)throw new Error(S.errorMessage||"登录失败");fp(S.token),d(S.token);const $={userId:S.userId||"",name:S.fullName||j,role:S.role,tenantId:S.tenantId||""};return o($),localStorage.setItem("classnotify_user",JSON.stringify($)),Ns.reset(),Ot.start(),S.role},p=()=>{Ot.stop(),xr(),d(null),o(null),Ns.reset()};return n.jsx(Qd.Provider,{value:{user:l,token:u,login:y,logout:p,isLoading:f},children:a})},Sr=()=>{const a=g.useContext(Qd);if(!a)throw new Error("useAuth must be used within an AuthProvider");return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yp=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qd=(...a)=>a.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Zp={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e0=g.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...y},p)=>g.createElement("svg",{ref:p,...Zp,width:l,height:l,stroke:a,strokeWidth:u?Number(o)*24/Number(l):o,className:qd("lucide",d),...y},[...m.map(([j,C])=>g.createElement(j,C)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.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=(a,l)=>{const o=g.forwardRef(({className:u,...d},f)=>g.createElement(e0,{ref:f,iconNode:l,className:qd(`lucide-${Yp(a)}`,u),...d}));return o.displayName=`${a}`,o};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t0=[["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"}]],ua=ae("Activity",t0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const n0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],js=ae("ArrowRight",n0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ul=ae("Bell",s0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Qt=ae("Building2",r0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fl=ae("Check",l0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i0=[["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"}]],Sn=ae("CircleAlert",i0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pt=ae("CircleCheck",o0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Go=ae("CircleX",a0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Kn=ae("Clock",c0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],d0=ae("CloudRain",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Yo=ae("Copy",h0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],m0=ae("Eye",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],x0=ae("Flame",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Nr=ae("GraduationCap",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Zo=ae("History",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ut=ae("KeyRound",y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],gr=ae("Layers",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kn=ae("LoaderCircle",j0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],ea=ae("LockOpen",N0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],bs=ae("Lock",b0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],k0=ae("LogOut",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],C0=ae("Megaphone",S0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],T0=ae("Menu",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Vn=ae("Monitor",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],Kd=ae("PenLine",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qn=ae("Plus",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L0=[["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"}]],br=ae("Radio",L0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],bt=ae("RefreshCw",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],M0=ae("RotateCcw",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Cd=ae("School",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Cr=ae("Search",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O0=[["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"}]],_r=ae("Send",O0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Bl=ae("ShieldAlert",U0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_s=ae("ShieldCheck",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const B0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],H0=ae("Shield",B0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Jd=ae("Sparkles",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],da=ae("Trash2",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ks=ae("TriangleAlert",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Xd=ae("User",q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Hn=ae("Users",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J0=[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]],X0=ae("Vibrate",J0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G0=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Gd=ae("Volume2",G0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kr=ae("X",Y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ex=ae("ZoomIn",Z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],nx=ae("ZoomOut",tx),ha=()=>{const[a,l]=g.useState(Ot.getState());return g.useEffect(()=>Ot.onStateChange(l),[]),a==="Connected"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"云端已连接"]}):a==="Reconnecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-ping"}),"正在重连"]}):a==="Connecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-sky-400 animate-pulse"}),"正在连接..."]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"连接断开"]})},sx=()=>{const{user:a,logout:l}=Sr(),o=qn(),[u,d]=g.useState(!1);if(g.useEffect(()=>{d(!1)},[o.pathname]),!a)return null;const f=m=>o.pathname===m;return n.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"flex items-center justify-between h-16",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs(ge,{to:"/",className:"flex items-center space-x-2.5",children:[n.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:n.jsx(Ul,{className:"w-5 h-5 text-white"})}),n.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),n.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(_s,{className:"w-3.5 h-3.5 text-amber-400"}),n.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(Cd,{className:"w-3.5 h-3.5 text-sky-400"}),n.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&n.jsxs(n.Fragment,{children:[n.jsx(Nr,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]}),n.jsx("div",{className:"hidden sm:block",children:n.jsx(ha,{})})]}),n.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(ge,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(gr,{className:"w-4 h-4"}),"总览"]}),n.jsxs(ge,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Qt,{className:"w-4 h-4"}),"学校租户"]}),n.jsxs(ge,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Hn,{className:"w-4 h-4"}),"用户中枢"]}),n.jsxs(ge,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Vn,{className:"w-4 h-4"}),"设备集控"]}),n.jsxs(ge,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[n.jsx(br,{className:"w-4 h-4"}),"应急广播"]}),n.jsxs(ge,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),n.jsxs(ge,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Zo,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(ge,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Cd,{className:"w-4 h-4"}),"学校概览"]}),n.jsxs(ge,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(gr,{className:"w-4 h-4"}),"班级管理"]}),n.jsxs(ge,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Hn,{className:"w-4 h-4"}),"教师账号"]}),n.jsxs(ge,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&n.jsxs(ge,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Ul,{className:"w-4 h-4"}),"呼叫与回执"]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),n.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),n.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:n.jsx(k0,{className:"w-4 h-4"})}),n.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?n.jsx(kr,{className:"w-5 h-5"}):n.jsx(T0,{className:"w-5 h-5"})})]})]}),u&&n.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ge,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(gr,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),n.jsx(ge,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),n.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),n.jsx(ge,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Qt,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),n.jsx(ge,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Hn,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),n.jsx(ge,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Vn,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),n.jsx(ge,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(br,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),n.jsx(ge,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Zo,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ge,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),n.jsx(ge,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),n.jsx(ge,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),n.jsx(ge,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&n.jsx(ge,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},Qo=({allowedRoles:a,children:l})=>{const{user:o,isLoading:u}=Sr();return u?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):o?a.includes(o.role)?l?n.jsx(n.Fragment,{children:l}):n.jsx(Bd,{}):o.role==="SuperAdmin"?n.jsx(Vt,{to:"/admin",replace:!0}):o.role==="SchoolAdmin"?n.jsx(Vt,{to:"/school-admin",replace:!0}):n.jsx(Vt,{to:"/teacher",replace:!0}):n.jsx(Vt,{to:"/login",replace:!0})},rx=()=>{const[a,l]=g.useState(""),[o,u]=g.useState(""),[d,f]=g.useState(null),[m,y]=g.useState(!1),{login:p}=Sr(),j=Wl(),C=async(S=a,$=o)=>{f(null),y(!0);try{const D=await p(S,$);j(D==="SuperAdmin"?"/admin":D==="SchoolAdmin"?"/school-admin":"/teacher")}catch(D){f(D.message||"登录失败,请检查账号密码")}finally{y(!1)}};return n.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[n.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),n.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),n.jsx("div",{className:"w-full max-w-md relative z-10",children:n.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:n.jsx(Ul,{className:"w-8 h-8 text-white"})}),n.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&n.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),n.jsxs("form",{onSubmit:S=>{S.preventDefault(),C()},className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsxs("div",{className:"relative",children:[n.jsx(Xd,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"text",value:a,onChange:S=>l(S.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),n.jsxs("div",{className:"relative",children:[n.jsx(bs,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"password",value:o,onChange:S=>u(S.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在验证身份..."})]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{children:"登 录"}),n.jsx(js,{className:"w-4 h-4"})]})})]})]})})]})},lx=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState([]),[m,y]=g.useState(null),[p,j]=g.useState([]),[C,S]=g.useState(!0),$=async()=>{try{const[D,H,F,I,q]=await Promise.all([oe.getAdminMetrics(),oe.getTenants(),oe.getAdminNotifications(6),oe.getSystemHealth().catch(()=>null),oe.getAuditLogs(6).catch(()=>[])]);l(D),u(H),f(F),I&&y(I),q&&j(q)}catch(D){console.error("Failed to load admin dashboard data",D)}finally{S(!1)}};return g.useEffect(()=>{$();const D=setInterval($,1e4);return()=>clearInterval(D)},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域云控超管总览"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时管控多校区实体、网格化终端生命周期、底层微内核与紧急调度通道"})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 self-start sm:self-auto",children:[n.jsxs(ge,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold shadow-md shadow-amber-500/20 active:scale-95 transition-all",children:[n.jsx(ut,{className:"w-4 h-4"}),"生成设备激活码"]}),n.jsxs("div",{className:"flex items-center gap-2.5 px-3.5 py-2 rounded-xl bg-slate-900/80 border border-slate-800 text-xs",children:[m!=null&&m.databaseConnected?n.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),n.jsxs("span",{className:"font-medium",children:["PostgreSQL 正常 (",m.databaseLatencyMs.toFixed(1),"ms)"]})]}):n.jsxs("div",{className:"flex items-center gap-2 text-rose-400",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500"}),n.jsx("span",{className:"font-medium",children:"数据库异常断开"})]}),n.jsx("span",{className:"text-slate-600",children:"|"}),n.jsxs("div",{className:"text-slate-400",children:[n.jsx("span",{children:"在线屏: "}),n.jsx("span",{className:"text-white font-mono",children:(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0})]}),n.jsx("span",{className:"text-slate-600",children:"|"}),n.jsx("div",{className:"text-slate-400 font-mono text-[11px]",children:n.jsxs("span",{children:["运行: ",(m==null?void 0:m.uptime)||"99.98%"]})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"入驻学校 / 租户"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:n.jsx(Qt,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.totalTenants)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"所校区"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"总设备数量"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-sky-500/10 text-sky-400 flex items-center justify-center",children:n.jsx(Vn,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.totalDevices)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"台教室终端"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800 relative overflow-hidden",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"在线设备 (实时连通)"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(ua,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),C?"-":(a==null?void 0:a.onlineDevices)??0]}),n.jsxs("span",{className:"text-xs text-slate-400",children:["/ 离线 ",C?"-":(a==null?void 0:a.offlineDevices)??0]})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"今日呼叫通知"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 text-amber-400 flex items-center justify-center",children:n.jsx(Ul,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.todayNotifications)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"次下发"})]})]})]}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"核心管控中枢入口"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4",children:[n.jsxs(ge,{to:"/admin/tenants",className:"glass-panel p-4 border-slate-800 hover:border-indigo-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:n.jsx(Qt,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-indigo-400",children:"学校租户"}),n.jsx("div",{className:"text-xs text-slate-400",children:"入驻、变更与冻结"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-indigo-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/users",className:"glass-panel p-4 border-slate-800 hover:border-sky-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-sky-500/10 text-sky-400 flex items-center justify-center",children:n.jsx(Hn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-sky-400",children:"用户中枢"}),n.jsx("div",{className:"text-xs text-slate-400",children:"跨校开户、改密与封禁"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-sky-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/devices",className:"glass-panel p-4 border-slate-800 hover:border-emerald-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(Vn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-emerald-400",children:"设备集控"}),n.jsx("div",{className:"text-xs text-slate-400",children:"心跳、远程指令与清退"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-emerald-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/codes",className:"glass-panel p-4 border-slate-800 hover:border-amber-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group relative overflow-hidden",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(ut,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-sm font-semibold text-white group-hover:text-amber-400 flex items-center gap-1.5",children:["激活码大盘",n.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-amber-500/20 text-amber-300 font-normal",children:"快速生成"})]}),n.jsx("div",{className:"text-xs text-slate-400",children:"生成、绑定与废除"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-amber-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/broadcast",className:"glass-panel p-4 border-slate-800 hover:border-rose-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:n.jsx(br,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),n.jsx("div",{className:"text-xs text-slate-400",children:"全域群发与强置顶"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n.jsxs("div",{className:"lg:col-span-2 glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(Qt,{className:"w-4 h-4 text-indigo-400"}),"各校区终端在线统计"]}),n.jsx(ge,{to:"/admin/tenants",className:"text-xs text-indigo-400 hover:underline",children:"管理学校 →"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"pb-3 font-medium",children:"学校名称"}),n.jsx("th",{className:"pb-3 font-medium",children:"班级数"}),n.jsx("th",{className:"pb-3 font-medium",children:"设备数"}),n.jsx("th",{className:"pb-3 font-medium",children:"在线状态"}),n.jsx("th",{className:"pb-3 font-medium text-right",children:"在线率"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o.map(D=>{const H=D.deviceCount>0?Math.round(D.onlineCount/D.deviceCount*100):0;return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3 font-medium text-white flex items-center gap-2",children:[n.jsx("span",{children:D.name}),n.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",D.id,")"]})]}),n.jsx("td",{className:"py-3 text-slate-300",children:D.classroomCount}),n.jsx("td",{className:"py-3 text-slate-300",children:D.deviceCount}),n.jsx("td",{className:"py-3",children:n.jsxs("span",{className:"text-xs text-slate-300",children:[D.onlineCount," / ",D.deviceCount," 在线"]})}),n.jsx("td",{className:"py-3 text-right",children:n.jsxs("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${H>=80?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/30":H>0?"bg-amber-500/10 text-amber-400 border border-amber-500/30":"bg-slate-800 text-slate-400"}`,children:[H,"%"]})})]},D.id)})})]})})]}),n.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(_s,{className:"w-4 h-4 text-amber-400"}),"管理员关键操作审计"]}),n.jsx("span",{className:"text-xs text-slate-500",children:"不可篡改"})]}),n.jsx("div",{className:"space-y-3",children:p.length===0?n.jsx("div",{className:"text-center py-8 text-xs text-slate-500",children:"暂无审计记录"}):p.map(D=>n.jsxs("div",{className:"glass-card p-3 text-xs space-y-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"font-semibold text-indigo-300 font-mono",children:D.action}),n.jsx("span",{className:"text-[10px] text-slate-500",children:new Date(D.occurredAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-slate-300 text-[11px] line-clamp-1",children:D.details||D.targetId}),n.jsxs("div",{className:"flex items-center justify-between text-slate-500 text-[10px]",children:[n.jsxs("span",{children:["操作者: ",D.actorUsername]}),n.jsx("span",{className:"font-mono",children:D.targetType})]})]},D.id))})]})]})]})},ix=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,y]=g.useState(null),[p,j]=g.useState(null),[C,S]=g.useState(null),[$,D]=g.useState(""),[H,F]=g.useState(""),[I,q]=g.useState(!1),G=async()=>{try{const b=await oe.getAllDevices();l(b)}catch(b){console.error("Failed to load devices",b)}finally{u(!1)}};g.useEffect(()=>{G();const b=setInterval(G,5e3);return()=>clearInterval(b)},[]);const Z=async(b,ne,Ee)=>{j(`${b}_${ne}`),y(null);try{const je=await oe.sendDeviceCommand(b,ne,Ee);y({deviceId:b,message:je.message,success:!0}),G()}catch(je){y({deviceId:b,message:je.message||"远程指令下发失败",success:!1})}finally{j(null)}},te=b=>{S(b),D(b.hostname||""),F(b.classroomId||"")},O=async b=>{if(b.preventDefault(),!!C){q(!0);try{await oe.updateDevice(C.deviceId,{hostname:$.trim()||void 0,classroomId:H.trim()||void 0}),y({deviceId:C.deviceId,message:"设备信息更新成功",success:!0}),S(null),G()}catch(ne){y({deviceId:C.deviceId,message:ne.message||"更新设备失败",success:!1})}finally{q(!1)}}},K=async b=>{if(window.confirm(`高危操作确认:确定要注销并清退设备 [${b.deviceId} (${b.hostname||b.classroomName})] 吗? 清退后该设备将无法接入,需重新生成激活码绑定!`)){j(`decommission_${b.deviceId}`);try{await oe.decommissionDevice(b.deviceId),y({deviceId:b.deviceId,message:"设备已成功清退并注销",success:!0}),G()}catch(ne){y({deviceId:b.deviceId,message:ne.message||"清退设备失败",success:!1})}finally{j(null)}}},fe=b=>{if(!b)return"从无心跳";const ne=Math.floor((Date.now()-new Date(b).getTime())/1e3);return ne<10?"刚刚 (几秒前)":ne<60?`${ne} 秒前`:ne<3600?`${Math.floor(ne/60)} 分钟前`:`${Math.floor(ne/3600)} 小时前`},pe=a.filter(b=>b.tenantName.toLowerCase().includes(d.toLowerCase())||b.classroomName.toLowerCase().includes(d.toLowerCase())||b.deviceId.toLowerCase().includes(d.toLowerCase())||b.hostname&&b.hostname.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备集控中心"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时监控教室终端健康心跳与服务状态,支持在线秒级下发或离线指令入队补发、元数据变更与清退"})]}),n.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[n.jsxs("button",{onClick:()=>{u(!0),G()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新状态"]}),n.jsxs(ge,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-600/25 transition-all",children:[n.jsx(ut,{className:"w-3.5 h-3.5 text-amber-300"}),"生成新设备激活码"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between transition-all ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsxs("span",{children:["[设备 ",m.deviceId,"] ",m.message]})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:b=>f(b.target.value),placeholder:"按学校、班级、设备编号或计算机名过滤...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"设备编号 / 主机名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"运行状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"心跳与 IP"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"版本"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"运维指令与管理"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:pe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在同步设备状态...":"暂无匹配的设备"})}):pe.map(b=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:b.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:b.tenantName})]}),n.jsxs("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:[n.jsx("div",{children:b.deviceId}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[n.jsx(Vn,{className:"w-3 h-3 text-slate-500"}),n.jsx("span",{children:b.hostname||"Classroom-PC"})]})]}),n.jsx("td",{className:"py-4 px-4",children:b.isOnline?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),n.jsx("span",{children:"在线 (实时连通)"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-400",title:"指令将入队,上线时自动补发",children:[n.jsx(Kn,{className:"w-3 h-3 text-amber-500"}),n.jsx("span",{children:"离线 (支持离线入队)"})]})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:fe(b.lastHeartbeat)}),n.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:b.remoteIp||"127.0.0.1"})]}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono",children:["v",b.clientVersion||"2.1.0"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>Z(b.deviceId,"self_check"),disabled:p===`${b.deviceId}_self_check`,className:"px-2 py-1 rounded-lg bg-indigo-600/10 hover:bg-indigo-600/20 border border-indigo-500/30 text-indigo-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发远程自检指令 (若离线将入队补发)",children:[n.jsx(ua,{className:"w-3 h-3"}),"自检"]}),n.jsxs("button",{onClick:()=>Z(b.deviceId,"restart_client"),disabled:p===`${b.deviceId}_restart_client`,className:"px-2 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"远程重启前台 WPF Client 弹窗进程",children:[n.jsx(M0,{className:"w-3 h-3"}),"重启"]}),n.jsxs("button",{onClick:()=>Z(b.deviceId,"refresh_config"),disabled:p===`${b.deviceId}_refresh_config`,className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发配置刷新指令",children:[n.jsx(bt,{className:"w-3 h-3"}),"刷新"]}),n.jsx("button",{onClick:()=>te(b),className:"p-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 transition-colors",title:"重命名或调整班级绑定",children:n.jsx(Kd,{className:"w-3.5 h-3.5"})}),n.jsx("button",{onClick:()=>K(b),disabled:p===`decommission_${b.deviceId}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"清退并注销设备",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},b.deviceId))})]})})}),C&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"调整设备元数据"}),n.jsxs("p",{className:"text-xs text-slate-400",children:["设备唯一识别码: ",n.jsx("span",{className:"font-mono text-indigo-400",children:C.deviceId})]}),n.jsxs("form",{onSubmit:O,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"计算机名 / 主机标识 (Hostname)"}),n.jsx("input",{type:"text",value:$,onChange:b=>D(b.target.value),placeholder:"例如: LAB-BUILDING-201-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"所属班级编号 (Classroom ID)"}),n.jsx("input",{type:"text",value:H,onChange:b=>F(b.target.value),placeholder:"例如: cls_801",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>S(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:I,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:I?"保存中...":"确认保存"})]})]})]})})]})},ox=()=>{const[a]=dp(),[l,o]=g.useState([]),[u,d]=g.useState([]),[f,m]=g.useState(!0),[y,p]=g.useState(null),[j,C]=g.useState(""),[S,$]=g.useState(""),[D,H]=g.useState(!1),[F,I]=g.useState(""),[q,G]=g.useState([]),[Z,te]=g.useState(!1),[O,K]=g.useState(""),[fe,pe]=g.useState(!1),[b,ne]=g.useState(""),[Ee,je]=g.useState(!1),[_e,Ue]=g.useState(null),$e=async()=>{try{const[T,N]=await Promise.all([oe.getAdminActivationCodes(),oe.getTenants()]);o(T),d(N),N.length>0&&!F&&I(N[0].id)}catch(T){console.error("Failed to load activation codes",T)}finally{m(!1)}};g.useEffect(()=>{$e()},[]),g.useEffect(()=>{const T=a.get("tenantId"),N=a.get("openGenerate")==="true";T&&($(T),I(T),N&&H(!0))},[a]),g.useEffect(()=>{F&&(te(!0),oe.getAdminClasses(F).then(T=>{G(T),T.length>0?(K(T[0].id),pe(!1)):(K(""),pe(!0))}).catch(T=>{console.warn("Could not load classes for tenant:",F,T),G([]),pe(!0)}).finally(()=>te(!1)))},[F]);const Te=T=>{navigator.clipboard.writeText(T),p(T),setTimeout(()=>p(null),2e3)},V=async T=>{T.preventDefault();const N=fe?b.trim():O.trim();if(!F||!N){alert("请选择学校及目标班级");return}je(!0);try{const L=await oe.generateAdminCode(F,N),ie=u.find(he=>he.id===F),ce=q.find(he=>he.id===N);Ue({code:L.code,schoolName:(ie==null?void 0:ie.name)||F,className:(ce==null?void 0:ce.displayName)||N}),H(!1),ne(""),$e()}catch(L){alert(L.message||"生成激活码失败")}finally{je(!1)}},k=async T=>{if(window.confirm(`确定要废弃/删除激活码 [${T}] 吗?废弃后将无法用于设备初始化绑定。`))try{await oe.deleteActivationCode(T),$e()}catch(N){alert(N.message||"删除激活码失败")}},W=l.filter(T=>{const N=!S||T.tenantId===S,L=T.code.toLowerCase().includes(j.toLowerCase())||T.classroomName.toLowerCase().includes(j.toLowerCase())||T.tenantName.toLowerCase().includes(j.toLowerCase());return N&&L});return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(ut,{className:"w-4 h-4"})}),n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{m(!0),$e()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{Ue(null),H(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[n.jsx(Qn,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),_e&&n.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:n.jsx(Jd,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),n.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",n.jsx("span",{className:"font-medium text-white",children:_e.schoolName})," / ",n.jsx("span",{className:"font-medium text-white",children:_e.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:_e.code}),n.jsx("button",{onClick:()=>Te(_e.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:y===_e.code?n.jsxs(n.Fragment,{children:[n.jsx(Fl,{className:"w-3.5 h-3.5"}),"已复制"]}):n.jsxs(n.Fragment,{children:[n.jsx(Yo,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:j,onChange:T=>C(T.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Qt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:S,onChange:T=>$(T.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(T=>n.jsxs("option",{value:T.id,children:[T.name," (",T.id,")"]},T.id))]})]}),n.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"text-white font-medium",children:W.length})," 个激活码"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:W.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(ut,{className:"w-8 h-8 text-slate-600"}),n.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),n.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),n.jsxs("button",{onClick:()=>H(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[n.jsx(Qn,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):W.map(T=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:T.code}),n.jsx("button",{onClick:()=>Te(T.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:y===T.code?n.jsx(Fl,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(Yo,{className:"w-3.5 h-3.5"})})]})}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:T.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:T.tenantName})]}),n.jsx("td",{className:"py-4 px-4",children:T.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx(Pt,{className:"w-3 h-3"}),"已激活绑定"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx(Kn,{className:"w-3 h-3"}),"等待激活"]})}),n.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:T.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:T.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(T.expiresAt).toLocaleDateString()," ",new Date(T.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsx("button",{onClick:()=>Te(T.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:y===T.code?"已复制":"复制"}),n.jsx("button",{onClick:()=>k(T.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},T.code))})]})})}),D&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(ut,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),n.jsxs("form",{onSubmit:V,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),n.jsx("select",{value:F,onChange:T=>I(T.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(T=>n.jsxs("option",{value:T.id,children:[T.name," (",T.id,") ",T.isActive?"":"[已冻结]"]},T.id))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),n.jsx("button",{type:"button",onClick:()=>pe(!fe),className:"text-[11px] text-amber-400 hover:underline",children:fe?"从班级列表选择":"手动输入班级ID"})]}),Z?n.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[n.jsx(bt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):fe?n.jsx("input",{type:"text",value:b,onChange:T=>ne(T.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):q.length>0?n.jsx("select",{value:O,onChange:T=>K(T.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:q.map(T=>n.jsxs("option",{value:T.id,children:[T.displayName," (",T.id,")"]},T.id))}):n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[n.jsx(Sn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),n.jsx("input",{type:"text",value:b,onChange:T=>ne(T.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),n.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[n.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),n.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),n.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:Ee,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:Ee?"生成中...":"立即生成激活码"})]})]})]})})]})},ax=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),m=async()=>{try{const p=await oe.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};g.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const y=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),n.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新审计"]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:y.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在加载审计数据...":"暂无呼叫历史记录"})}):y.map(p=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:p.className}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),n.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[n.jsx("div",{className:"font-medium text-sm",children:p.message}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),n.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),n.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Pt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[n.jsx(_r,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Kn,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),n.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?n.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):n.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},cx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,y]=g.useState(null),[p,j]=g.useState(!1),[C,S]=g.useState({id:"",name:""}),[$,D]=g.useState(!1),[H,F]=g.useState(null),[I,q]=g.useState({name:"",isActive:!0}),[G,Z]=g.useState(!1),te=async()=>{try{const b=await oe.getTenants();l(b)}catch(b){console.error("Failed to load tenants",b)}finally{u(!1)}};g.useEffect(()=>{te()},[]);const O=async b=>{if(b.preventDefault(),!(!C.id.trim()||!C.name.trim())){D(!0);try{await oe.createTenant({id:C.id.trim(),name:C.name.trim()}),y({text:`学校 [${C.name}] 创建成功!`,success:!0}),j(!1),S({id:"",name:""}),te()}catch(ne){y({text:ne.message||"创建学校失败",success:!1})}finally{D(!1)}}},K=b=>{F(b),q({name:b.name,isActive:b.isActive})},fe=async b=>{if(b.preventDefault(),!(!H||!I.name.trim())){Z(!0);try{await oe.updateTenant(H.id,{name:I.name.trim(),isActive:I.isActive}),y({text:`学校 [${I.name}] 配置已更新`,success:!0}),F(null),te()}catch(ne){y({text:ne.message||"更新学校配置失败",success:!1})}finally{Z(!1)}}},pe=a.filter(b=>b.name.toLowerCase().includes(d.toLowerCase())||b.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{u(!0),te()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:m.text})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:b=>f(b.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:pe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在读取租户列表...":"暂无匹配的学校租户"})}):pe.map(b=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:n.jsx(Qt,{className:"w-4 h-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-white",children:b.name}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:b.id})]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[n.jsx(Nr,{className:"w-3.5 h-3.5 text-indigo-400"}),n.jsxs("span",{children:[b.classroomCount," 个班级"]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("span",{className:"font-semibold text-emerald-400",children:[b.onlineCount," 在线"]}),n.jsx("span",{className:"text-slate-500",children:"/"}),n.jsxs("span",{className:"text-slate-400",children:[b.deviceCount," 总屏"]})]})}),n.jsx("td",{className:"py-4 px-4",children:b.isActive?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx(Pt,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"正常运营"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(Go,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"已停用冻结"})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(b.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsxs(ge,{to:`/admin/codes?tenantId=${b.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),"生成激活码"]}),n.jsxs("button",{onClick:()=>K(b),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[n.jsx(Kd,{className:"w-3 h-3"}),"编辑配置"]})]})})]},b.id))})]})})}),p&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),n.jsxs("form",{onSubmit:O,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:C.id,onChange:b=>S({...C,id:b.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:C.name,onChange:b=>S({...C,name:b.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:$,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:$?"正在创建...":"确认接入"})]})]})]})}),H&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",H.id]}),n.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),n.jsx("input",{type:"text",required:!0,value:I.name,onChange:b=>q({...I,name:b.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),n.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!0,onChange:()=>q({...I,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!1,onChange:()=>q({...I,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>F(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:G,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:G?"保存中...":"保存更改"})]})]})]})})]})},ux=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(""),[p,j]=g.useState(""),[C,S]=g.useState(""),[$,D]=g.useState(null),[H,F]=g.useState(!1),[I,q]=g.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[G,Z]=g.useState(!1),[te,O]=g.useState(null),[K,fe]=g.useState(""),[pe,b]=g.useState(!1),[ne,Ee]=g.useState(null),je=async()=>{try{const[k,W]=await Promise.all([oe.getUsers(p||void 0,C||void 0),oe.getTenants()]);l(k),u(W)}catch(k){console.error("Failed to load user management data",k)}finally{f(!1)}};g.useEffect(()=>{je()},[p,C]);const _e=async k=>{var W;if(k.preventDefault(),!I.tenantId||!I.username||!I.password||!I.fullName){D({text:"请填写所有必填字段",success:!1});return}Z(!0);try{await oe.createUser(I),D({text:`用户 [${I.username}] 创建成功!`,success:!0}),F(!1),q({tenantId:((W=o[0])==null?void 0:W.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),je()}catch(T){D({text:T.message||"创建用户失败",success:!1})}finally{Z(!1)}},Ue=async k=>{if(k.preventDefault(),!(!te||!K.trim())){b(!0);try{await oe.resetPassword(te.id,K.trim()),D({text:`用户 [${te.username}] 的密码已重置成功`,success:!0}),O(null),fe("")}catch(W){D({text:W.message||"重置密码失败",success:!1})}finally{b(!1)}}},$e=async k=>{const W=!k.isLocked,T=W?`确定要锁定账号 [${k.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${k.username}] 吗?`;if(window.confirm(T)){Ee(`lock_${k.id}`);try{await oe.setUserLock(k.id,W),D({text:`用户 [${k.username}] 已成功${W?"锁定":"解锁"}`,success:!0}),je()}catch(N){D({text:N.message||"操作失败",success:!1})}finally{Ee(null)}}},Te=async k=>{if(k.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${k.username} (${k.fullName})] 吗?此操作不可逆!`)){Ee(`delete_${k.id}`);try{await oe.deleteUser(k.id),D({text:`用户 [${k.username}] 已被删除`,success:!0}),je()}catch(W){D({text:W.message||"删除用户失败",success:!1})}finally{Ee(null)}}},V=a.filter(k=>k.username.toLowerCase().includes(m.toLowerCase())||k.fullName.toLowerCase().includes(m.toLowerCase())||k.tenantName.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{f(!0),je()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{o.length>0&&!I.tenantId&&q(k=>({...k,tenantId:o[0].id})),F(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建用户"]})]})]}),$&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${$.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[$.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:$.text})]}),n.jsx("button",{onClick:()=>D(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:m,onChange:k=>y(k.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Qt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:p,onChange:k=>j(k.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部学校 (全网)"}),o.map(k=>n.jsxs("option",{value:k.id,children:[k.name," (",k.id,")"]},k.id))]})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Nr,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:C,onChange:k=>S(k.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部角色"}),n.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),n.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:V.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):V.map(k=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:k.fullName}),n.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:k.username})]}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:k.tenantName}),n.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:k.tenantId})]}),n.jsx("td",{className:"py-4 px-4",children:k.role==="SuperAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(Bl,{className:"w-3 h-3"}),"超级管理员"]}):k.role==="SchoolAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[n.jsx(Qt,{className:"w-3 h-3"}),"校区管理员"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[n.jsx(Nr,{className:"w-3 h-3"}),"授课老师"]})}),n.jsx("td",{className:"py-4 px-4",children:k.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[n.jsx(bs,{className:"w-3 h-3"}),"已锁定封禁"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Pt,{className:"w-3 h-3"}),"正常"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:k.lastLoginAt?new Date(k.lastLoginAt).toLocaleString():"尚未登录"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>O(k),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[n.jsx(ut,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),k.role!=="SuperAdmin"&&n.jsxs("button",{onClick:()=>$e(k),disabled:ne===`lock_${k.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${k.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:k.isLocked?"解除账号锁定":"锁定账号",children:[k.isLocked?n.jsx(ea,{className:"w-3 h-3"}):n.jsx(bs,{className:"w-3 h-3"}),k.isLocked?"解锁":"锁定"]}),k.role!=="SuperAdmin"&&n.jsx("button",{onClick:()=>Te(k),disabled:ne===`delete_${k.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},k.id))})]})})}),H&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),n.jsxs("form",{onSubmit:_e,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),n.jsxs("select",{required:!0,value:I.tenantId,onChange:k=>q({...I,tenantId:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"-- 请选择学校 --"}),o.map(k=>n.jsxs("option",{value:k.id,children:[k.name," (",k.id,")"]},k.id))]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),n.jsxs("select",{value:I.role,onChange:k=>q({...I,role:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:I.username,onChange:k=>q({...I,username:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:I.fullName,onChange:k=>q({...I,fullName:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:I.password,onChange:k=>q({...I,password:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>F(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:G,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:G?"正在创建...":"确认开户"})]})]})]})}),te&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",te.username]}),n.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",te.tenantName,"] 的 [",te.fullName,"] 强行设置新密码。"]}),n.jsxs("form",{onSubmit:Ue,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:K,onChange:k=>fe(k.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>{O(null),fe("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:pe,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:pe?"重置中...":"确认重置"})]})]})]})})]})},dx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState([]),[m,y]=g.useState(!1),[p,j]=g.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[C,S]=g.useState(!1),[$,D]=g.useState(!1),[H,F]=g.useState(null),I=[{title:"⚠️ 消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速、有序撤离至操场,不要慌乱!",duration:60,shake:!0,voice:!0,icon:x0},{title:"⛈️ 恶劣雷雨大风避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁学生前往走廊与室外活动!",duration:45,shake:!0,voice:!0,icon:d0},{title:"📢 临时紧急集合通知",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学保持教室内安静自习。",duration:30,shake:!1,voice:!0,icon:Hn},{title:"🔔 全校临时作息调整",content:"因突发教学安排,今天下午放学时间调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:C0}],q=async()=>{try{const b=await oe.getTenants();l(b)}catch(b){console.error("Failed to load tenants",b)}finally{u(!1)}},G=async()=>{y(!0);try{const b=await oe.getAdminNotifications(15);f(b)}catch(b){console.error("Failed to load recent broadcasts",b)}finally{y(!1)}};g.useEffect(()=>{q(),G()},[]);const Z=b=>{j(ne=>({...ne,title:b.title,message:b.content,durationSeconds:b.duration,shake:b.shake,voice:b.voice}))},te=b=>{if(b.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}S(!0)},O=async()=>{D(!0);try{const b=await oe.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});F({dispatchedCount:b.dispatchedCount,targetSchools:b.targetSchools,message:b.message,success:!0,timestamp:new Date().toLocaleTimeString()}),S(!1),j(ne=>({...ne,message:""})),G()}catch(b){F({dispatchedCount:0,targetSchools:0,message:b.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),S(!1)}finally{D(!1)}},K=a.find(b=>b.id===p.tenantId),fe=K?K.classroomCount:a.reduce((b,ne)=>b+(ne.classroomCount||0),0),pe=K?K.deviceCount:a.reduce((b,ne)=>b+(ne.deviceCount||0),0);return n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:n.jsx(br,{className:"w-5 h-5 animate-pulse"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域紧急应急广播"}),n.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"超级管理员最高优先调度通道,覆盖全网多校区所有教室大屏终端,支持强置顶、TTS 语音播报与视效抖动"})]})]})}),H&&n.jsx("div",{className:`p-5 rounded-xl border transition-all animate-in fade-in slide-in-from-top-2 ${H.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[H.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0 mt-0.5"}):n.jsx(ks,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-sm",children:H.success?"全域紧急广播指令已成功下发":"广播下发遇到异常"}),n.jsx("p",{className:"text-xs text-slate-300 mt-1",children:H.message}),H.success&&n.jsxs("div",{className:"flex flex-wrap gap-4 mt-3 text-xs",children:[n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-200",children:["目标学校: ",n.jsx("strong",{className:"text-white",children:H.targetSchools})," 所"]}),n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-200",children:["投递教室班级: ",n.jsx("strong",{className:"text-emerald-400",children:H.dispatchedCount})," 间"]}),n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-400 font-mono",children:["下发时间: ",H.timestamp]})]})]})]}),n.jsx("button",{onClick:()=>F(null),className:"text-slate-400 hover:text-white p-1 rounded-lg hover:bg-slate-800 transition-colors",children:n.jsx(kr,{className:"w-4 h-4"})})]})}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"应急广播预设模板 (点击快速填装)"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:I.map((b,ne)=>{const Ee=b.icon;return n.jsxs("button",{type:"button",onClick:()=>Z(b),className:"glass-panel p-3.5 border-slate-800 text-left hover:border-indigo-500/50 hover:bg-slate-800/40 transition-all group",children:[n.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-indigo-400 mb-1",children:[n.jsx(Ee,{className:"w-4 h-4 text-indigo-400"}),n.jsx("span",{children:b.title})]}),n.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2",children:b.content})]},ne)})})]}),n.jsx("div",{className:"glass-panel p-6 border-slate-800",children:n.jsxs("form",{onSubmit:te,className:"space-y-5",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Qt,{className:"w-3.5 h-3.5 text-indigo-400"}),"目标广播范围"]}),n.jsxs("span",{className:"text-[11px] text-slate-400 font-normal",children:["预计覆盖 ",fe," 班级 / ",pe," 大屏"]})]}),n.jsxs("select",{value:p.tenantId||"",onChange:b=>j({...p,tenantId:b.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(b=>n.jsxs("option",{value:b.id,children:["仅该校: ",b.name," (",b.classroomCount," 班级, ",b.deviceCount," 大屏)"]},b.id))]})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[n.jsx(Bl,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),n.jsx("input",{type:"text",required:!0,value:p.title,onChange:b=>j({...p,title:b.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容 (将同步在所有大屏全屏高显并由 Windows TTS 朗读)"}),n.jsx("textarea",{required:!0,rows:4,value:p.message,onChange:b=>j({...p,message:b.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500 font-sans",placeholder:"请输入紧急通报具体事项,语言力求简明扼要..."})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2 border-t border-slate-800",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[n.jsx(Kn,{className:"w-3.5 h-3.5 text-indigo-400"}),"展示持续时长: ",p.durationSeconds," 秒"]}),n.jsx("input",{type:"range",min:10,max:300,step:5,value:p.durationSeconds,onChange:b=>j({...p,durationSeconds:parseInt(b.target.value,10)}),className:"w-full accent-indigo-500 cursor-pointer"}),n.jsxs("div",{className:"flex justify-between text-[11px] text-slate-500 mt-1",children:[n.jsx("span",{children:"10秒"}),n.jsx("span",{children:"60秒"}),n.jsx("span",{children:"5分钟"})]})]}),n.jsx("div",{className:"flex items-center",children:n.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[n.jsx("input",{type:"checkbox",checked:p.voice,onChange:b=>j({...p,voice:b.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[n.jsx(Gd,{className:"w-3.5 h-3.5 text-emerald-400"}),"TTS 语音朗读"]}),n.jsx("div",{className:"text-[11px] text-slate-500",children:"大屏端通过系统扬声器朗读"})]})]})}),n.jsx("div",{className:"flex items-center",children:n.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[n.jsx("input",{type:"checkbox",checked:p.shake,onChange:b=>j({...p,shake:b.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[n.jsx(X0,{className:"w-3.5 h-3.5 text-rose-400"}),"窗口视效震颤"]}),n.jsx("div",{className:"text-[11px] text-slate-500",children:"高频强抖动提醒上课师生"})]})]})})]}),n.jsx("div",{className:"pt-2 flex justify-end",children:n.jsxs("button",{type:"submit",disabled:$||!p.message.trim(),className:"flex items-center gap-2 px-6 py-3 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-sm font-semibold shadow-xl shadow-rose-600/30 transition-all disabled:opacity-50",children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"下发全域紧急广播..."})]})})]})}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Zo,{className:"w-4 h-4 text-indigo-400"}),"最近全网广播与呼叫调度记录"]}),n.jsx("button",{onClick:G,disabled:m,className:"text-xs text-indigo-400 hover:text-indigo-300 disabled:opacity-50",children:m?"刷新中...":"刷新记录"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs",children:[n.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),n.jsx("th",{className:"py-2.5 px-3",children:"调度类型"}),n.jsx("th",{className:"py-2.5 px-3",children:"目标班级/范围"}),n.jsx("th",{className:"py-2.5 px-3",children:"通知内容"}),n.jsx("th",{className:"py-2.5 px-3 text-right",children:"投递状态"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:m?"正在加载历史记录...":"暂无最近调度记录"})}):d.slice(0,8).map(b=>n.jsxs("tr",{className:"hover:bg-slate-800/20",children:[n.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(b.createdAt).toLocaleTimeString()}),n.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:b.priority==="Urgent"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-rose-500/10 text-rose-400 border border-rose-500/20 font-medium",children:[n.jsx(ks,{className:"w-3 h-3"}),"紧急通报"]}):n.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/20",children:"日常呼叫"})}),n.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:b.className||"全域广播"}),n.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:b.message}),n.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:b.status==="Cancelled"?n.jsx("span",{className:"text-slate-400",children:"已撤回关闭"}):b.status==="Acknowledged"?n.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):b.status==="Delivered"?n.jsx("span",{className:"text-sky-400",children:"大屏已接收"}):n.jsx("span",{className:"text-slate-400",children:"已发送"})})]},b.id))})]})})]}),C&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-lg w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:n.jsx(Bl,{className:"w-6 h-6 animate-pulse"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"全域极高优先级应急调度二次核验"}),n.jsx("p",{className:"text-xs text-rose-400/90 font-medium mt-0.5",children:"请谨慎操作:此指令将强制穿透终端并在全网大屏置顶展示"})]})]}),n.jsxs("div",{className:"space-y-3 mb-5",children:[n.jsxs("div",{className:"bg-slate-950/70 p-3.5 rounded-xl border border-slate-800/80 space-y-2 text-xs",children:[n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"目标受众范围:"}),n.jsx("span",{className:"text-white font-semibold",children:p.tenantId?`${(K==null?void 0:K.name)||p.tenantId} (${fe} 班级)`:`全域所有学校 (${a.length} 所学校, 约 ${fe} 班级)`})]}),n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"广播标题:"}),n.jsx("span",{className:"text-white font-medium",children:p.title})]}),n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"展示时长与视效:"}),n.jsxs("span",{className:"text-slate-200",children:[p.durationSeconds," 秒 · ",p.voice?"TTS 语音":"无声音"," · ",p.shake?"视效抖动":"无抖动"]})]})]}),n.jsxs("div",{className:"bg-slate-950/70 p-3 rounded-xl border border-slate-800/80 text-xs",children:[n.jsx("span",{className:"text-slate-500 text-[11px] block mb-1",children:"播报正文内容:"}),n.jsx("p",{className:"text-slate-200 font-sans leading-relaxed",children:p.message})]}),n.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-[11px] text-rose-300/90 leading-relaxed",children:"⚠️ 确认后,云端将在毫秒内将此通报广播下发至所选教室大屏。终端如果处于上课或展示课件状态,也将直接浮现全屏红框强提醒!"})]}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:$,onClick:()=>S(!1),className:"px-4 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"放弃下发"}),n.jsx("button",{type:"button",disabled:$,onClick:O,className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-lg shadow-rose-600/30 transition-all flex items-center gap-2 disabled:opacity-50",children:$?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在全域调度广播..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"确认立即全网广播"})]})})]})]})})]})},hx=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(null),p=async()=>{f(!0),y(null);try{const[j,C]=await Promise.all([oe.getSchoolOverview(),oe.getSchoolDevices()]);l(j),u(C)}catch(j){y((j==null?void 0:j.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};return g.useEffect(()=>{p();const j=Ot.onDeviceStatusChanged(S=>{u($=>{const D=S.state===1||String(S.state).toLowerCase()==="online",H=$.map(I=>I.deviceId===S.deviceId?{...I,isOnline:D,lastHeartbeat:S.lastHeartbeat,clientVersion:S.agentVersion||I.clientVersion}:I),F=H.filter(I=>I.isOnline).length;return l(I=>I?{...I,onlineCount:F}:null),H})}),C=Ot.onHealthReportReceived(S=>{u($=>$.map(D=>D.deviceId===S.deviceId?{...D,healthStatus:S.overallStatus,lastHeartbeat:S.timestamp||new Date().toISOString()}:D))});return()=>{j(),C()}},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:(a==null?void 0:a.tenantName)||"本校管理后台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"管理本校班级配置、多媒体教室设备绑定与科任教师账号"})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:n.jsx(ha,{})})]}),m&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:p,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"已建班级"}),n.jsx(gr,{className:"w-4 h-4 text-sky-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.classCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"个教学班"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教室终端"}),n.jsx(Vn,{className:"w-4 h-4 text-indigo-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.deviceCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"台已安装"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"实时在线"}),n.jsx(ua,{className:"w-4 h-4 text-emerald-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),d?"-":(a==null?void 0:a.onlineCount)??0]}),n.jsxs("span",{className:"text-xs text-slate-400",children:["/ 总 ",d?"-":(a==null?void 0:a.deviceCount)??0]})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教师账号"}),n.jsx(Hn,{className:"w-4 h-4 text-amber-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.teacherCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"位老师"})]})]})]}),n.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(Vn,{className:"w-4 h-4 text-sky-400"}),"本校各教室设备状态与健康体检"]}),n.jsx(ge,{to:"/school-admin/classes",className:"text-xs text-sky-400 hover:text-sky-300 font-medium flex items-center gap-1",children:"班级管理"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"健康状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最后心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"版本"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-400",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin text-sky-400"}),n.jsx("span",{children:"正在同步设备列表..."})]})})}):o.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-500",children:"暂无已绑定的教室设备,请前往【本校激活码】生成激活码并在教室电脑安装"})}):o.map(j=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-medium text-white",children:j.classroomName}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:j.deviceId}),n.jsx("td",{className:"py-3.5 px-4",children:j.isOnline?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"在线"]}):n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线"})}),n.jsx("td",{className:"py-3.5 px-4",children:j.healthStatus==="Degraded"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Bl,{className:"w-3 h-3 text-amber-400"}),"亚健康"]}):j.healthStatus==="Healthy"||j.isOnline&&!j.healthStatus?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(_s,{className:"w-3 h-3 text-emerald-400"}),"健康"]}):n.jsx("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线未检"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400",children:j.lastHeartbeat?new Date(j.lastHeartbeat).toLocaleTimeString():"无"}),n.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",j.clientVersion||"2.1.0"]})]},j.deviceId))})]})})]})]})},fx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,y]=g.useState(""),[p,j]=g.useState(""),[C,S]=g.useState(""),[$,D]=g.useState(""),[H,F]=g.useState(!1),[I,q]=g.useState(null),G=async()=>{try{const O=await oe.getSchoolClasses();l(O)}catch(O){console.error("Failed to load classes",O)}finally{u(!1)}};g.useEffect(()=>{G()},[]);const Z=async O=>{if(O.preventDefault(),!(!m||!p)){F(!0);try{await oe.createSchoolClass({id:m,displayName:p,grade:C,roomNumber:$}),f(!1),y(""),j(""),S(""),D(""),G()}catch(K){alert(K.message||"创建班级失败")}finally{F(!1)}}},te=async O=>{try{const K=await oe.generateSchoolCode(O);q({classId:O,code:K.code})}catch(K){alert(K.message||"生成激活码失败")}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校班级管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"维护学校全部教学班级,并为各班级生成设备激活码"})]}),n.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建教学班"]})]}),I&&n.jsxs("div",{className:"p-4 rounded-xl bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("span",{className:"font-semibold",children:["【",I.classId,"】激活码已生成:"]}),n.jsx("span",{className:"font-mono text-base font-bold text-white ml-2 bg-slate-900 px-2 py-1 rounded",children:I.code}),n.jsx("span",{className:"text-xs text-emerald-400/80 ml-3",children:"(请在教室电脑运行 ClassNotifySetup.exe 输入该激活码完成绑定)"})]}),n.jsx("button",{onClick:()=>{navigator.clipboard.writeText(I.code),alert("激活码已复制!")},className:"px-3 py-1 rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium",children:"复制激活码"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级编号 (ClassId)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"年级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教室位置"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:a.map(O=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-semibold text-white",children:O.displayName}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:O.id}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:O.grade||"-"}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:O.roomNumber||"-"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("button",{onClick:()=>te(O.id),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-sky-600/10 hover:bg-sky-600/20 border border-sky-500/30 text-sky-400 text-xs font-medium transition-colors",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),"生成安装激活码"]})})]},O.id))})]})})}),d&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(gr,{className:"w-5 h-5 text-sky-400"}),"新建教学班级"]}),n.jsxs("form",{onSubmit:Z,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级编号 (唯一识别码)"}),n.jsx("input",{type:"text",value:m,onChange:O=>y(O.target.value),placeholder:"如 cls_803 或 cls_grade7_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级显示名称"}),n.jsx("input",{type:"text",value:p,onChange:O=>j(O.target.value),placeholder:"如 八年级(3)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"年级 (可选)"}),n.jsx("input",{type:"text",value:C,onChange:O=>S(O.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教室位置 (可选)"}),n.jsx("input",{type:"text",value:$,onChange:O=>D(O.target.value),placeholder:"如 教学楼 303",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:H,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:H?"创建中...":"确认创建"})]})]})]})})]})},mx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,y]=g.useState(""),[p,j]=g.useState(""),[C,S]=g.useState(""),[$,D]=g.useState("Teacher"),[H,F]=g.useState(!1),[I,q]=g.useState(null),[G,Z]=g.useState(""),[te,O]=g.useState(!1),[K,fe]=g.useState(null),[pe,b]=g.useState(!1),[ne,Ee]=g.useState(null),je=(V,k)=>{Ee({type:V,text:k}),setTimeout(()=>{Ee(W=>(W==null?void 0:W.text)===k?null:W)},4e3)},_e=async()=>{try{const V=await oe.getSchoolTeachers();l(V)}catch(V){je("error",(V==null?void 0:V.message)||"加载教师列表失败")}finally{u(!1)}};g.useEffect(()=>{_e()},[]);const Ue=async V=>{if(V.preventDefault(),!(!m||!p||!C)){F(!0);try{await oe.createSchoolTeacher({username:m,password:p,fullName:C,role:$}),f(!1),y(""),j(""),S(""),je("success",`教师账号 ${C} 开设成功`),_e()}catch(k){alert(k.message||"创建教师账号失败")}finally{F(!1)}}},$e=async V=>{if(V.preventDefault(),!(!I||!G)){if(G.length<6){alert("新密码长度不能少于 6 位");return}O(!0);try{await oe.resetSchoolTeacherPassword(I.id,G),je("success",`已成功将教师 [${I.fullName}] 的密码重置`),q(null),Z("")}catch(k){alert(k.message||"重置密码失败")}finally{O(!1)}}},Te=async()=>{if(!K)return;b(!0);const V=!K.isLocked;try{await oe.setSchoolTeacherLock(K.id,V),je("success",`已成功${V?"停用":"启用"}教师 [${K.fullName}] 账号`),fe(null),_e()}catch(k){alert(k.message||"操作失败")}finally{b(!1)}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教师账号管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"为科任教师开设 ClassNotify 网页控制台与后续 Android 移动端登录权限"})]}),n.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"开设教师账号"]})]}),ne&&n.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${ne.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[ne.type==="success"?n.jsx(Pt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):n.jsx(ks,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:ne.text})]}),n.jsx("button",{onClick:()=>Ee(null),className:"text-slate-400 hover:text-white",children:n.jsx(kr,{className:"w-3.5 h-3.5"})})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教师姓名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"登录账号"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"权限角色"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(kn,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-sky-400"}),n.jsx("span",{children:"正在加载教师列表..."})]})}):a.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:"暂未开设任何教师账号,请点击右上角按钮添加"})}):a.map(V=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4 font-semibold text-white flex items-center gap-2",children:[V.role==="SchoolAdmin"?n.jsx(H0,{className:"w-4 h-4 text-sky-400"}):n.jsx(Nr,{className:"w-4 h-4 text-emerald-400"}),n.jsx("span",{children:V.fullName})]}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:V.username}),n.jsx("td",{className:"py-4 px-4 text-xs",children:V.role==="SchoolAdmin"?n.jsx("span",{className:"px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/30",children:"学校管理员"}):n.jsx("span",{className:"px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:"任课教师"})}),n.jsx("td",{className:"py-4 px-4",children:V.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-rose-500/10 text-rose-400 border border-rose-500/30 text-xs font-medium",children:[n.jsx(bs,{className:"w-3 h-3"}),"已停用"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30 text-xs font-medium",children:[n.jsx(Pt,{className:"w-3 h-3"}),"正常可用"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400 font-mono",children:V.lastLoginAt?new Date(V.lastLoginAt).toLocaleString():n.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[n.jsx(Kn,{className:"w-3 h-3"}),"从未登录"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("button",{type:"button",onClick:()=>{q(V),Z("")},className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-slate-800 hover:bg-slate-700 text-sky-400 hover:text-sky-300 text-xs font-medium border border-slate-700 transition-colors",title:"重置登录密码",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"重置密码"})]}),n.jsx("button",{type:"button",onClick:()=>fe(V),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium border transition-colors ${V.isLocked?"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 border-emerald-500/30":"bg-rose-500/10 hover:bg-rose-500/20 text-rose-400 border-rose-500/30"}`,title:V.isLocked?"恢复账号":"停用账号",children:V.isLocked?n.jsxs(n.Fragment,{children:[n.jsx(ea,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"恢复"})]}):n.jsxs(n.Fragment,{children:[n.jsx(bs,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"停用"})]})})]})})]},V.id))})]})})}),d&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(Hn,{className:"w-5 h-5 text-sky-400"}),"开设新账号"]}),n.jsxs("form",{onSubmit:Ue,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教师真实姓名"}),n.jsx("input",{type:"text",value:C,onChange:V=>S(V.target.value),placeholder:"如 王老师 / 李明",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsx("input",{type:"text",value:m,onChange:V=>y(V.target.value),placeholder:"如 teacher_wang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录初始密码"}),n.jsx("input",{type:"password",value:p,onChange:V=>j(V.target.value),placeholder:"••••••••",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"角色权限"}),n.jsxs("select",{value:$,onChange:V=>D(V.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",children:[n.jsx("option",{value:"Teacher",children:"普通科任教师 (仅呼叫与回执)"}),n.jsx("option",{value:"SchoolAdmin",children:"学校管理员 (可管理班级与账号)"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:H,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:H?"开设计算中...":"确认开通"})]})]})]})}),I&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-sky-500/10 border border-sky-500/20 text-sky-400",children:n.jsx(ut,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"重置教师密码"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["教师: ",I.fullName," (",I.username,")"]})]})]}),n.jsxs("form",{onSubmit:$e,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"请输入新密码 (不少于 6 位)"}),n.jsx("input",{type:"text",autoFocus:!0,required:!0,minLength:6,value:G,onChange:V=>Z(V.target.value),placeholder:"例如: Teacher@2026",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm font-mono focus:ring-2 focus:ring-sky-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"密码重置后请告知教师,教师下一次在网页端或移动端即可使用此新密码登录。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",disabled:te,onClick:()=>q(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:te||G.length<6,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50 flex items-center gap-1.5",children:te?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在重置..."})]}):n.jsx("span",{children:"确认重置密码"})})]})]})]})}),K&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:`p-2.5 rounded-xl border ${K.isLocked?"bg-emerald-500/10 border-emerald-500/20 text-emerald-400":"bg-rose-500/10 border-rose-500/20 text-rose-400"}`,children:K.isLocked?n.jsx(ea,{className:"w-5 h-5"}):n.jsx(bs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:K.isLocked?"恢复启用教师账号?":"停用该教师账号?"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["教师: ",K.fullName," (",K.username,")"]})]})]}),n.jsx("p",{className:"text-xs text-slate-300 leading-relaxed mb-5",children:K.isLocked?"恢复启用后,该教师可重新登录控制台并向关联班级发送上课通知。":"停用后,该教师将无法登录网页控制台与 Android 移动端,且无法继续发送呼叫通知。教师的历史发送记录与回执将完整保留。"}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:pe,onClick:()=>fe(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"button",disabled:pe,onClick:Te,className:`px-4 py-2 rounded-xl text-white text-xs font-semibold shadow-lg transition-all flex items-center gap-1.5 disabled:opacity-50 ${K.isLocked?"bg-emerald-600 hover:bg-emerald-500 shadow-emerald-600/25":"bg-rose-600 hover:bg-rose-500 shadow-rose-600/25"}`,children:pe?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"处理中..."})]}):n.jsx("span",{children:K.isLocked?"确认恢复启用":"确认停用账号"})})]})]})})]})},px=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(null),[p,j]=g.useState(null),[C,S]=g.useState(!1),[$,D]=g.useState(""),[H,F]=g.useState(!1),[I,q]=g.useState(null),G=async()=>{f(!0),y(null);try{const[O,K]=await Promise.all([oe.getSchoolCodes(),oe.getSchoolClasses()]);l(O),u(K),K.length>0&&!$&&D(K[0].id)}catch(O){y((O==null?void 0:O.message)||"加载本校激活码数据失败")}finally{f(!1)}};g.useEffect(()=>{G()},[]);const Z=O=>{navigator.clipboard.writeText(O),j(O),setTimeout(()=>j(null),2e3)},te=async O=>{if(O.preventDefault(),!!$){F(!0),q(null);try{await oe.generateSchoolCode($),S(!1),G()}catch(K){q((K==null?void 0:K.message)||"生成激活码失败")}finally{F(!1)}}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教室终端激活码"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理本校教室电脑安装所需的 8 位一次性硬件绑定激活码"})]}),n.jsxs("button",{onClick:()=>{q(null),S(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"生成新激活码"]})]}),m&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:G,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-400",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin text-sky-400"}),n.jsx("span",{children:"正在加载本校激活码..."})]})})}):a.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-500",children:"本校暂无生成的激活码,请点击右上角生成"})}):a.map(O=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4 font-mono font-bold text-sky-400 text-base flex items-center gap-2",children:[n.jsx("span",{children:O.code}),n.jsx("button",{onClick:()=>Z(O.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:p===O.code?n.jsx(Fl,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(Yo,{className:"w-3.5 h-3.5"})})]}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:O.classroomName||O.classroomId}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:O.classroomId})]}),n.jsx("td",{className:"py-4 px-4",children:O.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:[n.jsx(Pt,{className:"w-3.5 h-3.5 text-slate-500"}),"已激活使用"]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"待激活 (可用)"]})}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:O.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:O.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Kn,{className:"w-3.5 h-3.5 text-slate-500"}),n.jsxs("span",{children:[new Date(O.expiresAt).toLocaleDateString()," 到期"]})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("button",{onClick:()=>Z(O.code),className:"text-xs text-slate-400 hover:text-white underline underline-offset-4",children:p===O.code?"已复制":"复制用于安装"})})]},O.code))})]})})}),C&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(ut,{className:"w-5 h-5 text-sky-400"}),"生成本校班级设备激活码"]}),I&&n.jsx("div",{className:"mb-4 p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs",children:I}),n.jsxs("form",{onSubmit:te,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),o.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-2 bg-amber-500/10 rounded-lg border border-amber-500/30",children:"本校暂无班级,请先前往“班级管理”创建班级。"}):n.jsx("select",{value:$,onChange:O=>D(O.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0,children:o.map(O=>n.jsxs("option",{value:O.id,children:[O.displayName," (",O.id,")"]},O.id))})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>S(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:H||o.length===0,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:H?"生成中...":"立即生成"})]})]})]})})]})};function Ed(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const xx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(""),[d,f]=g.useState(""),[m,y]=g.useState(""),[p,j]=g.useState(!0),[C,S]=g.useState(!0),[$,D]=g.useState(!1),[H,F]=g.useState(15),[I,q]=g.useState(!1),[G,Z]=g.useState([]),[te,O]=g.useState(!0),[K,fe]=g.useState(null),[pe,b]=g.useState(null),[ne,Ee]=g.useState(null),[je,_e]=g.useState(!1),[Ue,$e]=g.useState(null),[Te,V]=g.useState(1),k=async(U,de,ot,be)=>{b({notificationId:U,deviceId:de,className:ot,capturedAt:be}),_e(!0),$e(null),Ee(null),V(1);try{const We=await oe.getVisualReceiptBlob(U,de),Le=URL.createObjectURL(We);Ee(Le)}catch(We){$e((We==null?void 0:We.message)||"获取视觉核验图像失败")}finally{_e(!1)}},W=()=>{ne&&URL.revokeObjectURL(ne),Ee(null),b(null),$e(null),V(1)},[T,N]=g.useState(null),[L,ie]=g.useState(!1),ce=async()=>{if(T){ie(!0);try{await oe.cancelNotification(T.id),Z(U=>U.map(de=>de.id===T.id?{...de,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:de)),N(null)}catch(U){alert(U.message||"提前关闭通知失败")}finally{ie(!1)}}},he=na.useRef(a);g.useEffect(()=>{he.current=a},[a]);const ve=["请带各科作业本到办公室","马上到操场集合整队","课代表请到教研室领试卷","午休时间请教室内保持安静","请班长负责维护自习纪律","放学后值日生留下来打扫卫生"],ke=async()=>{O(!0),fe(null);try{const U=await oe.getTeacherClasses();l(U),U.length>0&&!o&&u(U[0].id);const de=await oe.getTeacherHistory(void 0,20);Z(de.map(ot=>({...ot,status:Ed(ot.status)})))}catch(U){fe((U==null?void 0:U.message)||"加载班级或历史记录失败")}finally{O(!1)}};g.useEffect(()=>{ke()},[]),g.useEffect(()=>{const U=Ot.onAckReceiptReceived(be=>{Z(We=>We.map(Le=>{if(Le.id===be.messageId){const Jn=Ed(be.status);return{...Le,status:Jn,confirmedAt:be.timestamp||Le.confirmedAt||new Date().toISOString()}}return Le}))}),de=Ot.onNewNotificationBroadcast(be=>{Z(We=>{if(We.some(nn=>nn.id===be.id))return We;const Le=he.current.find(nn=>nn.id===be.classId);return[{id:be.id,tenantId:be.tenantId,classId:be.classId,className:(Le==null?void 0:Le.displayName)||be.classId,senderName:"教师",message:be.message,priority:be.type===2?"Urgent":"Normal",createdAt:be.createdAt,status:"Sent"},...We]})}),ot=Ot.onNotificationCancelled(be=>{Z(We=>We.map(Le=>Le.id===be?{...Le,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Le))});return()=>{U(),de(),ot()}},[]);const Ne=async U=>{if(U.preventDefault(),!(!o||!m.trim())){q(!0);try{const de=a.find(Le=>Le.id===o),ot=d.trim()?`🔔 老师呼叫: ${d.trim()}`:`📢 ${(de==null?void 0:de.displayName)||"班级"}通知`,be=await oe.sendNotification({classId:o,studentName:d.trim()||void 0,title:ot,message:m.trim(),type:$?2:0,voice:p,shake:C,durationSeconds:H}),We=m.trim();y(""),f(""),be!=null&&be.messageId&&Z(Le=>Le.some(nn=>nn.id===be.messageId)?Le:[{id:be.messageId,tenantId:"",classId:o,className:(de==null?void 0:de.displayName)||o,senderName:"教师",message:We,priority:$?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...Le])}catch(de){alert(de.message||"呼叫发送失败")}finally{q(!1)}}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"教师呼叫工作台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"向指定教室大屏下发即时点呼与通知,支持语音朗读(TTS)与学生回执确认"})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:n.jsx(ha,{})})]}),K&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:K})]}),n.jsxs("button",{onClick:ke,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[n.jsx("div",{className:"lg:col-span-7 space-y-5",children:n.jsx("div",{className:"glass-panel p-6 border-slate-800",children:n.jsxs("form",{onSubmit:Ne,className:"space-y-5",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-2",children:"目标授课班级"}),a.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/30",children:"未查询到可用班级,请联系学校管理员添加班级"}):n.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:a.map(U=>{const de=o===U.id;return n.jsxs("button",{type:"button",onClick:()=>u(U.id),className:`p-3 rounded-xl border text-left transition-all relative ${de?"bg-indigo-600/20 border-indigo-500/50 text-white shadow-lg shadow-indigo-600/10":"bg-slate-900/60 border-slate-800 text-slate-400 hover:text-slate-200 hover:bg-slate-800/50"}`,children:[n.jsx("div",{className:"font-semibold text-sm truncate",children:U.displayName}),n.jsx("div",{className:"text-[11px] text-slate-500 truncate mt-0.5",children:U.roomNumber||U.id}),de&&n.jsx(Fl,{className:"w-4 h-4 text-indigo-400 absolute top-3 right-3"})]},U.id)})})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Xd,{className:"w-3.5 h-3.5 text-slate-400"}),"指定学生姓名(可选,点呼场景使用)"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"留空则为全班广播"})]}),n.jsx("input",{type:"text",value:d,onChange:U=>f(U.target.value),placeholder:"如:张三、李四(支持单人或多人)",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsx("span",{children:"呼叫通知内容"}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[m.length,"/200 字"]})]}),n.jsx("textarea",{rows:4,value:m,onChange:U=>y(U.target.value.slice(0,200)),placeholder:"请输入需要大屏弹窗展示并朗读的内容...",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600",required:!0})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[n.jsx(Jd,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷点呼短语推荐"]}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:ve.map((U,de)=>n.jsx("button",{type:"button",onClick:()=>y(U),className:"px-2.5 py-1 rounded-lg bg-slate-900 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-colors",children:U},de))})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80 grid grid-cols-1 sm:grid-cols-3 gap-3",children:[n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:p,onChange:U=>j(U.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[n.jsx(Gd,{className:"w-3.5 h-3.5 text-indigo-400"}),"TTS 语音朗读"]}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"教室音响朗读2遍"})]})]}),n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:C,onChange:U=>S(U.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsx("span",{className:"font-medium text-slate-200 block",children:"窗口抖动震颤"}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"强制吸引注意力"})]})]}),n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:$,onChange:U=>D(U.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600 focus:ring-rose-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[n.jsx(ks,{className:"w-3.5 h-3.5 text-rose-400"}),"紧急通知"]}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"红色全屏强提醒"})]})]})]}),n.jsx("button",{type:"submit",disabled:I||!o||!m.trim(),className:"w-full py-3.5 rounded-xl bg-gradient-to-r from-indigo-600 to-violet-600 hover:from-indigo-500 hover:to-violet-500 text-white font-semibold text-sm shadow-lg shadow-indigo-600/25 flex items-center justify-center gap-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:I?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在秒级投递至教室大屏..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"立即下发到教室大屏"})]})})]})})}),n.jsx("div",{className:"lg:col-span-5 space-y-4",children:n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(br,{className:"w-4 h-4 text-emerald-400"}),"实时回执动态 (ACK)"]}),n.jsx("span",{className:"text-xs text-slate-500",children:"SignalR 实时推送"})]}),n.jsx("div",{className:"space-y-3 max-h-[580px] overflow-y-auto pr-1",children:te&&G.length===0?n.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-indigo-400"}),n.jsx("span",{children:"正在加载历史动态..."})]}):G.length===0?n.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:"暂无发送记录,在左侧选择班级即可下发第一条呼叫"}):G.map(U=>n.jsxs("div",{className:"glass-card p-4 space-y-2.5",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"font-semibold text-sm text-white",children:U.className}),n.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(U.createdAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-xs text-slate-300 bg-slate-950/50 p-2.5 rounded-lg border border-slate-800/80",children:U.message}),n.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between text-xs",children:[n.jsx("span",{className:"text-slate-400 text-[11px]",children:"回执阶段:"}),U.status==="Cancelled"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-slate-400 font-medium",children:[n.jsx(Go,{className:"w-3.5 h-3.5 text-slate-400"}),n.jsx("span",{children:"已提前关闭撤回"})]}),U.status==="Acknowledged"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(Pt,{className:"w-4 h-4 text-emerald-400"}),n.jsxs("span",{children:["学生已点击确认 (",U.confirmedAt?new Date(U.confirmedAt).toLocaleTimeString():"刚刚",")"]})]}),U.status==="Delivered"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-sky-400 font-medium",children:[n.jsx(_r,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"教室大屏已接收"})]}),U.status==="Sent"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-amber-400",children:[n.jsx(Kn,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"云端投递中..."})]}),U.status==="Timeout"&&n.jsx("div",{className:"text-slate-400 text-xs",children:n.jsx("span",{children:"超时已自动关闭"})}),U.status==="Failed"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-rose-400 font-medium",children:[n.jsx(ks,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"投递失败"})]})]}),(U.status==="Sent"||U.status==="Delivered")&&!U.isCancelled&&n.jsx("div",{className:"flex items-center justify-end pt-1",children:n.jsxs("button",{type:"button",onClick:()=>N(U),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded bg-rose-500/10 hover:bg-rose-500/20 text-rose-300 text-[11px] font-medium transition-colors border border-rose-500/30",title:"在大屏端停止TTS并关闭弹窗",children:[n.jsx(kr,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"提前关闭 / 撤回"})]})}),U.receipts&&U.receipts.length>0&&(()=>{const de=U.receipts.find(be=>be.visualReceiptState==="Available"),ot=U.receipts.find(be=>be.visualReceiptState==="Expired");return de?n.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-slate-800/40 text-xs",children:[n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(_s,{className:"w-4 h-4 text-emerald-400"}),n.jsx("span",{children:"视觉核验:已完成"})]}),n.jsxs("button",{type:"button",onClick:()=>k(U.id,de.deviceId,U.className,de.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-indigo-600/30 hover:bg-indigo-600/50 text-indigo-300 text-[11px] font-medium transition-colors border border-indigo-500/30",children:[n.jsx(m0,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"查看大屏实际展示"})]})]}):ot?n.jsx("div",{className:"flex items-center justify-between pt-2 border-t border-slate-800/40 text-[11px] text-slate-500",children:n.jsxs("div",{className:"inline-flex items-center gap-1",children:[n.jsx(_s,{className:"w-3.5 h-3.5 text-slate-500"}),n.jsx("span",{children:"视觉核验:已按 24h 策略自动销毁"})]})}):null})()]},U.id))})]})})]}),pe&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel w-full max-w-3xl bg-slate-900 border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[n.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(_s,{className:"w-5 h-5 text-emerald-400"}),n.jsxs("h3",{className:"font-semibold text-white text-base",children:[pe.className," · 通知视觉核验"]})]}),n.jsx("button",{type:"button",onClick:W,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(kr,{className:"w-5 h-5"})})]}),n.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[je&&n.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[n.jsx(kn,{className:"w-8 h-8 animate-spin text-indigo-400"}),n.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),Ue&&n.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[n.jsx(Sn,{className:"w-8 h-8 text-rose-400"}),n.jsx("span",{children:Ue})]}),ne&&!je&&n.jsxs("div",{className:"flex flex-col items-center w-full",children:[n.jsx("div",{className:"overflow-auto max-h-[60vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:n.jsx("img",{src:ne,alt:"教室大屏实际展示画面",style:{transform:`scale(${Te})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[55vh]"})}),n.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[n.jsx("button",{type:"button",onClick:()=>V(U=>Math.max(.5,+(U-.25).toFixed(2))),disabled:Te<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:n.jsx(nx,{className:"w-4 h-4"})}),n.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(Te*100),"%"]}),n.jsx("button",{type:"button",onClick:()=>V(U=>Math.min(3,+(U+.25).toFixed(2))),disabled:Te>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:n.jsx(ex,{className:"w-4 h-4"})}),n.jsx("button",{type:"button",onClick:()=>V(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),n.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[n.jsx("span",{children:pe.capturedAt?`捕获时间: ${new Date(pe.capturedAt).toLocaleString()}`:""}),n.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),T&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-400",children:n.jsx(ks,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"提前关闭并撤回通知?"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["目标班级: ",T.className]})]})]}),n.jsxs("div",{className:"bg-slate-950/70 p-3.5 rounded-xl border border-slate-800/80 mb-4 text-xs text-slate-300",children:[n.jsx("div",{className:"text-slate-400 text-[11px] mb-1",children:"通知内容:"}),n.jsx("p",{className:"line-clamp-3",children:T.message})]}),n.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-[11px] text-amber-300/90 mb-5 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏发出关闭指令,大屏将",n.jsx("strong",{children:"立即停止 TTS 语音播报"}),"并",n.jsx("strong",{children:"收起弹窗窗口"}),"。"]}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:L,onClick:()=>N(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"button",disabled:L,onClick:ce,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-lg shadow-rose-600/25 transition-all flex items-center gap-1.5 disabled:opacity-50",children:L?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在撤回..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Go,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},gx=()=>{const{user:a,isLoading:l}=Sr();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?n.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[n.jsx(sx,{}),n.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:n.jsx(Bd,{})})]}):n.jsx(Vt,{to:"/login",replace:!0})},vx=()=>{const{user:a,isLoading:l}=Sr();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?n.jsx(Vt,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?n.jsx(Vt,{to:"/school-admin",replace:!0}):n.jsx(Vt,{to:"/teacher",replace:!0}):n.jsx(Vt,{to:"/login",replace:!0})},yx=()=>n.jsxs(Zm,{children:[n.jsx(Qe,{path:"/login",element:n.jsx(rx,{})}),n.jsx(Qe,{path:"/",element:n.jsx(vx,{})}),n.jsxs(Qe,{element:n.jsx(gx,{}),children:[n.jsxs(Qe,{element:n.jsx(Qo,{allowedRoles:["SuperAdmin"]}),children:[n.jsx(Qe,{path:"/admin",element:n.jsx(lx,{})}),n.jsx(Qe,{path:"/admin/tenants",element:n.jsx(cx,{})}),n.jsx(Qe,{path:"/admin/users",element:n.jsx(ux,{})}),n.jsx(Qe,{path:"/admin/devices",element:n.jsx(ix,{})}),n.jsx(Qe,{path:"/admin/broadcast",element:n.jsx(dx,{})}),n.jsx(Qe,{path:"/admin/codes",element:n.jsx(ox,{})}),n.jsx(Qe,{path:"/admin/history",element:n.jsx(ax,{})})]}),n.jsxs(Qe,{element:n.jsx(Qo,{allowedRoles:["SchoolAdmin"]}),children:[n.jsx(Qe,{path:"/school-admin",element:n.jsx(hx,{})}),n.jsx(Qe,{path:"/school-admin/classes",element:n.jsx(fx,{})}),n.jsx(Qe,{path:"/school-admin/teachers",element:n.jsx(mx,{})}),n.jsx(Qe,{path:"/school-admin/codes",element:n.jsx(px,{})})]}),n.jsx(Qe,{element:n.jsx(Qo,{allowedRoles:["Teacher"]}),children:n.jsx(Qe,{path:"/teacher",element:n.jsx(xx,{})})})]}),n.jsx(Qe,{path:"*",element:n.jsx(Vt,{to:"/",replace:!0})})]}),wx=()=>n.jsx(Gp,{children:n.jsx(op,{children:n.jsx(yx,{})})});om.createRoot(document.getElementById("root")).render(n.jsx(na.StrictMode,{children:n.jsx(wx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish/wwwroot/assets/index-DYQz3G89.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3\.5{left:.875rem}.right-3{right:.75rem}.top-0{top:0}.top-3{top:.75rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.max-h-\[55vh\]{max-height:55vh}.max-h-\[580px\]{max-height:580px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[90vh\]{max-height:90vh}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-indigo-500\/50{border-color:#6366f180}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/40{border-color:#1e293b66}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/80{border-color:#1e293bcc}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/30{background-color:#0000004d}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/75{background-color:#000000bf}.bg-black\/80{background-color:#000c}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-indigo-600\/30{background-color:#4f46e54d}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-600\/10{background-color:#0284c71a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-900\/80{background-color:#0f172acc}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/50{background-color:#02061780}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.to-violet-600{--tw-gradient-to: #7c3aed var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/90{color:#fbbf24e6}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/80{color:#34d399cc}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-300\/90{color:#fda4afe6}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-400\/90{color:#fb7185e6}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.accent-indigo-500{accent-color:#6366f1}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-600\/25{--tw-shadow-color: rgb(5 150 105 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/10{--tw-shadow-color: rgb(79 70 229 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/25{--tw-shadow-color: rgb(79 70 229 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/25{--tw-shadow-color: rgb(225 29 72 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/30{--tw-shadow-color: rgb(225 29 72 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-sky-600\/25{--tw-shadow-color: rgb(2 132 199 / .25);--tw-shadow: var(--tw-shadow-colored)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-amber-500\/50:hover{border-color:#f59e0b80}.hover\:border-emerald-500\/50:hover{border-color:#10b98180}.hover\:border-indigo-500\/50:hover{border-color:#6366f180}.hover\:border-rose-500\/50:hover{border-color:#f43f5e80}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-sky-500\/50:hover{border-color:#0ea5e980}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-500\/20:hover{background-color:#10b98133}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-600\/20:hover{background-color:#4f46e533}.hover\:bg-indigo-600\/50:hover{background-color:#4f46e580}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-500\/20:hover{background-color:#f43f5e33}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-sky-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.hover\:bg-sky-600\/20:hover{background-color:#0284c733}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/20:hover{background-color:#1e293b33}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-800\/50:hover{background-color:#1e293b80}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-indigo-500:hover{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:to-violet-500:hover{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-indigo-300:hover{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-sky-300:hover{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.focus\:ring-rose-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity, 1))}.focus\:ring-sky-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 165 233 / var(--tw-ring-opacity, 1))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media(min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish/wwwroot/index.html ================================================================================ ClassNotify 智慧教室通知与集控平台
================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/ClassNotify.Server ================================================================================ ELF�e@�@8 @!@@@�����eeeeex�x������   5���000  R�td����p P�td8D8D8D��Q�td���DD/lib/ld-linux-aarch64.so.1GNUGNUn���K�0��h���W$;g^ ( D ^"m ������$9K\"how���������Jgn��Caiu|�� Ux�D������5u|����� JOV_flw~����������  '07@FLz�� � � �  % l � � � � � � � � �      `) `4 `� �� �� ����  ���  t)�C a�� O p��^ q��m ӯk| P&y � ��� ��� qabort__libc_start_main__gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalize_Jv_RegisterClasses_ZNSt8ios_base4InitC1Ev_ZNSt8ios_base4InitD1Ev__cxa_atexit_Unwind_Resume_ZdlPv_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev__cxa_call_unexpected__gxx_personality_v0__stack_chk_guard__stack_chk_failsched_yieldstderrfopen64setvbufvfprintffputcvsnprintf_Znwmmemsetfputsstdoutfflush_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmmmemcpy_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4__ZSt19__throw_logic_errorPKcstrlen_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm_ZSt20__throw_length_errorPKcstrncmpstrncasecmpstrcmpstrcasecmp_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcmm_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcm_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcmm_ZSt24__throw_out_of_range_fmtPKcz_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEmm_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcmm__errno_locationstrtoul_ZSt24__throw_invalid_argumentPKc_ZSt20__throw_out_of_rangePKctoupper_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEmstrchrtolower__cxa_begin_catch_ZSt9terminatev__cxa_rethrow__cxa_end_catch_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4__ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmmtimegmtimestrftimeopen64close__fxstat64mmap64getcwdfreestrerrordlopendlsymdlerrordladdrdlclose__getdelimsscanf_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmmfclosestrtolgetenvaccessrealpathgetuidgetpwuidmkdirfgets_ZNSt13basic_fstreamIcSt11char_traitsIcEEC1Ev_ZNSt13basic_filebufIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate_ZNKSt5ctypeIcE13_M_widen_initEv_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4__ZNSt13basic_filebufIcSt11char_traitsIcEE5closeEv_ZTTSt13basic_fstreamIcSt11char_traitsIcEE_ZNSt13basic_fstreamIcSt11char_traitsIcEED2Ev_ZNSt8ios_baseD2Ev_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmRKS4__ZSt16__throw_bad_castvgetauxvalopendirreaddir64fnmatchdirfd__fxstatat64closedirbcmp_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEmmPKclibpthread.so.0GLIBC_2.17libdl.so.2libstdc++.so.6GLIBCXX_3.4GLIBCXX_3.4.11GLIBCXX_3.4.20GLIBCXX_3.4.21CXXABI_1.3libgcc_s.so.1GCC_3.0libc.so.6ld-linux-aarch64.so.1$ORIGIN/netcoredepslibm.so.6��e�(f�lf��h��s�ܡ�p�������$��K7�m,��-�(�(�1W9 �9(�/P ��X `�`  �  h p x � � �  H � � � � � c� � � � �         ( 0 8 @ H P X ` h p x � � �  � !� "� #� $� %� &� '� (� )� *� +� ,� - . / 0 1 2( 30 48 5@ 6H 7P 8X 9` :h ;p <x =� >� ?� @� A� B� C� D� E� F� G� H� I� J� K� L� M N O P Q R( S0 T8 U@ VH WP XX Y` Zh [p \x ]� ^� _� `� a� b� d� e� f� g� h� i� j� k� l� m� n o phostfxr_main&framework_version=loongarch64DOTNET_MULTILEVEL_LOOKUPppc64le/etc/dotnet..The managed DLL bound to this executable is: '%s'basic_string::_M_construct null not valid%s: __pos (which is %zu) > this->size() (which is %zu)touch_filegetcwd() failed: %sCORE_BREADCRUMBSResolved fxr [%s]...Error: [%s] does not contain any version-numbered child foldersThe application to execute does not exist: '%s'.hostfxr_set_error_writer.runtimeconfig.jsonFallback directory core servicing at [%s] was not foundFailed to determine default extraction location. Environment variable '$HOME' is not defined and directory reported by getpwuid() [%s] either doesn't exist or is not accessible for read/write.Failed to create default extraction directory [%s]. %sFailed to map file. open(%s) failed with error %dFailed to resolve %s [%s]. Error code: 0x%xChecking if CoreCLR path exists=[%s]Failed to map file. fstat(%s) failed with error %d %sarm64Realpath CORE_BREADCRUMBS [%s]corebreadcrumbsFallback directory core breadcrumbs at [%s] was not foundcoreservicingID=VERSION_ID=/proc/self/exeBundle Header Offset: [%ld]Multilevel lookup is %s&os=Failed to load %s, error: %shttps://go.microsoft.com/fwlink/?linkid=2063370linux-arm64armv6Failed to determine default extraction location. Environment variable '$HOME' is not defined and getpwuid() returned NULL..net_DOTNET_TEST_DEFAULT_INSTALL_PATHError: [%s] does not existInvoking fx resolver [%s] v1%strue&rid=Invoking fx resolver [%s] hostfxr_main_startupinfo}not foundThe library %s was found, but loading it from %s failed&arch=basic_string::appendbasic_string::substrCORE_SERVICING/\.runtimeconfig.dev.jsonlinuxError: the required library %s could not be found in [%s].deps.jsonhttps://aka.ms/dotnet-core-applaunch?Looking for install_location file in '%s'.x86Default extraction directory [%s] either doesn't exist or is not accessible for read/write.The install_location file ['%s'] failed to open: %s.This executable is not bound to a managed DLL to execute. The binding value is: '%s'You must install or update .NET to run this application.Unable to open COREHOST_TRACEFILE=%s for writingoptThe install_location file ['%s'] does not exist - skipping.fxrFound previously loaded library %s [%s].riscv64Using environment variable %s=[%s] as runtime location.hostfxr_main_bundle_startupinfo - Installing .NET prerequisites might help resolve this problem.open(%s) failed in %sRealpath CORE_SERVICING [%s]HOMEDid not find any install location in '%s'.Failed to map file. mmap(%s) failed with error %dbasic_string::eraseThe required library %s could not be found. Searched with root path [%s], environment variable [%s], default install location [%s], self-registered config location [%s]App path: [%s]libhostfxr.soDirectory core servicing at [%s] was not ACL-ed properlyapphostDirectory core breadcrumbs [%s] was not specified or foundrhostfxr_main_startupinfoBreadcrumb store [%s] is not ACL-ed with rw-%s App: %s Architecture: %s App host version: %s .NET location: %s Learn more: https://aka.ms/dotnet/app-launch-failed Download the .NET runtime: %s&apphost_version=%sa0123456789Failed to unload library, error: %s%*p-%*p %*[-rwxsp] %*p %*[:0-9a-f] %*d %s Invoking fx resolver [%s] hostfxr_main_bundle_startupinfoDotnet path: [%s] install_location__DOTNET_TEST_GLOBALLY_REGISTERED_PATHinstall_locationReading fx resolver directory=[%s]COREHOST_TRACECOREHOST_TRACE_VERBOSITYDOTNET_RUNTIME_IDDOTNET_ROOTrhel.Error: the default install location cannot be obtained.The required library %s does not contain the expected entry point.falseDid not find [%s] directory [%s]DOTNET_ROOT_armstoulFound registered install location '%s'.Failed to resolve full path of the current executable [%s]The required library %s does not support relative app dll paths./usr/share/dotnet/etc/os-releaseTracing enabled @ %sframework=8.0.31Looking for architecture-specific install_location file in '%s'.Using global installation location [%s] as runtime location.You must install .NET to run this application.%c %Z_DOTNET_TEST_INSTALL_LOCATION_PATHNot foundDetected Single-File app bundlemissing_runtime=trues390xDirectory core servicing at [%s] was not specified or foundConsidering fxr version=[%s]...--- Invoked %s [version: %s] main = {.x64Using core servicing at [%s]alpine.rocky.Host path: [%s]COREHOST_TRACEFILElibcoreclr.soProbed for and did not find library symbol %s, error: %shostDetected latest fxr version=[%s]...DOTNET_MULTILEVEL_LOOKUP is set to %sRuntime config is cfg=%s dev=%s%d0123456789."'realpath(%s) failed: %s/proc/self/mapsThe required library %s does not support single-file apps.'"c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2�� Xx����� lt��0�H�\�h �t�������� ��������������0��t�����������(��t��`�p|� ��$��QC�� ������@���x���P� �� ��h��,�� 4�D���0�H�� ��`��aTxx �� ��@��<�����<������ �� ��� ��T�� HP��h��<<�X��� ������8 �T���`���������������<� ��$�����������,,�d �p �|�����A�����T���� ���� �� �� �� ��t�� L\�� ��9-������ ������� �������� ��$��0t8`�� @ �L��� @�X������� ��T�����3tt�����������������c�� � ��� � �p� � �d�� �� �� �� � � ��� � ��� � � ����� ���� ������� ��t��K\���������������� �� ��� ��l�� `���h������D�� `���h������p��h �����������)�� ��������� 4l��8��!HH �h��� ��8����� 8T��|����� ��8��0�� �� �� ��������`���@�@��x�� �� @� �� �� ��l��4�� ���� ���(��(���� �� ����� @ �L`�� @ �L`��1"���������� ��[l� |\�\� �� �@�t� � � �������0�� �� � �� � ����VPP �\ ���� ����d������ �� ������(�������d�� ����������8�� PP,�|d����LL� �� �� �� � � � � �� � � �\� �� �X� � � �� �� �� � � �� �<� �� �� �@� �� �� � � � H� � 0� � � � � ���LL�`�;��("�4"�p"��"��"�"$�"�$�$8�$\�%��'`)�@+�T+�x,��-(�-<�.xX/�t/��/��/(1h3�84��4,�4@�4T�4��4��4�\5��5��6,8L�9��:(\>l�>��>��@$ �@8 �@L �@��A` �A��B lFt �FX�G� �G� �H��I� K��L �NLP�@Q��R4 �S dUD@Y�Zl [� <[� L[��]� �]�_X(`�a��a� b�dd$ �dL �dt �d� �d� �d4$g� �hxtn$ �nP o��r� �r� 8t� tt� pu0 �ul �u� w� (w�xT�|� �|� } �}`�}��}��}������� T����$�\���Ć����� d�X���������,�������$D�X�������������̠(x�P��\4�d<�xD��������̤���4�,,���x�4���|� \�D ��\Թ� ��zR| t $,l<D H  ���d  H���T�h||x�t$�P<D H  ���d  H���8��"$D�T @����� �� � �T�������D �%8�%$D�T @����� �� � �T�������D 8X�&D�T @����� �� � �T�������D �`' 8�X'$D�T @����� �� � �T�������D ,�@(�D0L 0���� � x 0L������((�($<�(<D H  ���d  H���0d8-TDD �� x D��D D D���X-�L-0�@-XDD �� P D��D p D���d-T-0D-`DD �� T D��D t D��0Pp-`DD �� D D��D D D��0��.TD@P 0���� �  @P�����D 4��/\D@P 0����� �  @P������D 0��0\D@P 0���� �  @P�����D ,$�5`D0L 0���� � @ 0L�����8T�5�DPT @����� � �� 0 PT��������D �d7�X7�T7 �P8<��<pD0L 0���� � @ 0L�����D 0L�����  >04 >�D@P 0���� � X @P�����D 4h�?D@P 0����� � � @P������D 4��H�DpT @����� �� � pT�������D 4��OD@P 0����� � � @P������D tP$|PDD ��$@�R<D H  ���d  H���$h�VDD ��L D��$�8YDD ��L D��$�,YDD ��H D��$�YDD ��L D��$YDD ��L D��$0YDD ��L D��4X0[�D@P 0����� � L @P������D (�HbHD H  ����p  H����0�dbLD H  ��� h  H���D  H����lf8\f<D@P @����� ��  @P�������D $@\g<D H  ���d  H���0hpg�D�P 0���� � � �P�����D 8�8htD H  ���� p  H����D `  H�����ph 8�hh,D�T @����� �� � �T�������D ( Xi < �n8P �nTD H  ���� T  H����D \  H����<� �n|D0L 0���� � h 0L�����D d 0L�����,� o0DD �� X D��D D��$� oDD ��L D��$ o,8 �phD0L 0���� � H 0L�����$h PtDD H  ���l  H���`� lthD0L 0����� � � 0L������D t 0L������D ` 0L������D D 0L������� ,w, �\D0L 0���� � | 0L�����,8 $�4D H  ����   H����D $h ��$DD ��T D��0� ���D0L 0���� � L 0L�����D 4� ��D`P 0����� � t `P������D 4� L��D`P 0����� � t `P������D 4 ��H ��\ ��Hp ��(D�\ `����� � ������ � �\������������D � �� Ȑ� ��<� ��PDD �� h D��D D D��D D D��8 ��$L �<D H  ���d  H���(t �\D H  ����D  H����$� <�<D H  ���d  H���(� (�HD H  ����p  H����$� \�<D H  ���d  H���zPLR| �M� D$�P��������DPT P����� � ��� � PT���������D @l��W�������D H  ���� H  H����D  H����D 4�h,'�������DpL  ���� � pL����D H�\�������D�X P����� � ��� d �X���������D D44$��������D�T @����� � �� � �T��������D <|�P��������DpT @����� �� � pT�������D @�����������DpT @����� �� � pT�������D 8L8W�������D`P 0���� � � `P�����D <<� /�������D`P 0����� � � `P������D @|�%x�������D�T @����� �� � �T�������D ,��(0�������DD �� \ D��D 4�+��������DPL  ���� � PL����D 4(�+���������DPL  ���� � PL����D H`�,���������D�X P����� � ���� � �X����������D 8�|0��������D`P 0���� � � `P�����D 4�L2��������DPL  ���� � PL����D < ,4��������D�P 0����� � d �P������D <`�5�O�������D`P 0����� � D `P������D <�47|#�������DpT @����� �� � pT�������D <�p8<��������DPT @����� �� � PT�������D < l9|��������DpT @����� �� � pT�������D 4`�;���������D�L  ��� � �L���D @�=���������D�T @����� ��  �T�������D 8��@���������D0L 0���� � | 0L�����D H�BX�������D`X P����� � ���� � `X����������D Dd�D�o�������D`X P����� � ��� < `X���������D 0�0F�G�������DPL  ��� P PL���D 4��F��������DpL  ���� t pL����D 4����$�@�R���$�������D���_�@� ��T�OT��WS��{Q���@��C��_��$��C��{��_��W��O��C���� ����#�� �����_�����)���� ����D�����k������@�������������+<��';���}���;���<���>��$�1��}@��T���$��������*���$���{������������>��$�(�RV������_�~ ���5i4�*7�R�&rAT�$����_�~ ���5(��5H�;�@�A��@����?�H�5B�h4��H�)�D�A�(@���aT�@�H���|����������>��$�@�R���$����t���g$����D���_�@� �aT�OX��WW��_V��{U��C��_�������D��@��$��@�@�Rs$�H�5B����5���Z$������t���I$���C$�H�5B�q���_��C��{�����W��O��C���� ���I�� ��_������D�����@����(5B�q�T��������)��#�����k���#<�(�RUе���/;���_�~ ���5i4�*6�R�&rAT&$����_�~ ���5(��5��}�������@���>���&$�@�R��'$�������D���_�@� ��T�OT��WS��{Q���@��C��_�$��C��{�����W��O��C���� ������� ����_��#������� �����J��D���k����TД��@����(�R�'<��/;���_�~ ���5i4�*6�R�&rAT�#����_�~ ���5(��5���������D���}��@���>��#��@�@�R�#�������D���_�@� ��T�OT��WS��{Q���@��C��_ֿ#�@����:�����C��{�����W��O��C���� ���I�� ��_������D�����@����(5B� q�T��������)��#�����k���#<�(�RUе���/;���_�~ ���5i4�*6�R�&rAT�#����_�~ ���5(��5��}�������@���>����#�@�R���#�������D���_�@� ��T�OT��WS��{Q���@��C��_�s#��{��� ��O���H�A���(�RS�s��i�_h~ ���5i4�*5�R�&rATd#��h�_u~ ���5(��5`@��#������D�@�|#����D�@��OB�� @��{èu#H�;�@� A�H@�@����_�H�;�@�A�@��_��{��� ��� �����"#��� բ��D���� @��{¨#����{��#��W��O�����������D�@�����#�X@�A���u��������B���T�#�����C#��@�����6���T�@99����;#��'@�� �?i(8�@��#�(��#����*�� �6�#���/#��@��@T�"����D���_�@� �aT��OF��WE��{C��#@�����_�@����$�#��"��@����`T���"����"�����{��#��W��O�������#�7A��D�@������� �������#������>��� T�#������"��@�����5���Th@99�����"��'@�� �?i(8�#���*�@��@T�"��@�V6���"������������"�%u��@���)�_8?�q�T����* A� ���R)��� � T��������$�R�"��@���R i58�@���i68�@����"���@��T�������"����D���_�@� �AT�OF��WE��{C��#@�����_�@����$��"�n"�@��� <��"��@����`T��Y"���S"�����{��#��O�������D�@�����#�P@�A���s�h�h����B���T�#�����w"��@�����4���Th@99����o"��'@�� �?i(8 ����#�[����@�@���40������#�5��*�@��@T!"����D���_�@� �AT`�OE��{C��#@�����_�@����$�V"�"��@����`T�� "���"��{����@�I�?�T � Չr@�(��?�q���{���_��*�{���_�B|@�N"B|@�P"�{����@��T�*�{���_� @� ժ �Kr(�i��� ?�q���{���_�="@"�{����(@� @�?�T�*�{���_� @� Ջ�� �,��_rI �!@���� �@?�q���{���_��{�����*"@� @�J�_ ��T թ�� �*��r!@�H��@�?�q���{���_��*�{���_�����{��W��O�����������#�VA�`B��D�@����4U@�����c9`�t������B���T�������!��@�`�h �5���T�@99�����!��@�i@�h�?i(8�@��@Tx!����D���_�@� �!T�OE��WD��{C�����_�@����$��!�u!��@����`T��c!���]!����{����O��C�����)�D�)@��� @� �A���!=���C�R���!�������R���!������T��T�V@�`B�`������0�� 8h~� �&@�`B�`�?�51��t������B���T������c!��@�`�h �5���T�@99����[!��@�i@�h�?i(8���D��@�@� ��T�OC��{A��@����_�!�@����$�P!����{��W��O��C�����)�D�)@��� @���A���!=���C�R����m!�������R��d!��@���h�T �@� V�`B�T�)��`� �1��t������B���T������!��@�`�h �����T�@99�� 8h~����� !��@�i@�h�?i(8���D��@�@� ��T�OC��WB��{A����_�� �@����%�A���!t<�0!�@����$�� ����{����O��C�����)�D�)@��� @�i���R����!�� T�@���T�@�`B��`�t��h�u˿B���T������� ��@�`�h �����AT�@99�� 8h~��V@�`B�`�t�����B������T�������� ��@�i@�h�?i(8���D��@�@� ��T�OC��{A��@����_�r �@����$�� �@����%�A���!t<�� ��C��{��3��W��O��C������D�@������T@�A���t���(����B���T���#���| ��@�����5���T�@99����t ��@��@���?i(8�@�H���@�ia8�q�T��"�R� ��������R��� ���T�@�`�7�*�jh8?�q�T� ?qL��T���B�wB�w�t��������B���T�#�����A ��@�`�h � ���aT�@99C�*�@� |@�*��#�wA� �5����t���� ����B���T�#�����$ ��@�����5���T�@99���� ��'@�� �?i(8� @��#���#�R��RW �iB���i� A�_�Tj� @�i �@�= �= @�i�|��@�@9� T�����������@�i@�h�?i(8a@�����#�R��R4 ��@��@T�����D���_�@� �AT�OH��WG��{E��3@��C��_�@����$�����@����$���@����$���h@��@�����T�@��T���������@��@��T���@����T����}�9��{���� @��(ia8�qaT"�R���{���_�-��{��� ��O����*���*�����@T�����*�@�i"8�����!��T�OB�� @��{è�_��C��{��_��W��O��C����*���*����)�D�)@������^@���`B���`��� @����@T� 6�B���T������r��@�`�h �W���T�@99h6�B���T������a��@�`�h �����T�@99 ����Y��@�i@�h�?i(8���*��h@�i88�������T���D��@�@� �T�OD��WC��_B��{A��C��_�����=��@�i@�h�?i(8���D��@�@� ����T�@����$�7� �R�_� ը �`��_�@����1��_��C��{��O���������#�4A��D�@��������c9@������#���hB�h�6�@�?�T�@�i�h �J���J=6�I��R�@�Ɇ�rk�RJ@�n9� q� �k��T����=�=� @�h����D���_�@� �T�OD��{C��C��_ֽ��@����`T����������@�����u�C��{��O�������#�4A��D�@��������c9@���d#��#�e�@6�@����*�@�@����*�L���q�T3�RA���!�9��*A���!\�@����4�i����@��@T}����D���_�@� ��T�*�OD��{C��C��_�}����@��@Tk���e����{��g��_ ��W ��O �����������D�@����!6�*��ѿ�8A��@���=�H�0�����*��ѿ�8A��@���=�����������}��(ia8�q�T���"�R��u�@����T�B�����}�v������B���T������h����@�� �����!T�@99 ��������7l����[��@��@���?i(8h@���h�4 6������#���� 6��@�?�` T��A�9��?� T��4W@�t���H ����B���T������4��@�����5���T�@99����,��'B���?i(8�����e�7t�@����T�B�����B�u���( ��B���T����������@�� �����T�@99������ ������@��@���?i(8h@���h��@����T�������@��Ts�������]��@T�����D���_�@� �!T�OK��WJ��_I��gH��{G����_�sB���T`A��`��T������@��������@����$���@����$�����@����$���I��� �����@��@T���#����]��@T~���x��{��� ��O���T@��T��sB���T`A��`��Tl�����@������OB�� @��{èd�OB�� @��{è�_�����{��#��O�����������D�@�����#�)@�A�?�?9����c9�#��@6�#��*2� 6�#�����3�R�@��aT �@�@���t��������*�@��@T5����D���_�@� ��T�*�OE��{C��#@�����_�4��@����`T��"������A���!��C�R����{����O��C����D�@���@�H���A���!����C�R������T�*���D��@�@� �T�OC��{A��@����_֕@����������B�R���@�?��T�@�?�q�T�� �Rh����D��@�@� ���T��@���<�t�@���<�u��C��{��O������ Պ� ���#��#�)�D�)@����@�`�2�C���c���#�������R�iB���i� A�_�Tj� @�i �@�= �= @�i��#�|�)A��@�@9 �`T�������D���_�@� �T�OD��{C��C��_ֱ����@��B��@T���������{��W��O��C���A�)�D�)@��������������<���)T�����������@�`�h �����AT�@9�9�@�i@�h�?i(8t@������������@�i@�h�?i(8t@���s@�`�9���`8���T���D��@�@� �!T�OC��WB��{A����_�@����$���c����{��W��O��C���)L�R�����ͦr��R�D�UA� �R��@������R�;��{y�������9@�R����9� �R����9��R����9��R����9C���c����������Ry��#�A����� A�?�T @����� �=��= @�@9� �|��@��`T����#������@��@T��@�������`6 �R �@�C���c(�����d�RO��@����������D���_�@� ��T�OG��WF��{E����_����@����`T������������{��W��O�������������D�@�����8u~��#���&����@�� @� ����x�� @���%��@�H��@� ��_8�q�ThR@���Ri @���I��� � T��������$�R �h@���R i48h@�v�i68A���!|'��#���#�R$��@��1������h@�)������ ��TA���!p>���B�R���@��#�A��@T�����D���_�@� �!T�OE��WD��{C�����_�@��� <�������`@��`T���@��#�A���T`@���T��x�{�`@��`��Tw���q�����{��#��W��O����������wB��D�@����X@�w�u���h����B���T�#��������@�`�h �6���T�@99�������@�i@�h�?i(8A���!�)��#���1��@���r����@��#�A��@T=����D���_�@� �AT�OF��WE��{C��#@�����_�@����$�r�9����@��#�A���T`@��T���!�`@��`��T��`@�����T�����C��{����W��O��C�������wB��D�@���X@�w�u��������B���T������4��@�`�h �6���T�@99����,��@���i@�h�?i(82�h@��@��T������6����D��@�@� �T�OD��WC��{A��@��C��_�@����$��@��� <�(���h@����`T������������{��#��W��O����������wB��D�@����X@�w�u���h����B���T�#��������@�`�h �6���T�@99�������@�i@�h�?i(8A���!=��#��������@��������@��#�A��@T�����D���_�@� �AT�OF��WE��{C��#@�����_�@����$��������@��#�A���T`@��T��p�s�`@��`��T��`@�����Tj���d�����{��#��W��O���������������#��D�@�����#������#������@��B��@TO��#����������#������@��@TD��@�@���(+�b@��������D���_�@� ��T�OF��WE��{C��#@�����_�>��C��{��C�����������)�D�)@����������������6��]����hB�JA�? �h� T��^�i�h �����ѹ����#��������#����#������@�hB��@T ��@���A��@T���]����A���T��@�=�=�^�h����D���_�@� �T�{G��C@��C��_������@��#�A��T�@���A��T��]����A���T�������@���A����T���@���A����T����]����A����T����]����A����T�������C��{��3��W��O��C���������vB���R�D����������@������v�����I���)�>��@�`�!@�)�A�� N ��`��<h(8U��@94h@��� �TA���!� ���B�R������h@��@��#T�����������@9�4h@��:� ��TA���!�"���b�R������h@����@��"T�h@��>� �T��RT��Д %�������h@��� � TA���!<�����R��h@�� TA���!�1�����R��h@�� TA���! :�����R������9A����@������� ��#�A���6�@���T�@�����H��RI���)=6�Ȇ�r�@�b�R��9)@��r����� ��� T-��@���=����=�@�� �����w��@��@T���R��@�(��-�R�#�ȭ�r �R4A���R���#����;y�����@��@T �h@� ��? H� TA���!�4�����RV��B���S��@���A��@T�����D���_�@� �T�OH��WG��{E��3@��C��_�@��� <�B�@��� <�?�@��� <�<����@�����T�@����T�����@���A��T����`@��@T�������{��� ��O����� DžRh&�R ƥr����R ��6��Rh*y��u*�Z9]� ���A���!����"�R�����h@��@��#T���������OB�� @��{è�_�@��� <���h@����`T�����������{��W��O��C���A�)�D�)@��������������<���)T�����������@�`�h �����AT�@9�9�@�i@�h�?i(8t@������������@�i@�h�?i(8t@���s@�`�9 ���`8���T���D��@�@� �!T�OC��WB��{A����_�@����$���[�(��w9�qAT �*�_��{������������{��g��_��W��O��C��������D�@��� @� ��E�_�H�����7�E�)�?q ��9���� �{�P�i"@��� ��E�c@���B���� ��c@����B���w���� �C���#T������G��@�������X��T�@9�9������=��@����@�(�_i(8u"@���T��m�L@�l �� �� �)��m@���� ���j}�_9`T� �� �lA�l�MA�_ ���T��=��=���wV@�� ���T �B����T�A��`��T�����u@�u�����Ȃ���t"���i ��D��@�@� ��T�OE��WD��_C��gB��{A�����_����������@����$�����f�����k���m�����g����{��� ��� ճ������� ��X�D���� @��{¨�����{����_��W��O��C������������D�@���)����\@�v��� ��B���CT���������@���(��� ��7���T�@99�������@�v���i @�h�?i(8��V@�w���H��B���#T���������@������U���T�@9�9���������@�i@�h�?i(8���D��@�@� ��T�OE��WD��_C��{A��@�����_�@����$���@����$���G��@����`T��5���/��C��{��#�������#�3A��D�@��������c9�#������@��@T!����D���_�@� �T�{C��#@��C��_�"��@����� �`T����� �����{��O��C�����4A��D�@�����#�A������9�c9������#�\����@��@T���@��@T�����D���_�@� �T�OF��{E�����_����@����� ��T�@��T���������@��@��T����������{��O��C�����4A��#�3A��D�@���������9����c9���#����!����@��@T���@��@T�����D���_�@� �T�OF��{E�����_ָ��@����� ��T�@��T���������@��@��T�������{�����q���{���_�����{��O��C���)�D�)@���� @�*@�? k�T @���*@�? k!T @� @�? k�T @� � @���@�A�4�R)@�j@�(@9K@9 kATL�RH4�q(il8Kil8����� k ��T�4K5�qT3�R(�RňZ���D���_�@� ��T�*�OF��{E�����_� @��������qaT�����������#�������������(����*���#���#���h 6�#@) k(�R��Z �*���h*�6r(�R�Z���#����*�@��#�A��@T$��@���A����T����(� ���@���A���T�������@��#�A��T�@���A��a��T�����@���A�� ��T����{����i���q���{���_��{����b���|S�{���_��{����\���q�ן�{���_��{����U���qয়�{���_��{����N���� *}S�{���_�����{��#��W��O���������� ���P�R�D�@������@����D�q�����RhV@��A���I��� � T��������$�R �h@���R i58h@�w�i78�@��� բ��P�#��R�D�T��@������@��#�A��@T��hV@���Ri @���I��� � T��������$�R��h@���R i58h@�w�i78� @��� ���P�#��R�D�/��@������@��#�A��@T}��@���� @������@����@��������D���_�@� ��T�OF��WE��{C��#@�����_�r����@��#�A��!T  ���@��#�A��TW���`@��@TP���J����{��W��O��C�����������R���D�@�������T�@�h�C T�@� � �`B�4�1��`�t������B���T������a��@�`�h ������T�@99!�@�t�T�@�`B��`�u�����B���T������G��@�`�h ������T�@99��������<��@�i@�h�?i(8���D��@�@� ��T�OC��WB��{A����_�@����%�A���!t<���c�@����$�,����C��{ ��o ��g ��_��W��O�������*����R�����D�@����Y�� T�"@��c���9A�����/�1��v���#����B���T�c���������@��/��7�7���T�@99�������@��/@��3�?i(8�c��S������*�/@��@T���6 �T�@�@9�q�T�����R�� ��T�@����)T�@��c��;A�i���?��91���/�x��(���?C���T�c���������@��/��7�9�?�T@99�������@��/@��3�?i(8�c��C�T����*�/@��@Ti��6_ �T�@�iw8�qT��������>����� T7����c��������c���c��3�5����*�/@�(C��@TI�� 6� �T�@�iw8�q T��a�R�������������������������6�c���A���9���@T�c��������c����c��c����/@��B��@T��c���� 6�B)�@��c�����c�x����c������c���3�RS�@��� T�@��c�9A���/�u��� �x���C���T�c������3��@��/��7�8��T�@99����+��@��/@��3�?i(8�c��3������*�/@��@T��6�@���) @9�4iw8�q!T�*���D���_�@� �aT�*�OP��WO��_N��gM��oL��{K��C��_��B)�@��c������c���K��c�[�3�R����*�*�@��@T���@����A��`��T������� ����$��� ����%�!���!t<��� ����c�>����@��T�����@����A��aT���c�+����/@�(C�� T������ �/@���� T������|��/@����!��T��v��{���O�������(@�@�)A�� �������a�� ����OA��{¨�_��{��� �����@�h��@T_�` @�h���T� @��{¨X� @��{¨�_�����{��_��W��O�������D�@����@���@���@9��q`T��q�T����R"�R5�R���� T�#���A�5�Rc@�h�Ti@��� ���1��5�u���H����B���T�#�����[��@���������!T�@99�'@�� �?i(8� @�H�1����N��'@�� �?i(8� @�(��@� @9)4 �� *�q(TK@8�4l�q�TmqC��Tk�Qi1���T��qL��T�q@��T��q@T?�qT@9�4�#�!�R������T5�R�@���T�*�@��@T���6������R��^����!��Tc@�t� Th@��#�6A����s��h ����B���T�#��������@���������Th@99�'@�� �?i(8� @���53�R8�*6�������'@�� �?i(8� @�(��@� @9)4 �� *�q(TK@8�4l�q�TmqC��Tk�Qi1���T��qL��T�q@��T��q@T?�qT@9�4�#�!�Rj�����T3�R�@���T�*�@��@T}����D���_�@� �!T�*�OF��WE��_D��{C�����_� ����%�!���!t<����� ����$���r��@�����T�@����`T��[���U�r���{��� ��W��O�������������8���9�*<����J�|�`���b��D�d�f�@������ ˿����j�������J�k�����C����#>��/=���~���=� ?��*�B�}@�Aq����T�C�����^��_���� �6���T�@99����V��_��@���?i(8���D���_�@� ��T���OC��WB�� @��{Ĩ�_���{��� ��� ��0������ �"��D���� @��{¨�����{��K��O ���������)�D�)@�������������� ����p�S�� �R��uB��S�u�)���@���#T�#���������@�`�h �T���T�S@9�9�S�������@�i@�h�?i(8���D���_�@� ��T�OJ��{H��K@�����_����{���O�����@��R�$�R���*1T�*��1���OA��{¨�_ց@�@���p �"���Bp&�����1���OA��{¨�_�"�R#�R�C��{ ��S��W ��O ��C��������*�*�*�D�@����@�^�1 T�*�#��*�*_��45����0��@� �@������������@��@� ����.����������@�W������*�*�*��F����T�*9����D���_�@� �aT���OL��WK��{I��S@��C��_�U����� ����\�b�RC�R�������{��W��O�����������D�@����@����9!��������@�������������~����,��@�qT��#�A��� ���l������>��� T�#�����S��@�����5���T�@99����K��'@�� �?i(8�@� ����&�9����@��@T�������D���_�@� ��T�OE��WD��{C�����_�� ����$�7��@����`T���������{��� ��g��_��W��O����@���Ѩ��c�9A��������D���@���������9�������c���$��@���R�� ���������������@���)��������������q��4���@�v@������������������@��@T�����D���_�@� �AT�*�@�����OE��WD��_C��gB�� @��{ƨ�_����A��������������>�� T������������]����'�����AT�@99 �����@��a��T�����������]��@��#�?i(8�@�@9�@Tr�߾q@ TH���M,����A���!�WA� @���q@�����_9�'���R������t��@����`T��Z�v����W������A���8��=��C��#�B�R��R��`T� @������P�q���T����^����������������������R��������T����|����������;��`��T��;�� @����]���R���������a�5�R �*�@�����To����(�� @����*��]��`��T�a�� ��� <�e�� ����$�M�  ���@��`T����������]���T�@�����T�������@��`��T���@�@9�q���_��{���O��������������OA��{¨�_����� ���)����������OA��{¨�_��{��� ��O�������@�!�R������������OB�� @��{è�_֔@����� ���5�����������OB�� @��{è�_��{�������4���� �����{������{���_��{������B�R���{���_�@�@9�q���_�����{��#��O���������D�@�����#� @�A�� ����&�?9����c9��`��������#���������� @�(��#��*e��6�@� ����1�^����@��*���4�@� ���0�V����@�� �9!���!0��#�����!���!H2��#������@��*|�@4�@� ����2�C����*�@��!T�@���Ro��4�@� �����6����#�����3�R�@��@TF����D���_�@� ��T�*�OE��{C��#@�����_�E��@����`T��3���-��{��� ��O���(@���?�9@�@�u@���l�����������j�h@�����OB�� @��{è�_�����{��#��W��O�������*�����D�@����@�(���@����@�K�����������I�����������D���_�@� ��T�OF��WE��{C��#@�����_�x�@�q���T��7�@����#�A�������(������>��� T�#�������@�����6���T�@99������'@�� �?i(8�@� ����+��������@�����T������� ����$����@����`T������������{��#��O���������D�@�����#� @�A�� ����<�?9����c9��`��������#���������� @�(��#��*z����6�@� ���� �s����@��*���4�@� ���t%�k����@�� �9!���!0��#�����!���!p3��#������@��*��@4�@� ����)�X����*�@��T�@���R���4�@� ���,�K����#������@� ����'�D���3�R�@��@TW����D���_�@� ��T�*�OE��{C��#@�����_�V��@����`T��D���>��{��� ����*��&����*�*�6`@���RR�q��� @��{¨�_��{���W��O�����@�� ���< �9>�@�u@���j�����������h�h@�H����*����6`@���R/��4a@� ����?�?����*�OB��WA��{è�_֔����)�,����@�q`��T ����6�.����*�OB��WA��{è�_�@���v@���;�����������9����*�����6`@���R�@4�@� ����*�����*�OB��WA��{è�_� �R�OB��WA��{è�_�����{��W��O���������D�@��������� 6!���!p8����������*�����6`@���R���4`@�8�R�� 4F�@�Dq�T���*�����*�*h6`@���R��q��- �R+s@����#�A��� ���� ������>��� T�#������ ��@�����5���T�@99����� ��'@�� �?i(8�@� ����-��������@��@T� ��*���D���_�@� ��T�OE��WD��{C�����_� � ����$�� ��@����`T��j ���d ��*�_�����{��W��O ��������)���)�#����*�D�)@�@�����΍R���rn9��i�R��8hr����A�v&���=� ����#���������6������ ��*R����#�����#���c���#�����$�R� ���A����� A�?�T @����� �=��= @�@9��|��@���T����@��@T! ��@��#�A��@T ���]��@T ����D���_�@� ��T�OI��WH��{G�����_� ��@����� ��T�@��#�A���T��]��AT`@��aT��� ���� ��@��#�A��@��T���@��#�A��`��T� ���]��@��T ����]����T����]����T� �`@�����T� ���� ��C��{�����W��O��C���)�R�������D�@����)9!���!�@�� �@��#���A��#����c9���Z ��@��@T� ��#� �R��� ����#�� ��@��@��# T���#���� ��@����Ѩ@�ia8)qa��T��"�R ��@������ � �R���D���_�@� �@ T� � �@�s@�q�T ���@���G����*�9���D���_�@� �T���a@� ���P �������� �)c ��#�A�������� ������>��� T�#������ ��@�����5���T�@99����� ��'@�� �?i(8�@� ���`��������@��@TP ��*���D���_�@� ���T�OT��WS��{Q���@��C��_� ��� <�� � ����$�� ������@����`T��6 ���0 ��C��{��O�������#���4A��D�@��������c9 ������#������6�#���_ �3�R�@��@T ����D���_�@� ��T`�OD��{C��C��_��������*�@�����T��� ��@����`T�� ���� �����{��C��W ��O ���������*�D�@����(@�?�9��ш�����]� ���!���������9A��9���������� ���@6���� �a@� ���T������@9q���@��@T� ���]����A��@T� ����D���_�@� �AT�*�OJ��WI��{G��C@�����_��@9�5����k!T�#����Y���!���!p��#��#������@� ���4?�l����#������#������*�@��B��@T� �t�7�*�@����T���� ����@��B��aT�@��T��]����A��!T��� �� ��@�����T ����]����A����T ���@��@��Tz ���]����A�� ��Tt ���n �����{��#��O�������#���5A��D�@��������c9 ����8��#�����6�#���� � h����*f���k!Tb@�#���c������$�R� �3�R�@��@TJ ����D���_�@� �T�*�OE��{C��#@�����_��*�@����T���D ��@����`T��2 ���, ��{��� ��O������*7����*kT�@�#���c������$�Rk ��k���OB�� @��{è�_��{���O���A�R������� ��`T��c@��CT������� �����D ���A�R��� ������T����R��} ��`T��c@��CT������k �����, �����R��l ������T���B� A���?�T @���� � �=@�=i@�h~�B9���OA��{¨�_� ����%�!���!� ���D ��{���o��g��_��W��O�����������ѻC�����������������*��]��@T��V6�@� ���0'�����������3�R���ѿ�8A��#�A���8��=���;��#���F����6��[��@� ����~������`����7�������6��]� ��� "�s�����������V@����A����v��������B��7�T����������7@�������5���T�@99�������7@���Y���?i(8!���!�)���є���!���!0���ѐ������n���`6�#���Y�5A�����T��Z�����C�^����������^�h��������Y���������b@���[���]��7@� ��� � ՁA�0�����#��c9A�����#�R����'@�L�����������v����@�$����� � ���<�!���!#�%����`$�������W����@���A��@T ��'@��@T��7@���A��@T��* �=��=�Z���9���8� ��#������*�@��@T���Y��@T���[��@T����]��@T�����D���_�@� �!T`�OS��WR��_Q��gP��{O����_� ���p�����*��[�����T����� ����$�$����@���A��AT�'@��aT�7@���A��T.���'@�����T���'@��@��T���7@���A��aT�@���� T�������'@�����T���7@���A��T�� ��]�����T�� ����Y��AT��[��T��]��@T����������[�����T����[��@��T����]��!��T�������{��o��g��_��W��O����������D�@���@� �����`���������c������������������A���T������A�����*A�<��3�4��A�8���g&�� �������T�@���A������������������������*�����6������V���r������� @�(���*A�� @�@���������?r�����{��3@��@T7��#@��@T3��C@��@��T/�������X�����������������*�3@�h��@��@T!��#@�������@T��6a@�����'�G����*2������6����@���=���a@� ���*����� �h�0���w9TA���R @�Q@��C����S ������@������*�C@��@T���6�@�@����0'�����b@�����=� ա�0����@����A��@T���]����h��@T���[�h���@T����A���Ts��������D��_�@� �T��OU��WT��_S��gR��oQ��{P�����_�sB���T`A��`��T������@�����������C@����T���� �����D����������@����A��T ���������/����C@��@T�����)����c�����������{��W��O��C������D�@������T@�A���t���H ����B���T���������@�����5���T�@99�������@��@���?i(8!���!�)�������!���!0���������h���`6�#��@�4A����`T�@����� �@���� 9�{����*��=��=�@������9� ��#��������*�@��@T:��@��@T6����D���_�@� �AT`�OG��WF��{E����_�����$�k�2��@�����T�@��T�������@��@��T���@����T��� ��{���O������� Հ��0���!�"�������*�6b@� ���@� �!��0������OA��{¨�_��{��� ��� ��p������ �"��D���� @��{¨�����{��W��O������ Օ����D�@����@���#�����������!��#���A���������B���T�#��������@���������aT�ax99�'@�� �?i(8� @��T ��������'@�� �?i(8� @���T �,��#����R#�5#���c.��#��R�R��4a@����$$�����3�R�@��@T�����D���_�@� �T�*�OE��WD��{C�����_�a@� ����0�����*�@����T������@����`T��z���t�����{��W��O���������D�@����4@��������#�����s@��#������@�$����� � ���<�!���!���������������@��B��@TT����D���_�@� ��T�OE��WD��{C�����_�T����@��B��@TB���<����{��o��g��_��W��O���������*�D�@���������ѿ8A��=����C���6����*����6�Cѿ8A����A��C�A��8�;��9�� ���9�C�/�����R�r�6�C���R�������������������C������@��B��@T��K@��C�0���t����� ����$�����%�]� �����(�����R�r2�]��@T�����D��_�@� ��T�*�OW��WV��_U��gT��oS��{R����_�(�Rs*�K@��T(�C��*����� 6���C����v��������p��@��B��@T�������^�����@��4�F� ���J�:��B������/�!���!���*�����*�������K@��@T���Y��@T���[��@��T�����������-��������D��+{��]�����_������������7@� ���X�����]� ���D(�{����'@� ���@�w����[� �����s������$4���o�����������C����*�����@������?��*�c@9���4� @�������?ֺ���[�����(�����sZ�K@�����T������������ ��D��+{��]���7@����_�����������$:�A����]� ���D(�=����'@� ���@�9����[� �����5������������C������@��*�����?��*���:�hJ�k�T��������������c@9�4� @�h���?��*������K@�����Tw���7@� ����,�W���������ѫ���sJ�� ����K@����Th���7@����T �����F���[�����x9�����������������`��*��?��*�������K@�����TO���7@� ���P�/���D������������c@9���4� @�����?����� �c@9��h4� @�(���?����������������K@��T�Y��T�[���T�]��T�������Y����T���[����T���]��`��T���]�����T�������{���O�������H���t�"9r�����h@���?�(�Rh"9�OA��{¨�_�����{��#��W��O���������*�D�@��������N����6�#��#������@� ����&�!���!�r����@��B��@T���qKT�*������9��@���d�������T����:�_����*��5����* ������D���_�@� �T�*�OF��WE��{C��#@�����_�p����@��B��@T^���X��{��� ��� Փ���I��� Ղn�D���� @��{¨E�{�����[����S������������c����*�����C�T��ңzs������*s�`?��!��T�SA��[B��cC��{Ĩ�_��_��{����[����{���_��{�����{���_��{�����D�B'� � � � Ր��D�b'� ֐��D��'� ֐��D��'� ֐��D��'� ֐��D��'� ֐�E�(� ֐�E�"(� ֐� E�B(� ֐�E�b(� ֐�E��(� ֐�E��(� ֐�E��(� ֐�E��(� ֐�"E�)� ֐�&E�")� ֐�*E�B)� ֐�.E�b)� ֐�2E��)� ֐�6E��)� ֐�:E��)� ֐�>E��)� ֐�BE�*� ֐�FE�"*� ֐�JE�B*� ֐�NE�b*� ֐�RE��*� ֐�VE��*� ֐�ZE��*� ֐�^E��*� ֐�bE�+� ֐�fE�"+� ֐�jE�B+� ֐�nE�b+� ֐�rE��+� ֐�vE��+� ֐�zE��+� ֐�~E��+� ֐��E�,� ֐��E�",� ֐��E�B,� ֐��E�b,� ֐��E��,� ֐��E��,� ֐��E��,� ֐��E��,� ֐��E�-� ֐��E�"-� ֐��E�B-� ֐��E�b-� ֐��E��-� ֐��E��-� ֐��E��-� ֐��E��-� ֐��E�.� ֐��E�".� ֐��E�B.� ֐��E�b.� ֐��E��.� ֐��E��.� ֐��E��.� ֐��E��.� ֐��E�/� ֐��E�"/� ֐��E�B/� ֐��E�b/� ֐��E��/� ֐��E��/� ֐��E��/� ֐��E��/� ֐�F�0� ֐�F�"0� ֐� F�B0� ֐�F�b0� ֐�F��0� ֐�F��0� ֐�F��0� ֐�F��0� ֐�"F�1� ֐�&F�"1� ֐�*F�B1� ֐�.F�b1� ֐�2F��1� ֐�6F��1� ֐�:F��1� ֐�>F��1� ֐�BF�2� ֐�FF�"2� ֐�JF�B2� ֐�NF�b2� ֐�RF��2� ֐�VF��2� ֐�ZF��2� ֐�^F��2� ֐�bF�3� ֐�fF�"3� ֐�jF�B3� ֐�nF�b3� ֐�rF��3� ֐�vF��3� ֐�zF��3� ֐�~F��3� ֐��F�4� ֐��F�"4� ��  ) 4 � � � � ���o�H ���o� � @ � � ���o��H� �� �����o� ���o����o��ja 8r{�נ2����3�;-�$�j�@(#)Version 8.0.3126.42015 @Commit: 1219a42122cf5190c7f512850557e38c422430dc@(#)Version 8.0.3126.42015 @Commit: 1219a42122cf5190c7f512850557e38c422430dcd38cc827-e34f-4453-9df4-1e796e9f1d07ClassNotify.Server.dllclang version 16.0.6GCC: (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609Linker: LLD 16.0.6.init_array.fini_array.text.got.comment.got.plt.rela.plt.init.tbss.bss.dynstr.eh_frame_hdr.jcr.gnu.version_r.interp.data.rel.ro.rela.dyn.gnu.version.dynsym.gnu_debuglink.fini.gnu.hash.note.ABI-tag.eh_frame.gcc_except_table.tm_clone_table.note.gnu.build-id.dynamic.shstrtab.rodata.dataapphost.dbg{ �{����� $� @@� ����o� � �l���o������o��Q��� ���H6B� .2�(�(���;�;�Y8D8D���H�HDeeĚ@���������;�F��g�� ����H���H00 P P p-� � P6   �  L  %$0 e$�<�� ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0", "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64": "8.0.31", "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64": "8.0.31" }, "runtime": { "ClassNotify.Server.dll": {} } }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.CSharp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.VisualBasic.Core.dll": { "assemblyVersion": "13.0.0.0", "fileVersion": "13.0.3126.42015" }, "Microsoft.VisualBasic.dll": { "assemblyVersion": "10.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Registry.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.AppContext.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Buffers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Concurrent.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Immutable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.NonGeneric.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Specialized.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Annotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.DataAnnotations.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.EventBasedAsync.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.TypeConverter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Configuration.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Core.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.DataSetExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Contracts.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.DiagnosticSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.FileVersionInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Process.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.StackTrace.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TextWriterTraceListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tools.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tracing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Dynamic.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Asn1.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Tar.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Calendars.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.Brotli.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.FileSystem.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.ZipFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.DriveInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Watcher.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.IsolatedStorage.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.MemoryMappedFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.UnmanagedMemoryStream.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Expressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Queryable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.HttpListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Mail.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NameResolution.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NetworkInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Ping.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Requests.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Security.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.ServicePoint.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebClient.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebHeaderCollection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.Client.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.Vectors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ObjectModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.CoreLib.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.DataContractSerialization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Uri.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.DispatchProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.ILGeneration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.Lightweight.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.TypeExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Reader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.ResourceManager.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Writer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.Unsafe.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.VisualC.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Handles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.JavaScript.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.RuntimeInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Intrinsics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Loader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Numerics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Formatters.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Claims.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Algorithms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Cng.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Csp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.OpenSsl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.X509Certificates.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.Windows.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.SecureString.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceModel.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceProcess.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.CodePages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encodings.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.RegularExpressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Channels.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Overlapped.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Dataflow.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Thread.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.ThreadPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Timer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.Local.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ValueTuple.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.HttpUtility.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Windows.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Linq.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.ReaderWriter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlSerializer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "WindowsBase.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "mscorlib.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "netstandard.dll": { "assemblyVersion": "2.1.0.0", "fileVersion": "8.0.3126.42015" } }, "native": { "createdump": { "fileVersion": "0.0.0.0" }, "libSystem.Globalization.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.IO.Compression.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Net.Security.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Security.Cryptography.Native.OpenSsl.so": { "fileVersion": "0.0.0.0" }, "libclrgc.so": { "fileVersion": "0.0.0.0" }, "libclrjit.so": { "fileVersion": "0.0.0.0" }, "libcoreclr.so": { "fileVersion": "0.0.0.0" }, "libcoreclrtraceptprovider.so": { "fileVersion": "0.0.0.0" }, "libhostfxr.so": { "fileVersion": "0.0.0.0" }, "libhostpolicy.so": { "fileVersion": "0.0.0.0" }, "libmscordaccore.so": { "fileVersion": "0.0.0.0" }, "libmscordbi.so": { "fileVersion": "0.0.0.0" } } }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.AspNetCore.Antiforgery.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.BearerToken.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Cookies.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.OAuth.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.Policy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Endpoints.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Forms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Server.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Connections.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.CookiePolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.Internal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HostFiltering.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Server.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Html.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Results.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpLogging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpOverrides.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpsPolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Identity.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ApiExplorer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.RazorPages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.TagHelpers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ViewFeatures.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.OutputCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RequestDecompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Rewrite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.HttpSys.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IIS.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IISIntegration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Session.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.StaticFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebUtilities.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Caching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Caching.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Binder.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.CommandLine.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.EnvironmentVariables.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.FileExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.Ini.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.KeyPerFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Configuration.UserSecrets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.DependencyInjection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Composite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Embedded.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Physical.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileSystemGlobbing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Identity.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Identity.Stores.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Logging.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1325.6609" }, "Microsoft.Extensions.Logging.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.ObjectPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Options.ConfigurationExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.224.6711" }, "Microsoft.Extensions.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.WebEncoders.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.JSInterop.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Net.Http.Headers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "System.Diagnostics.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1525.16413" }, "System.IO.Pipelines.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "System.Security.Cryptography.Pkcs.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "System.Security.Cryptography.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.2926.32403" }, "System.Threading.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } }, "runtimes": { "android-arm64": [ "android", "linux-bionic-arm64", "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-arm64": [ "linux", "unix-arm64", "unix", "any", "base" ], "linux-bionic-arm64": [ "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-musl-arm64": [ "linux-musl", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ] } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "includedFrameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.31" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.31" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0", "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64": "8.0.31", "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64": "8.0.31" }, "runtime": { "ClassNotify.Server.dll": {} } }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.CSharp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.VisualBasic.Core.dll": { "assemblyVersion": "13.0.0.0", "fileVersion": "13.0.3126.42015" }, "Microsoft.VisualBasic.dll": { "assemblyVersion": "10.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Registry.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.AppContext.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Buffers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Concurrent.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Immutable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.NonGeneric.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Specialized.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Annotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.DataAnnotations.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.EventBasedAsync.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.TypeConverter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Configuration.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Core.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.DataSetExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Contracts.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.DiagnosticSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.FileVersionInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Process.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.StackTrace.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TextWriterTraceListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tools.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tracing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Dynamic.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Asn1.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Tar.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Calendars.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.Brotli.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.FileSystem.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.ZipFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.DriveInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Watcher.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.IsolatedStorage.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.MemoryMappedFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.UnmanagedMemoryStream.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Expressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Queryable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.HttpListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Mail.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NameResolution.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NetworkInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Ping.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Requests.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Security.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.ServicePoint.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebClient.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebHeaderCollection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.Client.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.Vectors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ObjectModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.CoreLib.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.DataContractSerialization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Uri.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.DispatchProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.ILGeneration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.Lightweight.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.TypeExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Reader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.ResourceManager.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Writer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.Unsafe.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.VisualC.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Handles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.JavaScript.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.RuntimeInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Intrinsics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Loader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Numerics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Formatters.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Claims.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Algorithms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Cng.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Csp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.OpenSsl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.X509Certificates.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.Windows.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.SecureString.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceModel.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceProcess.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.CodePages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encodings.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.RegularExpressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Channels.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Overlapped.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Dataflow.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Thread.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.ThreadPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Timer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.Local.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ValueTuple.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.HttpUtility.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Windows.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Linq.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.ReaderWriter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlSerializer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "WindowsBase.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "mscorlib.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "netstandard.dll": { "assemblyVersion": "2.1.0.0", "fileVersion": "8.0.3126.42015" } }, "native": { "createdump": { "fileVersion": "0.0.0.0" }, "libSystem.Globalization.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.IO.Compression.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Net.Security.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Security.Cryptography.Native.OpenSsl.so": { "fileVersion": "0.0.0.0" }, "libclrgc.so": { "fileVersion": "0.0.0.0" }, "libclrjit.so": { "fileVersion": "0.0.0.0" }, "libcoreclr.so": { "fileVersion": "0.0.0.0" }, "libcoreclrtraceptprovider.so": { "fileVersion": "0.0.0.0" }, "libhostfxr.so": { "fileVersion": "0.0.0.0" }, "libhostpolicy.so": { "fileVersion": "0.0.0.0" }, "libmscordaccore.so": { "fileVersion": "0.0.0.0" }, "libmscordbi.so": { "fileVersion": "0.0.0.0" } } }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.AspNetCore.Antiforgery.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.BearerToken.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Cookies.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.OAuth.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.Policy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Endpoints.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Forms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Server.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Connections.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.CookiePolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.Internal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HostFiltering.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Server.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Html.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Results.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpLogging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpOverrides.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpsPolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Identity.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ApiExplorer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.RazorPages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.TagHelpers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ViewFeatures.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.OutputCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RequestDecompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Rewrite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.HttpSys.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IIS.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IISIntegration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Session.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.StaticFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebUtilities.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Caching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Caching.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Binder.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.CommandLine.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.EnvironmentVariables.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.FileExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.Ini.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.KeyPerFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Configuration.UserSecrets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.DependencyInjection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Composite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Embedded.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Physical.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileSystemGlobbing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Identity.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Identity.Stores.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Logging.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1325.6609" }, "Microsoft.Extensions.Logging.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.ObjectPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Options.ConfigurationExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.224.6711" }, "Microsoft.Extensions.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.WebEncoders.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.JSInterop.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Net.Http.Headers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "System.Diagnostics.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1525.16413" }, "System.IO.Pipelines.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "System.Security.Cryptography.Pkcs.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "System.Security.Cryptography.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.2926.32403" }, "System.Threading.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } }, "runtimes": { "android-arm64": [ "android", "linux-bionic-arm64", "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-arm64": [ "linux", "unix-arm64", "unix", "any", "base" ], "linux-bionic-arm64": [ "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-musl-arm64": [ "linux-musl", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ] } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "includedFrameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.31" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.31" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0", "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64": "8.0.31", "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64": "8.0.31" }, "runtime": { "ClassNotify.Server.dll": {} } }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.CSharp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.VisualBasic.Core.dll": { "assemblyVersion": "13.0.0.0", "fileVersion": "13.0.3126.42015" }, "Microsoft.VisualBasic.dll": { "assemblyVersion": "10.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Registry.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.AppContext.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Buffers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Concurrent.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Immutable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.NonGeneric.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Specialized.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Annotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.DataAnnotations.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.EventBasedAsync.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.TypeConverter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Configuration.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Core.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.DataSetExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Contracts.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.DiagnosticSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.FileVersionInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Process.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.StackTrace.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TextWriterTraceListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tools.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tracing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Dynamic.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Asn1.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Tar.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Calendars.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.Brotli.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.FileSystem.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.ZipFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.DriveInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Watcher.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.IsolatedStorage.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.MemoryMappedFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.UnmanagedMemoryStream.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Expressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Queryable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.HttpListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Mail.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NameResolution.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NetworkInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Ping.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Requests.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Security.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.ServicePoint.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebClient.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebHeaderCollection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.Client.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.Vectors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ObjectModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.CoreLib.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.DataContractSerialization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Uri.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.DispatchProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.ILGeneration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.Lightweight.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.TypeExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Reader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.ResourceManager.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Writer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.Unsafe.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.VisualC.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Handles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.JavaScript.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.RuntimeInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Intrinsics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Loader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Numerics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Formatters.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Claims.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Algorithms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Cng.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Csp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.OpenSsl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.X509Certificates.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.Windows.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.SecureString.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceModel.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceProcess.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.CodePages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encodings.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.RegularExpressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Channels.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Overlapped.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Dataflow.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Thread.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.ThreadPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Timer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.Local.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ValueTuple.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.HttpUtility.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Windows.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Linq.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.ReaderWriter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlSerializer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "WindowsBase.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "mscorlib.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "netstandard.dll": { "assemblyVersion": "2.1.0.0", "fileVersion": "8.0.3126.42015" } }, "native": { "createdump": { "fileVersion": "0.0.0.0" }, "libSystem.Globalization.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.IO.Compression.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Net.Security.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Security.Cryptography.Native.OpenSsl.so": { "fileVersion": "0.0.0.0" }, "libclrgc.so": { "fileVersion": "0.0.0.0" }, "libclrjit.so": { "fileVersion": "0.0.0.0" }, "libcoreclr.so": { "fileVersion": "0.0.0.0" }, "libcoreclrtraceptprovider.so": { "fileVersion": "0.0.0.0" }, "libhostfxr.so": { "fileVersion": "0.0.0.0" }, "libhostpolicy.so": { "fileVersion": "0.0.0.0" }, "libmscordaccore.so": { "fileVersion": "0.0.0.0" }, "libmscordbi.so": { "fileVersion": "0.0.0.0" } } }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.AspNetCore.Antiforgery.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.BearerToken.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Cookies.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.OAuth.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.Policy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Endpoints.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Forms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Server.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Connections.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.CookiePolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.Internal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HostFiltering.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Server.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Html.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Results.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpLogging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpOverrides.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpsPolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Identity.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ApiExplorer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.RazorPages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.TagHelpers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ViewFeatures.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.OutputCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RequestDecompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Rewrite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.HttpSys.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IIS.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IISIntegration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Session.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.StaticFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebUtilities.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Caching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Caching.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Binder.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.CommandLine.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.EnvironmentVariables.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.FileExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.Ini.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.KeyPerFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Configuration.UserSecrets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.DependencyInjection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Composite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Embedded.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Physical.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileSystemGlobbing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Identity.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Identity.Stores.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Logging.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1325.6609" }, "Microsoft.Extensions.Logging.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.ObjectPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Options.ConfigurationExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.224.6711" }, "Microsoft.Extensions.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.WebEncoders.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.JSInterop.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Net.Http.Headers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "System.Diagnostics.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1525.16413" }, "System.IO.Pipelines.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "System.Security.Cryptography.Pkcs.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "System.Security.Cryptography.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.2926.32403" }, "System.Threading.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } }, "runtimes": { "android-arm64": [ "android", "linux-bionic-arm64", "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-arm64": [ "linux", "unix-arm64", "unix", "any", "base" ], "linux-bionic-arm64": [ "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-musl-arm64": [ "linux-musl", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ] } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "includedFrameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.31" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.31" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0", "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64": "8.0.31", "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64": "8.0.31" }, "runtime": { "ClassNotify.Server.dll": {} } }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.CSharp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.VisualBasic.Core.dll": { "assemblyVersion": "13.0.0.0", "fileVersion": "13.0.3126.42015" }, "Microsoft.VisualBasic.dll": { "assemblyVersion": "10.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "Microsoft.Win32.Registry.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.AppContext.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Buffers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Concurrent.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Immutable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.NonGeneric.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.Specialized.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Collections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Annotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.DataAnnotations.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.EventBasedAsync.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.TypeConverter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ComponentModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Configuration.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Core.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.DataSetExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Data.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Contracts.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.DiagnosticSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.FileVersionInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Process.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.StackTrace.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TextWriterTraceListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tools.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Diagnostics.Tracing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Drawing.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Dynamic.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Asn1.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Formats.Tar.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Calendars.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Globalization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.Brotli.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.FileSystem.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.ZipFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Compression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.DriveInfo.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.Watcher.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.FileSystem.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.IsolatedStorage.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.MemoryMappedFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.Pipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.UnmanagedMemoryStream.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.IO.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Expressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.Queryable.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.HttpListener.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Mail.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NameResolution.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.NetworkInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Ping.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Requests.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Security.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.ServicePoint.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebClient.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebHeaderCollection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.Client.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Net.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.Vectors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Numerics.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ObjectModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.CoreLib.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.DataContractSerialization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Uri.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.Linq.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Private.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.DispatchProxy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.ILGeneration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.Lightweight.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Emit.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.TypeExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Reflection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Reader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.ResourceManager.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Resources.Writer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.Unsafe.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.CompilerServices.VisualC.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Handles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.JavaScript.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.RuntimeInformation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.InteropServices.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Intrinsics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Loader.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Numerics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Formatters.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.AccessControl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Claims.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Algorithms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Cng.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Csp.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.OpenSsl.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.X509Certificates.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Cryptography.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.Windows.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.Principal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.SecureString.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Security.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceModel.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ServiceProcess.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.CodePages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encoding.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Encodings.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Text.RegularExpressions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Channels.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Overlapped.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Dataflow.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.Parallel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Tasks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Thread.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.ThreadPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.Timer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Threading.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.Local.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Transactions.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.ValueTuple.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.HttpUtility.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Web.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Windows.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Linq.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.ReaderWriter.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.Serialization.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.XDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XPath.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlDocument.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.XmlSerializer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.Xml.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "System.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "WindowsBase.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "mscorlib.dll": { "assemblyVersion": "4.0.0.0", "fileVersion": "8.0.3126.42015" }, "netstandard.dll": { "assemblyVersion": "2.1.0.0", "fileVersion": "8.0.3126.42015" } }, "native": { "createdump": { "fileVersion": "0.0.0.0" }, "libSystem.Globalization.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.IO.Compression.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Net.Security.Native.so": { "fileVersion": "0.0.0.0" }, "libSystem.Security.Cryptography.Native.OpenSsl.so": { "fileVersion": "0.0.0.0" }, "libclrgc.so": { "fileVersion": "0.0.0.0" }, "libclrjit.so": { "fileVersion": "0.0.0.0" }, "libcoreclr.so": { "fileVersion": "0.0.0.0" }, "libcoreclrtraceptprovider.so": { "fileVersion": "0.0.0.0" }, "libhostfxr.so": { "fileVersion": "0.0.0.0" }, "libhostpolicy.so": { "fileVersion": "0.0.0.0" }, "libmscordaccore.so": { "fileVersion": "0.0.0.0" }, "libmscordbi.so": { "fileVersion": "0.0.0.0" } } }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "runtime": { "Microsoft.AspNetCore.Antiforgery.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.BearerToken.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Cookies.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.OAuth.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authentication.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.Policy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Authorization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Endpoints.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Forms.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Server.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.Web.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Components.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Connections.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.CookiePolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.Internal.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.DataProtection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HostFiltering.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.Server.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Html.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Connections.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Extensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.Results.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpLogging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpOverrides.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.HttpsPolicy.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Identity.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Metadata.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ApiExplorer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Cors.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Formatters.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.RazorPages.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.TagHelpers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.ViewFeatures.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Mvc.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.OutputCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.Runtime.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Razor.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.RequestDecompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCaching.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.ResponseCompression.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Rewrite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Routing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.HttpSys.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IIS.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.IISIntegration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Server.Kestrel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.Session.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Common.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.Protocols.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.SignalR.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.StaticFiles.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebSockets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.WebUtilities.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.AspNetCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Caching.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Caching.Memory.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Binder.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.CommandLine.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.EnvironmentVariables.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.FileExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.724.31311" }, "Microsoft.Extensions.Configuration.Ini.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Configuration.Json.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.KeyPerFile.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Configuration.UserSecrets.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.DependencyInjection.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.DependencyInjection.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.HealthChecks.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Diagnostics.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Features.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Composite.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileProviders.Embedded.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.FileProviders.Physical.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.FileSystemGlobbing.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Hosting.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Hosting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Http.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Identity.Core.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Identity.Stores.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Localization.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Logging.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1325.6609" }, "Microsoft.Extensions.Logging.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Console.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.Debug.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.EventSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.TraceSource.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.Logging.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "Microsoft.Extensions.ObjectPool.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Extensions.Options.ConfigurationExtensions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.DataAnnotations.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.Options.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.224.6711" }, "Microsoft.Extensions.Primitives.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "Microsoft.Extensions.WebEncoders.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.JSInterop.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "Microsoft.Net.Http.Headers.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.3126.42125" }, "System.Diagnostics.EventLog.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1525.16413" }, "System.IO.Pipelines.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" }, "System.Security.Cryptography.Pkcs.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.1024.46610" }, "System.Security.Cryptography.Xml.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.2926.32403" }, "System.Threading.RateLimiting.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.NETCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "runtimepack.Microsoft.AspNetCore.App.Runtime.linux-arm64/8.0.31": { "type": "runtimepack", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } }, "runtimes": { "android-arm64": [ "android", "linux-bionic-arm64", "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-arm64": [ "linux", "unix-arm64", "unix", "any", "base" ], "linux-bionic-arm64": [ "linux-bionic", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ], "linux-musl-arm64": [ "linux-musl", "linux-arm64", "linux", "unix-arm64", "unix", "any", "base" ] } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "includedFrameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.31" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.31" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.deps.json ================================================================================ { "runtimeTarget": { "name": ".NETCoreApp,Version=v8.0/linux-arm64", "signature": "" }, "compilationOptions": {}, "targets": { ".NETCoreApp,Version=v8.0": {}, ".NETCoreApp,Version=v8.0/linux-arm64": { "ClassNotify.Server/1.0.0": { "dependencies": { "ClassNotify.Shared": "1.0.0", "Microsoft.AspNetCore.Authentication.JwtBearer": "8.0.0", "Microsoft.AspNetCore.SignalR.Common": "8.0.0", "Microsoft.EntityFrameworkCore.Design": "8.0.0", "Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.0", "Serilog.AspNetCore": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "ClassNotify.Server.dll": {} } }, "Humanizer.Core/2.14.1": {}, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "dependencies": { "Microsoft.IdentityModel.Protocols.OpenIdConnect": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53112" } } }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Features": "8.0.0", "System.IO.Pipelines": "8.0.0" } }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "dependencies": { "Microsoft.AspNetCore.Connections.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": {}, "Microsoft.CodeAnalysis.Analyzers/3.3.3": {}, "Microsoft.CodeAnalysis.Common/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Analyzers": "3.3.3", "System.Collections.Immutable": "6.0.0", "System.Reflection.Metadata": "6.0.1", "System.Runtime.CompilerServices.Unsafe": "6.0.0", "System.Text.Encoding.CodePages": "6.0.0" } }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "dependencies": { "Microsoft.CodeAnalysis.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp": "4.5.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "Microsoft.CodeAnalysis.Workspaces.Common": "4.5.0" } }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.Bcl.AsyncInterfaces": "6.0.0", "Microsoft.CodeAnalysis.Common": "4.5.0", "System.Composition": "6.0.0", "System.IO.Pipelines": "8.0.0", "System.Threading.Channels": "6.0.0" } }, "Microsoft.EntityFrameworkCore/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Analyzers": "8.0.0", "Microsoft.Extensions.Caching.Memory": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": {}, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "dependencies": { "Humanizer.Core": "2.14.1", "Microsoft.CodeAnalysis.CSharp.Workspaces": "4.5.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Mono.TextTemplating": "2.2.1" } }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.EntityFrameworkCore.Relational.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": {}, "Microsoft.Extensions.DependencyModel/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0", "System.Text.Json": "8.0.0" }, "runtime": { "lib/net8.0/Microsoft.Extensions.DependencyModel.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.23.53103" } } }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0", "System.Diagnostics.DiagnosticSource": "8.0.0" } }, "Microsoft.Extensions.Features/8.0.0": {}, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Diagnostics.Abstractions": "8.0.0", "Microsoft.Extensions.FileProviders.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Microsoft.Extensions.Options": "8.0.0" } }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" } }, "Microsoft.Extensions.Options/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "8.0.0" } }, "Microsoft.Extensions.Primitives/8.0.0": {}, "Microsoft.IdentityModel.Abstractions/7.0.3": { "runtime": { "lib/net8.0/Microsoft.IdentityModel.Abstractions.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Logging/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Abstractions": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Logging.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Protocols": "7.0.3", "System.IdentityModel.Tokens.Jwt": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Microsoft.IdentityModel.Tokens/7.0.3": { "dependencies": { "Microsoft.IdentityModel.Logging": "7.0.3" }, "runtime": { "lib/net8.0/Microsoft.IdentityModel.Tokens.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "Mono.TextTemplating/2.2.1": { "dependencies": { "System.CodeDom": "4.4.0" } }, "Npgsql/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging.Abstractions": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "dependencies": { "Microsoft.EntityFrameworkCore": "8.0.0", "Microsoft.EntityFrameworkCore.Abstractions": "8.0.0", "Microsoft.EntityFrameworkCore.Relational": "8.0.0", "Npgsql": "8.0.0" }, "runtime": { "lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog/3.1.1": { "runtime": { "lib/net7.0/Serilog.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "3.1.1.0" } } }, "Serilog.AspNetCore/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "8.0.0", "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Hosting": "8.0.0", "Serilog.Extensions.Logging": "8.0.0", "Serilog.Formatting.Compact": "2.0.0", "Serilog.Settings.Configuration": "8.0.0", "Serilog.Sinks.Console": "5.0.0", "Serilog.Sinks.Debug": "2.0.0", "Serilog.Sinks.File": "5.0.0" }, "runtime": { "lib/net8.0/Serilog.AspNetCore.dll": { "assemblyVersion": "0.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Hosting/8.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Hosting.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "8.0.0", "Serilog": "3.1.1", "Serilog.Extensions.Logging": "8.0.0" }, "runtime": { "lib/net8.0/Serilog.Extensions.Hosting.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Extensions.Logging/8.0.0": { "dependencies": { "Microsoft.Extensions.Logging": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Extensions.Logging.dll": { "assemblyVersion": "7.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Formatting.Compact/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Formatting.Compact.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Settings.Configuration/8.0.0": { "dependencies": { "Microsoft.Extensions.Configuration.Binder": "8.0.0", "Microsoft.Extensions.DependencyModel": "8.0.0", "Serilog": "3.1.1" }, "runtime": { "lib/net8.0/Serilog.Settings.Configuration.dll": { "assemblyVersion": "8.0.0.0", "fileVersion": "8.0.0.0" } } }, "Serilog.Sinks.Console/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net7.0/Serilog.Sinks.Console.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "Serilog.Sinks.Debug/2.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/netstandard2.1/Serilog.Sinks.Debug.dll": { "assemblyVersion": "2.0.0.0", "fileVersion": "2.0.0.0" } } }, "Serilog.Sinks.File/5.0.0": { "dependencies": { "Serilog": "3.1.1" }, "runtime": { "lib/net5.0/Serilog.Sinks.File.dll": { "assemblyVersion": "5.0.0.0", "fileVersion": "5.0.0.0" } } }, "System.CodeDom/4.4.0": {}, "System.Collections.Immutable/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Composition/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Convention": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0", "System.Composition.TypedParts": "6.0.0" } }, "System.Composition.AttributedModel/6.0.0": {}, "System.Composition.Convention/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0" } }, "System.Composition.Hosting/6.0.0": { "dependencies": { "System.Composition.Runtime": "6.0.0" } }, "System.Composition.Runtime/6.0.0": {}, "System.Composition.TypedParts/6.0.0": { "dependencies": { "System.Composition.AttributedModel": "6.0.0", "System.Composition.Hosting": "6.0.0", "System.Composition.Runtime": "6.0.0" } }, "System.Diagnostics.DiagnosticSource/8.0.0": {}, "System.IdentityModel.Tokens.Jwt/7.0.3": { "dependencies": { "Microsoft.IdentityModel.JsonWebTokens": "7.0.3", "Microsoft.IdentityModel.Tokens": "7.0.3" }, "runtime": { "lib/net8.0/System.IdentityModel.Tokens.Jwt.dll": { "assemblyVersion": "7.0.3.0", "fileVersion": "7.0.3.41017" } } }, "System.IO.Pipelines/8.0.0": {}, "System.Reflection.Metadata/6.0.1": { "dependencies": { "System.Collections.Immutable": "6.0.0" } }, "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, "System.Text.Encoding.CodePages/6.0.0": { "dependencies": { "System.Runtime.CompilerServices.Unsafe": "6.0.0" } }, "System.Text.Encodings.Web/8.0.0": {}, "System.Text.Json/8.0.0": { "dependencies": { "System.Text.Encodings.Web": "8.0.0" } }, "System.Threading.Channels/6.0.0": {}, "ClassNotify.Shared/1.0.0": { "runtime": { "ClassNotify.Shared.dll": { "assemblyVersion": "1.0.0", "fileVersion": "1.0.0.0" } } } } }, "libraries": { "ClassNotify.Server/1.0.0": { "type": "project", "serviceable": false, "sha512": "" }, "Humanizer.Core/2.14.1": { "type": "package", "serviceable": true, "sha512": "sha512-lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd1jm238I+U/2ZnRENj0cktKZhtchBMtCUSRQ5v4xBCUbKNmyVMw==", "path": "humanizer.core/2.14.1", "hashPath": "humanizer.core.2.14.1.nupkg.sha512" }, "Microsoft.AspNetCore.Authentication.JwtBearer/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-rwxaZYHips5M9vqxRkGfJthTx+Ws4O4yCuefn17J371jL3ouC5Ker43h2hXb5yd9BMnImE9rznT75KJHm6bMgg==", "path": "microsoft.aspnetcore.authentication.jwtbearer/8.0.0", "hashPath": "microsoft.aspnetcore.authentication.jwtbearer.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.Connections.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WgJE2+VyA0RW4yl+hgfrB7r4CSGcLzAvcVo31swukjXHZvBAjMilyG/pRJ8kroOO1h7sGf4r91Wii2L9gCMNfA==", "path": "microsoft.aspnetcore.connections.abstractions/8.0.0", "hashPath": "microsoft.aspnetcore.connections.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.AspNetCore.SignalR.Common/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-HOy32Kb4z69sCep+pVUTL11L49pk8Ze18HuqCYllaRMdDlfcSrBE0stb8fJL+ogPKTB7XZAxpj1UT/IJQIfS6g==", "path": "microsoft.aspnetcore.signalr.common/8.0.0", "hashPath": "microsoft.aspnetcore.signalr.common.8.0.0.nupkg.sha512" }, "Microsoft.Bcl.AsyncInterfaces/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-UcSjPsst+DfAdJGVDsu346FX0ci0ah+lw3WRtn18NUwEqRt70HaOQ7lI72vy3+1LxtqI3T5GWwV39rQSrCzAeg==", "path": "microsoft.bcl.asyncinterfaces/6.0.0", "hashPath": "microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Analyzers/3.3.3": { "type": "package", "serviceable": true, "sha512": "sha512-j/rOZtLMVJjrfLRlAMckJLPW/1rze9MT1yfWqSIbUPGRu1m1P0fuo9PmqapwsmePfGB5PJrudQLvmUOAMF0DqQ==", "path": "microsoft.codeanalysis.analyzers/3.3.3", "hashPath": "microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512" }, "Microsoft.CodeAnalysis.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-lwAbIZNdnY0SUNoDmZHkVUwLO8UyNnyyh1t/4XsbFxi4Ounb3xszIYZaWhyj5ZjyfcwqwmtMbE7fUTVCqQEIdQ==", "path": "microsoft.codeanalysis.common/4.5.0", "hashPath": "microsoft.codeanalysis.common.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-cM59oMKAOxvdv76bdmaKPy5hfj+oR+zxikWoueEB7CwTko7mt9sVKZI8Qxlov0C/LuKEG+WQwifepqL3vuTiBQ==", "path": "microsoft.codeanalysis.csharp/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.CSharp.Workspaces/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-h74wTpmGOp4yS4hj+EvNzEiPgg/KVs2wmSfTZ81upJZOtPkJsVkgfsgtxxqmAeapjT/vLKfmYV0bS8n5MNVP+g==", "path": "microsoft.codeanalysis.csharp.workspaces/4.5.0", "hashPath": "microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512" }, "Microsoft.CodeAnalysis.Workspaces.Common/4.5.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4dDRmGELXG72XZaonnOeORyD/T5RpEu5LGHOUIhnv+MmUWDY/m1kWXGwtcgQ5CJ5ynkFiRnIYzTKXYjUs7rbw==", "path": "microsoft.codeanalysis.workspaces.common/4.5.0", "hashPath": "microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-SoODat83pGQUpWB9xULdMX6tuKpq/RTXDuJ2WeC1ldUKcKzLkaFJD1n+I0nOLY58odez/e7z8b6zdp235G/kyg==", "path": "microsoft.entityframeworkcore/8.0.0", "hashPath": "microsoft.entityframeworkcore.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-VR22s3+zoqlVI7xauFKn1znSIFHO8xuILT+noSwS8bZCKcHz0ydkTDQMuaxSa5WBaQrZmwtTz9rmRvJ7X8mSPQ==", "path": "microsoft.entityframeworkcore.abstractions/8.0.0", "hashPath": "microsoft.entityframeworkcore.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Analyzers/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZXxEeLs2zoZ1TA+QoMMcw4f3Tirf8PzgdDax8RoWo0dxI2KmqiEGWYjhm2B/XyWfglc6+mNRyB8rZiQSmxCpeg==", "path": "microsoft.entityframeworkcore.analyzers/8.0.0", "hashPath": "microsoft.entityframeworkcore.analyzers.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Design/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-94reKYu63jg4O75UI3LMJHwOSi8tQ6IfubiZhdnSsWcgtmAuF8OyLfjK/MIxuvaQRJZAF6E747FIuxjOtb8/og==", "path": "microsoft.entityframeworkcore.design/8.0.0", "hashPath": "microsoft.entityframeworkcore.design.8.0.0.nupkg.sha512" }, "Microsoft.EntityFrameworkCore.Relational/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fFKkr24cYc7Zw5T6DC4tEyOEPgPbq23BBmym1r9kn4ET9F3HKaetpOeQtV2RryYyUxEeNkJuxgfiZHTisqZc+A==", "path": "microsoft.entityframeworkcore.relational/8.0.0", "hashPath": "microsoft.entityframeworkcore.relational.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3KuSxeHoNYdxVYfg2IRZCThcrlJ1XJqIXkAWikCsbm5C/bCjv7G0WoKDyuR98Q+T607QT2Zl5GsbGRkENcV2yQ==", "path": "microsoft.extensions.caching.abstractions/8.0.0", "hashPath": "microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Caching.Memory/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-7pqivmrZDzo1ADPkRwjy+8jtRKWRCPag9qPI+p7sgu7Q4QreWhcvbiWXsbhP+yY8XSiDvZpu2/LWdBv7PnmOpQ==", "path": "microsoft.extensions.caching.memory/8.0.0", "hashPath": "microsoft.extensions.caching.memory.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==", "path": "microsoft.extensions.configuration.abstractions/8.0.0", "hashPath": "microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Configuration.Binder/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-mBMoXLsr5s1y2zOHWmKsE9veDcx8h1x/c3rz4baEdQKTeDcmQAPNbB54Pi/lhFO3K431eEq6PFbMgLaa6PHFfA==", "path": "microsoft.extensions.configuration.binder/8.0.0", "hashPath": "microsoft.extensions.configuration.binder.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-V8S3bsm50ig6JSyrbcJJ8bW2b9QLGouz+G1miK3UTaOWmMtFwNNNzUf4AleyDWUmTrWMLNnFSLEQtxmxgNQnNQ==", "path": "microsoft.extensions.dependencyinjection/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-NSmDw3K0ozNDgShSIpsZcbFIzBX4w28nDag+TfaQujkXGazBm+lid5onlWoCBy4VsLxqnnKjEBbGSJVWJMf43g==", "path": "microsoft.extensions.dependencymodel/8.0.0", "hashPath": "microsoft.extensions.dependencymodel.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Diagnostics.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JHYCQG7HmugNYUhOl368g+NMxYE/N/AiclCYRNlgCY9eVyiBkOHMwK4x60RYMxv9EL3+rmj1mqHvdCiPpC+D4Q==", "path": "microsoft.extensions.diagnostics.abstractions/8.0.0", "hashPath": "microsoft.extensions.diagnostics.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Features/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-fxj+P9aIbTLtguFwiNqBtGNl4ZU/2Aggwj4/Ruf3qFaiBk7r1t8KnyJ+bEIK5emMyGSszTndwnP/g+gBEP9zLA==", "path": "microsoft.extensions.features/8.0.0", "hashPath": "microsoft.extensions.features.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.FileProviders.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==", "path": "microsoft.extensions.fileproviders.abstractions/8.0.0", "hashPath": "microsoft.extensions.fileproviders.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Hosting.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-AG7HWwVRdCHlaA++1oKDxLsXIBxmDpMPb3VoyOoAghEWnkUvEAdYQUwnV4jJbAaa/nMYNiEh5ByoLauZBEiovg==", "path": "microsoft.extensions.hosting.abstractions/8.0.0", "hashPath": "microsoft.extensions.hosting.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-tvRkov9tAJ3xP51LCv3FJ2zINmv1P8Hi8lhhtcKGqM+ImiTCC84uOPEI4z8Cdq2C3o9e+Aa0Gw0rmrsJD77W+w==", "path": "microsoft.extensions.logging/8.0.0", "hashPath": "microsoft.extensions.logging.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Logging.Abstractions/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-arDBqTgFCyS0EvRV7O3MZturChstm50OJ0y9bDJvAcmEPJm0FFpFyjU/JLYyStNGGey081DvnQYlncNX5SJJGA==", "path": "microsoft.extensions.logging.abstractions/8.0.0", "hashPath": "microsoft.extensions.logging.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Options/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-JOVOfqpnqlVLUzINQ2fox8evY2SKLYJ3BV8QDe/Jyp21u1T7r45x/R/5QdteURMR5r01GxeJSBBUOCOyaNXA3g==", "path": "microsoft.extensions.options/8.0.0", "hashPath": "microsoft.extensions.options.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.Primitives/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==", "path": "microsoft.extensions.primitives/8.0.0", "hashPath": "microsoft.extensions.primitives.8.0.0.nupkg.sha512" }, "Microsoft.IdentityModel.Abstractions/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-cfPUWdjigLIRIJSKz3uaZxShgf86RVDXHC1VEEchj1gnY25akwPYpbrfSoIGDCqA9UmOMdlctq411+2pAViFow==", "path": "microsoft.identitymodel.abstractions/7.0.3", "hashPath": "microsoft.identitymodel.abstractions.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.JsonWebTokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-vxjHVZbMKD3rVdbvKhzAW+7UiFrYToUVm3AGmYfKSOAwyhdLl/ELX1KZr+FaLyyS5VReIzWRWJfbOuHM9i6ywg==", "path": "microsoft.identitymodel.jsonwebtokens/7.0.3", "hashPath": "microsoft.identitymodel.jsonwebtokens.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Logging/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-b6GbGO+2LOTBEccHhqoJsOsmemG4A/MY+8H0wK/ewRhiG+DCYwEnucog1cSArPIY55zcn+XdZl0YEiUHkpDISQ==", "path": "microsoft.identitymodel.logging/7.0.3", "hashPath": "microsoft.identitymodel.logging.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-BtwR+tctBYhPNygyZmt1Rnw74GFrJteW+1zcdIgyvBCjkek6cNwPPqRfdhzCv61i+lwyNomRi8+iI4QKd4YCKA==", "path": "microsoft.identitymodel.protocols/7.0.3", "hashPath": "microsoft.identitymodel.protocols.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Protocols.OpenIdConnect/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-W97TraHApDNArLwpPcXfD+FZH7njJsfEwZE9y9BoofeXMS8H0LBBobz0VOmYmMK4mLdOKxzN7SFT3Ekg0FWI3Q==", "path": "microsoft.identitymodel.protocols.openidconnect/7.0.3", "hashPath": "microsoft.identitymodel.protocols.openidconnect.7.0.3.nupkg.sha512" }, "Microsoft.IdentityModel.Tokens/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-wB+LlbDjhnJ98DULjmFepqf9eEMh/sDs6S6hFh68iNRHmwollwhxk+nbSSfpA5+j+FbRyNskoaY4JsY1iCOKCg==", "path": "microsoft.identitymodel.tokens/7.0.3", "hashPath": "microsoft.identitymodel.tokens.7.0.3.nupkg.sha512" }, "Mono.TextTemplating/2.2.1": { "type": "package", "serviceable": true, "sha512": "sha512-KZYeKBET/2Z0gY1WlTAK7+RHTl7GSbtvTLDXEZZojUdAPqpQNDL6tHv7VUpqfX5VEOh+uRGKaZXkuD253nEOBQ==", "path": "mono.texttemplating/2.2.1", "hashPath": "mono.texttemplating.2.2.1.nupkg.sha512" }, "Npgsql/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Qiz74U+O7Mv4knrsXgKVYGJjgwoziK+aMFZqz7PtKR3vyGIhZA0tnW6HoUnL3X+YqtmVuhmoKkN8LDWEHMxPbw==", "path": "npgsql/8.0.0", "hashPath": "npgsql.8.0.0.nupkg.sha512" }, "Npgsql.EntityFrameworkCore.PostgreSQL/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-GDXiMS9peEdjSCU/rfgyHruio7q6tYuywGaktqEi6UPQ6ILechp3fVVX+dHXkIXt4nklCBzYVWkzFrSL9ubKUA==", "path": "npgsql.entityframeworkcore.postgresql/8.0.0", "hashPath": "npgsql.entityframeworkcore.postgresql.8.0.0.nupkg.sha512" }, "Serilog/3.1.1": { "type": "package", "serviceable": true, "sha512": "sha512-P6G4/4Kt9bT635bhuwdXlJ2SCqqn2nhh4gqFqQueCOr9bK/e7W9ll/IoX1Ter948cV2Z/5+5v8pAfJYUISY03A==", "path": "serilog/3.1.1", "hashPath": "serilog.3.1.1.nupkg.sha512" }, "Serilog.AspNetCore/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FAjtKPZ4IzqFQBqZKPv6evcXK/F0ls7RoXI/62Pnx2igkDZ6nZ/jn/C/FxVATqQbEQvtqP+KViWYIe4NZIHa2w==", "path": "serilog.aspnetcore/8.0.0", "hashPath": "serilog.aspnetcore.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Hosting/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-db0OcbWeSCvYQkHWu6n0v40N4kKaTAXNjlM3BKvcbwvNzYphQFcBR+36eQ/7hMMwOkJvAyLC2a9/jNdUL5NjtQ==", "path": "serilog.extensions.hosting/8.0.0", "hashPath": "serilog.extensions.hosting.8.0.0.nupkg.sha512" }, "Serilog.Extensions.Logging/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-YEAMWu1UnWgf1c1KP85l1SgXGfiVo0Rz6x08pCiPOIBt2Qe18tcZLvdBUuV5o1QHvrs8FAry9wTIhgBRtjIlEg==", "path": "serilog.extensions.logging/8.0.0", "hashPath": "serilog.extensions.logging.8.0.0.nupkg.sha512" }, "Serilog.Formatting.Compact/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ob6z3ikzFM3D1xalhFuBIK1IOWf+XrQq+H4KeH4VqBcPpNcmUgZlRQ2h3Q7wvthpdZBBoY86qZOI2LCXNaLlNA==", "path": "serilog.formatting.compact/2.0.0", "hashPath": "serilog.formatting.compact.2.0.0.nupkg.sha512" }, "Serilog.Settings.Configuration/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-nR0iL5HwKj5v6ULo3/zpP8NMcq9E2pxYA6XKTSWCbugVs4YqPyvaqaKOY+OMpPivKp7zMEpax2UKHnDodbRB0Q==", "path": "serilog.settings.configuration/8.0.0", "hashPath": "serilog.settings.configuration.8.0.0.nupkg.sha512" }, "Serilog.Sinks.Console/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-IZ6bn79k+3SRXOBpwSOClUHikSkp2toGPCZ0teUkscv4dpDg9E2R2xVsNkLmwddE4OpNVO3N0xiYsAH556vN8Q==", "path": "serilog.sinks.console/5.0.0", "hashPath": "serilog.sinks.console.5.0.0.nupkg.sha512" }, "Serilog.Sinks.Debug/2.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-Y6g3OBJ4JzTyyw16fDqtFcQ41qQAydnEvEqmXjhwhgjsnG/FaJ8GUqF5ldsC/bVkK8KYmqrPhDO+tm4dF6xx4A==", "path": "serilog.sinks.debug/2.0.0", "hashPath": "serilog.sinks.debug.2.0.0.nupkg.sha512" }, "Serilog.Sinks.File/5.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-uwV5hdhWPwUH1szhO8PJpFiahqXmzPzJT/sOijH/kFgUx+cyoDTMM8MHD0adw9+Iem6itoibbUXHYslzXsLEAg==", "path": "serilog.sinks.file/5.0.0", "hashPath": "serilog.sinks.file.5.0.0.nupkg.sha512" }, "System.CodeDom/4.4.0": { "type": "package", "serviceable": true, "sha512": "sha512-2sCCb7doXEwtYAbqzbF/8UAeDRMNmPaQbU2q50Psg1J9KzumyVVCgKQY8s53WIPTufNT0DpSe9QRvVjOzfDWBA==", "path": "system.codedom/4.4.0", "hashPath": "system.codedom.4.4.0.nupkg.sha512" }, "System.Collections.Immutable/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-l4zZJ1WU2hqpQQHXz1rvC3etVZN+2DLmQMO79FhOTZHMn8tDRr+WU287sbomD0BETlmKDn0ygUgVy9k5xkkJdA==", "path": "system.collections.immutable/6.0.0", "hashPath": "system.collections.immutable.6.0.0.nupkg.sha512" }, "System.Composition/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-d7wMuKQtfsxUa7S13tITC8n1cQzewuhD5iDjZtK2prwFfKVzdYtgrTHgjaV03Zq7feGQ5gkP85tJJntXwInsJA==", "path": "system.composition/6.0.0", "hashPath": "system.composition.6.0.0.nupkg.sha512" }, "System.Composition.AttributedModel/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-WK1nSDLByK/4VoC7fkNiFuTVEiperuCN/Hyn+VN30R+W2ijO1d0Z2Qm0ScEl9xkSn1G2MyapJi8xpf4R8WRa/w==", "path": "system.composition.attributedmodel/6.0.0", "hashPath": "system.composition.attributedmodel.6.0.0.nupkg.sha512" }, "System.Composition.Convention/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-XYi4lPRdu5bM4JVJ3/UIHAiG6V6lWWUlkhB9ab4IOq0FrRsp0F4wTyV4Dj+Ds+efoXJ3qbLqlvaUozDO7OLeXA==", "path": "system.composition.convention/6.0.0", "hashPath": "system.composition.convention.6.0.0.nupkg.sha512" }, "System.Composition.Hosting/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-w/wXjj7kvxuHPLdzZ0PAUt++qJl03t7lENmb2Oev0n3zbxyNULbWBlnd5J5WUMMv15kg5o+/TCZFb6lSwfaUUQ==", "path": "system.composition.hosting/6.0.0", "hashPath": "system.composition.hosting.6.0.0.nupkg.sha512" }, "System.Composition.Runtime/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-qkRH/YBaMPTnzxrS5RDk1juvqed4A6HOD/CwRcDGyPpYps1J27waBddiiq1y93jk2ZZ9wuA/kynM+NO0kb3PKg==", "path": "system.composition.runtime/6.0.0", "hashPath": "system.composition.runtime.6.0.0.nupkg.sha512" }, "System.Composition.TypedParts/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-iUR1eHrL8Cwd82neQCJ00MpwNIBs4NZgXzrPqx8NJf/k4+mwBO0XCRmHYJT4OLSwDDqh5nBLJWkz5cROnrGhRA==", "path": "system.composition.typedparts/6.0.0", "hashPath": "system.composition.typedparts.6.0.0.nupkg.sha512" }, "System.Diagnostics.DiagnosticSource/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", "path": "system.diagnostics.diagnosticsource/8.0.0", "hashPath": "system.diagnostics.diagnosticsource.8.0.0.nupkg.sha512" }, "System.IdentityModel.Tokens.Jwt/7.0.3": { "type": "package", "serviceable": true, "sha512": "sha512-caEe+OpQNYNiyZb+DJpUVROXoVySWBahko2ooNfUcllxa9ZQUM8CgM/mDjP6AoFn6cQU9xMmG+jivXWub8cbGg==", "path": "system.identitymodel.tokens.jwt/7.0.3", "hashPath": "system.identitymodel.tokens.jwt.7.0.3.nupkg.sha512" }, "System.IO.Pipelines/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-FHNOatmUq0sqJOkTx+UF/9YK1f180cnW5FVqnQMvYUN0elp6wFzbtPSiqbo1/ru8ICp43JM1i7kKkk6GsNGHlA==", "path": "system.io.pipelines/8.0.0", "hashPath": "system.io.pipelines.8.0.0.nupkg.sha512" }, "System.Reflection.Metadata/6.0.1": { "type": "package", "serviceable": true, "sha512": "sha512-III/lNMSn0ZRBuM9m5Cgbiho5j81u0FAEagFX5ta2DKbljZ3T0IpD8j+BIiHQPeKqJppWS9bGEp6JnKnWKze0g==", "path": "system.reflection.metadata/6.0.1", "hashPath": "system.reflection.metadata.6.0.1.nupkg.sha512" }, "System.Runtime.CompilerServices.Unsafe/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", "path": "system.runtime.compilerservices.unsafe/6.0.0", "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" }, "System.Text.Encoding.CodePages/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-ZFCILZuOvtKPauZ/j/swhvw68ZRi9ATCfvGbk1QfydmcXBkIWecWKn/250UH7rahZ5OoDBaiAudJtPvLwzw85A==", "path": "system.text.encoding.codepages/6.0.0", "hashPath": "system.text.encoding.codepages.6.0.0.nupkg.sha512" }, "System.Text.Encodings.Web/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", "path": "system.text.encodings.web/8.0.0", "hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512" }, "System.Text.Json/8.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-OdrZO2WjkiEG6ajEFRABTRCi/wuXQPxeV6g8xvUJqdxMvvuCCEk86zPla8UiIQJz3durtUEbNyY/3lIhS0yZvQ==", "path": "system.text.json/8.0.0", "hashPath": "system.text.json.8.0.0.nupkg.sha512" }, "System.Threading.Channels/6.0.0": { "type": "package", "serviceable": true, "sha512": "sha512-TY8/9+tI0mNaUMgntOxxaq2ndTkdXqLSxvPmas7XEqOlv9lQtB7wLjYGd756lOaO7Dvb5r/WXhluM+0Xe87v5Q==", "path": "system.threading.channels/6.0.0", "hashPath": "system.threading.channels.6.0.0.nupkg.sha512" }, "ClassNotify.Shared/1.0.0": { "type": "project", "serviceable": false, "sha512": "" } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/publish_arm64/publish_arm64/publish_arm64/publish_arm64/ClassNotify.Server.runtimeconfig.json ================================================================================ { "runtimeOptions": { "tfm": "net8.0", "frameworks": [ { "name": "Microsoft.NETCore.App", "version": "8.0.0" }, { "name": "Microsoft.AspNetCore.App", "version": "8.0.0" } ], "configProperties": { "System.GC.Server": true, "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Reflection.NullabilityInfoContext.IsSupported": true, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false } } } ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-3MzGc3jc.js ================================================================================ var sm=Object.defineProperty;var rm=(a,l,i)=>l in a?sm(a,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[l]=i;var wt=(a,l,i)=>rm(a,typeof l!="symbol"?l+"":l,i);function lm(a,l){for(var i=0;iu[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function i(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=i(d);fetch(d.href,f)}})();function $d(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ea={exports:{}},Dr={},ta={exports:{}},je={};/** * @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 ud;function om(){if(ud)return je;ud=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),C=Symbol.iterator;function M(b){return b===null||typeof b!="object"?null:(b=C&&b[C]||b["@@iterator"],typeof b=="function"?b:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,H={};function P(b,L,de){this.props=b,this.context=L,this.refs=H,this.updater=de||B}P.prototype.isReactComponent={},P.prototype.setState=function(b,L){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,L,"setState")},P.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function D(){}D.prototype=P.prototype;function V(b,L,de){this.props=b,this.context=L,this.refs=H,this.updater=de||B}var Q=V.prototype=new D;Q.constructor=V,J(Q,P.prototype),Q.isPureReactComponent=!0;var Y=Array.isArray,oe=Object.prototype.hasOwnProperty,xe={current:null},ge={key:!0,ref:!0,__self:!0,__source:!0};function ue(b,L,de){var U,ce={},we=null,Pe=null;if(L!=null)for(U in L.ref!==void 0&&(Pe=L.ref),L.key!==void 0&&(we=""+L.key),L)oe.call(L,U)&&!ge.hasOwnProperty(U)&&(ce[U]=L[U]);var _e=arguments.length-2;if(_e===1)ce.children=de;else if(1<_e){for(var Re=Array(_e),et=0;et<_e;et++)Re[et]=arguments[et+2];ce.children=Re}if(b&&b.defaultProps)for(U in _e=b.defaultProps,_e)ce[U]===void 0&&(ce[U]=_e[U]);return{$$typeof:a,type:b,key:we,ref:Pe,props:ce,_owner:xe.current}}function I(b,L){return{$$typeof:a,type:b.type,key:L,ref:b.ref,props:b.props,_owner:b._owner}}function se(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function X(b){var L={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(de){return L[de]})}var he=/\/+/g;function q(b,L){return typeof b=="object"&&b!==null&&b.key!=null?X(""+b.key):L.toString(36)}function re(b,L,de,U,ce){var we=typeof b;(we==="undefined"||we==="boolean")&&(b=null);var Pe=!1;if(b===null)Pe=!0;else switch(we){case"string":case"number":Pe=!0;break;case"object":switch(b.$$typeof){case a:case l:Pe=!0}}if(Pe)return Pe=b,ce=ce(Pe),b=U===""?"."+q(Pe,0):U,Y(ce)?(de="",b!=null&&(de=b.replace(he,"$&/")+"/"),re(ce,L,de,"",function(et){return et})):ce!=null&&(se(ce)&&(ce=I(ce,de+(!ce.key||Pe&&Pe.key===ce.key?"":(""+ce.key).replace(he,"$&/")+"/")+b)),L.push(ce)),1;if(Pe=0,U=U===""?".":U+":",Y(b))for(var _e=0;_e>>1,L=_[b];if(0>>1;bd(ce,E))wed(Pe,ce)?(_[b]=Pe,_[we]=E,b=we):(_[b]=ce,_[U]=E,b=U);else if(wed(Pe,E))_[b]=Pe,_[we]=E,b=we;else break e}}return K}function d(_,K){var E=_.sortIndex-K.sortIndex;return E!==0?E:_.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();a.unstable_now=function(){return m.now()-v}}var p=[],j=[],S=1,C=null,M=3,B=!1,J=!1,H=!1,P=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Q(_){for(var K=i(j);K!==null;){if(K.callback===null)u(j);else if(K.startTime<=_)u(j),K.sortIndex=K.expirationTime,l(p,K);else break;K=i(j)}}function Y(_){if(H=!1,Q(_),!J)if(i(p)!==null)J=!0,z(oe);else{var K=i(j);K!==null&&fe(Y,K.startTime-_)}}function oe(_,K){J=!1,H&&(H=!1,D(ue),ue=-1),B=!0;var E=M;try{for(Q(K),C=i(p);C!==null&&(!(C.expirationTime>K)||_&&!X());){var b=C.callback;if(typeof b=="function"){C.callback=null,M=C.priorityLevel;var L=b(C.expirationTime<=K);K=a.unstable_now(),typeof L=="function"?C.callback=L:C===i(p)&&u(p),Q(K)}else u(p);C=i(p)}if(C!==null)var de=!0;else{var U=i(j);U!==null&&fe(Y,U.startTime-K),de=!1}return de}finally{C=null,M=E,B=!1}}var xe=!1,ge=null,ue=-1,I=5,se=-1;function X(){return!(a.unstable_now()-se_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return M},a.unstable_getFirstCallbackNode=function(){return i(p)},a.unstable_next=function(_){switch(M){case 1:case 2:case 3:var K=3;break;default:K=M}var E=M;M=K;try{return _()}finally{M=E}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(_,K){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var E=M;M=_;try{return K()}finally{M=E}},a.unstable_scheduleCallback=function(_,K,E){var b=a.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0b?(_.sortIndex=E,l(j,_),i(p)===null&&_===i(j)&&(H?(D(ue),ue=-1):H=!0,fe(Y,E-b))):(_.sortIndex=L,l(p,_),J||B||(J=!0,z(oe))),_},a.unstable_shouldYield=X,a.unstable_wrapCallback=function(_){var K=M;return function(){var E=M;M=K;try{return _.apply(this,arguments)}finally{M=E}}}})(ra)),ra}var pd;function dm(){return pd||(pd=1,sa.exports=um()),sa.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 xd;function hm(){if(xd)return bt;xd=1;var a=ga(),l=dm();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,S={},C={};function M(e){return p.call(C,e)?!0:p.call(S,e)?!1:j.test(e)?C[e]=!0:(S[e]=!0,!1)}function B(e,t,s,r){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function J(e,t,s,r){if(t===null||typeof t>"u"||B(e,t,s,r))return!0;if(r)return!1;if(s!==null)switch(s.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 H(e,t,s,r,o,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new H(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new H(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new H(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new H(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){P[e]=new H(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new H(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new H(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new H(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new H(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function V(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(D,V);P[t]=new H(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(D,V);P[t]=new H(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(D,V);P[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new H(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new H(e,1,!1,e.toLowerCase(),null,!0,!0)});function Q(e,t,s,r){var o=P.hasOwnProperty(t)?P[t]:null;(o!==null?o.type!==0:r||!(2g||o[h]!==c[g]){var y=` `+o[h].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=h&&0<=g);break}}}finally{de=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?L(e):""}function ce(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1),e;case 11:return e=U(e.type.render,!1),e;case 1:return e=U(e.type,!0),e;default:return""}}function we(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 ge:return"Fragment";case xe:return"Portal";case I:return"Profiler";case ue:return"StrictMode";case q:return"Suspense";case re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case he:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ee:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}function Pe(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 we(t);case 8:return t===ue?"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 _e(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function et(e){var t=Re(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xn(e){e._valueTracker||(e._valueTracker=et(e))}function Ks(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),r="";return e&&(r=Re(e)?e.checked?"true":"false":e.value),e=r,e!==s?(t.setValue(e),!0):!1}function Hn(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 hs(e,t){var s=t.checked;return E({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function fs(e,t){var s=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;s=_e(t.value!=null?t.value:s),e._wrapperState={initialChecked:r,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wn(e,t){t=t.checked,t!=null&&Q(e,"checked",t,!1)}function en(e,t){Wn(e,t);var s=_e(t.value),r=t.type;if(s!=null)r==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gn(e,t.type,s):t.hasOwnProperty("defaultValue")&&gn(e,t.type,_e(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tn(e,t,s){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,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function gn(e,t,s){(t!=="number"||Hn(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var nn=Array.isArray;function sn(e,t,s,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ps.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var rn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xo=["Webkit","ms","Moz","O"];Object.keys(rn).forEach(function(e){xo.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rn[t]=rn[e]})});function Gs(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||rn.hasOwnProperty(e)&&rn[e]?(""+t).trim():t+"px"}function $(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var r=s.indexOf("--")===0,o=Gs(s,t[s],r);s==="float"&&(s="cssFloat"),r?e.setProperty(s,o):e[s]=o}}var me=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ae(e,t){if(t){if(me[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Ce(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var He=null;function Qe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ft=null,mt=null,Et=null;function Ca(e){if(e=yr(e)){if(typeof ft!="function")throw Error(i(280));var t=e.stateNode;t&&(t=gl(t),ft(e.stateNode,e.type,t))}}function Ea(e){mt?Et?Et.push(e):Et=[e]:mt=e}function Ta(){if(mt){var e=mt,t=Et;if(Et=mt=null,Ca(e),t)for(e=0;e>>=0,e===0?32:31-(vh(e)/yh|0)|0}var Zr=64,el=4194304;function tr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tl(e,t){var s=e.pendingLanes;if(s===0)return 0;var r=0,o=e.suspendedLanes,c=e.pingedLanes,h=s&268435455;if(h!==0){var g=h&~o;g!==0?r=tr(g):(c&=h,c!==0&&(r=tr(c)))}else h=s&~o,h!==0?r=tr(h):c!==0&&(r=tr(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,c=t&-t,o>=c||o===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0s;s++)t.push(e);return t}function nr(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=s}function Nh(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=ur),sc=" ",rc=!1;function lc(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vs=!1;function Zh(e,t){switch(e){case"compositionend":return oc(t);case"keypress":return t.which!==32?null:(rc=!0,sc);case"textInput":return e=t.data,e===sc&&rc?null:e;default:return null}}function ef(e,t){if(vs)return e==="compositionend"||!Do&&lc(e,t)?(e=Ga(),ol=Eo=jn=null,vs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=fc(s)}}function pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xc(){for(var e=window,t=Hn();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Hn(e.document)}return t}function Ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uf(e){var t=xc(),s=e.focusedElem,r=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&pc(s.ownerDocument.documentElement,s)){if(r!==null&&Ao(s)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=s.textContent.length,c=Math.min(r.start,o);r=r.end===void 0?c:Math.min(r.end,o),!e.extend&&c>r&&(o=r,r=c,c=o),o=mc(s,c);var h=mc(s,r);o&&h&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,ys=null,Oo=null,mr=null,zo=!1;function gc(e,t,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;zo||ys==null||ys!==Hn(r)||(r=ys,"selectionStart"in r&&Ao(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&fr(mr,r)||(mr=r,r=ml(Oo,"onSelect"),0_s||(e.current=Go[_s],Go[_s]=null,_s--)}function Le(e,t){_s++,Go[_s]=e.current,e.current=t}var kn={},ot=Sn(kn),pt=Sn(!1),Kn=kn;function Ss(e,t){var s=e.type.contextTypes;if(!s)return kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in s)o[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xt(e){return e=e.childContextTypes,e!=null}function vl(){$e(pt),$e(ot)}function Rc(e,t,s){if(ot.current!==kn)throw Error(i(168));Le(ot,t),Le(pt,s)}function Lc(e,t,s){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return s;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(i(108,Pe(e)||"Unknown",o));return E({},s,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,Kn=ot.current,Le(ot,e),Le(pt,pt.current),!0}function Dc(e,t,s){var r=e.stateNode;if(!r)throw Error(i(169));s?(e=Lc(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,$e(pt),$e(ot),Le(ot,e)):$e(pt),Le(pt,s)}var on=null,wl=!1,Yo=!1;function $c(e){on===null?on=[e]:on.push(e)}function jf(e){wl=!0,$c(e)}function Cn(){if(!Yo&&on!==null){Yo=!0;var e=0,t=Te;try{var s=on;for(Te=1;e>=h,o-=h,an=1<<32-At(t)+o|s<pe?(st=ae,ae=null):st=ae.sibling;var ke=A(N,ae,k[pe],W);if(ke===null){ae===null&&(ae=st);break}e&&ae&&ke.alternate===null&&t(N,ae),w=c(ke,w,pe),ie===null?ne=ke:ie.sibling=ke,ie=ke,ae=st}if(pe===k.length)return s(N,ae),Me&&Xn(N,pe),ne;if(ae===null){for(;pepe?(st=ae,ae=null):st=ae.sibling;var Mn=A(N,ae,ke.value,W);if(Mn===null){ae===null&&(ae=st);break}e&&ae&&Mn.alternate===null&&t(N,ae),w=c(Mn,w,pe),ie===null?ne=Mn:ie.sibling=Mn,ie=Mn,ae=st}if(ke.done)return s(N,ae),Me&&Xn(N,pe),ne;if(ae===null){for(;!ke.done;pe++,ke=k.next())ke=F(N,ke.value,W),ke!==null&&(w=c(ke,w,pe),ie===null?ne=ke:ie.sibling=ke,ie=ke);return Me&&Xn(N,pe),ne}for(ae=r(N,ae);!ke.done;pe++,ke=k.next())ke=G(ae,N,pe,ke.value,W),ke!==null&&(e&&ke.alternate!==null&&ae.delete(ke.key===null?pe:ke.key),w=c(ke,w,pe),ie===null?ne=ke:ie.sibling=ke,ie=ke);return e&&ae.forEach(function(nm){return t(N,nm)}),Me&&Xn(N,pe),ne}function Ve(N,w,k,W){if(typeof k=="object"&&k!==null&&k.type===ge&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case oe:e:{for(var ne=k.key,ie=w;ie!==null;){if(ie.key===ne){if(ne=k.type,ne===ge){if(ie.tag===7){s(N,ie.sibling),w=o(ie,k.props.children),w.return=N,N=w;break e}}else if(ie.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===z&&Fc(ne)===ie.type){s(N,ie.sibling),w=o(ie,k.props),w.ref=wr(N,ie,k),w.return=N,N=w;break e}s(N,ie);break}else t(N,ie);ie=ie.sibling}k.type===ge?(w=rs(k.props.children,N.mode,W,k.key),w.return=N,N=w):(W=Kl(k.type,k.key,k.props,null,N.mode,W),W.ref=wr(N,w,k),W.return=N,N=W)}return h(N);case xe:e:{for(ie=k.key;w!==null;){if(w.key===ie)if(w.tag===4&&w.stateNode.containerInfo===k.containerInfo&&w.stateNode.implementation===k.implementation){s(N,w.sibling),w=o(w,k.children||[]),w.return=N,N=w;break e}else{s(N,w);break}else t(N,w);w=w.sibling}w=Ji(k,N.mode,W),w.return=N,N=w}return h(N);case z:return ie=k._init,Ve(N,w,ie(k._payload),W)}if(nn(k))return ee(N,w,k,W);if(K(k))return te(N,w,k,W);_l(N,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,w!==null&&w.tag===6?(s(N,w.sibling),w=o(w,k),w.return=N,N=w):(s(N,w),w=Ki(k,N.mode,W),w.return=N,N=w),h(N)):s(N,w)}return Ve}var Ts=Bc(!0),Hc=Bc(!1),Sl=Sn(null),kl=null,Ps=null,ri=null;function li(){ri=Ps=kl=null}function oi(e){var t=Sl.current;$e(Sl),e._currentValue=t}function ii(e,t,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===s)break;e=e.return}}function Is(e,t){kl=e,ri=Ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(gt=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(ri!==e)if(e={context:e,memoizedValue:t,next:null},Ps===null){if(kl===null)throw Error(i(308));Ps=e,kl.dependencies={lanes:0,firstContext:e}}else Ps=Ps.next=e;return t}var Gn=null;function ai(e){Gn===null?Gn=[e]:Gn.push(e)}function Wc(e,t,s,r){var o=t.interleaved;return o===null?(s.next=s,ai(t)):(s.next=o.next,o.next=s),t.interleaved=s,un(e,r)}function un(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var En=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Se&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,un(e,s)}return o=r.interleaved,o===null?(t.next=t,ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,s)}function Cl(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,No(e,s)}}function qc(e,t){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var o=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var h={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};c===null?o=c=h:c=c.next=h,s=s.next}while(s!==null);c===null?o=c=t:c=c.next=t}else o=c=t;s={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function El(e,t,s,r){var o=e.updateQueue;En=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var y=g,T=y.next;y.next=null,h===null?c=T:h.next=T,h=y;var O=e.alternate;O!==null&&(O=O.updateQueue,g=O.lastBaseUpdate,g!==h&&(g===null?O.firstBaseUpdate=T:g.next=T,O.lastBaseUpdate=y))}if(c!==null){var F=o.baseState;h=0,O=T=y=null,g=c;do{var A=g.lane,G=g.eventTime;if((r&A)===A){O!==null&&(O=O.next={eventTime:G,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var ee=e,te=g;switch(A=t,G=s,te.tag){case 1:if(ee=te.payload,typeof ee=="function"){F=ee.call(G,F,A);break e}F=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=te.payload,A=typeof ee=="function"?ee.call(G,F,A):ee,A==null)break e;F=E({},F,A);break e;case 2:En=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,A=o.effects,A===null?o.effects=[g]:A.push(g))}else G={eventTime:G,lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},O===null?(T=O=G,y=F):O=O.next=G,h|=A;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;A=g,g=A.next,A.next=null,o.lastBaseUpdate=A,o.shared.pending=null}}while(!0);if(O===null&&(y=F),o.baseState=y,o.firstBaseUpdate=T,o.lastBaseUpdate=O,t=o.shared.interleaved,t!==null){o=t;do h|=o.lane,o=o.next;while(o!==t)}else c===null&&(o.shared.lanes=0);es|=h,e.lanes=h,e.memoizedState=F}}function Qc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;ts?s:4,e(!0);var r=mi.transition;mi.transition={};try{e(!1),t()}finally{Te=s,mi.transition=r}}function hu(){return Rt().memoizedState}function kf(e,t,s){var r=Ln(e);if(s={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null},fu(e))mu(t,s);else if(s=Wc(e,t,s,r),s!==null){var o=ht();Ht(s,e,r,o),pu(s,t,r)}}function Cf(e,t,s){var r=Ln(e),o={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null};if(fu(e))mu(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,g=c(h,s);if(o.hasEagerState=!0,o.eagerState=g,Ot(g,h)){var y=t.interleaved;y===null?(o.next=o,ai(t)):(o.next=y.next,y.next=o),t.interleaved=o;return}}catch{}finally{}s=Wc(e,t,o,r),s!==null&&(o=ht(),Ht(s,e,r,o),pu(s,t,r))}}function fu(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function mu(e,t){_r=Il=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function pu(e,t,s){if((s&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,No(e,s)}}var Dl={readContext:It,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Ef={readContext:It,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:ru,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,Rl(4194308,4,iu.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var s=Jt();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var r=Jt();return t=s!==void 0?s(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kf.bind(null,ze,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:nu,useDebugValue:bi,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=nu(!1),t=e[0];return e=Sf.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var r=ze,o=Jt();if(Me){if(s===void 0)throw Error(i(407));s=s()}else{if(s=t(),nt===null)throw Error(i(349));(Zn&30)!==0||Gc(r,t,s)}o.memoizedState=s;var c={value:s,getSnapshot:t};return o.queue=c,ru(Zc.bind(null,r,c,e),[e]),r.flags|=2048,Cr(9,Yc.bind(null,r,c,s,t),void 0,null),s},useId:function(){var e=Jt(),t=nt.identifierPrefix;if(Me){var s=cn,r=an;s=(r&~(1<<32-At(r)-1)).toString(32)+s,t=":"+t+"R"+s,s=Sr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(s,{is:r.is}):(e=h.createElement(s),s==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,s),e[Qt]=t,e[vr]=r,$u(e,t,!1,!1),t.stateNode=e;e:{switch(h=Ce(s,r),s){case"dialog":De("cancel",e),De("close",e),o=r;break;case"iframe":case"object":case"embed":De("load",e),o=r;break;case"video":case"audio":for(o=0;oMs&&(t.flags|=128,r=!0,Er(c,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(h),e!==null){if(t.flags|=128,r=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),Er(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Me)return at(t),null}else 2*We()-c.renderingStartTime>Ms&&s!==1073741824&&(t.flags|=128,r=!0,Er(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(s=c.last,s!==null?s.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=We(),t.sibling=null,s=Oe.current,Le(Oe,r?s&1|2:s&1),t):(at(t),null);case 22:case 23:return Vi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kt&1073741824)!==0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Mf(e,t){switch(ei(t),t.tag){case 1:return xt(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rs(),$e(pt),$e(ot),fi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return di(t),null;case 13:if($e(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Oe),null;case 4:return Rs(),null;case 10:return oi(t.type._context),null;case 22:case 23:return Vi(),null;case 24:return null;default:return null}}var Ol=!1,ct=!1,Af=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Ds(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(r){Fe(e,t,r)}else s.current=null}function Li(e,t,s){try{s()}catch(r){Fe(e,t,r)}}var Ou=!1;function Of(e,t){if(Vo=rl,e=xc(),Ao(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,g=-1,y=-1,T=0,O=0,F=e,A=null;t:for(;;){for(var G;F!==s||o!==0&&F.nodeType!==3||(g=h+o),F!==c||r!==0&&F.nodeType!==3||(y=h+r),F.nodeType===3&&(h+=F.nodeValue.length),(G=F.firstChild)!==null;)A=F,F=G;for(;;){if(F===e)break t;if(A===s&&++T===o&&(g=h),A===c&&++O===r&&(y=h),(G=F.nextSibling)!==null)break;F=A,A=F.parentNode}F=G}s=g===-1||y===-1?null:{start:g,end:y}}else s=null}s=s||{start:0,end:0}}else s=null;for(qo={focusedElem:e,selectionRange:s},rl=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var te=ee.memoizedProps,Ve=ee.memoizedState,N=t.stateNode,w=N.getSnapshotBeforeUpdate(t.elementType===t.type?te:Ut(t.type,te),Ve);N.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(W){Fe(t,t.return,W)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return ee=Ou,Ou=!1,ee}function Tr(e,t,s){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Li(t,s,c)}o=o.next}while(o!==r)}}function zl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var r=s.create;s.destroy=r()}s=s.next}while(s!==t)}}function Di(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function zu(e){var t=e.alternate;t!==null&&(e.alternate=null,zu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[vr],delete t[Xo],delete t[wf],delete t[bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uu(e){return e.tag===5||e.tag===3||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $i(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=xl));else if(r!==4&&(e=e.child,e!==null))for($i(e,t,s),e=e.sibling;e!==null;)$i(e,t,s),e=e.sibling}function Mi(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mi(e,t,s),e=e.sibling;e!==null;)Mi(e,t,s),e=e.sibling}var rt=null,Ft=!1;function Pn(e,t,s){for(s=s.child;s!==null;)Bu(e,t,s),s=s.sibling}function Bu(e,t,s){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Yr,s)}catch{}switch(s.tag){case 5:ct||Ds(s,t);case 6:var r=rt,o=Ft;rt=null,Pn(e,t,s),rt=r,Ft=o,rt!==null&&(Ft?(e=rt,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):rt.removeChild(s.stateNode));break;case 18:rt!==null&&(Ft?(e=rt,s=s.stateNode,e.nodeType===8?Jo(e.parentNode,s):e.nodeType===1&&Jo(e,s),ir(e)):Jo(rt,s.stateNode));break;case 4:r=rt,o=Ft,rt=s.stateNode.containerInfo,Ft=!0,Pn(e,t,s),rt=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!ct&&(r=s.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var c=o,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&Li(s,t,h),o=o.next}while(o!==r)}Pn(e,t,s);break;case 1:if(!ct&&(Ds(s,t),r=s.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=s.memoizedProps,r.state=s.memoizedState,r.componentWillUnmount()}catch(g){Fe(s,t,g)}Pn(e,t,s);break;case 21:Pn(e,t,s);break;case 22:s.mode&1?(ct=(r=ct)||s.memoizedState!==null,Pn(e,t,s),ct=r):Pn(e,t,s);break;default:Pn(e,t,s)}}function Hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Af),t.forEach(function(r){var o=Qf.bind(null,e,r);s.has(r)||(s.add(r),r.then(o,o))})}}function Bt(e,t){var s=t.deletions;if(s!==null)for(var r=0;ro&&(o=h),r&=~c}if(r=o,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uf(r/1960))-r,10e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Wl=0,(Se&6)!==0)throw Error(i(331));var o=Se;for(Se|=4,Z=e.current;Z!==null;){var c=Z,h=c.child;if((Z.flags&16)!==0){var g=c.deletions;if(g!==null){for(var y=0;yWe()-zi?ns(e,0):Oi|=s),yt(e,t)}function nd(e,t){t===0&&((e.mode&1)===0?t=1:(t=el,el<<=1,(el&130023424)===0&&(el=4194304)));var s=ht();e=un(e,t),e!==null&&(nr(e,t,s),yt(e,s))}function qf(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),nd(e,s)}function Qf(e,t){var s=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(s=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}r!==null&&r.delete(t),nd(e,s)}var sd;sd=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)gt=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return gt=!1,Df(e,t,s);gt=(e.flags&131072)!==0}else gt=!1,Me&&(t.flags&1048576)!==0&&Mc(t,jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Al(e,t),e=t.pendingProps;var o=Ss(t,ot.current);Is(t,s),o=xi(null,t,r,e,o,s);var c=gi();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(r)?(c=!0,yl(t)):c=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ci(t),o.updater=$l,t.stateNode=o,o._reactInternals=t,Ni(t,r,e,s),t=Ci(null,t,r,!0,c,s)):(t.tag=0,Me&&c&&Zo(t),dt(null,t,o,s),t=t.child),t;case 16:r=t.elementType;e:{switch(Al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Jf(r),e=Ut(r,e),o){case 0:t=ki(null,t,r,e,s);break e;case 1:t=Tu(null,t,r,e,s);break e;case 11:t=_u(null,t,r,e,s);break e;case 14:t=Su(null,t,r,Ut(r.type,e),s);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),ki(e,t,r,o,s);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),Tu(e,t,r,o,s);case 3:e:{if(Pu(t),e===null)throw Error(i(387));r=t.pendingProps,c=t.memoizedState,o=c.element,Vc(e,t),El(t,r,null,s);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){o=Ls(Error(i(423)),t),t=Iu(e,t,r,s,o);break e}else if(r!==o){o=Ls(Error(i(424)),t),t=Iu(e,t,r,s,o);break e}else for(St=_n(t.stateNode.containerInfo.firstChild),_t=t,Me=!0,zt=null,s=Hc(t,null,r,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Es(),r===o){t=hn(e,t,s);break e}dt(e,t,r,s)}t=t.child}return t;case 5:return Kc(t),e===null&&ni(t),r=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,h=o.children,Qo(r,o)?h=null:c!==null&&Qo(r,c)&&(t.flags|=32),Eu(e,t),dt(e,t,h,s),t.child;case 6:return e===null&&ni(t),null;case 13:return Ru(e,t,s);case 4:return ui(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ts(t,null,r,s):dt(e,t,r,s),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),_u(e,t,r,o,s);case 7:return dt(e,t,t.pendingProps,s),t.child;case 8:return dt(e,t,t.pendingProps.children,s),t.child;case 12:return dt(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,c=t.memoizedProps,h=o.value,Le(Sl,r._currentValue),r._currentValue=h,c!==null)if(Ot(c.value,h)){if(c.children===o.children&&!pt.current){t=hn(e,t,s);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var g=c.dependencies;if(g!==null){h=c.child;for(var y=g.firstContext;y!==null;){if(y.context===r){if(c.tag===1){y=dn(-1,s&-s),y.tag=2;var T=c.updateQueue;if(T!==null){T=T.shared;var O=T.pending;O===null?y.next=y:(y.next=O.next,O.next=y),T.pending=y}}c.lanes|=s,y=c.alternate,y!==null&&(y.lanes|=s),ii(c.return,s,t),g.lanes|=s;break}y=y.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(i(341));h.lanes|=s,g=h.alternate,g!==null&&(g.lanes|=s),ii(h,s,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}dt(e,t,o.children,s),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Is(t,s),o=It(o),r=r(o),t.flags|=1,dt(e,t,r,s),t.child;case 14:return r=t.type,o=Ut(r,t.pendingProps),o=Ut(r.type,o),Su(e,t,r,o,s);case 15:return ku(e,t,t.type,t.pendingProps,s);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),Al(e,t),t.tag=1,xt(r)?(e=!0,yl(t)):e=!1,Is(t,s),gu(t,r,o),Ni(t,r,o,s),Ci(null,t,r,!0,e,s);case 19:return Du(e,t,s);case 22:return Cu(e,t,s)}throw Error(i(156,t.tag))};function rd(e,t){return Aa(e,t)}function Kf(e,t,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,s,r){return new Kf(e,t,s,r)}function Qi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jf(e){if(typeof e=="function")return Qi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===he)return 11;if(e===Ee)return 14}return 2}function $n(e,t){var s=e.alternate;return s===null?(s=Dt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Kl(e,t,s,r,o,c){var h=2;if(r=e,typeof e=="function")Qi(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case ge:return rs(s.children,o,c,t);case ue:h=8,o|=8;break;case I:return e=Dt(12,s,t,o|2),e.elementType=I,e.lanes=c,e;case q:return e=Dt(13,s,t,o),e.elementType=q,e.lanes=c,e;case re:return e=Dt(19,s,t,o),e.elementType=re,e.lanes=c,e;case fe:return Jl(s,o,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:h=10;break e;case X:h=9;break e;case he:h=11;break e;case Ee:h=14;break e;case z:h=16,r=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Dt(h,s,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function rs(e,t,s,r){return e=Dt(7,e,r,t),e.lanes=s,e}function Jl(e,t,s,r){return e=Dt(22,e,r,t),e.elementType=fe,e.lanes=s,e.stateNode={isHidden:!1},e}function Ki(e,t,s){return e=Dt(6,e,null,t),e.lanes=s,e}function Ji(e,t,s){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xf(e,t,s,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jo(0),this.expirationTimes=jo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xi(e,t,s,r,o,c,h,g,y){return e=new Xf(e,t,s,g,y),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Dt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ci(c),e}function Gf(e,t,s){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),na.exports=hm(),na.exports}var vd;function fm(){if(vd)return no;vd=1;var a=Ad();return no.createRoot=a.createRoot,no.hydrateRoot=a.hydrateRoot,no}var mm=fm();const pm=$d(mm);Ad();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Or(){return Or=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Od(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function gm(){return Math.random().toString(36).substr(2,8)}function wd(a,l){return{usr:a.state,key:a.key,idx:l}}function ua(a,l,i,u){return i===void 0&&(i=null),Or({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?Bs(l):l,{state:i,key:l&&l.key||u||gm()})}function ro(a){let{pathname:l="/",search:i="",hash:u=""}=a;return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Bs(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substr(i),a=a.substr(0,i));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function vm(a,l,i,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,v=An.Pop,p=null,j=S();j==null&&(j=0,m.replaceState(Or({},m.state,{idx:j}),""));function S(){return(m.state||{idx:null}).idx}function C(){v=An.Pop;let P=S(),D=P==null?null:P-j;j=P,p&&p({action:v,location:H.location,delta:D})}function M(P,D){v=An.Push;let V=ua(H.location,P,D);j=S()+1;let Q=wd(V,j),Y=H.createHref(V);try{m.pushState(Q,"",Y)}catch(oe){if(oe instanceof DOMException&&oe.name==="DataCloneError")throw oe;d.location.assign(Y)}f&&p&&p({action:v,location:H.location,delta:1})}function B(P,D){v=An.Replace;let V=ua(H.location,P,D);j=S();let Q=wd(V,j),Y=H.createHref(V);m.replaceState(Q,"",Y),f&&p&&p({action:v,location:H.location,delta:0})}function J(P){let D=d.location.origin!=="null"?d.location.origin:d.location.href,V=typeof P=="string"?P:ro(P);return V=V.replace(/ $/,"%20"),qe(D,"No window.location.(origin|href) available to create URL for href: "+V),new URL(V,D)}let H={get action(){return v},get location(){return a(d,m)},listen(P){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(yd,C),p=P,()=>{d.removeEventListener(yd,C),p=null}},createHref(P){return l(d,P)},createURL:J,encodeLocation(P){let D=J(P);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:M,replace:B,go(P){return m.go(P)}};return H}var bd;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(bd||(bd={}));function ym(a,l,i){return i===void 0&&(i="/"),wm(a,l,i)}function wm(a,l,i,u){let d=typeof l=="string"?Bs(l):l,f=va(d.pathname||"/",i);if(f==null)return null;let m=zd(a);bm(m);let v=null,p=Lm(f);for(let j=0;v==null&&j{let p={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(qe(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=On([u,p.relativePath]),S=i.concat(p);f.children&&f.children.length>0&&(qe(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),zd(f.children,l,S,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:Em(j,f.index),routesMeta:S})};return a.forEach((f,m)=>{var v;if(f.path===""||!((v=f.path)!=null&&v.includes("?")))d(f,m);else for(let p of Ud(f.path))d(f,m,p)}),l}function Ud(a){let l=a.split("/");if(l.length===0)return[];let[i,...u]=l,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Ud(u.join("/")),v=[];return v.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&v.push(...m),v.map(p=>a.startsWith("/")&&p===""?"/":p)}function bm(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:Tm(l.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}const jm=/^:[\w-]+$/,Nm=3,_m=2,Sm=1,km=10,Cm=-2,jd=a=>a==="*";function Em(a,l){let i=a.split("/"),u=i.length;return i.some(jd)&&(u+=Cm),l&&(u+=_m),i.filter(d=>!jd(d)).reduce((d,f)=>d+(jm.test(f)?Nm:f===""?Sm:km),u)}function Tm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function Pm(a,l,i){let{routesMeta:u}=a,d={},f="/",m=[];for(let v=0;v{let{paramName:M,isOptional:B}=S;if(M==="*"){let H=v[C]||"";m=f.slice(0,f.length-H.length).replace(/(.)\/+$/,"$1")}const J=v[C];return B&&!J?j[M]=void 0:j[M]=(J||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function Rm(a,l,i){l===void 0&&(l=!1),i===void 0&&(i=!0),Od(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,v,p)=>(u.push({paramName:v,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function Lm(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Od(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function va(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,u=a.charAt(i);return u&&u!=="/"?null:a.slice(i)||"/"}function Dm(a,l){l===void 0&&(l="/");let{pathname:i,search:u="",hash:d=""}=typeof a=="string"?Bs(a):a,f;return i?(i=Fd(i),i.startsWith("/")?f=Nd(i.substring(1),"/"):f=Nd(i,l)):f=l,{pathname:f,search:Am(u),hash:Om(d)}}function Nd(a,l){let i=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function la(a,l,i,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $m(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function ya(a,l){let i=$m(a);return l?i.map((u,d)=>d===i.length-1?u.pathname:u.pathnameBase):i.map(u=>u.pathnameBase)}function wa(a,l,i,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=Bs(a):(d=Or({},a),qe(!d.pathname||!d.pathname.includes("?"),la("?","pathname","search",d)),qe(!d.pathname||!d.pathname.includes("#"),la("#","pathname","hash",d)),qe(!d.search||!d.search.includes("#"),la("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,v;if(m==null)v=i;else{let C=l.length-1;if(!u&&m.startsWith("..")){let M=m.split("/");for(;M[0]==="..";)M.shift(),C-=1;d.pathname=M.join("/")}v=C>=0?l[C]:"/"}let p=Dm(d,v),j=m&&m!=="/"&&m.endsWith("/"),S=(f||m===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(j||S)&&(p.pathname+="/"),p}const Fd=a=>a.replace(/\/\/+/g,"/"),On=a=>Fd(a.join("/")),Mm=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Am=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Om=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function zm(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const Bd=["post","put","patch","delete"];new Set(Bd);const Um=["get",...Bd];new Set(Um);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function zr(){return zr=Object.assign?Object.assign.bind():function(a){for(var l=1;l{v.current=!0}),x.useCallback(function(j,S){if(S===void 0&&(S={}),!v.current)return;if(typeof j=="number"){u.go(j);return}let C=wa(j,JSON.parse(m),f,S.relative==="path");a==null&&l!=="/"&&(C.pathname=C.pathname==="/"?l:On([l,C.pathname])),(S.replace?u.replace:u.push)(C,S.state,S)},[l,u,m,f,a])}const Wm=x.createContext(null);function Vm(a){let l=x.useContext(pn).outlet;return l&&x.createElement(Wm.Provider,{value:a},l)}function Vd(a,l){let{relative:i}=l===void 0?{}:l,{future:u}=x.useContext(Bn),{matches:d}=x.useContext(pn),{pathname:f}=ds(),m=JSON.stringify(ya(d,u.v7_relativeSplatPath));return x.useMemo(()=>wa(a,JSON.parse(m),f,i==="path"),[a,m,f,i])}function qm(a,l){return Qm(a,l)}function Qm(a,l,i,u){Hs()||qe(!1);let{navigator:d}=x.useContext(Bn),{matches:f}=x.useContext(pn),m=f[f.length-1],v=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=ds(),S;if(l){var C;let P=typeof l=="string"?Bs(l):l;p==="/"||(C=P.pathname)!=null&&C.startsWith(p)||qe(!1),S=P}else S=j;let M=S.pathname||"/",B=M;if(p!=="/"){let P=p.replace(/^\//,"").split("/");B="/"+M.replace(/^\//,"").split("/").slice(P.length).join("/")}let J=ym(a,{pathname:B}),H=Ym(J&&J.map(P=>Object.assign({},P,{params:Object.assign({},v,P.params),pathname:On([p,d.encodeLocation?d.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?p:On([p,d.encodeLocation?d.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),f,i,u);return l&&H?x.createElement(uo.Provider,{value:{location:zr({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:An.Pop}},H):H}function Km(){let a=np(),l=zm(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},l),i?x.createElement("pre",{style:d},i):null,null)}const Jm=x.createElement(Km,null);class Xm extends x.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){console.error("React Router caught the following error during render",l,i)}render(){return this.state.error!==void 0?x.createElement(pn.Provider,{value:this.props.routeContext},x.createElement(Hd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gm(a){let{routeContext:l,match:i,children:u}=a,d=x.useContext(ba);return d&&d.static&&d.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement(pn.Provider,{value:l},u)}function Ym(a,l,i,u){var d;if(l===void 0&&(l=[]),i===void 0&&(i=null),u===void 0&&(u=null),a==null){var f;if(!i)return null;if(i.errors)a=i.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let m=a,v=(d=i)==null?void 0:d.errors;if(v!=null){let S=m.findIndex(C=>C.route.id&&(v==null?void 0:v[C.route.id])!==void 0);S>=0||qe(!1),m=m.slice(0,Math.min(m.length,S+1))}let p=!1,j=-1;if(i&&u&&u.v7_partialHydration)for(let S=0;S=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((S,C,M)=>{let B,J=!1,H=null,P=null;i&&(B=v&&C.route.id?v[C.route.id]:void 0,H=C.route.errorElement||Jm,p&&(j<0&&M===0?(rp("route-fallback"),J=!0,P=null):j===M&&(J=!0,P=C.route.hydrateFallbackElement||null)));let D=l.concat(m.slice(0,M+1)),V=()=>{let Q;return B?Q=H:J?Q=P:C.route.Component?Q=x.createElement(C.route.Component,null):C.route.element?Q=C.route.element:Q=S,x.createElement(Gm,{match:C,routeContext:{outlet:S,matches:D,isDataRoute:i!=null},children:Q})};return i&&(C.route.ErrorBoundary||C.route.errorElement||M===0)?x.createElement(Xm,{location:i.location,revalidation:i.revalidation,component:H,error:B,children:V(),routeContext:{outlet:null,matches:D,isDataRoute:!0}}):V()},null)}var qd=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(qd||{}),Qd=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(Qd||{});function Zm(a){let l=x.useContext(ba);return l||qe(!1),l}function ep(a){let l=x.useContext(Fm);return l||qe(!1),l}function tp(a){let l=x.useContext(pn);return l||qe(!1),l}function Kd(a){let l=tp(),i=l.matches[l.matches.length-1];return i.route.id||qe(!1),i.route.id}function np(){var a;let l=x.useContext(Hd),i=ep(),u=Kd();return l!==void 0?l:(a=i.errors)==null?void 0:a[u]}function sp(){let{router:a}=Zm(qd.UseNavigateStable),l=Kd(Qd.UseNavigateStable),i=x.useRef(!1);return Wd(()=>{i.current=!0}),x.useCallback(function(d,f){f===void 0&&(f={}),i.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,zr({fromRouteId:l},f)))},[a,l])}const _d={};function rp(a,l,i){_d[a]||(_d[a]=!0)}function lp(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Yt(a){let{to:l,replace:i,state:u,relative:d}=a;Hs()||qe(!1);let{future:f,static:m}=x.useContext(Bn),{matches:v}=x.useContext(pn),{pathname:p}=ds(),j=ho(),S=wa(l,ya(v,f.v7_relativeSplatPath),p,d==="path"),C=JSON.stringify(S);return x.useEffect(()=>j(JSON.parse(C),{replace:i,state:u,relative:d}),[j,C,d,i,u]),null}function Jd(a){return Vm(a.context)}function Je(a){qe(!1)}function op(a){let{basename:l="/",children:i=null,location:u,navigationType:d=An.Pop,navigator:f,static:m=!1,future:v}=a;Hs()&&qe(!1);let p=l.replace(/^\/*/,"/"),j=x.useMemo(()=>({basename:p,navigator:f,static:m,future:zr({v7_relativeSplatPath:!1},v)}),[p,v,f,m]);typeof u=="string"&&(u=Bs(u));let{pathname:S="/",search:C="",hash:M="",state:B=null,key:J="default"}=u,H=x.useMemo(()=>{let P=va(S,p);return P==null?null:{location:{pathname:P,search:C,hash:M,state:B,key:J},navigationType:d}},[p,S,C,M,B,J,d]);return H==null?null:x.createElement(Bn.Provider,{value:j},x.createElement(uo.Provider,{children:i,value:H}))}function ip(a){let{children:l,location:i}=a;return qm(da(l),i)}new Promise(()=>{});function da(a,l){l===void 0&&(l=[]);let i=[];return x.Children.forEach(a,(u,d)=>{if(!x.isValidElement(u))return;let f=[...l,d];if(u.type===x.Fragment){i.push.apply(i,da(u.props.children,f));return}u.type!==Je&&qe(!1),!u.props.index||!u.props.children||qe(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=da(u.props.children,f)),i.push(m)}),i}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ha(){return ha=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[i];return l.concat(Array.isArray(u)?u.map(d=>[i,d]):[[i,u]])},[]))}function dp(a,l){let i=fa(a);return l&&l.forEach((u,d)=>{i.has(d)||l.getAll(d).forEach(f=>{i.append(d,f)})}),i}const hp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fp="6";try{window.__reactRouterVersion=fp}catch{}const mp="startTransition",Sd=cm[mp];function pp(a){let{basename:l,children:i,future:u,window:d}=a,f=x.useRef();f.current==null&&(f.current=xm({window:d,v5Compat:!0}));let m=f.current,[v,p]=x.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},S=x.useCallback(C=>{j&&Sd?Sd(()=>p(C)):p(C)},[p,j]);return x.useLayoutEffect(()=>m.listen(S),[m,S]),x.useEffect(()=>lp(u),[u]),x.createElement(op,{basename:l,children:i,location:v.location,navigationType:v.action,navigator:m,future:u})}const xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=x.forwardRef(function(l,i){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:v,target:p,to:j,preventScrollReset:S,viewTransition:C}=l,M=ap(l,hp),{basename:B}=x.useContext(Bn),J,H=!1;if(typeof j=="string"&&gp.test(j)&&(J=j,xp))try{let Q=new URL(window.location.href),Y=j.startsWith("//")?new URL(Q.protocol+j):new URL(j),oe=va(Y.pathname,B);Y.origin===Q.origin&&oe!=null?j=oe+Y.search+Y.hash:H=!0}catch{}let P=Bm(j,{relative:d}),D=vp(j,{replace:m,state:v,target:p,preventScrollReset:S,relative:d,viewTransition:C});function V(Q){u&&u(Q),Q.defaultPrevented||D(Q)}return x.createElement("a",ha({},M,{href:J||P,onClick:H||f?u:V,ref:i,target:p}))});var kd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(kd||(kd={}));var Cd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(Cd||(Cd={}));function vp(a,l){let{target:i,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:v}=l===void 0?{}:l,p=ho(),j=ds(),S=Vd(a,{relative:m});return x.useCallback(C=>{if(up(C,i)){C.preventDefault();let M=u!==void 0?u:ro(j)===ro(S);p(a,{replace:M,state:d,preventScrollReset:f,relative:m,viewTransition:v})}},[j,p,S,u,d,i,a,f,m,v])}function yp(a){let l=x.useRef(fa(a)),i=x.useRef(!1),u=ds(),d=x.useMemo(()=>dp(u.search,i.current?null:l.current),[u.search]),f=ho(),m=x.useCallback((v,p)=>{const j=fa(typeof v=="function"?v(d):v);i.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class wp{constructor(){wt(this,"listeners",new Set);wt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(i=>{try{i(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const Os=new wp,Xd="/api";function as(){return localStorage.getItem("classnotify_token")}function bp(a){localStorage.setItem("classnotify_token",a)}function $r(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function Ne(a,l={}){const i=as(),u={"Content-Type":"application/json",...l.headers};i&&(u.Authorization=`Bearer ${i}`);const d=await fetch(`${Xd}${a}`,{...l,headers:u});if(d.status===401)throw $r(),Os.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const le={login:(a,l)=>Ne("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>Ne("/auth/me"),getAdminMetrics:()=>Ne("/admin/metrics"),getTenants:()=>Ne("/admin/tenants"),getAllDevices:()=>Ne("/admin/devices"),sendDeviceCommand:(a,l,i)=>Ne(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:i})}),getAdminActivationCodes:()=>Ne("/admin/activation-codes"),getAdminClasses:a=>Ne(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>Ne(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>Ne(`/admin/notifications?limit=${a}`),createTenant:a=>Ne("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>Ne(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const i=new URLSearchParams;a&&i.append("tenantId",a),l&&i.append("role",l);const u=i.toString();return Ne(`/admin/users${u?`?${u}`:""}`)},createUser:a=>Ne("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>Ne(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>Ne(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>Ne(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>Ne(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>Ne(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>Ne(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>Ne("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getBroadcastReceiptSummary:a=>Ne(`/admin/broadcasts/${encodeURIComponent(a)}/receipt-summary`),getSystemHealth:()=>Ne("/admin/system/health"),getAuditLogs:(a=100)=>Ne(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>Ne("/school-admin/overview"),getSchoolClasses:()=>Ne("/school-admin/classes"),createSchoolClass:a=>Ne("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>Ne("/school-admin/teachers"),createSchoolTeacher:a=>Ne("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),resetSchoolTeacherPassword:(a,l)=>Ne(`/school-admin/teachers/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(a,l)=>Ne(`/school-admin/teachers/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>Ne("/school-admin/devices"),getSchoolCodes:()=>Ne("/school-admin/activation-codes"),generateSchoolCode:a=>Ne(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>Ne("/notification/classes"),sendNotification:a=>Ne("/notification/send",{method:"POST",body:JSON.stringify(a)}),cancelNotification:a=>Ne(`/notifications/${encodeURIComponent(a)}/cancel`,{method:"POST"}),getTeacherHistory:(a,l=50)=>Ne(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`),getVisualReceiptBlob:async(a,l)=>{const i=as(),u=await fetch(`${Xd}/notifications/${encodeURIComponent(a)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:i?{Authorization:`Bearer ${i}`}:{}});if(u.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(u.status===404)throw new Error("未找到该通知的视觉回执");if(!u.ok)throw new Error(`获取视觉回执失败 (${u.status})`);return u.blob()}};class os extends Error{constructor(l,i){const u=new.target.prototype;super(`${l}: Status code '${i}'`),this.statusCode=i,this.__proto__=u}}class ja extends Error{constructor(l="A timeout occurred."){const i=new.target.prototype;super(l),this.__proto__=i}}class Wt extends Error{constructor(l="An abort occurred."){const i=new.target.prototype;super(l),this.__proto__=i}}class jp extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="UnsupportedTransportError",this.__proto__=u}}class Np extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="DisabledTransportError",this.__proto__=u}}class _p extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="FailedToStartTransportError",this.__proto__=u}}class Ed extends Error{constructor(l){const i=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=i}}class Sp extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.innerErrors=i,this.__proto__=u}}class Gd{constructor(l,i,u){this.statusCode=l,this.statusText=i,this.content=u}}class fo{get(l,i){return this.send({...i,method:"GET",url:l})}post(l,i){return this.send({...i,method:"POST",url:l})}delete(l,i){return this.send({...i,method:"DELETE",url:l})}getCookieString(l){return""}}var R;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(R||(R={}));class Ur{constructor(){}log(l,i){}}Ur.instance=new Ur;const kp="8.0.29";class Xe{static isRequired(l,i){if(l==null)throw new Error(`The '${i}' argument is required.`)}static isNotEmpty(l,i){if(!l||l.match(/^\s*$/))throw new Error(`The '${i}' argument should not be empty.`)}static isIn(l,i,u){if(!(l in i))throw new Error(`Unknown ${u} value: ${l}.`)}}class Ue{static get isBrowser(){return!Ue.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Ue.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Ue.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Fr(a,l){let i="";return cs(a)?(i=`Binary data of length ${a.byteLength}`,l&&(i+=`. Content: '${Cp(a)}'`)):typeof a=="string"&&(i=`String data of length ${a.length}`,l&&(i+=`. Content: '${a}'`)),i}function Cp(a){const l=new Uint8Array(a);let i="";return l.forEach(u=>{const d=u<16?"0":"";i+=`0x${d}${u.toString(16)} `}),i.substr(0,i.length-1)}function cs(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Yd(a,l,i,u,d,f){const m={},[v,p]=Us();m[v]=p,a.log(R.Trace,`(${l} transport) sending data. ${Fr(d,f.logMessageContent)}.`);const j=cs(d)?"arraybuffer":"text",S=await i.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(R.Trace,`(${l} transport) request complete. Response status: ${S.statusCode}.`)}function Ep(a){return a===void 0?new lo(R.Information):a===null?Ur.instance:a.log!==void 0?a:new lo(a)}class Tp{constructor(l,i){this._subject=l,this._observer=i}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(i=>{})}}class lo{constructor(l){this._minLevel=l,this.out=console}log(l,i){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${R[l]}: ${i}`;switch(l){case R.Critical:case R.Error:this.out.error(u);break;case R.Warning:this.out.warn(u);break;case R.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function Us(){let a="X-SignalR-User-Agent";return Ue.isNode&&(a="User-Agent"),[a,Pp(kp,Ip(),Lp(),Rp())]}function Pp(a,l,i,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${i}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function Ip(){if(Ue.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function Rp(){if(Ue.isNode)return process.versions.node}function Lp(){return Ue.isNode?"NodeJS":"Browser"}function oa(a){return a.stack?a.stack:a.message?a.message:`${a}`}function Dp(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class $p extends fo{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||Ue.isNode){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(i("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=i("node-fetch"):this._fetchType=fetch,this._fetchType=i("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Dp());if(typeof AbortController>"u"){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=i("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new Wt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const i=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{i.abort(),u=new Wt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{i.abort(),this._logger.log(R.Warning,"Timeout from HTTP request."),u=new ja},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},cs(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:i.signal})}catch(p){throw u||(this._logger.log(R.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await Td(f,"text");throw new os(p||f.statusText,f.status)}const v=await Td(f,l.responseType);return new Gd(f.status,f.statusText,v)}getCookieString(l){let i="";return Ue.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>i=d.join("; ")),i}}function Td(a,l){let i;switch(l){case"arraybuffer":i=a.arrayBuffer();break;case"text":i=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:i=a.text();break}return i}class Mp extends fo{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Wt):l.method?l.url?new Promise((i,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(cs(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new Wt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?i(new Gd(d.status,d.statusText,d.response||d.responseText)):u(new os(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(R.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new os(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(R.Warning,"Timeout from HTTP request."),u(new ja)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Ap extends fo{constructor(l){if(super(),typeof fetch<"u"||Ue.isNode)this._httpClient=new $p(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Mp(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Wt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class Ct{static write(l){return`${l}${Ct.RecordSeparator}`}static parse(l){if(l[l.length-1]!==Ct.RecordSeparator)throw new Error("Message is incomplete.");const i=l.split(Ct.RecordSeparator);return i.pop(),i}}Ct.RecordSeparatorCode=30;Ct.RecordSeparator=String.fromCharCode(Ct.RecordSeparatorCode);class Op{writeHandshakeRequest(l){return Ct.write(JSON.stringify(l))}parseHandshakeResponse(l){let i,u;if(cs(l)){const v=new Uint8Array(l),p=v.indexOf(Ct.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;i=String.fromCharCode.apply(null,Array.prototype.slice.call(v.slice(0,j))),u=v.byteLength>j?v.slice(j).buffer:null}else{const v=l,p=v.indexOf(Ct.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;i=v.substring(0,j),u=v.length>j?v.substring(j):null}const d=Ct.parse(i),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var ye;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(ye||(ye={}));class zp{constructor(){this.observers=[]}next(l){for(const i of this.observers)i.next(l)}error(l){for(const i of this.observers)i.error&&i.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new Tp(this,l)}}class Up{constructor(l,i,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=i,this._bufferSize=u}async _send(l){const i=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};cs(i)?this._bufferedByteCount+=i.byteLength:this._bufferedByteCount+=i.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,v)=>{d=m,f=v})),this._messages.push(new Fp(i,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(i)}catch{this._disconnected()}await u}_ack(l){let i=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:ye.Sequence,sequenceId:l}));const i=this._messages;for(const u of i)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const i of this._messages)i._rejector(l)}_isInvocationMessage(l){switch(l.type){case ye.Invocation:case ye.StreamItem:case ye.Completion:case ye.StreamInvocation:case ye.CancelInvocation:return!0;case ye.Close:case ye.Sequence:case ye.Ping:case ye.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:ye.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Fp{constructor(l,i,u,d){this._message=l,this._id=i,this._resolver=u,this._rejector=d}}const Bp=30*1e3,Hp=15*1e3,Wp=1e5;var Ie;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(Ie||(Ie={}));class Na{static create(l,i,u,d,f,m,v){return new Na(l,i,u,d,f,m,v)}constructor(l,i,u,d,f,m,v){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(R.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Xe.isRequired(l,"connection"),Xe.isRequired(i,"logger"),Xe.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Bp,this.keepAliveIntervalInMilliseconds=m??Hp,this._statefulReconnectBufferSize=v??Wp,this._logger=i,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Op,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:ye.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==Ie.Disconnected&&this._connectionState!==Ie.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ie.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ie.Connecting,this._logger.log(R.Debug,"Starting HubConnection.");try{await this._startInternal(),Ue.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ie.Connected,this._connectionStarted=!0,this._logger.log(R.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=Ie.Disconnected,this._logger.log(R.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((i,u)=>{this._handshakeResolver=i,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let i=this._protocol.version;this.connection.features.reconnect||(i=1);const u={protocol:this._protocol.name,version:i};if(this._logger.log(R.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(R.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Up(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(i){throw this._logger.log(R.Debug,`Hub handshake failed with error '${i}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(i),i}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===Ie.Disconnected)return this._logger.log(R.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ie.Disconnecting)return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const i=this._connectionState;return this._connectionState=Ie.Disconnecting,this._logger.log(R.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(R.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(i===Ie.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new Wt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._createStreamInvocation(l,i,d);let m;const v=new zp;return v.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){v.error(j);return}else p&&(p.type===ye.Completion?p.error?v.error(new Error(p.error)):v.complete():v.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{v.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),v}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._sendWithProtocol(this._createInvocation(l,i,!0,d));return this._launchStreams(u,f),f}invoke(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._createInvocation(l,i,!1,d);return new Promise((v,p)=>{this._callbacks[f.invocationId]=(S,C)=>{if(C){p(C);return}else S&&(S.type===ye.Completion?S.error?p(new Error(S.error)):v(S.result):p(new Error(`Unexpected message type: ${S.type}`)))};const j=this._sendWithProtocol(f).catch(S=>{p(S),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,i){!l||!i||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(i)===-1&&this._methods[l].push(i))}off(l,i){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(i){const d=u.indexOf(i);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const i=this._protocol.parseMessages(l,this._logger);for(const u of i)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case ye.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(R.Error,`Invoke client method threw error: ${oa(d)}`)});break;case ye.StreamItem:case ye.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===ye.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(R.Error,`Stream callback threw error: ${oa(f)}`)}}break}case ye.Ping:break;case ye.Close:{this._logger.log(R.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case ye.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case ye.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(R.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let i,u;try{[u,i]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(R.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(i.error){const d="Server returned handshake error: "+i.error;this._logger.log(R.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(R.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ie.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const i=l.target.toLowerCase(),u=this._methods[i];if(!u){this._logger.log(R.Warning,`No client method with the name '${i}' found.`),l.invocationId&&(this._logger.log(R.Warning,`No result given for '${i}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,v,p;for(const j of d)try{const S=m;m=await j.apply(this,l.arguments),f&&m&&S&&(this._logger.log(R.Error,`Multiple results provided for '${i}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),v=void 0}catch(S){v=S,this._logger.log(R.Error,`A callback for the method '${i}' threw error '${S}'.`)}p?await this._sendWithProtocol(p):f?(v?p=this._createCompletionMessage(l.invocationId,`${v}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(R.Warning,`No result given for '${i}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(R.Error,`Result given for '${i}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(R.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new Wt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ie.Disconnecting?this._completeClose(l):this._connectionState===Ie.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===Ie.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),Ue.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(i=>i.apply(this,[l]))}catch(i){this._logger.log(R.Error,`An onclose callback called with error '${l}' threw error '${i}'.`)}}}async _reconnect(l){const i=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(R.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=Ie.Reconnecting,l?this._logger.log(R.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(R.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(R.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==Ie.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(R.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ie.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ie.Connected,this._logger.log(R.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(R.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(R.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==Ie.Reconnecting){this._logger.log(R.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ie.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-i,d)}}this._logger.log(R.Information,`Reconnect retries have been exhausted after ${Date.now()-i} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,i,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:i,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(R.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${i}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const i=this._callbacks;this._callbacks={},Object.keys(i).forEach(u=>{const d=i[u];try{d(null,l)}catch(f){this._logger.log(R.Error,`Stream 'error' callback called with '${l}' threw error: ${oa(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,i,u,d){if(u)return d.length!==0?{arguments:i,streamIds:d,target:l,type:ye.Invocation}:{arguments:i,target:l,type:ye.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:i,invocationId:f.toString(),streamIds:d,target:l,type:ye.Invocation}:{arguments:i,invocationId:f.toString(),target:l,type:ye.Invocation}}}_launchStreams(l,i){if(l.length!==0){i||(i=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{i=i.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const i=[],u=[];for(let d=0;d0)&&(i=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return i&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[is.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[is.Authorization]&&delete l.headers[is.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Ze;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Ze||(Ze={}));var ut;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(ut||(ut={}));let Qp=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Id{get pollAborted(){return this._pollAbort.aborted}constructor(l,i,u){this._httpClient=l,this._logger=i,this._pollAbort=new Qp,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,i){if(Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._url=l,this._logger.log(R.Trace,"(LongPolling transport) Connecting."),i===ut.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=Us(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};i===ut.Binary&&(m.responseType="arraybuffer");const v=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${v}.`);const p=await this._httpClient.get(v,m);p.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new os(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,i){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,i);d.statusCode===204?(this._logger.log(R.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new os(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(R.Trace,`(LongPolling transport) data received. ${Fr(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof ja?this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(R.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(R.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Yd(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(R.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(R.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[i,u]=Us();l[i]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof os&&(f.statusCode===404?this._logger.log(R.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(R.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(R.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(R.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(R.Trace,l),this.onclose(this._closeError)}}}class Kp{constructor(l,i,u,d){this._httpClient=l,this._accessToken=i,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,i){return Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._logger.log(R.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(i!==ut.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(Ue.isBrowser||Ue.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const v=this._httpClient.getCookieString(l),p={};p.Cookie=v;const[j,S]=Us();p[j]=S,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=v=>{if(this.onreceive)try{this._logger.log(R.Trace,`(SSE transport) data received. ${Fr(v.data,this._options.logMessageContent)}.`),this.onreceive(v.data)}catch(p){this._close(p);return}},m.onerror=v=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(R.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(v){d(v);return}})}async send(l){return this._eventSource?Yd(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Jp{constructor(l,i,u,d,f,m){this._logger=u,this._accessTokenFactory=i,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,i){Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._logger.log(R.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const v=this._httpClient.getCookieString(l);let p=!1;if(Ue.isNode||Ue.isReactNative){const j={},[S,C]=Us();j[S]=C,u&&(j[is.Authorization]=`Bearer ${u}`),v&&(j[is.Cookie]=v),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),i===ut.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(R.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="There was an error with the transport",this._logger.log(R.Information,`(WebSockets transport) ${S}.`)},m.onmessage=j=>{if(this._logger.log(R.Trace,`(WebSockets transport) data received. ${Fr(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(S){this._close(S);return}},m.onclose=j=>{if(p)this._close(j);else{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(S))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(R.Trace,`(WebSockets transport) sending data. ${Fr(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(R.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Rd=100;class Xp{constructor(l,i={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Xe.isRequired(l,"url"),this._logger=Ep(i.logger),this.baseUrl=this._resolveUrl(l),i=i||{},i.logMessageContent=i.logMessageContent===void 0?!1:i.logMessageContent,typeof i.withCredentials=="boolean"||i.withCredentials===void 0)i.withCredentials=i.withCredentials===void 0?!0:i.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");i.timeout=i.timeout===void 0?100*1e3:i.timeout;let u=null,d=null;if(Ue.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!Ue.isNode&&typeof WebSocket<"u"&&!i.WebSocket?i.WebSocket=WebSocket:Ue.isNode&&!i.WebSocket&&u&&(i.WebSocket=u),!Ue.isNode&&typeof EventSource<"u"&&!i.EventSource?i.EventSource=EventSource:Ue.isNode&&!i.EventSource&&typeof d<"u"&&(i.EventSource=d),this._httpClient=new qp(i.httpClient||new Ap(this._logger),i.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=i,this.onreceive=null,this.onclose=null}async start(l){if(l=l||ut.Binary,Xe.isIn(l,ut,"transferFormat"),this._logger.log(R.Debug,`Starting connection with transfer format '${ut[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const i="Failed to start the HttpConnection before stop() was called.";return this._logger.log(R.Error,i),await this._stopPromise,Promise.reject(new Wt(i))}else if(this._connectionState!=="Connected"){const i="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(R.Error,i),Promise.reject(new Wt(i))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new _a(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(i=>{this._stopPromiseResolver=i}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(i){this._logger.log(R.Error,`HttpConnection.transport.stop() threw error '${i}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(R.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let i=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Ze.WebSockets)this.transport=this._constructTransport(Ze.WebSockets),await this._startTransport(i,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(i),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Wt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(i=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new Sp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Ze.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Jp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Ze.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Kp(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Ze.LongPolling:return new Id(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,i){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,i),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,i)}_resolveTransportOrError(l,i,u,d){const f=Ze[l.transport];if(f==null)return this._logger.log(R.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Gp(i,f))if(l.transferFormats.map(v=>ut[v]).indexOf(u)>=0){if(f===Ze.WebSockets&&!this._options.WebSocket||f===Ze.ServerSentEvents&&!this._options.EventSource)return this._logger.log(R.Debug,`Skipping transport '${Ze[f]}' because it is not supported in your environment.'`),new jp(`'${Ze[f]}' is not supported in your environment.`,f);this._logger.log(R.Debug,`Selecting transport '${Ze[f]}'.`);try{return this.features.reconnect=f===Ze.WebSockets?d:void 0,this._constructTransport(f)}catch(v){return v}}else return this._logger.log(R.Debug,`Skipping transport '${Ze[f]}' because it does not support the requested transfer format '${ut[u]}'.`),new Error(`'${Ze[f]}' does not support ${ut[u]}.`);else return this._logger.log(R.Debug,`Skipping transport '${Ze[f]}' because it was disabled by the client.`),new Np(`'${Ze[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(R.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(R.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(R.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(R.Error,`Connection disconnected with error '${l}'.`):this._logger.log(R.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(i=>{this._logger.log(R.Error,`TransportSendQueue.stop() threw error '${i}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(i){this._logger.log(R.Error,`HttpConnection.onclose(${l}) threw error '${i}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!Ue.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const i=window.document.createElement("a");return i.href=l,this._logger.log(R.Information,`Normalizing '${l}' to '${i.href}'.`),i.href}_resolveNegotiateUrl(l){const i=new URL(l);i.pathname.endsWith("/")?i.pathname+="negotiate":i.pathname+="/negotiate";const u=new URLSearchParams(i.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),i.search=u.toString(),i.toString()}}function Gp(a,l){return!a||(l&a)!==0}class _a{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new so,this._transportResult=new so,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new so),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new so;const l=this._transportResult;this._transportResult=void 0;const i=typeof this._buffer[0]=="string"?this._buffer.join(""):_a._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(i),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const i=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(i);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class so{constructor(){this.promise=new Promise((l,i)=>[this._resolver,this._rejecter]=[l,i])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Yp="json";class Zp{constructor(){this.name=Yp,this.version=2,this.transferFormat=ut.Text}parseMessages(l,i){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];i===null&&(i=Ur.instance);const u=Ct.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case ye.Invocation:this._isInvocationMessage(m);break;case ye.StreamItem:this._isStreamItemMessage(m);break;case ye.Completion:this._isCompletionMessage(m);break;case ye.Ping:break;case ye.Close:break;case ye.Ack:this._isAckMessage(m);break;case ye.Sequence:this._isSequenceMessage(m);break;default:i.log(R.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return Ct.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,i){if(typeof l!="string"||l==="")throw new Error(i)}}const e0={trace:R.Trace,debug:R.Debug,info:R.Information,information:R.Information,warn:R.Warning,warning:R.Warning,error:R.Error,critical:R.Critical,none:R.None};function t0(a){const l=e0[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class n0{configureLogging(l){if(Xe.isRequired(l,"logging"),s0(l))this.logger=l;else if(typeof l=="string"){const i=t0(l);this.logger=new lo(i)}else this.logger=new lo(l);return this}withUrl(l,i){return Xe.isRequired(l,"url"),Xe.isNotEmpty(l,"url"),this.url=l,typeof i=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...i}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:i},this}withHubProtocol(l){return Xe.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new Pd(l):this.reconnectPolicy=l:this.reconnectPolicy=new Pd,this}withServerTimeout(l){return Xe.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return Xe.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const i=new Xp(this.url,l);return Na.create(i,this.logger||Ur.instance,this.protocol||new Zp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function s0(a){return a.log!==void 0}class r0{constructor(){wt(this,"connection",null);wt(this,"state","Disconnected");wt(this,"startPromise",null);wt(this,"permanentRetryTimer",null);wt(this,"isAuthenticated",!1);wt(this,"stateListeners",new Set);wt(this,"ackListeners",new Set);wt(this,"deviceStatusListeners",new Set);wt(this,"healthReportListeners",new Set);wt(this,"notificationListeners",new Set);wt(this,"cancelledListeners",new Set);Os.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(i=>i(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var i,u;if(!as()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((i=this.connection)==null?void 0:i.state)===Ie.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===Ie.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===Ie.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new n0().withUrl("/hubs/teacher",{accessTokenFactory:()=>as()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(R.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(i=>i(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(i=>i(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(i=>i(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(i=>i(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(i=>i(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===Ie.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const $t=new r0,Zd=x.createContext(void 0),l0=({children:a})=>{const[l,i]=x.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=x.useState(as()),[f,m]=x.useState(!0);x.useEffect(()=>{const j=Os.subscribe(()=>{$t.stop(),$r(),d(null),i(null)});return()=>j()},[]),x.useEffect(()=>{(async()=>{var C,M;if(as())try{const B=await le.getMe();i(B),localStorage.setItem("classnotify_user",JSON.stringify(B)),Os.reset(),$t.start()}catch(B){((C=B==null?void 0:B.message)!=null&&C.includes("未授权")||(M=B==null?void 0:B.message)!=null&&M.includes("401"))&&($r(),d(null),i(null))}else $r(),i(null),d(null);m(!1)})()},[]);const v=async(j,S)=>{const C=await le.login(j,S);if(!C.success||!C.token||!C.role)throw new Error(C.errorMessage||"登录失败");bp(C.token),d(C.token);const M={userId:C.userId||"",name:C.fullName||j,role:C.role,tenantId:C.tenantId||""};return i(M),localStorage.setItem("classnotify_user",JSON.stringify(M)),Os.reset(),$t.start(),C.role},p=()=>{$t.stop(),$r(),d(null),i(null),Os.reset()};return n.jsx(Zd.Provider,{value:{user:l,token:u,login:v,logout:p,isLoading:f},children:a})},Ws=()=>{const a=x.useContext(Zd);if(!a){let l=null;try{const i=localStorage.getItem("classnotify_user");i&&(l=JSON.parse(i))}catch{}return{user:l,token:as(),login:async()=>"Teacher",logout:()=>{},isLoading:!1}}return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eh=(...a)=>a.filter((l,i,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===i).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var i0={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=x.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...v},p)=>x.createElement("svg",{ref:p,...i0,width:l,height:l,stroke:a,strokeWidth:u?Number(i)*24/Number(l):i,className:eh("lucide",d),...v},[...m.map(([j,S])=>x.createElement(j,S)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.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=(a,l)=>{const i=x.forwardRef(({className:u,...d},f)=>x.createElement(a0,{ref:f,iconNode:l,className:eh(`lucide-${o0(a)}`,u),...d}));return i.displayName=`${a}`,i};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=[["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"}]],mo=ve("Activity",c0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Mr=ve("ArrowRight",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],oo=ve("Bell",d0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Zt=ve("Building2",h0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Br=ve("Check",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ld=ve("ChevronDown",m0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],x0=ve("ChevronRight",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["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"}]],mn=ve("CircleAlert",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vt=ve("CircleCheck",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ma=ve("CircleX",y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Vs=ve("Clock",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],j0=ve("CloudRain",b0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pa=ve("Copy",N0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],S0=ve("Ellipsis",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const k0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],C0=ve("Eye",k0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],T0=ve("Flame",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Hr=ve("GraduationCap",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],xa=ve("History",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jt=ve("KeyRound",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ar=ve("Layers",L0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gt=ve("LoaderCircle",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],th=ve("LockOpen",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],io=ve("Lock",M0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],O0=ve("LogOut",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],U0=ve("Megaphone",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],B0=ve("Menu",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Fs=ve("Monitor",H0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],nh=ve("PenLine",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],us=ve("Plus",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q0=[["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"}]],Wr=ve("Radio",q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Mt=ve("RefreshCw",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],J0=ve("RotateCcw",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const X0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Dd=ve("School",X0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],qs=ve("Search",G0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y0=[["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"}]],ao=ve("Send",Y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],sh=ve("ShieldAlert",Z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ex=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],co=ve("ShieldCheck",ex);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],rh=ve("Sparkles",tx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Sa=ve("Trash2",nx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Un=ve("TriangleAlert",sx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],lh=ve("User",rx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],zs=ve("Users",lx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ox=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],ix=ve("Volume2",ox);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ax=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],zn=ve("X",ax);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ux=ve("ZoomIn",cx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],hx=ve("ZoomOut",dx),fx=()=>{const[a,l]=x.useState($t.getState());return x.useEffect(()=>$t.onStateChange(l),[]),a==="Connected"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"云端正常"]}):a==="Reconnecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400"}),"正在重连…"]}):a==="Connecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-500/10 text-blue-400 border border-blue-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),"正在连接…"]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"云端离线"]})},mx=()=>{const{user:a,logout:l}=Ws(),i=ds(),[u,d]=x.useState(!1);if(x.useEffect(()=>{d(!1)},[i.pathname]),!a)return null;const f=m=>i.pathname===m;return n.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"flex items-center justify-between h-16",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs(be,{to:"/",className:"flex items-center space-x-2.5",children:[n.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:n.jsx(oo,{className:"w-5 h-5 text-white"})}),n.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),n.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(co,{className:"w-3.5 h-3.5 text-amber-400"}),n.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(Dd,{className:"w-3.5 h-3.5 text-sky-400"}),n.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&n.jsxs(n.Fragment,{children:[n.jsx(Hr,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]})]}),n.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(be,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Ar,{className:"w-4 h-4"}),"总览"]}),n.jsxs(be,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Zt,{className:"w-4 h-4"}),"学校租户"]}),n.jsxs(be,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(zs,{className:"w-4 h-4"}),"用户中枢"]}),n.jsxs(be,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Fs,{className:"w-4 h-4"}),"设备集控"]}),n.jsxs(be,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[n.jsx(Wr,{className:"w-4 h-4"}),"应急广播"]}),n.jsxs(be,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),n.jsxs(be,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(xa,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(be,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Dd,{className:"w-4 h-4"}),"学校概览"]}),n.jsxs(be,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Ar,{className:"w-4 h-4"}),"班级管理"]}),n.jsxs(be,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(zs,{className:"w-4 h-4"}),"教师账号"]}),n.jsxs(be,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&n.jsxs(be,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(oo,{className:"w-4 h-4"}),"呼叫与回执"]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"hidden sm:block",children:n.jsx(fx,{})}),n.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),n.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),n.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:n.jsx(O0,{className:"w-4 h-4"})}),n.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?n.jsx(zn,{className:"w-5 h-5"}):n.jsx(B0,{className:"w-5 h-5"})})]})]}),u&&n.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(be,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Ar,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),n.jsx(be,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),n.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),n.jsx(be,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Zt,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),n.jsx(be,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(zs,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),n.jsx(be,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Fs,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),n.jsx(be,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Wr,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),n.jsx(be,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(xa,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(be,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),n.jsx(be,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),n.jsx(be,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),n.jsx(be,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&n.jsx(be,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},ia=({allowedRoles:a,children:l})=>{const{user:i,isLoading:u}=Ws();return u?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):i?a.includes(i.role)?l?n.jsx(n.Fragment,{children:l}):n.jsx(Jd,{}):i.role==="SuperAdmin"?n.jsx(Yt,{to:"/admin",replace:!0}):i.role==="SchoolAdmin"?n.jsx(Yt,{to:"/school-admin",replace:!0}):n.jsx(Yt,{to:"/teacher",replace:!0}):n.jsx(Yt,{to:"/login",replace:!0})},px=()=>{const[a,l]=x.useState(""),[i,u]=x.useState(""),[d,f]=x.useState(null),[m,v]=x.useState(!1),{login:p}=Ws(),j=ho(),S=async(C=a,M=i)=>{f(null),v(!0);try{const B=await p(C,M);j(B==="SuperAdmin"?"/admin":B==="SchoolAdmin"?"/school-admin":"/teacher")}catch(B){f(B.message||"登录失败,请检查账号密码")}finally{v(!1)}};return n.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[n.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),n.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),n.jsx("div",{className:"w-full max-w-md relative z-10",children:n.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:n.jsx(oo,{className:"w-8 h-8 text-white"})}),n.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&n.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),n.jsxs("form",{onSubmit:C=>{C.preventDefault(),S()},className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsxs("div",{className:"relative",children:[n.jsx(lh,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"text",value:a,onChange:C=>l(C.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),n.jsxs("div",{className:"relative",children:[n.jsx(io,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"password",value:i,onChange:C=>u(C.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在验证身份..."})]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{children:"登 录"}),n.jsx(Mr,{className:"w-4 h-4"})]})})]})]})})]})},Be=({label:a,variant:l="slate",dot:i=!0,className:u=""})=>{const d={emerald:{bg:"bg-emerald-500/10",text:"text-emerald-400",border:"border-emerald-500/20",dotColor:"bg-emerald-400"},amber:{bg:"bg-amber-500/10",text:"text-amber-400",border:"border-amber-500/20",dotColor:"bg-amber-400"},rose:{bg:"bg-rose-500/10",text:"text-rose-400",border:"border-rose-500/20",dotColor:"bg-rose-400"},sky:{bg:"bg-sky-500/10",text:"text-sky-400",border:"border-sky-500/20",dotColor:"bg-sky-400"},slate:{bg:"bg-slate-800/60",text:"text-slate-400",border:"border-slate-700/50",dotColor:"bg-slate-400"},indigo:{bg:"bg-indigo-500/10",text:"text-indigo-400",border:"border-indigo-500/20",dotColor:"bg-indigo-400"}},f=d[l]||d.slate;return n.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium border ${f.bg} ${f.text} ${f.border} ${u}`,children:[i&&n.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${f.dotColor}`}),a]})},Qs=({title:a,description:l,badge:i,action:u,className:d=""})=>n.jsxs("div",{className:`flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-6 border-b border-slate-800/80 ${d}`,children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-slate-100",children:a}),i]}),l&&n.jsx("p",{className:"mt-1 text-sm text-slate-400",children:l})]}),u&&n.jsx("div",{className:"flex items-center gap-3",children:u})]}),ka=({tabs:a,activeId:l,onChange:i,className:u=""})=>n.jsx("div",{className:`flex items-center gap-1.5 p-1 bg-slate-900 border border-slate-800 rounded-xl overflow-x-auto ${u}`,children:a.map(d=>{const f=d.id===l;return n.jsxs("button",{type:"button",onClick:()=>i(d.id),className:`px-3 py-1.5 rounded-lg text-xs sm:text-sm font-medium transition-all whitespace-nowrap flex items-center gap-1.5 ${f?"bg-slate-800 text-white shadow-sm border border-slate-700/60":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/40"}`,children:[n.jsx("span",{children:d.label}),d.count!==void 0&&n.jsx("span",{className:`px-1.5 py-0.2 rounded-full text-[10px] font-semibold ${f?"bg-slate-700 text-slate-200":"bg-slate-800/80 text-slate-500"}`,children:d.count})]},d.id)})}),po=({value:a,onChange:l,placeholder:i="搜索...",className:u=""})=>n.jsxs("div",{className:`relative flex items-center ${u}`,children:[n.jsx(qs,{className:"w-4 h-4 text-slate-500 absolute left-3 pointer-events-none"}),n.jsx("input",{type:"text",value:a,onChange:d=>l(d.target.value),placeholder:i,className:"w-full bg-slate-900 border border-slate-800 rounded-xl pl-9 pr-8 py-2 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/30 transition-colors"}),a&&n.jsx("button",{type:"button",onClick:()=>l(""),className:"absolute right-2.5 p-1 rounded-md text-slate-500 hover:text-slate-300 hover:bg-slate-800 transition-colors",children:n.jsx(zn,{className:"w-3.5 h-3.5"})})]}),oh=({items:a,className:l=""})=>{const[i,u]=x.useState(!1),d=x.useRef(null);return x.useEffect(()=>{const f=v=>{d.current&&!d.current.contains(v.target)&&u(!1)},m=v=>{v.key==="Escape"&&u(!1)};return i&&(document.addEventListener("mousedown",f),document.addEventListener("keydown",m)),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",m)}},[i]),n.jsxs("div",{className:`relative inline-block text-left ${l}`,ref:d,children:[n.jsx("button",{type:"button","aria-label":"更多操作","aria-expanded":i,"aria-haspopup":"true",onClick:()=>u(!i),className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-colors border border-transparent hover:border-slate-700/60",title:"更多操作",children:n.jsx(S0,{className:"w-4 h-4"})}),i&&n.jsx("div",{className:"absolute right-0 mt-1 w-44 rounded-xl bg-slate-900 border border-slate-800 shadow-2xl py-1 z-30 animate-in fade-in-50 zoom-in-95 duration-100",children:a.map((f,m)=>n.jsxs("button",{type:"button",disabled:f.disabled,onClick:()=>{u(!1),f.onClick()},className:`w-full text-left px-3.5 py-2 text-xs sm:text-sm font-medium flex items-center gap-2.5 transition-colors ${f.danger?"text-rose-400 hover:bg-rose-500/10":"text-slate-300 hover:text-white hover:bg-slate-800"} ${f.disabled?"opacity-40 cursor-not-allowed":""}`,children:[f.icon&&n.jsx("span",{className:"w-4 h-4",children:f.icon}),n.jsx("span",{children:f.label})]},m))})]})},ih=({text:a,label:l="复制",className:i=""})=>{const[u,d]=x.useState(!1),f=async m=>{m.stopPropagation();try{await navigator.clipboard.writeText(a),d(!0),setTimeout(()=>d(!1),1500)}catch{const v=document.createElement("textarea");v.value=a,document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v),d(!0),setTimeout(()=>d(!1),1500)}};return n.jsx("button",{type:"button","aria-label":u?"已复制":l,onClick:f,className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium transition-all ${u?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 font-semibold":"bg-slate-800 text-slate-300 hover:text-white hover:bg-slate-700/80 border border-slate-700/60"} ${i}`,children:u?n.jsxs(n.Fragment,{children:[n.jsx(Br,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{children:"已复制"})]}):n.jsxs(n.Fragment,{children:[n.jsx(pa,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:l})]})})},ls=({title:a,value:l,subtitle:i,icon:u,badge:d,className:f=""})=>n.jsxs("div",{className:`p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex flex-col justify-between ${f}`,children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs sm:text-sm font-medium text-slate-400",children:a}),u&&n.jsx("div",{className:"p-2 rounded-xl bg-slate-800/80 text-slate-300",children:u})]}),n.jsxs("div",{className:"mt-3 flex items-baseline justify-between gap-2",children:[n.jsx("div",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-white",children:l}),d]}),i&&n.jsx("p",{className:"mt-1 text-xs text-slate-500",children:i})]}),Fn=({isOpen:a,onClose:l,title:i,children:u,maxWidth:d="max-w-md",preventClose:f=!1})=>(x.useEffect(()=>{const m=v=>{v.key==="Escape"&&!f&&l()};return a&&document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[a,l,f]),a?n.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-sm animate-in fade-in duration-150",children:n.jsxs("div",{className:`w-full ${d} bg-slate-900 border border-slate-800 rounded-2xl shadow-2xl overflow-hidden animate-in zoom-in-95 duration-150`,onClick:m=>m.stopPropagation(),children:[n.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800/80",children:[n.jsx("h3",{className:"text-base sm:text-lg font-semibold text-slate-100",children:i}),n.jsx("button",{type:"button",onClick:l,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(zn,{className:"w-5 h-5"})})]}),n.jsx("div",{className:"p-6",children:u})]})}):null),xx=({isOpen:a,onClose:l,onConfirm:i,title:u,description:d,targetName:f,confirmLabel:m="确认执行",loading:v=!1})=>a?n.jsx(Fn,{isOpen:a,onClose:l,title:u,maxWidth:"max-w-md",preventClose:v,children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-start gap-3 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300",children:[n.jsx(Un,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),n.jsxs("div",{className:"text-xs sm:text-sm leading-relaxed",children:[f&&n.jsxs("span",{className:"font-semibold text-rose-200",children:["【",f,"】"]}),d]})]}),n.jsxs("div",{className:"flex items-center justify-end gap-3 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:l,disabled:v,className:"px-4 py-2 rounded-xl text-sm font-medium text-slate-300 hover:bg-slate-800 transition-colors",children:"取消"}),n.jsx("button",{type:"button",onClick:i,disabled:v,className:"px-4 py-2 rounded-xl text-sm font-semibold bg-rose-600 hover:bg-rose-500 text-white shadow-lg shadow-rose-600/20 transition-all disabled:opacity-50",children:v?"处理中...":m})]})]})}):null,gx=()=>{const[a,l]=x.useState(null),[i,u]=x.useState([]),[d,f]=x.useState([]),[m,v]=x.useState(null),[p,j]=x.useState([]),[S,C]=x.useState(!0),M=async()=>{var D,V;try{const[Q,Y,oe,xe,ge]=await Promise.all([le.getAdminMetrics(),le.getTenants(),le.getAdminNotifications(6),((D=le.getSystemHealth)==null?void 0:D.call(le).catch(()=>null))??Promise.resolve(null),((V=le.getAuditLogs)==null?void 0:V.call(le,6).catch(()=>[]))??Promise.resolve([])]);l(Q),u(Y),f(oe),xe&&v(xe),ge&&j(ge)}catch(Q){console.error("Failed to load admin dashboard data",Q)}finally{C(!1)}};x.useEffect(()=>{M();const D=setInterval(M,1e4);return()=>clearInterval(D)},[]);const B=(a==null?void 0:a.totalDevices)??0,J=(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0,H=(a==null?void 0:a.offlineDevices)??Math.max(0,B-J),P=B>0?Math.round(J/B*100):100;return n.jsxs("div",{className:"space-y-6",children:[n.jsx(Qs,{title:"全域云控超管总览",description:"实时掌握全网多校区教学终端连通率、异常事件与核心调度通道",action:n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsxs(be,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"激活码管理"]}),n.jsxs(be,{to:"/admin/broadcast",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all",children:[n.jsx(Wr,{className:"w-4 h-4"}),"全域应急广播"]})]})}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"大屏在线率"}),n.jsxs("div",{className:"mt-2 text-2xl sm:text-3xl font-bold tracking-tight text-white",children:[P,"%"]}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-mono mt-0.5",children:[J," / ",B," 台在线"]})]}),n.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[n.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[n.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),n.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${P}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),n.jsx(mo,{className:"w-5 h-5 text-emerald-400 absolute"})]})]}),n.jsx(ls,{title:"离线设备",value:S?"-":H,subtitle:H>0?"建议督促校区排查网络":"全网终端运行畅通",icon:n.jsx(Un,{className:`w-5 h-5 ${H>0?"text-amber-400":"text-slate-400"}`}),badge:H>0?n.jsx(Be,{label:"待恢复",variant:"amber"}):n.jsx(Be,{label:"正常",variant:"emerald"})}),n.jsx(ls,{title:"今日通知 / 点呼",value:S?"-":(a==null?void 0:a.todayNotifications)??0,subtitle:"各校区教师工作台发送",icon:n.jsx(oo,{className:"w-5 h-5 text-blue-400"})}),n.jsx(ls,{title:"入驻学校",value:S?"-":(a==null?void 0:a.totalTenants)??i.length,subtitle:"独立多租户隔离",icon:n.jsx(Zt,{className:"w-5 h-5 text-indigo-400"})})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[n.jsxs("div",{className:"lg:col-span-7 space-y-6",children:[n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[n.jsx("h2",{className:"text-sm font-semibold text-white",children:"核心管控模块"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs(be,{to:"/admin/tenants",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-blue-500/10 text-blue-400",children:n.jsx(Zt,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"学校租户"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"校区开通、参数与冻结"})]})]}),n.jsx(Mr,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(be,{to:"/admin/users",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-indigo-500/10 text-indigo-400",children:n.jsx(zs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"用户中枢"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"多角色账号与密码管控"})]})]}),n.jsx(Mr,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(be,{to:"/admin/devices",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-emerald-500/10 text-emerald-400",children:n.jsx(Fs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"设备集控"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"心跳、远程指令与清退"})]})]}),n.jsx(Mr,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(be,{to:"/admin/broadcast",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-rose-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 text-rose-400",children:n.jsx(Wr,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"全网最高优先极速强插"})]})]}),n.jsx(Mr,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Zt,{className:"w-4 h-4 text-indigo-400"}),"入驻校区简况"]}),n.jsx(be,{to:"/admin/tenants",className:"text-xs text-blue-400 hover:underline",children:"管理全部校区"})]}),n.jsx("div",{className:"divide-y divide-slate-800/60",children:i.slice(0,4).map(D=>n.jsxs("div",{className:"py-2.5 flex items-center justify-between text-xs",children:[n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-slate-200",children:D.name}),n.jsxs("div",{className:"text-[11px] font-mono text-slate-500",children:[D.id," · ",D.classroomCount," 班级"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("span",{className:"text-slate-400 text-xs font-mono",children:[D.deviceCount," 设备"]}),n.jsx(Be,{label:D.isActive?"正常":"已冻结",variant:D.isActive?"emerald":"rose"})]})]},D.id))})]})]}),n.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Un,{className:"w-4 h-4 text-amber-400"}),"需要关注"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"异常终端优先浮出"})]}),H===0?n.jsxs("div",{className:"py-6 text-center text-xs text-slate-400",children:[n.jsx(Vt,{className:"w-6 h-6 text-emerald-400 mx-auto mb-1.5"}),n.jsx("span",{children:"全网各校区终端运行良好,无异常阻断"})]}):n.jsx("div",{className:"space-y-2",children:n.jsxs("div",{className:"p-3 rounded-xl bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300",children:[n.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400"}),"检测到 ",H," 台大屏终端离线"]}),n.jsx("div",{className:"text-[11px] text-amber-400/80 mt-1",children:"未接收到周期心跳包,可能由于关机或校内网络断开导致。"}),n.jsx("div",{className:"mt-2 text-right",children:n.jsx(be,{to:"/admin/devices?status=offline",className:"text-xs text-amber-400 hover:underline font-semibold",children:"前往设备集控排查 →"})})]})})]}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(co,{className:"w-4 h-4 text-emerald-400"}),"最近安全审计流水"]}),n.jsx(be,{to:"/admin/history",className:"text-xs text-blue-400 hover:underline",children:"完整流水"})]}),n.jsx("div",{className:"space-y-2 text-xs",children:p.length===0?n.jsx("div",{className:"py-6 text-center text-xs text-slate-500",children:"暂无审计记录"}):p.map(D=>n.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80",children:[n.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[n.jsx("span",{className:"font-semibold text-slate-200",children:D.action}),n.jsx("span",{className:"text-slate-500 font-mono",children:new Date(D.occurredAt).toLocaleTimeString()})]}),n.jsxs("div",{className:"text-[11px] text-slate-400 mt-1 truncate",children:[D.actorUsername||"系统"," · ",D.targetType," ",D.targetId]})]},D.id))})]})]})]})]})},vx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),[m,v]=x.useState(null),[p,j]=x.useState(null),[S,C]=x.useState(null),[M,B]=x.useState(""),[J,H]=x.useState(""),[P,D]=x.useState(!1),V=async()=>{try{const I=await le.getAllDevices();l(I)}catch(I){console.error("Failed to load devices",I)}finally{u(!1)}};x.useEffect(()=>{V();const I=setInterval(V,5e3);return()=>clearInterval(I)},[]);const Q=async(I,se,X)=>{j(`${I}_${se}`),v(null);try{const he=await le.sendDeviceCommand(I,se,X);v({deviceId:I,message:he.message,success:!0}),V()}catch(he){v({deviceId:I,message:he.message||"远程指令下发失败",success:!1})}finally{j(null)}},Y=I=>{C(I),B(I.hostname||""),H(I.classroomId||"")},oe=async I=>{if(I.preventDefault(),!!S){D(!0);try{await le.updateDevice(S.deviceId,{hostname:M.trim()||void 0,classroomId:J.trim()||void 0}),v({deviceId:S.deviceId,message:"设备信息更新成功",success:!0}),C(null),V()}catch(se){v({deviceId:S.deviceId,message:se.message||"更新设备失败",success:!1})}finally{D(!1)}}},xe=async I=>{if(window.confirm(`高危操作确认:确定要注销并清退设备 [${I.deviceId} (${I.hostname||I.classroomName})] 吗? 清退后该设备将无法接入,需重新生成激活码绑定!`)){j(`decommission_${I.deviceId}`);try{await le.decommissionDevice(I.deviceId),v({deviceId:I.deviceId,message:"设备已成功清退并注销",success:!0}),V()}catch(se){v({deviceId:I.deviceId,message:se.message||"清退设备失败",success:!1})}finally{j(null)}}},ge=I=>{if(!I)return"从无心跳";const se=Math.floor((Date.now()-new Date(I).getTime())/1e3);return se<10?"刚刚 (几秒前)":se<60?`${se} 秒前`:se<3600?`${Math.floor(se/60)} 分钟前`:`${Math.floor(se/3600)} 小时前`},ue=a.filter(I=>I.tenantName.toLowerCase().includes(d.toLowerCase())||I.classroomName.toLowerCase().includes(d.toLowerCase())||I.deviceId.toLowerCase().includes(d.toLowerCase())||I.hostname&&I.hostname.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备集控中心"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时监控教室终端健康心跳与服务状态,支持在线秒级下发或离线指令入队补发、元数据变更与清退"})]}),n.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[n.jsxs("button",{onClick:()=>{u(!0),V()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Mt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新状态"]}),n.jsxs(be,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-600/25 transition-all",children:[n.jsx(jt,{className:"w-3.5 h-3.5 text-amber-300"}),"生成新设备激活码"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between transition-all ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Vt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsxs("span",{children:["[设备 ",m.deviceId,"] ",m.message]})]}),n.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(qs,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:I=>f(I.target.value),placeholder:"按学校、班级、设备编号或计算机名过滤...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"设备编号 / 主机名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"运行状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"心跳与 IP"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"版本"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"运维指令与管理"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:ue.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在同步设备状态...":"暂无匹配的设备"})}):ue.map(I=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:I.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:I.tenantName})]}),n.jsxs("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:[n.jsx("div",{children:I.deviceId}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[n.jsx(Fs,{className:"w-3 h-3 text-slate-500"}),n.jsx("span",{children:I.hostname||"Classroom-PC"})]})]}),n.jsx("td",{className:"py-4 px-4",children:I.isOnline?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),n.jsx("span",{children:"在线 (实时连通)"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-400",title:"指令将入队,上线时自动补发",children:[n.jsx(Vs,{className:"w-3 h-3 text-amber-500"}),n.jsx("span",{children:"离线 (支持离线入队)"})]})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:ge(I.lastHeartbeat)}),n.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:I.remoteIp||"127.0.0.1"})]}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono",children:["v",I.clientVersion||"2.1.0"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>Q(I.deviceId,"self_check"),disabled:p===`${I.deviceId}_self_check`,className:"px-2 py-1 rounded-lg bg-indigo-600/10 hover:bg-indigo-600/20 border border-indigo-500/30 text-indigo-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发远程自检指令 (若离线将入队补发)",children:[n.jsx(mo,{className:"w-3 h-3"}),"自检"]}),n.jsxs("button",{onClick:()=>Q(I.deviceId,"restart_client"),disabled:p===`${I.deviceId}_restart_client`,className:"px-2 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"远程重启前台 WPF Client 弹窗进程",children:[n.jsx(J0,{className:"w-3 h-3"}),"重启"]}),n.jsxs("button",{onClick:()=>Q(I.deviceId,"refresh_config"),disabled:p===`${I.deviceId}_refresh_config`,className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发配置刷新指令",children:[n.jsx(Mt,{className:"w-3 h-3"}),"刷新"]}),n.jsx("button",{onClick:()=>Y(I),className:"p-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 transition-colors",title:"重命名或调整班级绑定",children:n.jsx(nh,{className:"w-3.5 h-3.5"})}),n.jsx("button",{onClick:()=>xe(I),disabled:p===`decommission_${I.deviceId}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"清退并注销设备",children:n.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},I.deviceId))})]})})}),S&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"调整设备元数据"}),n.jsxs("p",{className:"text-xs text-slate-400",children:["设备唯一识别码: ",n.jsx("span",{className:"font-mono text-indigo-400",children:S.deviceId})]}),n.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"计算机名 / 主机标识 (Hostname)"}),n.jsx("input",{type:"text",value:M,onChange:I=>B(I.target.value),placeholder:"例如: LAB-BUILDING-201-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"所属班级编号 (Classroom ID)"}),n.jsx("input",{type:"text",value:J,onChange:I=>H(I.target.value),placeholder:"例如: cls_801",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>C(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:P,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:P?"保存中...":"确认保存"})]})]})]})})]})},yx=()=>{const[a]=yp(),[l,i]=x.useState([]),[u,d]=x.useState([]),[f,m]=x.useState(!0),[v,p]=x.useState(null),[j,S]=x.useState(""),[C,M]=x.useState(""),[B,J]=x.useState(!1),[H,P]=x.useState(""),[D,V]=x.useState([]),[Q,Y]=x.useState(!1),[oe,xe]=x.useState(""),[ge,ue]=x.useState(!1),[I,se]=x.useState(""),[X,he]=x.useState(!1),[q,re]=x.useState(null),Ee=async()=>{try{const[E,b]=await Promise.all([le.getAdminActivationCodes(),le.getTenants()]);i(E),d(b),b.length>0&&!H&&P(b[0].id)}catch(E){console.error("Failed to load activation codes",E)}finally{m(!1)}};x.useEffect(()=>{Ee()},[]),x.useEffect(()=>{const E=a.get("tenantId"),b=a.get("openGenerate")==="true";E&&(M(E),P(E),b&&J(!0))},[a]),x.useEffect(()=>{H&&(Y(!0),le.getAdminClasses(H).then(E=>{V(E),E.length>0?(xe(E[0].id),ue(!1)):(xe(""),ue(!0))}).catch(E=>{console.warn("Could not load classes for tenant:",H,E),V([]),ue(!0)}).finally(()=>Y(!1)))},[H]);const z=E=>{navigator.clipboard.writeText(E),p(E),setTimeout(()=>p(null),2e3)},fe=async E=>{E.preventDefault();const b=ge?I.trim():oe.trim();if(!H||!b){alert("请选择学校及目标班级");return}he(!0);try{const L=await le.generateAdminCode(H,b),de=u.find(ce=>ce.id===H),U=D.find(ce=>ce.id===b);re({code:L.code,schoolName:(de==null?void 0:de.name)||H,className:(U==null?void 0:U.displayName)||b}),J(!1),se(""),Ee()}catch(L){alert(L.message||"生成激活码失败")}finally{he(!1)}},_=async E=>{if(window.confirm(`确定要废弃/删除激活码 [${E}] 吗?废弃后将无法用于设备初始化绑定。`))try{await le.deleteActivationCode(E),Ee()}catch(b){alert(b.message||"删除激活码失败")}},K=l.filter(E=>{const b=!C||E.tenantId===C,L=E.code.toLowerCase().includes(j.toLowerCase())||E.classroomName.toLowerCase().includes(j.toLowerCase())||E.tenantName.toLowerCase().includes(j.toLowerCase());return b&&L});return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(jt,{className:"w-4 h-4"})}),n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{m(!0),Ee()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Mt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{re(null),J(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[n.jsx(us,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),q&&n.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:n.jsx(rh,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),n.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",n.jsx("span",{className:"font-medium text-white",children:q.schoolName})," / ",n.jsx("span",{className:"font-medium text-white",children:q.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:q.code}),n.jsx("button",{onClick:()=>z(q.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:v===q.code?n.jsxs(n.Fragment,{children:[n.jsx(Br,{className:"w-3.5 h-3.5"}),"已复制"]}):n.jsxs(n.Fragment,{children:[n.jsx(pa,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(qs,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:j,onChange:E=>S(E.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Zt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:C,onChange:E=>M(E.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(E=>n.jsxs("option",{value:E.id,children:[E.name," (",E.id,")"]},E.id))]})]}),n.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"text-white font-medium",children:K.length})," 个激活码"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:K.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(jt,{className:"w-8 h-8 text-slate-600"}),n.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),n.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),n.jsxs("button",{onClick:()=>J(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[n.jsx(us,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):K.map(E=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:E.code}),n.jsx("button",{onClick:()=>z(E.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:v===E.code?n.jsx(Br,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(pa,{className:"w-3.5 h-3.5"})})]})}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:E.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:E.tenantName})]}),n.jsx("td",{className:"py-4 px-4",children:E.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx(Vt,{className:"w-3 h-3"}),"已激活绑定"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx(Vs,{className:"w-3 h-3"}),"等待激活"]})}),n.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:E.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:E.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(E.expiresAt).toLocaleDateString()," ",new Date(E.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsx("button",{onClick:()=>z(E.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:v===E.code?"已复制":"复制"}),n.jsx("button",{onClick:()=>_(E.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:n.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},E.code))})]})})}),B&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(jt,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),n.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),n.jsx("select",{value:H,onChange:E=>P(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(E=>n.jsxs("option",{value:E.id,children:[E.name," (",E.id,") ",E.isActive?"":"[已冻结]"]},E.id))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),n.jsx("button",{type:"button",onClick:()=>ue(!ge),className:"text-[11px] text-amber-400 hover:underline",children:ge?"从班级列表选择":"手动输入班级ID"})]}),Q?n.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[n.jsx(Mt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):ge?n.jsx("input",{type:"text",value:I,onChange:E=>se(E.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):D.length>0?n.jsx("select",{value:oe,onChange:E=>xe(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:D.map(E=>n.jsxs("option",{value:E.id,children:[E.displayName," (",E.id,")"]},E.id))}):n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[n.jsx(mn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),n.jsx("input",{type:"text",value:I,onChange:E=>se(E.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),n.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[n.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),n.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),n.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>J(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:X,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:X?"生成中...":"立即生成激活码"})]})]})]})})]})},wx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),m=async()=>{try{const p=await le.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};x.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const v=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),n.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[n.jsx(Mt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新审计"]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(qs,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:v.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在加载审计数据...":"暂无呼叫历史记录"})}):v.map(p=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:p.className}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),n.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[n.jsx("div",{className:"font-medium text-sm",children:p.message}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),n.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),n.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Vt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[n.jsx(ao,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Vs,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),n.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?n.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):n.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},bx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),[m,v]=x.useState(null),[p,j]=x.useState(!1),[S,C]=x.useState({id:"",name:""}),[M,B]=x.useState(!1),[J,H]=x.useState(null),[P,D]=x.useState({name:"",isActive:!0}),[V,Q]=x.useState(!1),Y=async()=>{try{const I=await le.getTenants();l(I)}catch(I){console.error("Failed to load tenants",I)}finally{u(!1)}};x.useEffect(()=>{Y()},[]);const oe=async I=>{if(I.preventDefault(),!(!S.id.trim()||!S.name.trim())){B(!0);try{await le.createTenant({id:S.id.trim(),name:S.name.trim()}),v({text:`学校 [${S.name}] 创建成功!`,success:!0}),j(!1),C({id:"",name:""}),Y()}catch(se){v({text:se.message||"创建学校失败",success:!1})}finally{B(!1)}}},xe=I=>{H(I),D({name:I.name,isActive:I.isActive})},ge=async I=>{if(I.preventDefault(),!(!J||!P.name.trim())){Q(!0);try{await le.updateTenant(J.id,{name:P.name.trim(),isActive:P.isActive}),v({text:`学校 [${P.name}] 配置已更新`,success:!0}),H(null),Y()}catch(se){v({text:se.message||"更新学校配置失败",success:!1})}finally{Q(!1)}}},ue=a.filter(I=>I.name.toLowerCase().includes(d.toLowerCase())||I.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{u(!0),Y()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Mt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Vt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:m.text})]}),n.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(qs,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:I=>f(I.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:ue.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在读取租户列表...":"暂无匹配的学校租户"})}):ue.map(I=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:n.jsx(Zt,{className:"w-4 h-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-white",children:I.name}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:I.id})]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[n.jsx(Hr,{className:"w-3.5 h-3.5 text-indigo-400"}),n.jsxs("span",{children:[I.classroomCount," 个班级"]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("span",{className:"font-semibold text-emerald-400",children:[I.onlineCount," 在线"]}),n.jsx("span",{className:"text-slate-500",children:"/"}),n.jsxs("span",{className:"text-slate-400",children:[I.deviceCount," 总屏"]})]})}),n.jsx("td",{className:"py-4 px-4",children:I.isActive?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx(Vt,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"正常运营"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(ma,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"已停用冻结"})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(I.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsxs(be,{to:`/admin/codes?tenantId=${I.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[n.jsx(jt,{className:"w-3.5 h-3.5"}),"生成激活码"]}),n.jsxs("button",{onClick:()=>xe(I),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[n.jsx(nh,{className:"w-3 h-3"}),"编辑配置"]})]})})]},I.id))})]})})}),p&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),n.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:S.id,onChange:I=>C({...S,id:I.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:S.name,onChange:I=>C({...S,name:I.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:M,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:M?"正在创建...":"确认接入"})]})]})]})}),J&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",J.id]}),n.jsxs("form",{onSubmit:ge,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),n.jsx("input",{type:"text",required:!0,value:P.name,onChange:I=>D({...P,name:I.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),n.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:P.isActive===!0,onChange:()=>D({...P,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:P.isActive===!1,onChange:()=>D({...P,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>H(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:V,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:V?"保存中...":"保存更改"})]})]})]})})]})},jx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(""),[p,j]=x.useState(""),[S,C]=x.useState(""),[M,B]=x.useState(null),[J,H]=x.useState(!1),[P,D]=x.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[V,Q]=x.useState(!1),[Y,oe]=x.useState(null),[xe,ge]=x.useState(""),[ue,I]=x.useState(!1),[se,X]=x.useState(null),he=async()=>{try{const[_,K]=await Promise.all([le.getUsers(p||void 0,S||void 0),le.getTenants()]);l(_),u(K)}catch(_){console.error("Failed to load user management data",_)}finally{f(!1)}};x.useEffect(()=>{he()},[p,S]);const q=async _=>{var K;if(_.preventDefault(),!P.tenantId||!P.username||!P.password||!P.fullName){B({text:"请填写所有必填字段",success:!1});return}Q(!0);try{await le.createUser(P),B({text:`用户 [${P.username}] 创建成功!`,success:!0}),H(!1),D({tenantId:((K=i[0])==null?void 0:K.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),he()}catch(E){B({text:E.message||"创建用户失败",success:!1})}finally{Q(!1)}},re=async _=>{if(_.preventDefault(),!(!Y||!xe.trim())){I(!0);try{await le.resetPassword(Y.id,xe.trim()),B({text:`用户 [${Y.username}] 的密码已重置成功`,success:!0}),oe(null),ge("")}catch(K){B({text:K.message||"重置密码失败",success:!1})}finally{I(!1)}}},Ee=async _=>{const K=!_.isLocked,E=K?`确定要锁定账号 [${_.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${_.username}] 吗?`;if(window.confirm(E)){X(`lock_${_.id}`);try{await le.setUserLock(_.id,K),B({text:`用户 [${_.username}] 已成功${K?"锁定":"解锁"}`,success:!0}),he()}catch(b){B({text:b.message||"操作失败",success:!1})}finally{X(null)}}},z=async _=>{if(_.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${_.username} (${_.fullName})] 吗?此操作不可逆!`)){X(`delete_${_.id}`);try{await le.deleteUser(_.id),B({text:`用户 [${_.username}] 已被删除`,success:!0}),he()}catch(K){B({text:K.message||"删除用户失败",success:!1})}finally{X(null)}}},fe=a.filter(_=>_.username.toLowerCase().includes(m.toLowerCase())||_.fullName.toLowerCase().includes(m.toLowerCase())||_.tenantName.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{f(!0),he()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Mt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{i.length>0&&!P.tenantId&&D(_=>({..._,tenantId:i[0].id})),H(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"新建用户"]})]})]}),M&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${M.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[M.success?n.jsx(Vt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:M.text})]}),n.jsx("button",{onClick:()=>B(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(qs,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:m,onChange:_=>v(_.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Zt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:p,onChange:_=>j(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部学校 (全网)"}),i.map(_=>n.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Hr,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:S,onChange:_=>C(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部角色"}),n.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),n.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:fe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):fe.map(_=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:_.fullName}),n.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:_.username})]}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:_.tenantName}),n.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:_.tenantId})]}),n.jsx("td",{className:"py-4 px-4",children:_.role==="SuperAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(sh,{className:"w-3 h-3"}),"超级管理员"]}):_.role==="SchoolAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[n.jsx(Zt,{className:"w-3 h-3"}),"校区管理员"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[n.jsx(Hr,{className:"w-3 h-3"}),"授课老师"]})}),n.jsx("td",{className:"py-4 px-4",children:_.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[n.jsx(io,{className:"w-3 h-3"}),"已锁定封禁"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Vt,{className:"w-3 h-3"}),"正常"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:_.lastLoginAt?new Date(_.lastLoginAt).toLocaleString():"尚未登录"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>oe(_),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[n.jsx(jt,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),_.role!=="SuperAdmin"&&n.jsxs("button",{onClick:()=>Ee(_),disabled:se===`lock_${_.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${_.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:_.isLocked?"解除账号锁定":"锁定账号",children:[_.isLocked?n.jsx(th,{className:"w-3 h-3"}):n.jsx(io,{className:"w-3 h-3"}),_.isLocked?"解锁":"锁定"]}),_.role!=="SuperAdmin"&&n.jsx("button",{onClick:()=>z(_),disabled:se===`delete_${_.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:n.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},_.id))})]})})}),J&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),n.jsxs("form",{onSubmit:q,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),n.jsxs("select",{required:!0,value:P.tenantId,onChange:_=>D({...P,tenantId:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"-- 请选择学校 --"}),i.map(_=>n.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),n.jsxs("select",{value:P.role,onChange:_=>D({...P,role:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:P.username,onChange:_=>D({...P,username:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:P.fullName,onChange:_=>D({...P,fullName:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:P.password,onChange:_=>D({...P,password:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:V,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:V?"正在创建...":"确认开户"})]})]})]})}),Y&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",Y.username]}),n.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",Y.tenantName,"] 的 [",Y.fullName,"] 强行设置新密码。"]}),n.jsxs("form",{onSubmit:re,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:xe,onChange:_=>ge(_.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>{oe(null),ge("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:ue,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:ue?"重置中...":"确认重置"})]})]})]})})]})},Nx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState([]),[m,v]=x.useState(!1),[p,j]=x.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[S,C]=x.useState(!1),[M,B]=x.useState(!1),[J,H]=x.useState(null),[P,D]=x.useState(null),[V,Q]=x.useState(null),Y=[{title:"消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速有序撤离至操场!",duration:60,shake:!0,voice:!0,icon:T0},{title:"恶劣天气避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁前往室外!",duration:45,shake:!0,voice:!0,icon:j0},{title:"临时紧急调度会议",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学教室内自习。",duration:30,shake:!1,voice:!0,icon:zs},{title:"作息调整离校通知",content:"因突发教学安排,今天下午放学时间临时调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:U0}],oe=async()=>{try{const z=await le.getTenants();l(z)}catch(z){console.error("Failed to load tenants",z)}finally{u(!1)}},xe=async()=>{v(!0);try{const z=await le.getAdminNotifications(15);f(z)}catch(z){console.error("Failed to load recent broadcasts",z)}finally{v(!1)}};x.useEffect(()=>{oe(),xe()},[]);const ge=z=>{j(fe=>({...fe,title:`⚠️ ${z.title}`,message:z.content,durationSeconds:z.duration,shake:z.shake,voice:z.voice}))},ue=z=>{if(z.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}C(!0)};x.useEffect(()=>{if(!J)return;let z=!1,fe;const _=Date.now(),K=async()=>{try{const E=await le.getBroadcastReceiptSummary(J);if(z)return;D(E),!E.completed&&Date.now()-_<6e4&&(fe=window.setTimeout(K,2e3))}catch{!z&&Date.now()-_<6e4&&(fe=window.setTimeout(K,3e3))}};return K(),()=>{z=!0,fe&&clearTimeout(fe)}},[J]);const I=async()=>{B(!0);try{const z=await le.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});z.broadcastId&&H(z.broadcastId),Q({dispatchedCount:z.dispatchedCount,targetSchools:z.targetSchools,message:z.message,success:!0,timestamp:new Date().toLocaleTimeString()}),C(!1),j(fe=>({...fe,message:""})),xe()}catch(z){Q({dispatchedCount:0,targetSchools:0,message:z.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),C(!1)}finally{B(!1)}},se=a.find(z=>z.id===p.tenantId),X=se?se.classroomCount:a.reduce((z,fe)=>z+(fe.classroomCount||0),0),he=se?se.deviceCount:a.reduce((z,fe)=>z+(fe.deviceCount||0),0),q=(P==null?void 0:P.targetDevices)||(V==null?void 0:V.dispatchedCount)||he||1,re=(P==null?void 0:P.displayed)??(V!=null&&V.success?q:0),Ee=Math.min(100,Math.round(re/q*100));return n.jsxs("div",{className:"space-y-6",children:[n.jsx(Qs,{title:"全域应急广播通道",description:"全网最高优先调度通道,覆盖多校区所有教室大屏终端,支持全屏强置顶与语音播报",badge:n.jsx(Be,{label:"极高优先级",variant:"rose"})}),V&&n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4 animate-in fade-in duration-150",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[V.success?n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(Vt,{className:"w-5 h-5"})}):n.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:n.jsx(Un,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-semibold text-white",children:V.success?"紧急广播指令已成功下发至目标教室大屏":"广播下发失败"}),n.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:V.message})]})]}),n.jsx("button",{type:"button",onClick:()=>{Q(null),H(null),D(null)},className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(zn,{className:"w-4 h-4"})})]}),V.success&&n.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[n.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[n.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),n.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${Ee}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),n.jsxs("span",{className:"text-xs font-bold text-white absolute",children:[Ee,"%"]})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs font-semibold text-white",children:"大屏显示达成率"}),n.jsxs("div",{className:"text-[11px] text-slate-400 mt-0.5",children:[re," / ",q," 台大屏已完成现场弹窗"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[n.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20 text-emerald-400",children:[n.jsx("div",{className:"font-bold text-sm",children:re}),n.jsx("div",{className:"text-[10px]",children:"已显示"})]}),n.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-300",children:[n.jsx("div",{className:"font-bold text-sm",children:(P==null?void 0:P.pending)??0}),n.jsx("div",{className:"text-[10px]",children:"等待中"})]}),n.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-400",children:[n.jsx("div",{className:"font-bold text-sm",children:(P==null?void 0:P.failed)??0}),n.jsx("div",{className:"text-[10px]",children:"失败/离线"})]})]})]}),V.success&&a.length>0&&n.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-800",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"各校区送达执行详情"}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:a.map(z=>!p.tenantId||p.tenantId===z.id?n.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80 flex items-center justify-between text-xs",children:[n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-slate-200",children:z.name}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:[z.classroomCount," 间教室"]})]}),n.jsxs("div",{className:"flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(Br,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"已全量送达"})]})]},z.id):null)})]})]}),n.jsxs("div",{className:"space-y-2.5",children:[n.jsx("label",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider block",children:"应急广播预设模板(点击快速填装)"}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Y.map((z,fe)=>{const _=z.icon;return n.jsxs("button",{type:"button",onClick:()=>ge(z),className:"p-3.5 rounded-xl bg-slate-900 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 text-left transition-all group",children:[n.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-blue-400 mb-1",children:[n.jsx(_,{className:"w-4 h-4 text-blue-400 shrink-0"}),n.jsx("span",{children:z.title})]}),n.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2 leading-relaxed",children:z.content})]},fe)})})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm",children:n.jsxs("form",{onSubmit:ue,className:"space-y-4",children:[n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Zt,{className:"w-3.5 h-3.5 text-blue-400"}),"目标广播校区"]}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:["预计覆盖 ",X," 班级"]})]}),n.jsxs("select",{value:p.tenantId||"",onChange:z=>j({...p,tenantId:z.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",children:[n.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(z=>n.jsxs("option",{value:z.id,children:["仅该校: ",z.name," (",z.classroomCount," 班级, ",z.deviceCount," 大屏)"]},z.id))]})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[n.jsx(sh,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),n.jsx("input",{type:"text",required:!0,value:p.title,onChange:z=>j({...p,title:z.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容"}),n.jsx("textarea",{required:!0,rows:3,value:p.message,onChange:z=>j({...p,message:z.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white placeholder-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none leading-relaxed",placeholder:"请输入紧急通报具体事项..."})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{className:"flex items-center gap-4 text-xs",children:[n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[n.jsx("input",{type:"checkbox",checked:p.voice,onChange:z=>j({...p,voice:z.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx(ix,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{children:"TTS 语音朗读"})]}),n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[n.jsx("input",{type:"checkbox",checked:p.shake,onChange:z=>j({...p,shake:z.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx(mo,{className:"w-3.5 h-3.5 text-rose-400"}),n.jsx("span",{children:"窗口视效抖动"})]}),n.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400",children:[n.jsx(Vs,{className:"w-3.5 h-3.5"}),n.jsxs("span",{children:["时长: ",p.durationSeconds,"s"]})]})]}),n.jsxs("button",{type:"submit",disabled:M||!p.message.trim(),className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center justify-center gap-2 disabled:opacity-40",children:[n.jsx(ao,{className:"w-4 h-4"}),n.jsx("span",{children:"下发紧急广播"})]})]})]})}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(xa,{className:"w-4 h-4 text-blue-400"}),"最近全网广播与呼叫调度记录"]}),n.jsx("button",{onClick:xe,disabled:m,className:"text-xs text-blue-400 hover:underline disabled:opacity-50",children:m?"刷新中...":"刷新"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs",children:[n.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),n.jsx("th",{className:"py-2.5 px-3",children:"类型"}),n.jsx("th",{className:"py-2.5 px-3",children:"目标范围"}),n.jsx("th",{className:"py-2.5 px-3",children:"通报内容"}),n.jsx("th",{className:"py-2.5 px-3 text-right",children:"状态"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:m?"正在加载历史记录...":"暂无调度记录"})}):d.slice(0,6).map(z=>n.jsxs("tr",{className:"hover:bg-slate-800/25",children:[n.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(z.createdAt).toLocaleTimeString()}),n.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:z.priority==="Urgent"?n.jsx(Be,{label:"紧急通报",variant:"rose",dot:!1}):n.jsx(Be,{label:"日常呼叫",variant:"slate",dot:!1})}),n.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:z.className||"全域广播"}),n.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:z.message}),n.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:z.status==="Cancelled"?n.jsx("span",{className:"text-slate-400",children:"已撤回"}):z.status==="Acknowledged"?n.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):z.status==="Delivered"?n.jsx("span",{className:"text-sky-400",children:"已送达"}):n.jsx("span",{className:"text-slate-400",children:"已发送"})})]},z.id))})]})})]}),S&&n.jsx(Fn,{isOpen:!0,onClose:()=>C(!1),title:"全域应急调度二次确认",children:n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300 text-xs leading-relaxed",children:"⚠️ 确认后,系统将强制穿透目标教室大屏正在进行的多媒体课件,以全屏高优先级弹窗展示并进行语音朗读。"}),n.jsxs("div",{className:"p-3 rounded-xl bg-slate-950 border border-slate-800 text-xs space-y-1.5",children:[n.jsxs("div",{className:"text-slate-400",children:["广播范围:",n.jsx("span",{className:"text-white font-semibold",children:p.tenantId?se==null?void 0:se.name:`全域覆盖 (${a.length} 所学校)`})]}),n.jsxs("div",{className:"text-slate-400",children:["广播标题:",n.jsx("span",{className:"text-white font-medium",children:p.title})]}),n.jsxs("div",{className:"text-slate-400",children:["广播正文:",n.jsx("span",{className:"text-slate-200",children:p.message})]})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[n.jsx("button",{type:"button",disabled:M,onClick:()=>C(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"放弃"}),n.jsx("button",{type:"button",disabled:M,onClick:I,className:"px-5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 flex items-center gap-2 disabled:opacity-50",children:M?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"下发中..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(ao,{className:"w-4 h-4"}),n.jsx("span",{children:"确认下发"})]})})]})]})})]})},_x=()=>{const[a,l]=x.useState(null),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(null),[p,j]=x.useState("all"),S=async()=>{f(!0),v(null);try{const[D,V]=await Promise.all([le.getSchoolOverview(),le.getSchoolDevices()]);l(D),u(V)}catch(D){v((D==null?void 0:D.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};x.useEffect(()=>{S();const D=$t.onDeviceStatusChanged(Q=>{u(Y=>{const oe=Q.state===1||String(Q.state).toLowerCase()==="online",xe=Y.map(ue=>ue.deviceId===Q.deviceId?{...ue,isOnline:oe,lastHeartbeat:Q.lastHeartbeat,clientVersion:Q.agentVersion||ue.clientVersion}:ue),ge=xe.filter(ue=>ue.isOnline).length;return l(ue=>ue?{...ue,onlineCount:ge}:null),xe})}),V=$t.onHealthReportReceived(Q=>{u(Y=>Y.map(oe=>oe.deviceId===Q.deviceId?{...oe,healthStatus:Q.overallStatus,lastHeartbeat:Q.timestamp||new Date().toISOString()}:oe))});return()=>{D(),V()}},[]);const C=(a==null?void 0:a.deviceCount)??i.length,M=(a==null?void 0:a.onlineCount)??i.filter(D=>D.isOnline).length,B=Math.max(0,C-M),J=[{id:"all",label:"全部设备",count:i.length},{id:"online",label:"在线正常",count:i.filter(D=>D.isOnline).length},{id:"offline",label:"离线需关注",count:i.filter(D=>!D.isOnline).length}],P=i.filter(D=>p==="online"?D.isOnline:p==="offline"?!D.isOnline:!0);return n.jsxs("div",{className:"space-y-6",children:[n.jsx(Qs,{title:a!=null&&a.tenantName?`${a.tenantName} · 本校管理后台`:"本校管理后台",description:"实时监控全校各班级多媒体大屏运行状态与科任教师账号",action:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(be,{to:"/school-admin/classes",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[n.jsx(Ar,{className:"w-4 h-4 text-sky-400"}),"班级管理"]}),n.jsxs(be,{to:"/school-admin/codes",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(jt,{className:"w-4 h-4"}),"生成激活码"]})]})}),m&&n.jsxs("div",{className:"p-4 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:S,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(Mt,{className:"w-3.5 h-3.5"}),"重试"]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(ls,{title:"教学班级",value:d?"-":(a==null?void 0:a.classCount)??0,subtitle:`安装终端 ${C} 台`,icon:n.jsx(Ar,{className:"w-5 h-5 text-indigo-400"})}),n.jsx(ls,{title:"在线终端",value:d?"-":M,subtitle:"正常就绪待接收",icon:n.jsx(mo,{className:"w-5 h-5 text-emerald-400"}),badge:n.jsx(Be,{label:"正常",variant:"emerald"})}),n.jsx(ls,{title:"离线终端",value:d?"-":B,subtitle:B>0?"建议排查电源或网络":"全校终端连通正常",icon:n.jsx(Un,{className:`w-5 h-5 ${B>0?"text-amber-400":"text-slate-400"}`}),badge:B>0?n.jsx(Be,{label:"待排查",variant:"amber"}):n.jsx(Be,{label:"全部在线",variant:"slate"})}),n.jsx(ls,{title:"任课教师",value:d?"-":(a==null?void 0:a.teacherCount)??0,subtitle:"已授权控制台账号",icon:n.jsx(zs,{className:"w-5 h-5 text-sky-400"})})]}),B>0&&n.jsxs("div",{className:"p-4 rounded-xl bg-amber-500/10 border border-amber-500/20 text-amber-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx(Un,{className:"w-4 h-4 text-amber-400 shrink-0"}),n.jsxs("span",{children:["检测到 ",n.jsxs("strong",{children:[B," 台"]})," 教室大屏当前处于离线状态,已为您自动置顶展示,方便排查。"]})]}),n.jsx(be,{to:"/school-admin/codes",className:"text-amber-400 hover:text-amber-300 font-medium underline underline-offset-4",children:"获取安装激活码"})]}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Fs,{className:"w-4 h-4 text-blue-400"}),n.jsx("h2",{className:"text-sm font-semibold text-white",children:"大屏终端在线与健康状态"})]}),n.jsx(ka,{tabs:J,activeId:p,onChange:j})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"健康评估"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"客户端版本"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Mt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在获取大屏状态..."})]})}):P.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:p==="offline"?"全校大屏均在线运行良好":"暂无大屏数据"})}):P.map(D=>n.jsxs("tr",{className:"hover:bg-slate-800/40 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-semibold text-white",children:D.classroomName||"未分配班级"}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:D.deviceId}),n.jsx("td",{className:"py-3.5 px-4",children:D.isOnline?n.jsx(Be,{label:"在线",variant:"emerald"}):n.jsx(Be,{label:"离线",variant:"slate"})}),n.jsx("td",{className:"py-3.5 px-4",children:D.healthStatus==="Degraded"?n.jsx(Be,{label:"亚健康",variant:"amber"}):D.isOnline?n.jsx(Be,{label:"健康",variant:"emerald"}):n.jsx(Be,{label:"离线未检",variant:"slate"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:D.lastHeartbeat?new Date(D.lastHeartbeat).toLocaleTimeString():n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",D.clientVersion||"2.4.0"]})]},D.deviceId))})]})})]})]})},Sx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(""),[p,j]=x.useState(!1),[S,C]=x.useState(""),[M,B]=x.useState(""),[J,H]=x.useState(""),[P,D]=x.useState(""),[V,Q]=x.useState(!1),[Y,oe]=x.useState(null),[xe,ge]=x.useState(null),ue=async()=>{try{const[q,re]=await Promise.all([le.getSchoolClasses(),le.getSchoolDevices().catch(()=>[])]);l(q),u(re)}catch(q){console.error("Failed to load class or device data",q)}finally{f(!1)}};x.useEffect(()=>{ue()},[]);const I=async q=>{if(q.preventDefault(),!(!S||!M)){Q(!0);try{await le.createSchoolClass({id:S,displayName:M,grade:J,roomNumber:P}),j(!1),C(""),B(""),H(""),D(""),ue()}catch(re){alert(re.message||"创建班级失败")}finally{Q(!1)}}},se=async q=>{ge(q.id);try{const re=await le.generateSchoolCode(q.id);oe({classId:q.id,className:q.displayName,code:re.code})}catch(re){alert(re.message||"生成激活码失败")}finally{ge(null)}},X=q=>i.find(re=>re.classroomId===q),he=a.filter(q=>{if(!m.trim())return!0;const re=m.toLowerCase();return q.displayName.toLowerCase().includes(re)||q.id.toLowerCase().includes(re)||q.roomNumber&&q.roomNumber.toLowerCase().includes(re)});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(Qs,{title:"教学班级管理",description:"维护本校班级档案,管理教室位置与大屏终端绑定状态",action:n.jsxs("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"新建教学班"]})}),n.jsxs("div",{className:"flex items-center justify-between gap-4",children:[n.jsx("div",{className:"w-72",children:n.jsx(po,{value:m,onChange:v,placeholder:"搜索班级名称或位置..."})}),n.jsxs("div",{className:"text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"font-semibold text-white",children:he.length})," 个教学班"]})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"教室位置"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定大屏"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"大屏状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载班级数据..."})]})}):he.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:m?"未找到匹配的班级":"暂无教学班,点击右上角新建"})}):he.map(q=>{const re=X(q.id);return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3.5 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:q.displayName}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:q.id})]}),n.jsx("td",{className:"py-3.5 px-4 text-slate-300",children:q.roomNumber||q.grade||n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-3.5 px-4",children:re?n.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-slate-200",children:[n.jsx(Fs,{className:"w-3.5 h-3.5 text-blue-400 shrink-0"}),n.jsx("span",{children:re.deviceId})]}):n.jsx("span",{className:"text-slate-500 text-xs",children:"未绑定大屏"})}),n.jsx("td",{className:"py-3.5 px-4",children:re?re.isOnline?n.jsx(Be,{label:"在线",variant:"emerald"}):n.jsx(Be,{label:"离线",variant:"slate"}):n.jsxs("button",{type:"button",onClick:()=>se(q),className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 border border-blue-500/20 transition-colors",children:[n.jsx(jt,{className:"w-3 h-3"}),n.jsx("span",{children:"立即绑定"})]})}),n.jsx("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:re!=null&&re.lastHeartbeat?new Date(re.lastHeartbeat).toLocaleTimeString():n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:n.jsx(oh,{items:[{label:"生成安装激活码",icon:n.jsx(jt,{className:"w-4 h-4 text-blue-400"}),onClick:()=>se(q)}]})})]},q.id)})})]})})}),Y&&n.jsx(Fn,{isOpen:!0,onClose:()=>oe(null),title:`大屏安装激活码 · ${Y.className}`,children:n.jsxs("div",{className:"space-y-4 text-center py-2",children:[n.jsx("p",{className:"text-xs text-slate-400",children:"请在班级教室大屏运行客户端安装程序,并输入以下 8 位激活码完成绑定:"}),n.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex items-center justify-center gap-3",children:[n.jsx("span",{className:"font-mono text-2xl font-bold tracking-widest text-blue-400",children:Y.code}),n.jsx(ih,{text:Y.code,label:"复制"})]}),n.jsx("p",{className:"text-[11px] text-slate-500",children:"激活码 24 小时内有效,完成一次硬件绑定后将自动核销。"}),n.jsx("div",{className:"pt-2",children:n.jsx("button",{type:"button",onClick:()=>oe(null),className:"w-full py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-semibold transition-colors",children:"完成"})})]})}),p&&n.jsx(Fn,{isOpen:!0,onClose:()=>j(!1),title:"新建教学班级",children:n.jsxs("form",{onSubmit:I,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级编号 (唯一识别码)"}),n.jsx("input",{type:"text",value:S,onChange:q=>C(q.target.value),placeholder:"如 cls_801 或 c_eight_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级显示名称"}),n.jsx("input",{type:"text",value:M,onChange:q=>B(q.target.value),placeholder:"如 八年级(1)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"年级 (可选)"}),n.jsx("input",{type:"text",value:J,onChange:q=>H(q.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教室位置 (可选)"}),n.jsx("input",{type:"text",value:P,onChange:q=>D(q.target.value),placeholder:"如 教学楼 301",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:V,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:V?"创建中...":"确认创建"})]})]})})]})},kx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState("all"),[m,v]=x.useState(""),[p,j]=x.useState(!1),[S,C]=x.useState(""),[M,B]=x.useState(""),[J,H]=x.useState(""),[P,D]=x.useState(!1),[V,Q]=x.useState(null),[Y,oe]=x.useState(""),[xe,ge]=x.useState(!1),ue=x.useRef(null),[I,se]=x.useState(null),[X,he]=x.useState(!1),[q,re]=x.useState(null),Ee=(U,ce)=>{re({type:U,text:ce}),setTimeout(()=>{re(we=>(we==null?void 0:we.text)===ce?null:we)},4e3)},z=async()=>{try{const U=await le.getSchoolTeachers();l(U)}catch(U){Ee("error",(U==null?void 0:U.message)||"加载教师列表失败")}finally{u(!1)}};x.useEffect(()=>{z()},[]),x.useEffect(()=>{V&&ue.current&&setTimeout(()=>{var U;return(U=ue.current)==null?void 0:U.focus()},100)},[V]);const fe=async U=>{if(U.preventDefault(),!(!S||!M||!J)){if(M.length<8){alert("密码长度不能少于 8 位");return}D(!0);try{await le.createSchoolTeacher({username:S,password:M,fullName:J,role:"Teacher"}),j(!1),C(""),B(""),H(""),Ee("success",`教师账号 ${J} 开设成功`),z()}catch(ce){alert(ce.message||"创建教师账号失败")}finally{D(!1)}}},_=async U=>{if(U.preventDefault(),!(!V||!Y)){if(Y.length<8){alert("根据系统安全基线,密码长度不能少于 8 位");return}ge(!0);try{await le.resetSchoolTeacherPassword(V.id,Y),Ee("success",`已成功将教师 [${V.fullName}] 的密码重置`),Q(null),oe("")}catch(ce){alert(ce.message||"重置密码失败")}finally{ge(!1)}}},K=async()=>{if(!I)return;he(!0);const U=!I.isLocked;try{await le.setSchoolTeacherLock(I.id,U),Ee("success",`已成功${U?"停用":"启用"}教师 [${I.fullName}] 账号`),se(null),z()}catch(ce){alert(ce.message||"操作失败")}finally{he(!1)}},E=a.filter(U=>!U.isLocked).length,b=a.filter(U=>U.isLocked).length,L=[{id:"all",label:"全部教师",count:a.length},{id:"active",label:"正常使用",count:E},{id:"locked",label:"已停用",count:b}],de=a.filter(U=>{if(d==="active"&&U.isLocked||d==="locked"&&!U.isLocked)return!1;if(m.trim()){const ce=m.toLowerCase();return U.fullName.toLowerCase().includes(ce)||U.username.toLowerCase().includes(ce)}return!0});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(Qs,{title:"教师账号管理",description:"管理本校任课教师账号登录凭证与权限状态",action:n.jsxs("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"开设教师账号"]})}),q&&n.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${q.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[q.type==="success"?n.jsx(Vt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):n.jsx(Un,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:q.text})]}),n.jsx("button",{onClick:()=>re(null),className:"text-slate-400 hover:text-white",children:n.jsx(zn,{className:"w-3.5 h-3.5"})})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsx(ka,{tabs:L,activeId:d,onChange:f}),n.jsx("div",{className:"w-full sm:w-64",children:n.jsx(po,{value:m,onChange:v,placeholder:"搜索教师姓名或登录名..."})})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"教师姓名"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"登录账号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"身份角色"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:i?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载教师列表..."})]})}):de.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:m?"未找到符合条件的教师":"暂无教师数据"})}):de.map(U=>n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3.5 px-4 font-semibold text-white flex items-center gap-2",children:[n.jsx(Hr,{className:"w-4 h-4 text-emerald-400 shrink-0"}),n.jsx("span",{children:U.fullName})]}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:U.username}),n.jsx("td",{className:"py-3.5 px-4 text-xs",children:U.role==="SchoolAdmin"?n.jsx("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-400 border border-blue-500/20 text-xs",children:"学校管理员"}):n.jsx("span",{className:"px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700/60 text-xs",children:"任课教师"})}),n.jsx("td",{className:"py-3.5 px-4",children:U.isLocked?n.jsx(Be,{label:"已停用",variant:"rose"}):n.jsx(Be,{label:"正常",variant:"emerald"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:U.lastLoginAt?new Date(U.lastLoginAt).toLocaleString():n.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[n.jsx(Vs,{className:"w-3 h-3"}),"从未登录"]})}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:U.role==="Teacher"?n.jsx(oh,{items:[{label:"重置登录密码",icon:n.jsx(jt,{className:"w-4 h-4 text-blue-400"}),onClick:()=>{Q(U),oe("")}},{label:U.isLocked?"启用账号":"停用账号",icon:U.isLocked?n.jsx(th,{className:"w-4 h-4 text-emerald-400"}):n.jsx(io,{className:"w-4 h-4 text-rose-400"}),danger:!U.isLocked,onClick:()=>se(U)}]}):n.jsx("span",{className:"text-slate-600 text-xs",children:"-"})})]},U.id))})]})})}),V&&n.jsx(Fn,{isOpen:!0,onClose:()=>Q(null),title:`重置教师密码 · ${V.fullName}`,children:n.jsxs("form",{onSubmit:_,className:"space-y-4",children:[n.jsx("p",{className:"text-xs text-slate-400",children:"重置密码将立即终止该教师当前的在线会话,下次登录必须使用新密码:"}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码(至少 8 位)"}),n.jsx("input",{ref:ue,type:"password",value:Y,onChange:U=>oe(U.target.value),placeholder:"请输入不少于 8 位的新密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>Q(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:xe||Y.length<8,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:xe?"正在重置...":"确认重置密码"})]})]})}),I&&n.jsx(xx,{isOpen:!0,onClose:()=>se(null),onConfirm:K,loading:X,title:I.isLocked?"恢复教师账号权限?":"停用该教师账号?",targetName:I.fullName,description:I.isLocked?"启用后,该教师将可以正常登录教师工作台并向班级大屏发送呼叫通知。":"停用后,该教师所有活跃登录会话将立即注销,无法再向大屏发起任何呼叫。历史通知与审计记录不受影响。",confirmLabel:I.isLocked?"确认启用":"确认停用账号"}),p&&n.jsx(Fn,{isOpen:!0,onClose:()=>j(!1),title:"开设任课教师账号",children:n.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教师真实姓名"}),n.jsx("input",{type:"text",value:J,onChange:U=>H(U.target.value),placeholder:"如 张老师、王建国",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",value:S,onChange:U=>C(U.target.value),placeholder:"建议使用手机号或拼音如 teacher_zhang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始密码(至少 8 位)"}),n.jsx("input",{type:"password",value:M,onChange:U=>B(U.target.value),placeholder:"设置该教师首次登录的初始密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:P,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:P?"开设中...":"确认开设"})]})]})})]})},Cx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(null),[p,j]=x.useState("all"),[S,C]=x.useState(""),[M,B]=x.useState(!1),[J,H]=x.useState(""),[P,D]=x.useState(!1),[V,Q]=x.useState(null),Y=async()=>{f(!0),v(null);try{const[X,he]=await Promise.all([le.getSchoolCodes(),le.getSchoolClasses()]);l(X),u(he),he.length>0&&!J&&H(he[0].id)}catch(X){v((X==null?void 0:X.message)||"加载本校激活码数据失败")}finally{f(!1)}};x.useEffect(()=>{Y()},[]);const oe=async X=>{if(X.preventDefault(),!!J){D(!0),Q(null);try{await le.generateSchoolCode(J),B(!1),Y()}catch(he){Q((he==null?void 0:he.message)||"生成激活码失败")}finally{D(!1)}}},xe=a.filter(X=>!X.isUsed&&new Date(X.expiresAt).getTime()>Date.now()).length,ge=a.filter(X=>X.isUsed).length,ue=a.filter(X=>!X.isUsed&&new Date(X.expiresAt).getTime()<=Date.now()).length,I=[{id:"all",label:"全部",count:a.length},{id:"pending",label:"待激活 (可用)",count:xe},{id:"used",label:"已绑定",count:ge},{id:"expired",label:"已过期",count:ue}],se=a.filter(X=>{const he=!X.isUsed&&new Date(X.expiresAt).getTime()<=Date.now();if(p==="pending"&&(X.isUsed||he)||p==="used"&&!X.isUsed||p==="expired"&&!he)return!1;if(S.trim()){const q=S.toLowerCase(),re=X.code.toLowerCase().includes(q),Ee=(X.classroomName||X.classroomId).toLowerCase().includes(q);if(!re&&!Ee)return!1}return!0});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(Qs,{title:"本校教室终端激活码",description:"生成与管理本校教室大屏安装所需的 8 位一次性硬件绑定激活码",action:n.jsxs("button",{type:"button",onClick:()=>{Q(null),B(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"生成新激活码"]})}),m&&n.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:Y,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(Mt,{className:"w-3.5 h-3.5"}),"重试"]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsx(ka,{tabs:I,activeId:p,onChange:j}),n.jsx("div",{className:"w-full sm:w-64",children:n.jsx(po,{value:S,onChange:C,placeholder:"搜索激活码或班级..."})})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"8位激活码"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定班级"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定设备 ID"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"有效期"}),n.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载激活码..."})]})}):se.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:S?"未找到符合条件的激活码":"暂无激活码,点击右上角生成"})}):se.map(X=>{const he=!X.isUsed&&new Date(X.expiresAt).getTime()<=Date.now();return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-mono font-bold text-blue-400 text-sm",children:X.code}),n.jsxs("td",{className:"py-3.5 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:X.classroomName||X.classroomId}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:X.classroomId})]}),n.jsx("td",{className:"py-3.5 px-4",children:X.isUsed?n.jsx(Be,{label:"已绑定",variant:"slate"}):he?n.jsx(Be,{label:"已过期",variant:"rose"}):n.jsx(Be,{label:"待激活",variant:"emerald"})}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:X.usedByDeviceId||n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:new Date(X.expiresAt).toLocaleDateString()}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:n.jsx(ih,{text:X.code,label:"复制"})})]},X.code)})})]})})}),M&&n.jsx(Fn,{isOpen:!0,onClose:()=>B(!1),title:"生成本校班级设备激活码",children:n.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[V&&n.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:V}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"选择目标班级"}),i.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无可分配班级,请先前往【班级管理】新建班级"}):n.jsx("select",{value:J,onChange:X=>H(X.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",required:!0,children:i.map(X=>n.jsxs("option",{value:X.id,children:[X.displayName," (",X.roomNumber||X.id,")"]},X.id))})]}),n.jsx("p",{className:"text-[11px] text-slate-500 leading-relaxed",children:"💡 激活码生成后有效期为 24 小时。在教室大屏安装客户端并成功绑定后,该激活码将自动核销。"}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>B(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:P||!J,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:P?"生成中...":"立即生成"})]})]})})]})};function aa(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const ca=["王晨","李浩","刘晨希","张雨欣","赵一博","郭子安"],Ex=[{label:"到办公室",text:"请到教师办公室一趟。"},{label:"下楼集合",text:"请立即到楼下操场集合整队。"},{label:"家长来了",text:"校门口有家长找,请前往传达室。"},{label:"带作业本",text:"请收齐各科作业本送至办公室。"},{label:"课间回来",text:"预备铃已响,请迅速回教室内就坐。"},{label:"自习纪律",text:"请保持教室内安静自习,班干部负责维护纪律。"}],Tx=()=>{const{user:a}=Ws(),[l,i]=x.useState([]),[u,d]=x.useState(""),[f,m]=x.useState(""),[v,p]=x.useState(""),[j,S]=x.useState(!1),[C,M]=x.useState(null),[B,J]=x.useState(!0),[H,P]=x.useState(!0),[D,V]=x.useState(!1),[Q,Y]=x.useState(15),[oe,xe]=x.useState(!1),[ge,ue]=x.useState(!1),I=$=>{const me=(a==null?void 0:a.tenantId)||"global",Ae=(a==null?void 0:a.userId)||"anon";return`classnotify:recentStudents:${me}:${Ae}:${$}`},[se,X]=x.useState(ca);x.useEffect(()=>{if(u)try{const $=I(u),me=localStorage.getItem($);X(me?JSON.parse(me):ca)}catch{X(ca)}},[u,a==null?void 0:a.tenantId,a==null?void 0:a.userId]);const[he,q]=x.useState([]),[re,Ee]=x.useState(50),[z,fe]=x.useState(!1),[_,K]=x.useState(!0),[E,b]=x.useState(!0),[L,de]=x.useState(null),[U,ce]=x.useState("all"),[we,Pe]=x.useState(""),[_e,Re]=x.useState(null),[et,xn]=x.useState(null),[Ks,Hn]=x.useState(!1),[hs,fs]=x.useState(null),[Wn,en]=x.useState(1),[tn,gn]=x.useState(null),[nn,sn]=x.useState(!1),ms=x.useRef(l);x.useEffect(()=>{ms.current=l},[l]);const Js=async()=>{b(!0),de(null);try{const $=await le.getTeacherClasses();i($),$.length>0&&!u&&d($[0].id);const me=await le.getTeacherHistory(void 0,re);q(me.map(Ae=>({...Ae,status:aa(Ae.status)}))),me.length{const $=re+50;fe(!0);try{const me=await le.getTeacherHistory(void 0,$);q(me.map(Ae=>({...Ae,status:aa(Ae.status)}))),Ee($),me.length<$&&K(!1)}catch(me){console.error("加载更多历史记录失败:",me)}finally{fe(!1)}};x.useEffect(()=>{Js()},[]),x.useEffect(()=>{const $=$t.onAckReceiptReceived(Ce=>{q(He=>He.map(Qe=>{if(Qe.id===Ce.messageId){const ft=aa(Ce.status);return{...Qe,status:ft,confirmedAt:Ce.timestamp||Qe.confirmedAt||new Date().toISOString()}}return Qe}))}),me=$t.onNewNotificationBroadcast(Ce=>{q(He=>{if(He.some(mt=>mt.id===Ce.id))return He;const Qe=ms.current.find(mt=>mt.id===Ce.classId);return[{id:Ce.id,tenantId:Ce.tenantId,classId:Ce.classId,className:(Qe==null?void 0:Qe.displayName)||Ce.classId,senderName:"教师",message:Ce.message,priority:Ce.type===2?"Urgent":"Normal",createdAt:Ce.createdAt,status:"Sent"},...He]})}),Ae=typeof $t.onNotificationCancelled=="function"?$t.onNotificationCancelled(Ce=>{q(He=>He.map(Qe=>Qe.id===Ce?{...Qe,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Qe))}):()=>{};return()=>{typeof $=="function"&&$(),typeof me=="function"&&me(),typeof Ae=="function"&&Ae()}},[]);const qr=$=>{if(j&&v.trim().length>0&&!window.confirm("当前输入框已有手写内容,确定使用模版覆盖吗?"))return;const me=f.trim();p(me?`${me},${$.text}`:$.text),S(!1)},Qr=$=>{m($),!j||!v.trim()?(p(`${$},请到教师办公室一趟。`),S(!1)):v.includes($)||p(`${$},${v}`)},Xs=async $=>{if($.preventDefault(),!(!u||!v.trim())){xe(!0),M(null);try{const me=l.find(ft=>ft.id===u),Ae=f.trim()?`🔔 老师呼叫: ${f.trim()}`:`📢 ${(me==null?void 0:me.displayName)||"班级"}通知`,Ce=await le.sendNotification({classId:u,studentName:f.trim()||void 0,title:Ae,message:v.trim(),type:D?2:0,voice:B,shake:H,durationSeconds:Q}),He=f.trim();He&&u&&X(ft=>{const mt=[He,...ft.filter(Et=>Et!==He)].slice(0,8);try{const Et=I(u);localStorage.setItem(Et,JSON.stringify(mt))}catch{}return mt});const Qe=v.trim();p(""),m(""),S(!1),M(null),Ce!=null&&Ce.messageId&&q(ft=>ft.some(Et=>Et.id===Ce.messageId)?ft:[{id:Ce.messageId,tenantId:"",classId:u,className:(me==null?void 0:me.displayName)||u,senderName:"教师",message:Qe,priority:D?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...ft])}catch(me){M((me==null?void 0:me.message)||"呼叫发送失败,请检查网络或稍后重试")}finally{xe(!1)}}},ps=async()=>{if(tn){sn(!0);try{await le.cancelNotification(tn.id),q($=>$.map(me=>me.id===tn.id?{...me,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:me)),gn(null)}catch($){alert($.message||"提前关闭通知失败")}finally{sn(!1)}}},Kr=async($,me,Ae,Ce)=>{Re({notificationId:$,deviceId:me,className:Ae,capturedAt:Ce}),Hn(!0),fs(null),xn(null),en(1);try{const He=await le.getVisualReceiptBlob($,me),Qe=URL.createObjectURL(He);xn(Qe)}catch(He){fs((He==null?void 0:He.message)||"获取视觉核验图像失败")}finally{Hn(!1)}},Vn=()=>{et&&URL.revokeObjectURL(et),xn(null),Re(null),fs(null),en(1)},rn=he.filter($=>{if(U!=="all"&&$.classId!==U)return!1;if(we.trim()){const me=we.toLowerCase(),Ae=$.message.toLowerCase().includes(me),Ce=$.className.toLowerCase().includes(me);if(!Ae&&!Ce)return!1}return!0}),xo=l.slice(0,4),Gs=l.slice(4);return n.jsxs("div",{className:"space-y-5",children:[n.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-slate-800/80",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-white flex items-center gap-2.5",children:"教师呼叫工作台"}),n.jsx("p",{className:"text-xs sm:text-sm text-slate-400 mt-1",children:"秒级定向呼叫教室大屏,支持 TTS 朗读、视觉核验与实时送达回执"})]})}),L&&n.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:L})]}),n.jsxs("button",{onClick:Js,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(Mt,{className:"w-3.5 h-3.5"}),"重试"]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[n.jsxs("div",{className:"lg:col-span-5 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-5",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800/70",children:[n.jsx("h2",{className:"text-sm font-semibold text-slate-200",children:"快速发送呼叫"}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"3秒极速触达"})]}),n.jsxs("form",{onSubmit:Xs,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),l.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-2.5 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无关联班级,请联系管理员分配"}):n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:xo.map($=>{const me=u===$.id;return n.jsxs("button",{type:"button",onClick:()=>d($.id),className:`px-3 py-2 rounded-xl text-left text-xs font-medium border transition-all flex items-center justify-between ${me?"bg-blue-600/20 border-blue-500/60 text-white shadow-sm":"bg-slate-950/70 border-slate-800 text-slate-300 hover:bg-slate-800 hover:text-white"}`,children:[n.jsx("span",{className:"truncate",children:$.displayName}),n.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 shrink-0 ml-1.5",title:"大屏正常在线"})]},$.id)})}),Gs.length>0&&n.jsxs("div",{className:"relative",children:[n.jsxs("select",{value:u,onChange:$=>d($.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-slate-300 focus:outline-none focus:border-blue-500 appearance-none pr-8 cursor-pointer",children:[n.jsx("option",{value:"",disabled:!0,children:"选择其他班级..."}),Gs.map($=>n.jsxs("option",{value:$.id,children:[$.displayName," (",$.roomNumber||$.id,")"]},$.id))]}),n.jsx(Ld,{className:"w-3.5 h-3.5 text-slate-500 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsxs("label",{className:"text-xs font-medium text-slate-300 flex items-center gap-1",children:[n.jsx(lh,{className:"w-3.5 h-3.5 text-slate-400"}),"呼叫对象(学生姓名)"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"可选,留空则为全班"})]}),n.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:se.slice(0,6).map($=>n.jsx("button",{type:"button",onClick:()=>Qr($),className:`px-2 py-0.5 rounded-lg text-xs transition-colors ${f===$?"bg-blue-600 text-white font-medium":"bg-slate-950 text-slate-400 hover:text-slate-200 hover:bg-slate-800 border border-slate-800"}`,children:$},$))}),n.jsx("input",{type:"text",value:f,onChange:$=>m($.target.value),placeholder:"点击上方学生姓名或直接输入...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1",children:[n.jsx(rh,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷通知短语"]}),n.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:Ex.map($=>n.jsx("button",{type:"button",onClick:()=>qr($),className:"px-2.5 py-1.5 rounded-xl bg-slate-950 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-all truncate text-center font-medium",title:$.text,children:$.label},$.label))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"通知内容"}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[v.length,"/200"]})]}),n.jsx("textarea",{rows:3,value:v,onChange:$=>{p($.target.value.slice(0,200)),S(!0)},placeholder:"点击上方模板快速生成,或直接输入通知内容...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none",required:!0}),C&&n.jsxs("div",{className:"mt-2 p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:C})]}),n.jsx("button",{type:"button",onClick:()=>M(null),className:"text-rose-400 hover:text-white p-0.5",children:n.jsx(zn,{className:"w-3.5 h-3.5"})})]})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80",children:[n.jsxs("button",{type:"button",onClick:()=>ue(!ge),className:"w-full flex items-center justify-between text-xs text-slate-400 hover:text-slate-200 transition-colors py-1",children:[n.jsxs("span",{className:"flex items-center gap-1.5 font-medium",children:[ge?n.jsx(Ld,{className:"w-3.5 h-3.5 text-slate-400"}):n.jsx(x0,{className:"w-3.5 h-3.5 text-slate-400"}),"播报与显示设置"]}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[B?"语音开启":"静音"," · ",H?"震屏":"无震"," · ",Q,"秒"]})]}),ge&&n.jsxs("div",{className:"mt-3 p-3 rounded-xl bg-slate-950 border border-slate-800/80 space-y-3 animate-in fade-in duration-100",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[n.jsx("input",{type:"checkbox",checked:B,onChange:$=>J($.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx("span",{className:"text-slate-300",children:"TTS 语音朗读"})]}),n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[n.jsx("input",{type:"checkbox",checked:H,onChange:$=>P($.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx("span",{className:"text-slate-300",children:"窗口抖动震颤"})]})]}),n.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-300 pt-1",children:[n.jsx("span",{children:"停留时长"}),n.jsx("div",{className:"flex items-center gap-1",children:[10,15,30].map($=>n.jsxs("button",{type:"button",onClick:()=>Y($),className:`px-2.5 py-0.5 rounded-lg text-xs font-mono transition-colors ${Q===$?"bg-blue-600 text-white font-semibold":"bg-slate-900 text-slate-400 hover:text-white border border-slate-800"}`,children:[$,"s"]},$))})]}),n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:[n.jsx("input",{type:"checkbox",checked:D,onChange:$=>V($.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600"}),n.jsx("span",{className:"font-semibold",children:"红色紧急通知(全屏优先展示)"})]})]})]}),n.jsx("button",{type:"submit",disabled:oe||!u||!v.trim(),className:"w-full py-3 rounded-xl bg-blue-600 hover:bg-blue-500 active:bg-blue-700 text-white font-semibold text-sm shadow-md shadow-blue-600/20 flex items-center justify-center gap-2 transition-all disabled:opacity-40 disabled:cursor-not-allowed",children:oe?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在投递至教室大屏..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(ao,{className:"w-4 h-4"}),n.jsx("span",{children:"立即发送呼叫"})]})})]})]}),n.jsxs("div",{className:"lg:col-span-7 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-slate-800/70",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Wr,{className:"w-4 h-4 text-emerald-400"}),n.jsx("h2",{className:"text-sm font-semibold text-white",children:"回执动态"}),n.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",rn.length,")"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto max-w-[200px] sm:max-w-none",children:[n.jsx("button",{type:"button",onClick:()=>ce("all"),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors ${U==="all"?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:"全部"}),l.slice(0,3).map($=>n.jsx("button",{type:"button",onClick:()=>ce($.id),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors whitespace-nowrap ${U===$.id?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:$.displayName},$.id))]}),n.jsx("div",{className:"w-36",children:n.jsx(po,{value:we,onChange:Pe,placeholder:"搜索动态...",className:"text-xs"})})]})]}),n.jsxs("div",{className:"space-y-3 max-h-[calc(100vh-250px)] overflow-y-auto pr-1",children:[E&&he.length===0?n.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载回执记录..."})]}):rn.length===0?n.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:we||U!=="all"?"未找到符合条件的通知记录":"暂无呼叫记录,左侧选择班级即可下发"}):rn.map($=>{var Ae;const me=(Ae=$.receipts)==null?void 0:Ae.find(Ce=>Ce.visualReceiptState==="Available");return n.jsxs("div",{className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800/80 hover:border-slate-700/80 transition-all space-y-2.5",children:[n.jsxs("div",{className:"flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2 font-medium text-slate-200",children:[n.jsx("span",{className:"font-semibold text-white",children:$.className}),$.priority==="Urgent"&&n.jsx(Be,{label:"紧急",variant:"rose",dot:!1,className:"py-0 px-1.5 text-[10px]"})]}),n.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date($.createdAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-xs text-slate-300 leading-relaxed bg-slate-900/60 p-2.5 rounded-lg border border-slate-800/60",children:$.message}),n.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between flex-wrap gap-2 text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[$.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400 font-medium text-xs",children:[n.jsx(Vt,{className:"w-3.5 h-3.5 text-emerald-400"}),"学生已点击确认"]}),$.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-sky-400 font-medium text-xs",children:[n.jsx(Br,{className:"w-3.5 h-3.5 text-sky-400"}),"已在大屏展示"]}),$.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-400 text-xs",children:[n.jsx(Vs,{className:"w-3.5 h-3.5 text-amber-400"}),"云端投递中..."]}),$.status==="Cancelled"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-slate-400 text-xs",children:[n.jsx(ma,{className:"w-3.5 h-3.5"}),"已撤回关闭"]}),$.status==="Timeout"&&n.jsx("span",{className:"text-slate-500 text-xs",children:"超时自动收起"}),$.status==="Failed"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-rose-400 text-xs",children:[n.jsx(Un,{className:"w-3.5 h-3.5"}),"投递失败"]}),me&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400/90 text-[11px] font-medium ml-1",children:[n.jsx(co,{className:"w-3.5 h-3.5 text-emerald-400"}),"视觉核验:已完成"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[me&&n.jsxs("button",{type:"button",onClick:()=>Kr($.id,me.deviceId,$.className,me.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 text-xs font-medium border border-blue-500/20 transition-colors",children:[n.jsx(C0,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"查看大屏实际展示"})]}),($.status==="Sent"||$.status==="Delivered")&&!$.isCancelled&&n.jsxs("button",{type:"button",onClick:()=>gn($),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-rose-500/10 text-slate-300 hover:text-rose-400 text-xs font-medium border border-slate-700/60 hover:border-rose-500/30 transition-colors",children:[n.jsx(zn,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"提前关闭"})]})]})]})]},$.id)}),_&&n.jsx("div",{className:"pt-3 text-center",children:n.jsx("button",{type:"button",onClick:Vr,disabled:z,className:"px-4 py-2 rounded-xl bg-slate-950 hover:bg-slate-800 text-slate-300 hover:text-white text-xs font-medium border border-slate-800 transition-colors inline-flex items-center gap-2",children:z?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-3.5 h-3.5 animate-spin text-blue-400"}),n.jsx("span",{children:"正在拉取更早历史..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Mt,{className:"w-3.5 h-3.5 text-slate-400"}),n.jsx("span",{children:"加载更多历史回执 (+50)"})]})})})]})]})]}),_e&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"w-full max-w-3xl bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[n.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(co,{className:"w-5 h-5 text-emerald-400"}),n.jsxs("h3",{className:"font-semibold text-white text-base",children:[_e.className," · 通知视觉核验"]})]}),n.jsx("button",{type:"button",onClick:Vn,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(zn,{className:"w-5 h-5"})})]}),n.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[Ks&&n.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[n.jsx(Gt,{className:"w-8 h-8 animate-spin text-blue-400"}),n.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),hs&&n.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[n.jsx(mn,{className:"w-8 h-8 text-rose-400"}),n.jsx("span",{children:hs})]}),et&&!Ks&&n.jsxs("div",{className:"flex flex-col items-center w-full",children:[n.jsx("div",{className:"overflow-auto max-h-[58vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:n.jsx("img",{src:et,alt:"教室大屏实际展示画面",style:{transform:`scale(${Wn})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[52vh]"})}),n.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[n.jsx("button",{type:"button",onClick:()=>en($=>Math.max(.5,+($-.25).toFixed(2))),disabled:Wn<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:n.jsx(hx,{className:"w-4 h-4"})}),n.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(Wn*100),"%"]}),n.jsx("button",{type:"button",onClick:()=>en($=>Math.min(3,+($+.25).toFixed(2))),disabled:Wn>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:n.jsx(ux,{className:"w-4 h-4"})}),n.jsx("button",{type:"button",onClick:()=>en(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),n.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[n.jsx("span",{children:_e.capturedAt?`捕获时间: ${new Date(_e.capturedAt).toLocaleString()}`:""}),n.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),tn&&n.jsx(Fn,{isOpen:!0,onClose:()=>gn(null),title:"提前关闭并撤回通知?",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"bg-slate-950 p-3 rounded-xl border border-slate-800 text-xs text-slate-300",children:[n.jsxs("div",{className:"text-slate-400 text-[11px] mb-1",children:["班级:",n.jsx("span",{className:"text-white font-medium",children:tn.className})]}),n.jsx("p",{className:"line-clamp-3",children:tn.message})]}),n.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300/90 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏下发终止指令,",n.jsx("strong",{children:"停止语音播报并收起弹窗"}),"。"]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[n.jsx("button",{type:"button",disabled:nn,onClick:()=>gn(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"button",disabled:nn,onClick:ps,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center gap-1.5 disabled:opacity-50",children:nn?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在撤回..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(ma,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},Px=()=>{const{user:a,isLoading:l}=Ws();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?n.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[n.jsx(mx,{}),n.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:n.jsx(Jd,{})})]}):n.jsx(Yt,{to:"/login",replace:!0})},Ix=()=>{const{user:a,isLoading:l}=Ws();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?n.jsx(Yt,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?n.jsx(Yt,{to:"/school-admin",replace:!0}):n.jsx(Yt,{to:"/teacher",replace:!0}):n.jsx(Yt,{to:"/login",replace:!0})},Rx=()=>n.jsxs(ip,{children:[n.jsx(Je,{path:"/login",element:n.jsx(px,{})}),n.jsx(Je,{path:"/",element:n.jsx(Ix,{})}),n.jsxs(Je,{element:n.jsx(Px,{}),children:[n.jsxs(Je,{element:n.jsx(ia,{allowedRoles:["SuperAdmin"]}),children:[n.jsx(Je,{path:"/admin",element:n.jsx(gx,{})}),n.jsx(Je,{path:"/admin/tenants",element:n.jsx(bx,{})}),n.jsx(Je,{path:"/admin/users",element:n.jsx(jx,{})}),n.jsx(Je,{path:"/admin/devices",element:n.jsx(vx,{})}),n.jsx(Je,{path:"/admin/broadcast",element:n.jsx(Nx,{})}),n.jsx(Je,{path:"/admin/codes",element:n.jsx(yx,{})}),n.jsx(Je,{path:"/admin/history",element:n.jsx(wx,{})})]}),n.jsxs(Je,{element:n.jsx(ia,{allowedRoles:["SchoolAdmin"]}),children:[n.jsx(Je,{path:"/school-admin",element:n.jsx(_x,{})}),n.jsx(Je,{path:"/school-admin/classes",element:n.jsx(Sx,{})}),n.jsx(Je,{path:"/school-admin/teachers",element:n.jsx(kx,{})}),n.jsx(Je,{path:"/school-admin/codes",element:n.jsx(Cx,{})})]}),n.jsx(Je,{element:n.jsx(ia,{allowedRoles:["Teacher"]}),children:n.jsx(Je,{path:"/teacher",element:n.jsx(Tx,{})})})]}),n.jsx(Je,{path:"*",element:n.jsx(Yt,{to:"/",replace:!0})})]}),Lx=()=>n.jsx(l0,{children:n.jsx(pp,{children:n.jsx(Rx,{})})});pm.createRoot(document.getElementById("root")).render(n.jsx(Md.StrictMode,{children:n.jsx(Lx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-9-x0O3AO.js ================================================================================ var sm=Object.defineProperty;var rm=(a,l,i)=>l in a?sm(a,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[l]=i;var wt=(a,l,i)=>rm(a,typeof l!="symbol"?l+"":l,i);function lm(a,l){for(var i=0;iu[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function i(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=i(d);fetch(d.href,f)}})();function $d(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ta={exports:{}},Lr={},na={exports:{}},Ne={};/** * @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 ud;function om(){if(ud)return Ne;ud=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),C=Symbol.iterator;function M(b){return b===null||typeof b!="object"?null:(b=C&&b[C]||b["@@iterator"],typeof b=="function"?b:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,H={};function P(b,R,de){this.props=b,this.context=R,this.refs=H,this.updater=de||B}P.prototype.isReactComponent={},P.prototype.setState=function(b,R){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,R,"setState")},P.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function L(){}L.prototype=P.prototype;function q(b,R,de){this.props=b,this.context=R,this.refs=H,this.updater=de||B}var K=q.prototype=new L;K.constructor=q,J(K,P.prototype),K.isPureReactComponent=!0;var Z=Array.isArray,le=Object.prototype.hasOwnProperty,ce={current:null},he={key:!0,ref:!0,__self:!0,__source:!0};function fe(b,R,de){var U,ue={},be=null,Pe=null;if(R!=null)for(U in R.ref!==void 0&&(Pe=R.ref),R.key!==void 0&&(be=""+R.key),R)le.call(R,U)&&!he.hasOwnProperty(U)&&(ue[U]=R[U]);var Se=arguments.length-2;if(Se===1)ue.children=de;else if(1>>1,R=_[b];if(0>>1;bd(ue,E))bed(Pe,ue)?(_[b]=Pe,_[be]=E,b=be):(_[b]=ue,_[U]=E,b=U);else if(bed(Pe,E))_[b]=Pe,_[be]=E,b=be;else break e}}return Q}function d(_,Q){var E=_.sortIndex-Q.sortIndex;return E!==0?E:_.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();a.unstable_now=function(){return m.now()-v}}var p=[],j=[],S=1,C=null,M=3,B=!1,J=!1,H=!1,P=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function K(_){for(var Q=i(j);Q!==null;){if(Q.callback===null)u(j);else if(Q.startTime<=_)u(j),Q.sortIndex=Q.expirationTime,l(p,Q);else break;Q=i(j)}}function Z(_){if(H=!1,K(_),!J)if(i(p)!==null)J=!0,O(le);else{var Q=i(j);Q!==null&&re(Z,Q.startTime-_)}}function le(_,Q){J=!1,H&&(H=!1,L(fe),fe=-1),B=!0;var E=M;try{for(K(Q),C=i(p);C!==null&&(!(C.expirationTime>Q)||_&&!X());){var b=C.callback;if(typeof b=="function"){C.callback=null,M=C.priorityLevel;var R=b(C.expirationTime<=Q);Q=a.unstable_now(),typeof R=="function"?C.callback=R:C===i(p)&&u(p),K(Q)}else u(p);C=i(p)}if(C!==null)var de=!0;else{var U=i(j);U!==null&&re(Z,U.startTime-Q),de=!1}return de}finally{C=null,M=E,B=!1}}var ce=!1,he=null,fe=-1,G=5,ye=-1;function X(){return!(a.unstable_now()-ye_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return M},a.unstable_getFirstCallbackNode=function(){return i(p)},a.unstable_next=function(_){switch(M){case 1:case 2:case 3:var Q=3;break;default:Q=M}var E=M;M=Q;try{return _()}finally{M=E}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(_,Q){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var E=M;M=_;try{return Q()}finally{M=E}},a.unstable_scheduleCallback=function(_,Q,E){var b=a.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0b?(_.sortIndex=E,l(j,_),i(p)===null&&_===i(j)&&(H?(L(fe),fe=-1):H=!0,re(Z,E-b))):(_.sortIndex=R,l(p,_),J||B||(J=!0,O(le))),_},a.unstable_shouldYield=X,a.unstable_wrapCallback=function(_){var Q=M;return function(){var E=M;M=Q;try{return _.apply(this,arguments)}finally{M=E}}}})(la)),la}var pd;function dm(){return pd||(pd=1,ra.exports=um()),ra.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 xd;function hm(){if(xd)return bt;xd=1;var a=ga(),l=dm();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,S={},C={};function M(e){return p.call(C,e)?!0:p.call(S,e)?!1:j.test(e)?C[e]=!0:(S[e]=!0,!1)}function B(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 J(e,t,n,r){if(t===null||typeof t>"u"||B(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 H(e,t,n,r,o,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new H(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new H(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new H(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new H(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){P[e]=new H(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new H(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new H(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new H(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new H(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function q(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(L,q);P[t]=new H(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(L,q);P[t]=new H(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(L,q);P[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new H(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new H(e,1,!1,e.toLowerCase(),null,!0,!0)});function K(e,t,n,r){var o=P.hasOwnProperty(t)?P[t]:null;(o!==null?o.type!==0:r||!(2g||o[h]!==c[g]){var y=` `+o[h].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=h&&0<=g);break}}}finally{de=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function ue(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1),e;case 11:return e=U(e.type.render,!1),e;case 1:return e=U(e.type,!0),e;default:return""}}function be(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 he:return"Fragment";case ce:return"Portal";case G:return"Profiler";case fe:return"StrictMode";case V:return"Suspense";case $:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case pe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ve:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}function Pe(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 be(t);case 8:return t===fe?"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 Se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function et(e){var t=Re(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 o=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gn(e){e._valueTracker||(e._valueTracker=et(e))}function Qs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Re(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Hn(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 fs(e,t){var n=t.checked;return E({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ms(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Se(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 Wn(e,t){t=t.checked,t!=null&&K(e,"checked",t,!1)}function en(e,t){Wn(e,t);var n=Se(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")?vn(e,t.type,n):t.hasOwnProperty("defaultValue")&&vn(e,t.type,Se(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tn(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 vn(e,t,n){(t!=="number"||Hn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nn=Array.isArray;function sn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var rn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},go=["Webkit","ms","Moz","O"];Object.keys(rn).forEach(function(e){go.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rn[t]=rn[e]})});function Xs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||rn.hasOwnProperty(e)&&rn[e]?(""+t).trim():t+"px"}function D(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Xs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var xe=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Be(e,t){if(t){if(xe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Ee(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var He=null;function Qe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ft=null,mt=null,Nt=null;function Ca(e){if(e=vr(e)){if(typeof ft!="function")throw Error(i(280));var t=e.stateNode;t&&(t=gl(t),ft(e.stateNode,e.type,t))}}function Ea(e){mt?Nt?Nt.push(e):Nt=[e]:mt=e}function Ta(){if(mt){var e=mt,t=Nt;if(Nt=mt=null,Ca(e),t)for(e=0;e>>=0,e===0?32:31-(vh(e)/yh|0)|0}var Zr=64,el=4194304;function er(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,c=e.pingedLanes,h=n&268435455;if(h!==0){var g=h&~o;g!==0?r=er(g):(c&=h,c!==0&&(r=er(c)))}else h=n&~o,h!==0?r=er(h):c!==0&&(r=er(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,c=t&-t,o>=c||o===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function tr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=n}function Nh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=cr),sc=" ",rc=!1;function lc(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function Zh(e,t){switch(e){case"compositionend":return oc(t);case"keypress":return t.which!==32?null:(rc=!0,sc);case"textInput":return e=t.data,e===sc&&rc?null:e;default:return null}}function ef(e,t){if(ys)return e==="compositionend"||!$o&&lc(e,t)?(e=Ga(),ol=To=Nn=null,ys=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fc(n)}}function pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xc(){for(var e=window,t=Hn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hn(e.document)}return t}function Oo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uf(e){var t=xc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pc(n.ownerDocument.documentElement,n)){if(r!==null&&Oo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,c=Math.min(r.start,o);r=r.end===void 0?c:Math.min(r.end,o),!e.extend&&c>r&&(o=r,r=c,c=o),o=mc(n,c);var h=mc(n,r);o&&h&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ws=null,zo=null,fr=null,Uo=!1;function gc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uo||ws==null||ws!==Hn(r)||(r=ws,"selectionStart"in r&&Oo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),fr&&hr(fr,r)||(fr=r,r=ml(zo,"onSelect"),0Ss||(e.current=Yo[Ss],Yo[Ss]=null,Ss--)}function Le(e,t){Ss++,Yo[Ss]=e.current,e.current=t}var Cn={},ot=kn(Cn),pt=kn(!1),Kn=Cn;function ks(e,t){var n=e.type.contextTypes;if(!n)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in n)o[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xt(e){return e=e.childContextTypes,e!=null}function vl(){$e(pt),$e(ot)}function Rc(e,t,n){if(ot.current!==Cn)throw Error(i(168));Le(ot,t),Le(pt,n)}function Lc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(i(108,Pe(e)||"Unknown",o));return E({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Kn=ot.current,Le(ot,e),Le(pt,pt.current),!0}function Dc(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Lc(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,$e(pt),$e(ot),Le(ot,e)):$e(pt),Le(pt,n)}var on=null,wl=!1,Zo=!1;function $c(e){on===null?on=[e]:on.push(e)}function jf(e){wl=!0,$c(e)}function En(){if(!Zo&&on!==null){Zo=!0;var e=0,t=Te;try{var n=on;for(Te=1;e>=h,o-=h,an=1<<32-At(t)+o|n<me?(st=ae,ae=null):st=ae.sibling;var Ce=A(N,ae,k[me],W);if(Ce===null){ae===null&&(ae=st);break}e&&ae&&Ce.alternate===null&&t(N,ae),w=c(Ce,w,me),ie===null?se=Ce:ie.sibling=Ce,ie=Ce,ae=st}if(me===k.length)return n(N,ae),Me&&Xn(N,me),se;if(ae===null){for(;meme?(st=ae,ae=null):st=ae.sibling;var An=A(N,ae,Ce.value,W);if(An===null){ae===null&&(ae=st);break}e&&ae&&An.alternate===null&&t(N,ae),w=c(An,w,me),ie===null?se=An:ie.sibling=An,ie=An,ae=st}if(Ce.done)return n(N,ae),Me&&Xn(N,me),se;if(ae===null){for(;!Ce.done;me++,Ce=k.next())Ce=F(N,Ce.value,W),Ce!==null&&(w=c(Ce,w,me),ie===null?se=Ce:ie.sibling=Ce,ie=Ce);return Me&&Xn(N,me),se}for(ae=r(N,ae);!Ce.done;me++,Ce=k.next())Ce=Y(ae,N,me,Ce.value,W),Ce!==null&&(e&&Ce.alternate!==null&&ae.delete(Ce.key===null?me:Ce.key),w=c(Ce,w,me),ie===null?se=Ce:ie.sibling=Ce,ie=Ce);return e&&ae.forEach(function(nm){return t(N,nm)}),Me&&Xn(N,me),se}function Ve(N,w,k,W){if(typeof k=="object"&&k!==null&&k.type===he&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case le:e:{for(var se=k.key,ie=w;ie!==null;){if(ie.key===se){if(se=k.type,se===he){if(ie.tag===7){n(N,ie.sibling),w=o(ie,k.props.children),w.return=N,N=w;break e}}else if(ie.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===O&&Fc(se)===ie.type){n(N,ie.sibling),w=o(ie,k.props),w.ref=yr(N,ie,k),w.return=N,N=w;break e}n(N,ie);break}else t(N,ie);ie=ie.sibling}k.type===he?(w=rs(k.props.children,N.mode,W,k.key),w.return=N,N=w):(W=Kl(k.type,k.key,k.props,null,N.mode,W),W.ref=yr(N,w,k),W.return=N,N=W)}return h(N);case ce:e:{for(ie=k.key;w!==null;){if(w.key===ie)if(w.tag===4&&w.stateNode.containerInfo===k.containerInfo&&w.stateNode.implementation===k.implementation){n(N,w.sibling),w=o(w,k.children||[]),w.return=N,N=w;break e}else{n(N,w);break}else t(N,w);w=w.sibling}w=Xi(k,N.mode,W),w.return=N,N=w}return h(N);case O:return ie=k._init,Ve(N,w,ie(k._payload),W)}if(nn(k))return te(N,w,k,W);if(Q(k))return ne(N,w,k,W);_l(N,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,w!==null&&w.tag===6?(n(N,w.sibling),w=o(w,k),w.return=N,N=w):(n(N,w),w=Ji(k,N.mode,W),w.return=N,N=w),h(N)):n(N,w)}return Ve}var Ps=Bc(!0),Hc=Bc(!1),Sl=kn(null),kl=null,Is=null,li=null;function oi(){li=Is=kl=null}function ii(e){var t=Sl.current;$e(Sl),e._currentValue=t}function ai(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Rs(e,t){kl=e,li=Is=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(gt=!0),e.firstContext=null)}function It(e){var t=e._currentValue;if(li!==e)if(e={context:e,memoizedValue:t,next:null},Is===null){if(kl===null)throw Error(i(308));Is=e,kl.dependencies={lanes:0,firstContext:e}}else Is=Is.next=e;return t}var Gn=null;function ci(e){Gn===null?Gn=[e]:Gn.push(e)}function Wc(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ci(t)):(n.next=o.next,o.next=n),t.interleaved=n,un(e,r)}function un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Tn=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ke&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,un(e,n)}return o=r.interleaved,o===null?(t.next=t,ci(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,n)}function Cl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_o(e,n)}}function qc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};c===null?o=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function El(e,t,n,r){var o=e.updateQueue;Tn=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var y=g,T=y.next;y.next=null,h===null?c=T:h.next=T,h=y;var z=e.alternate;z!==null&&(z=z.updateQueue,g=z.lastBaseUpdate,g!==h&&(g===null?z.firstBaseUpdate=T:g.next=T,z.lastBaseUpdate=y))}if(c!==null){var F=o.baseState;h=0,z=T=y=null,g=c;do{var A=g.lane,Y=g.eventTime;if((r&A)===A){z!==null&&(z=z.next={eventTime:Y,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var te=e,ne=g;switch(A=t,Y=n,ne.tag){case 1:if(te=ne.payload,typeof te=="function"){F=te.call(Y,F,A);break e}F=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ne.payload,A=typeof te=="function"?te.call(Y,F,A):te,A==null)break e;F=E({},F,A);break e;case 2:Tn=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,A=o.effects,A===null?o.effects=[g]:A.push(g))}else Y={eventTime:Y,lane:A,tag:g.tag,payload:g.payload,callback:g.callback,next:null},z===null?(T=z=Y,y=F):z=z.next=Y,h|=A;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;A=g,g=A.next,A.next=null,o.lastBaseUpdate=A,o.shared.pending=null}}while(!0);if(z===null&&(y=F),o.baseState=y,o.firstBaseUpdate=T,o.lastBaseUpdate=z,t=o.shared.interleaved,t!==null){o=t;do h|=o.lane,o=o.next;while(o!==t)}else c===null&&(o.shared.lanes=0);es|=h,e.lanes=h,e.memoizedState=F}}function Qc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{Te=n,pi.transition=r}}function hu(){return Rt().memoizedState}function kf(e,t,n){var r=Dn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fu(e))mu(t,n);else if(n=Wc(e,t,n,r),n!==null){var o=ht();Ht(n,e,r,o),pu(n,t,r)}}function Cf(e,t,n){var r=Dn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fu(e))mu(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,g=c(h,n);if(o.hasEagerState=!0,o.eagerState=g,Ot(g,h)){var y=t.interleaved;y===null?(o.next=o,ci(t)):(o.next=y.next,y.next=o),t.interleaved=o;return}}catch{}finally{}n=Wc(e,t,o,r),n!==null&&(o=ht(),Ht(n,e,r,o),pu(n,t,r))}}function fu(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function mu(e,t){Nr=Il=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pu(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,_o(e,n)}}var Dl={readContext:It,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Ef={readContext:It,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:ru,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Rl(4194308,4,iu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kf.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:nu,useDebugValue:ji,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=nu(!1),t=e[0];return e=Sf.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=Jt();if(Me){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nt===null)throw Error(i(349));(Zn&30)!==0||Gc(r,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,ru(Zc.bind(null,r,c,e),[e]),r.flags|=2048,kr(9,Yc.bind(null,r,c,n,t),void 0,null),n},useId:function(){var e=Jt(),t=nt.identifierPrefix;if(Me){var n=cn,r=an;n=(r&~(1<<32-At(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_r++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(n,{is:r.is}):(e=h.createElement(n),n==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,n),e[Qt]=t,e[gr]=r,$u(e,t,!1,!1),t.stateNode=e;e:{switch(h=Ee(n,r),n){case"dialog":De("cancel",e),De("close",e),o=r;break;case"iframe":case"object":case"embed":De("load",e),o=r;break;case"video":case"audio":for(o=0;oAs&&(t.flags|=128,r=!0,Cr(c,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(h),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Me)return at(t),null}else 2*We()-c.renderingStartTime>As&&n!==1073741824&&(t.flags|=128,r=!0,Cr(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(n=c.last,n!==null?n.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=We(),t.sibling=null,n=Ae.current,Le(Ae,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return qi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ct&1073741824)!==0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Mf(e,t){switch(ti(t),t.tag){case 1:return xt(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ls(),$e(pt),$e(ot),mi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return hi(t),null;case 13:if($e(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Ae),null;case 4:return Ls(),null;case 10:return ii(t.type._context),null;case 22:case 23:return qi(),null;case 24:return null;default:return null}}var Ol=!1,ct=!1,Af=typeof WeakSet=="function"?WeakSet:Set,ee=null;function $s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Fe(e,t,r)}else n.current=null}function Di(e,t,n){try{n()}catch(r){Fe(e,t,r)}}var Ou=!1;function Of(e,t){if(qo=rl,e=xc(),Oo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,g=-1,y=-1,T=0,z=0,F=e,A=null;t:for(;;){for(var Y;F!==n||o!==0&&F.nodeType!==3||(g=h+o),F!==c||r!==0&&F.nodeType!==3||(y=h+r),F.nodeType===3&&(h+=F.nodeValue.length),(Y=F.firstChild)!==null;)A=F,F=Y;for(;;){if(F===e)break t;if(A===n&&++T===o&&(g=h),A===c&&++z===r&&(y=h),(Y=F.nextSibling)!==null)break;F=A,A=F.parentNode}F=Y}n=g===-1||y===-1?null:{start:g,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qo={focusedElem:e,selectionRange:n},rl=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var te=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var ne=te.memoizedProps,Ve=te.memoizedState,N=t.stateNode,w=N.getSnapshotBeforeUpdate(t.elementType===t.type?ne:Ut(t.type,ne),Ve);N.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(W){Fe(t,t.return,W)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return te=Ou,Ou=!1,te}function Er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Di(t,n,c)}o=o.next}while(o!==r)}}function zl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $i(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zu(e){var t=e.alternate;t!==null&&(e.alternate=null,zu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[gr],delete t[Go],delete t[wf],delete t[bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uu(e){return e.tag===5||e.tag===3||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xl));else if(r!==4&&(e=e.child,e!==null))for(Mi(e,t,n),e=e.sibling;e!==null;)Mi(e,t,n),e=e.sibling}function Ai(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ai(e,t,n),e=e.sibling;e!==null;)Ai(e,t,n),e=e.sibling}var rt=null,Ft=!1;function In(e,t,n){for(n=n.child;n!==null;)Bu(e,t,n),n=n.sibling}function Bu(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Yr,n)}catch{}switch(n.tag){case 5:ct||$s(n,t);case 6:var r=rt,o=Ft;rt=null,In(e,t,n),rt=r,Ft=o,rt!==null&&(Ft?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(Ft?(e=rt,n=n.stateNode,e.nodeType===8?Xo(e.parentNode,n):e.nodeType===1&&Xo(e,n),or(e)):Xo(rt,n.stateNode));break;case 4:r=rt,o=Ft,rt=n.stateNode.containerInfo,Ft=!0,In(e,t,n),rt=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!ct&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var c=o,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&Di(n,t,h),o=o.next}while(o!==r)}In(e,t,n);break;case 1:if(!ct&&($s(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(g){Fe(n,t,g)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(ct=(r=ct)||n.memoizedState!==null,In(e,t,n),ct=r):In(e,t,n);break;default:In(e,t,n)}}function Hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Af),t.forEach(function(r){var o=Qf.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=h),r&=~c}if(r=o,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uf(r/1960))-r,10e?16:e,Ln===null)var r=!1;else{if(e=Ln,Ln=null,Wl=0,(ke&6)!==0)throw Error(i(331));var o=ke;for(ke|=4,ee=e.current;ee!==null;){var c=ee,h=c.child;if((ee.flags&16)!==0){var g=c.deletions;if(g!==null){for(var y=0;yWe()-Ui?ns(e,0):zi|=n),yt(e,t)}function nd(e,t){t===0&&((e.mode&1)===0?t=1:(t=el,el<<=1,(el&130023424)===0&&(el=4194304)));var n=ht();e=un(e,t),e!==null&&(tr(e,t,n),yt(e,n))}function qf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function Qf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}r!==null&&r.delete(t),nd(e,n)}var sd;sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)gt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return gt=!1,Df(e,t,n);gt=(e.flags&131072)!==0}else gt=!1,Me&&(t.flags&1048576)!==0&&Mc(t,jl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Al(e,t),e=t.pendingProps;var o=ks(t,ot.current);Rs(t,n),o=gi(null,t,r,e,o,n);var c=vi();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(r)?(c=!0,yl(t)):c=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ui(t),o.updater=$l,t.stateNode=o,o._reactInternals=t,_i(t,r,e,n),t=Ei(null,t,r,!0,c,n)):(t.tag=0,Me&&c&&ei(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Jf(r),e=Ut(r,e),o){case 0:t=Ci(null,t,r,e,n);break e;case 1:t=Tu(null,t,r,e,n);break e;case 11:t=_u(null,t,r,e,n);break e;case 14:t=Su(null,t,r,Ut(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),Ci(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),Tu(e,t,r,o,n);case 3:e:{if(Pu(t),e===null)throw Error(i(387));r=t.pendingProps,c=t.memoizedState,o=c.element,Vc(e,t),El(t,r,null,n);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){o=Ds(Error(i(423)),t),t=Iu(e,t,r,n,o);break e}else if(r!==o){o=Ds(Error(i(424)),t),t=Iu(e,t,r,n,o);break e}else for(kt=Sn(t.stateNode.containerInfo.firstChild),St=t,Me=!0,zt=null,n=Hc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ts(),r===o){t=hn(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return Kc(t),e===null&&si(t),r=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,h=o.children,Ko(r,o)?h=null:c!==null&&Ko(r,c)&&(t.flags|=32),Eu(e,t),dt(e,t,h,n),t.child;case 6:return e===null&&si(t),null;case 13:return Ru(e,t,n);case 4:return di(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ps(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),_u(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,c=t.memoizedProps,h=o.value,Le(Sl,r._currentValue),r._currentValue=h,c!==null)if(Ot(c.value,h)){if(c.children===o.children&&!pt.current){t=hn(e,t,n);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var g=c.dependencies;if(g!==null){h=c.child;for(var y=g.firstContext;y!==null;){if(y.context===r){if(c.tag===1){y=dn(-1,n&-n),y.tag=2;var T=c.updateQueue;if(T!==null){T=T.shared;var z=T.pending;z===null?y.next=y:(y.next=z.next,z.next=y),T.pending=y}}c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),ai(c.return,n,t),g.lanes|=n;break}y=y.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(i(341));h.lanes|=n,g=h.alternate,g!==null&&(g.lanes|=n),ai(h,n,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rs(t,n),o=It(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=Ut(r,t.pendingProps),o=Ut(r.type,o),Su(e,t,r,o,n);case 15:return ku(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ut(r,o),Al(e,t),t.tag=1,xt(r)?(e=!0,yl(t)):e=!1,Rs(t,n),gu(t,r,o),_i(t,r,o,n),Ei(null,t,r,!0,e,n);case 19:return Du(e,t,n);case 22:return Cu(e,t,n)}throw Error(i(156,t.tag))};function rd(e,t){return Aa(e,t)}function Kf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,r){return new Kf(e,t,n,r)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jf(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pe)return 11;if(e===ve)return 14}return 2}function Mn(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kl(e,t,n,r,o,c){var h=2;if(r=e,typeof e=="function")Ki(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case he:return rs(n.children,o,c,t);case fe:h=8,o|=8;break;case G:return e=Dt(12,n,t,o|2),e.elementType=G,e.lanes=c,e;case V:return e=Dt(13,n,t,o),e.elementType=V,e.lanes=c,e;case $:return e=Dt(19,n,t,o),e.elementType=$,e.lanes=c,e;case re:return Jl(n,o,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:h=10;break e;case X:h=9;break e;case pe:h=11;break e;case ve:h=14;break e;case O:h=16,r=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=Dt(h,n,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function rs(e,t,n,r){return e=Dt(7,e,r,t),e.lanes=n,e}function Jl(e,t,n,r){return e=Dt(22,e,r,t),e.elementType=re,e.lanes=n,e.stateNode={isHidden:!1},e}function Ji(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Xi(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xf(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=No(0),this.expirationTimes=No(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=No(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gi(e,t,n,r,o,c,h,g,y){return e=new Xf(e,t,n,g,y),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Dt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ui(c),e}function Gf(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),sa.exports=hm(),sa.exports}var vd;function fm(){if(vd)return no;vd=1;var a=Ad();return no.createRoot=a.createRoot,no.hydrateRoot=a.hydrateRoot,no}var mm=fm();const pm=$d(mm);Ad();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ar(){return Ar=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Od(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function gm(){return Math.random().toString(36).substr(2,8)}function wd(a,l){return{usr:a.state,key:a.key,idx:l}}function ua(a,l,i,u){return i===void 0&&(i=null),Ar({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?Ws(l):l,{state:i,key:l&&l.key||u||gm()})}function ro(a){let{pathname:l="/",search:i="",hash:u=""}=a;return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Ws(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substr(i),a=a.substr(0,i));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function vm(a,l,i,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,v=On.Pop,p=null,j=S();j==null&&(j=0,m.replaceState(Ar({},m.state,{idx:j}),""));function S(){return(m.state||{idx:null}).idx}function C(){v=On.Pop;let P=S(),L=P==null?null:P-j;j=P,p&&p({action:v,location:H.location,delta:L})}function M(P,L){v=On.Push;let q=ua(H.location,P,L);j=S()+1;let K=wd(q,j),Z=H.createHref(q);try{m.pushState(K,"",Z)}catch(le){if(le instanceof DOMException&&le.name==="DataCloneError")throw le;d.location.assign(Z)}f&&p&&p({action:v,location:H.location,delta:1})}function B(P,L){v=On.Replace;let q=ua(H.location,P,L);j=S();let K=wd(q,j),Z=H.createHref(q);m.replaceState(K,"",Z),f&&p&&p({action:v,location:H.location,delta:0})}function J(P){let L=d.location.origin!=="null"?d.location.origin:d.location.href,q=typeof P=="string"?P:ro(P);return q=q.replace(/ $/,"%20"),qe(L,"No window.location.(origin|href) available to create URL for href: "+q),new URL(q,L)}let H={get action(){return v},get location(){return a(d,m)},listen(P){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(yd,C),p=P,()=>{d.removeEventListener(yd,C),p=null}},createHref(P){return l(d,P)},createURL:J,encodeLocation(P){let L=J(P);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:M,replace:B,go(P){return m.go(P)}};return H}var bd;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(bd||(bd={}));function ym(a,l,i){return i===void 0&&(i="/"),wm(a,l,i)}function wm(a,l,i,u){let d=typeof l=="string"?Ws(l):l,f=va(d.pathname||"/",i);if(f==null)return null;let m=zd(a);bm(m);let v=null,p=Lm(f);for(let j=0;v==null&&j{let p={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(qe(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=zn([u,p.relativePath]),S=i.concat(p);f.children&&f.children.length>0&&(qe(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),zd(f.children,l,S,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:Em(j,f.index),routesMeta:S})};return a.forEach((f,m)=>{var v;if(f.path===""||!((v=f.path)!=null&&v.includes("?")))d(f,m);else for(let p of Ud(f.path))d(f,m,p)}),l}function Ud(a){let l=a.split("/");if(l.length===0)return[];let[i,...u]=l,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Ud(u.join("/")),v=[];return v.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&v.push(...m),v.map(p=>a.startsWith("/")&&p===""?"/":p)}function bm(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:Tm(l.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}const jm=/^:[\w-]+$/,Nm=3,_m=2,Sm=1,km=10,Cm=-2,jd=a=>a==="*";function Em(a,l){let i=a.split("/"),u=i.length;return i.some(jd)&&(u+=Cm),l&&(u+=_m),i.filter(d=>!jd(d)).reduce((d,f)=>d+(jm.test(f)?Nm:f===""?Sm:km),u)}function Tm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function Pm(a,l,i){let{routesMeta:u}=a,d={},f="/",m=[];for(let v=0;v{let{paramName:M,isOptional:B}=S;if(M==="*"){let H=v[C]||"";m=f.slice(0,f.length-H.length).replace(/(.)\/+$/,"$1")}const J=v[C];return B&&!J?j[M]=void 0:j[M]=(J||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function Rm(a,l,i){l===void 0&&(l=!1),i===void 0&&(i=!0),Od(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,v,p)=>(u.push({paramName:v,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function Lm(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Od(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function va(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,u=a.charAt(i);return u&&u!=="/"?null:a.slice(i)||"/"}function Dm(a,l){l===void 0&&(l="/");let{pathname:i,search:u="",hash:d=""}=typeof a=="string"?Ws(a):a,f;return i?(i=Fd(i),i.startsWith("/")?f=Nd(i.substring(1),"/"):f=Nd(i,l)):f=l,{pathname:f,search:Am(u),hash:Om(d)}}function Nd(a,l){let i=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function oa(a,l,i,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $m(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function ya(a,l){let i=$m(a);return l?i.map((u,d)=>d===i.length-1?u.pathname:u.pathnameBase):i.map(u=>u.pathnameBase)}function wa(a,l,i,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=Ws(a):(d=Ar({},a),qe(!d.pathname||!d.pathname.includes("?"),oa("?","pathname","search",d)),qe(!d.pathname||!d.pathname.includes("#"),oa("#","pathname","hash",d)),qe(!d.search||!d.search.includes("#"),oa("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,v;if(m==null)v=i;else{let C=l.length-1;if(!u&&m.startsWith("..")){let M=m.split("/");for(;M[0]==="..";)M.shift(),C-=1;d.pathname=M.join("/")}v=C>=0?l[C]:"/"}let p=Dm(d,v),j=m&&m!=="/"&&m.endsWith("/"),S=(f||m===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(j||S)&&(p.pathname+="/"),p}const Fd=a=>a.replace(/\/\/+/g,"/"),zn=a=>Fd(a.join("/")),Mm=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Am=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Om=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function zm(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const Bd=["post","put","patch","delete"];new Set(Bd);const Um=["get",...Bd];new Set(Um);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Or(){return Or=Object.assign?Object.assign.bind():function(a){for(var l=1;l{v.current=!0}),x.useCallback(function(j,S){if(S===void 0&&(S={}),!v.current)return;if(typeof j=="number"){u.go(j);return}let C=wa(j,JSON.parse(m),f,S.relative==="path");a==null&&l!=="/"&&(C.pathname=C.pathname==="/"?l:zn([l,C.pathname])),(S.replace?u.replace:u.push)(C,S.state,S)},[l,u,m,f,a])}const Wm=x.createContext(null);function Vm(a){let l=x.useContext(xn).outlet;return l&&x.createElement(Wm.Provider,{value:a},l)}function Vd(a,l){let{relative:i}=l===void 0?{}:l,{future:u}=x.useContext(Bn),{matches:d}=x.useContext(xn),{pathname:f}=ds(),m=JSON.stringify(ya(d,u.v7_relativeSplatPath));return x.useMemo(()=>wa(a,JSON.parse(m),f,i==="path"),[a,m,f,i])}function qm(a,l){return Qm(a,l)}function Qm(a,l,i,u){Vs()||qe(!1);let{navigator:d}=x.useContext(Bn),{matches:f}=x.useContext(xn),m=f[f.length-1],v=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=ds(),S;if(l){var C;let P=typeof l=="string"?Ws(l):l;p==="/"||(C=P.pathname)!=null&&C.startsWith(p)||qe(!1),S=P}else S=j;let M=S.pathname||"/",B=M;if(p!=="/"){let P=p.replace(/^\//,"").split("/");B="/"+M.replace(/^\//,"").split("/").slice(P.length).join("/")}let J=ym(a,{pathname:B}),H=Ym(J&&J.map(P=>Object.assign({},P,{params:Object.assign({},v,P.params),pathname:zn([p,d.encodeLocation?d.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?p:zn([p,d.encodeLocation?d.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),f,i,u);return l&&H?x.createElement(ho.Provider,{value:{location:Or({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:On.Pop}},H):H}function Km(){let a=np(),l=zm(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},l),i?x.createElement("pre",{style:d},i):null,null)}const Jm=x.createElement(Km,null);class Xm extends x.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){console.error("React Router caught the following error during render",l,i)}render(){return this.state.error!==void 0?x.createElement(xn.Provider,{value:this.props.routeContext},x.createElement(Hd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gm(a){let{routeContext:l,match:i,children:u}=a,d=x.useContext(ba);return d&&d.static&&d.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement(xn.Provider,{value:l},u)}function Ym(a,l,i,u){var d;if(l===void 0&&(l=[]),i===void 0&&(i=null),u===void 0&&(u=null),a==null){var f;if(!i)return null;if(i.errors)a=i.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let m=a,v=(d=i)==null?void 0:d.errors;if(v!=null){let S=m.findIndex(C=>C.route.id&&(v==null?void 0:v[C.route.id])!==void 0);S>=0||qe(!1),m=m.slice(0,Math.min(m.length,S+1))}let p=!1,j=-1;if(i&&u&&u.v7_partialHydration)for(let S=0;S=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((S,C,M)=>{let B,J=!1,H=null,P=null;i&&(B=v&&C.route.id?v[C.route.id]:void 0,H=C.route.errorElement||Jm,p&&(j<0&&M===0?(rp("route-fallback"),J=!0,P=null):j===M&&(J=!0,P=C.route.hydrateFallbackElement||null)));let L=l.concat(m.slice(0,M+1)),q=()=>{let K;return B?K=H:J?K=P:C.route.Component?K=x.createElement(C.route.Component,null):C.route.element?K=C.route.element:K=S,x.createElement(Gm,{match:C,routeContext:{outlet:S,matches:L,isDataRoute:i!=null},children:K})};return i&&(C.route.ErrorBoundary||C.route.errorElement||M===0)?x.createElement(Xm,{location:i.location,revalidation:i.revalidation,component:H,error:B,children:q(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):q()},null)}var qd=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(qd||{}),Qd=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(Qd||{});function Zm(a){let l=x.useContext(ba);return l||qe(!1),l}function ep(a){let l=x.useContext(Fm);return l||qe(!1),l}function tp(a){let l=x.useContext(xn);return l||qe(!1),l}function Kd(a){let l=tp(),i=l.matches[l.matches.length-1];return i.route.id||qe(!1),i.route.id}function np(){var a;let l=x.useContext(Hd),i=ep(),u=Kd();return l!==void 0?l:(a=i.errors)==null?void 0:a[u]}function sp(){let{router:a}=Zm(qd.UseNavigateStable),l=Kd(Qd.UseNavigateStable),i=x.useRef(!1);return Wd(()=>{i.current=!0}),x.useCallback(function(d,f){f===void 0&&(f={}),i.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,Or({fromRouteId:l},f)))},[a,l])}const _d={};function rp(a,l,i){_d[a]||(_d[a]=!0)}function lp(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Yt(a){let{to:l,replace:i,state:u,relative:d}=a;Vs()||qe(!1);let{future:f,static:m}=x.useContext(Bn),{matches:v}=x.useContext(xn),{pathname:p}=ds(),j=fo(),S=wa(l,ya(v,f.v7_relativeSplatPath),p,d==="path"),C=JSON.stringify(S);return x.useEffect(()=>j(JSON.parse(C),{replace:i,state:u,relative:d}),[j,C,d,i,u]),null}function Jd(a){return Vm(a.context)}function Je(a){qe(!1)}function op(a){let{basename:l="/",children:i=null,location:u,navigationType:d=On.Pop,navigator:f,static:m=!1,future:v}=a;Vs()&&qe(!1);let p=l.replace(/^\/*/,"/"),j=x.useMemo(()=>({basename:p,navigator:f,static:m,future:Or({v7_relativeSplatPath:!1},v)}),[p,v,f,m]);typeof u=="string"&&(u=Ws(u));let{pathname:S="/",search:C="",hash:M="",state:B=null,key:J="default"}=u,H=x.useMemo(()=>{let P=va(S,p);return P==null?null:{location:{pathname:P,search:C,hash:M,state:B,key:J},navigationType:d}},[p,S,C,M,B,J,d]);return H==null?null:x.createElement(Bn.Provider,{value:j},x.createElement(ho.Provider,{children:i,value:H}))}function ip(a){let{children:l,location:i}=a;return qm(da(l),i)}new Promise(()=>{});function da(a,l){l===void 0&&(l=[]);let i=[];return x.Children.forEach(a,(u,d)=>{if(!x.isValidElement(u))return;let f=[...l,d];if(u.type===x.Fragment){i.push.apply(i,da(u.props.children,f));return}u.type!==Je&&qe(!1),!u.props.index||!u.props.children||qe(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=da(u.props.children,f)),i.push(m)}),i}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ha(){return ha=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[i];return l.concat(Array.isArray(u)?u.map(d=>[i,d]):[[i,u]])},[]))}function dp(a,l){let i=fa(a);return l&&l.forEach((u,d)=>{i.has(d)||l.getAll(d).forEach(f=>{i.append(d,f)})}),i}const hp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fp="6";try{window.__reactRouterVersion=fp}catch{}const mp="startTransition",Sd=cm[mp];function pp(a){let{basename:l,children:i,future:u,window:d}=a,f=x.useRef();f.current==null&&(f.current=xm({window:d,v5Compat:!0}));let m=f.current,[v,p]=x.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},S=x.useCallback(C=>{j&&Sd?Sd(()=>p(C)):p(C)},[p,j]);return x.useLayoutEffect(()=>m.listen(S),[m,S]),x.useEffect(()=>lp(u),[u]),x.createElement(op,{basename:l,children:i,location:v.location,navigationType:v.action,navigator:m,future:u})}const xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=x.forwardRef(function(l,i){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:v,target:p,to:j,preventScrollReset:S,viewTransition:C}=l,M=ap(l,hp),{basename:B}=x.useContext(Bn),J,H=!1;if(typeof j=="string"&&gp.test(j)&&(J=j,xp))try{let K=new URL(window.location.href),Z=j.startsWith("//")?new URL(K.protocol+j):new URL(j),le=va(Z.pathname,B);Z.origin===K.origin&&le!=null?j=le+Z.search+Z.hash:H=!0}catch{}let P=Bm(j,{relative:d}),L=vp(j,{replace:m,state:v,target:p,preventScrollReset:S,relative:d,viewTransition:C});function q(K){u&&u(K),K.defaultPrevented||L(K)}return x.createElement("a",ha({},M,{href:J||P,onClick:H||f?u:q,ref:i,target:p}))});var kd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(kd||(kd={}));var Cd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(Cd||(Cd={}));function vp(a,l){let{target:i,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:v}=l===void 0?{}:l,p=fo(),j=ds(),S=Vd(a,{relative:m});return x.useCallback(C=>{if(up(C,i)){C.preventDefault();let M=u!==void 0?u:ro(j)===ro(S);p(a,{replace:M,state:d,preventScrollReset:f,relative:m,viewTransition:v})}},[j,p,S,u,d,i,a,f,m,v])}function yp(a){let l=x.useRef(fa(a)),i=x.useRef(!1),u=ds(),d=x.useMemo(()=>dp(u.search,i.current?null:l.current),[u.search]),f=fo(),m=x.useCallback((v,p)=>{const j=fa(typeof v=="function"?v(d):v);i.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class wp{constructor(){wt(this,"listeners",new Set);wt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(i=>{try{i(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const zs=new wp,Xd="/api";function as(){return localStorage.getItem("classnotify_token")}function bp(a){localStorage.setItem("classnotify_token",a)}function Dr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function _e(a,l={}){const i=as(),u={"Content-Type":"application/json",...l.headers};i&&(u.Authorization=`Bearer ${i}`);const d=await fetch(`${Xd}${a}`,{...l,headers:u});if(d.status===401)throw Dr(),zs.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const oe={login:(a,l)=>_e("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>_e("/auth/me"),getAdminMetrics:()=>_e("/admin/metrics"),getTenants:()=>_e("/admin/tenants"),getAllDevices:()=>_e("/admin/devices"),sendDeviceCommand:(a,l,i)=>_e(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:i})}),getAdminActivationCodes:()=>_e("/admin/activation-codes"),getAdminClasses:a=>_e(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>_e(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>_e(`/admin/notifications?limit=${a}`),createTenant:a=>_e("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>_e(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const i=new URLSearchParams;a&&i.append("tenantId",a),l&&i.append("role",l);const u=i.toString();return _e(`/admin/users${u?`?${u}`:""}`)},createUser:a=>_e("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>_e(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>_e(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>_e(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>_e(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>_e(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>_e(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>_e("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getBroadcastReceiptSummary:a=>_e(`/admin/broadcasts/${encodeURIComponent(a)}/receipt-summary`),getSystemHealth:()=>_e("/admin/system/health"),getAuditLogs:(a=100)=>_e(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>_e("/school-admin/overview"),getSchoolClasses:()=>_e("/school-admin/classes"),createSchoolClass:a=>_e("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>_e("/school-admin/teachers"),createSchoolTeacher:a=>_e("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),resetSchoolTeacherPassword:(a,l)=>_e(`/school-admin/teachers/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(a,l)=>_e(`/school-admin/teachers/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>_e("/school-admin/devices"),getSchoolCodes:()=>_e("/school-admin/activation-codes"),generateSchoolCode:a=>_e(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>_e("/notification/classes"),sendNotification:a=>_e("/notification/send",{method:"POST",body:JSON.stringify(a)}),cancelNotification:a=>_e(`/notifications/${encodeURIComponent(a)}/cancel`,{method:"POST"}),getTeacherHistory:(a,l=50)=>_e(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`),getVisualReceiptBlob:async(a,l)=>{const i=as(),u=await fetch(`${Xd}/notifications/${encodeURIComponent(a)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:i?{Authorization:`Bearer ${i}`}:{}});if(u.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(u.status===404)throw new Error("未找到该通知的视觉回执");if(!u.ok)throw new Error(`获取视觉回执失败 (${u.status})`);return u.blob()}};class os extends Error{constructor(l,i){const u=new.target.prototype;super(`${l}: Status code '${i}'`),this.statusCode=i,this.__proto__=u}}class ja extends Error{constructor(l="A timeout occurred."){const i=new.target.prototype;super(l),this.__proto__=i}}class Wt extends Error{constructor(l="An abort occurred."){const i=new.target.prototype;super(l),this.__proto__=i}}class jp extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="UnsupportedTransportError",this.__proto__=u}}class Np extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="DisabledTransportError",this.__proto__=u}}class _p extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="FailedToStartTransportError",this.__proto__=u}}class Ed extends Error{constructor(l){const i=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=i}}class Sp extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.innerErrors=i,this.__proto__=u}}class Gd{constructor(l,i,u){this.statusCode=l,this.statusText=i,this.content=u}}class mo{get(l,i){return this.send({...i,method:"GET",url:l})}post(l,i){return this.send({...i,method:"POST",url:l})}delete(l,i){return this.send({...i,method:"DELETE",url:l})}getCookieString(l){return""}}var I;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(I||(I={}));class zr{constructor(){}log(l,i){}}zr.instance=new zr;const kp="8.0.29";class Xe{static isRequired(l,i){if(l==null)throw new Error(`The '${i}' argument is required.`)}static isNotEmpty(l,i){if(!l||l.match(/^\s*$/))throw new Error(`The '${i}' argument should not be empty.`)}static isIn(l,i,u){if(!(l in i))throw new Error(`Unknown ${u} value: ${l}.`)}}class Ue{static get isBrowser(){return!Ue.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Ue.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Ue.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Ur(a,l){let i="";return cs(a)?(i=`Binary data of length ${a.byteLength}`,l&&(i+=`. Content: '${Cp(a)}'`)):typeof a=="string"&&(i=`String data of length ${a.length}`,l&&(i+=`. Content: '${a}'`)),i}function Cp(a){const l=new Uint8Array(a);let i="";return l.forEach(u=>{const d=u<16?"0":"";i+=`0x${d}${u.toString(16)} `}),i.substr(0,i.length-1)}function cs(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Yd(a,l,i,u,d,f){const m={},[v,p]=Fs();m[v]=p,a.log(I.Trace,`(${l} transport) sending data. ${Ur(d,f.logMessageContent)}.`);const j=cs(d)?"arraybuffer":"text",S=await i.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(I.Trace,`(${l} transport) request complete. Response status: ${S.statusCode}.`)}function Ep(a){return a===void 0?new lo(I.Information):a===null?zr.instance:a.log!==void 0?a:new lo(a)}class Tp{constructor(l,i){this._subject=l,this._observer=i}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(i=>{})}}class lo{constructor(l){this._minLevel=l,this.out=console}log(l,i){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${I[l]}: ${i}`;switch(l){case I.Critical:case I.Error:this.out.error(u);break;case I.Warning:this.out.warn(u);break;case I.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function Fs(){let a="X-SignalR-User-Agent";return Ue.isNode&&(a="User-Agent"),[a,Pp(kp,Ip(),Lp(),Rp())]}function Pp(a,l,i,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${i}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function Ip(){if(Ue.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function Rp(){if(Ue.isNode)return process.versions.node}function Lp(){return Ue.isNode?"NodeJS":"Browser"}function ia(a){return a.stack?a.stack:a.message?a.message:`${a}`}function Dp(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class $p extends mo{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||Ue.isNode){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(i("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=i("node-fetch"):this._fetchType=fetch,this._fetchType=i("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Dp());if(typeof AbortController>"u"){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=i("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new Wt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const i=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{i.abort(),u=new Wt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{i.abort(),this._logger.log(I.Warning,"Timeout from HTTP request."),u=new ja},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},cs(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:i.signal})}catch(p){throw u||(this._logger.log(I.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await Td(f,"text");throw new os(p||f.statusText,f.status)}const v=await Td(f,l.responseType);return new Gd(f.status,f.statusText,v)}getCookieString(l){let i="";return Ue.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>i=d.join("; ")),i}}function Td(a,l){let i;switch(l){case"arraybuffer":i=a.arrayBuffer();break;case"text":i=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:i=a.text();break}return i}class Mp extends mo{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Wt):l.method?l.url?new Promise((i,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(cs(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new Wt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?i(new Gd(d.status,d.statusText,d.response||d.responseText)):u(new os(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(I.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new os(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(I.Warning,"Timeout from HTTP request."),u(new ja)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Ap extends mo{constructor(l){if(super(),typeof fetch<"u"||Ue.isNode)this._httpClient=new $p(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Mp(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Wt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class Et{static write(l){return`${l}${Et.RecordSeparator}`}static parse(l){if(l[l.length-1]!==Et.RecordSeparator)throw new Error("Message is incomplete.");const i=l.split(Et.RecordSeparator);return i.pop(),i}}Et.RecordSeparatorCode=30;Et.RecordSeparator=String.fromCharCode(Et.RecordSeparatorCode);class Op{writeHandshakeRequest(l){return Et.write(JSON.stringify(l))}parseHandshakeResponse(l){let i,u;if(cs(l)){const v=new Uint8Array(l),p=v.indexOf(Et.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;i=String.fromCharCode.apply(null,Array.prototype.slice.call(v.slice(0,j))),u=v.byteLength>j?v.slice(j).buffer:null}else{const v=l,p=v.indexOf(Et.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;i=v.substring(0,j),u=v.length>j?v.substring(j):null}const d=Et.parse(i),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var we;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(we||(we={}));class zp{constructor(){this.observers=[]}next(l){for(const i of this.observers)i.next(l)}error(l){for(const i of this.observers)i.error&&i.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new Tp(this,l)}}class Up{constructor(l,i,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=i,this._bufferSize=u}async _send(l){const i=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};cs(i)?this._bufferedByteCount+=i.byteLength:this._bufferedByteCount+=i.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,v)=>{d=m,f=v})),this._messages.push(new Fp(i,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(i)}catch{this._disconnected()}await u}_ack(l){let i=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:we.Sequence,sequenceId:l}));const i=this._messages;for(const u of i)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const i of this._messages)i._rejector(l)}_isInvocationMessage(l){switch(l.type){case we.Invocation:case we.StreamItem:case we.Completion:case we.StreamInvocation:case we.CancelInvocation:return!0;case we.Close:case we.Sequence:case we.Ping:case we.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:we.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Fp{constructor(l,i,u,d){this._message=l,this._id=i,this._resolver=u,this._rejector=d}}const Bp=30*1e3,Hp=15*1e3,Wp=1e5;var Ie;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(Ie||(Ie={}));class Na{static create(l,i,u,d,f,m,v){return new Na(l,i,u,d,f,m,v)}constructor(l,i,u,d,f,m,v){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(I.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Xe.isRequired(l,"connection"),Xe.isRequired(i,"logger"),Xe.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Bp,this.keepAliveIntervalInMilliseconds=m??Hp,this._statefulReconnectBufferSize=v??Wp,this._logger=i,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Op,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:we.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==Ie.Disconnected&&this._connectionState!==Ie.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ie.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ie.Connecting,this._logger.log(I.Debug,"Starting HubConnection.");try{await this._startInternal(),Ue.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ie.Connected,this._connectionStarted=!0,this._logger.log(I.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=Ie.Disconnected,this._logger.log(I.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((i,u)=>{this._handshakeResolver=i,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let i=this._protocol.version;this.connection.features.reconnect||(i=1);const u={protocol:this._protocol.name,version:i};if(this._logger.log(I.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(I.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Up(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(i){throw this._logger.log(I.Debug,`Hub handshake failed with error '${i}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(i),i}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===Ie.Disconnected)return this._logger.log(I.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ie.Disconnecting)return this._logger.log(I.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const i=this._connectionState;return this._connectionState=Ie.Disconnecting,this._logger.log(I.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(I.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(i===Ie.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new Wt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._createStreamInvocation(l,i,d);let m;const v=new zp;return v.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){v.error(j);return}else p&&(p.type===we.Completion?p.error?v.error(new Error(p.error)):v.complete():v.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{v.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),v}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._sendWithProtocol(this._createInvocation(l,i,!0,d));return this._launchStreams(u,f),f}invoke(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._createInvocation(l,i,!1,d);return new Promise((v,p)=>{this._callbacks[f.invocationId]=(S,C)=>{if(C){p(C);return}else S&&(S.type===we.Completion?S.error?p(new Error(S.error)):v(S.result):p(new Error(`Unexpected message type: ${S.type}`)))};const j=this._sendWithProtocol(f).catch(S=>{p(S),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,i){!l||!i||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(i)===-1&&this._methods[l].push(i))}off(l,i){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(i){const d=u.indexOf(i);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const i=this._protocol.parseMessages(l,this._logger);for(const u of i)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case we.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(I.Error,`Invoke client method threw error: ${ia(d)}`)});break;case we.StreamItem:case we.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===we.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(I.Error,`Stream callback threw error: ${ia(f)}`)}}break}case we.Ping:break;case we.Close:{this._logger.log(I.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case we.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case we.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(I.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let i,u;try{[u,i]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(I.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(i.error){const d="Server returned handshake error: "+i.error;this._logger.log(I.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(I.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ie.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const i=l.target.toLowerCase(),u=this._methods[i];if(!u){this._logger.log(I.Warning,`No client method with the name '${i}' found.`),l.invocationId&&(this._logger.log(I.Warning,`No result given for '${i}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,v,p;for(const j of d)try{const S=m;m=await j.apply(this,l.arguments),f&&m&&S&&(this._logger.log(I.Error,`Multiple results provided for '${i}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),v=void 0}catch(S){v=S,this._logger.log(I.Error,`A callback for the method '${i}' threw error '${S}'.`)}p?await this._sendWithProtocol(p):f?(v?p=this._createCompletionMessage(l.invocationId,`${v}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(I.Warning,`No result given for '${i}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(I.Error,`Result given for '${i}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(I.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new Wt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ie.Disconnecting?this._completeClose(l):this._connectionState===Ie.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===Ie.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),Ue.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(i=>i.apply(this,[l]))}catch(i){this._logger.log(I.Error,`An onclose callback called with error '${l}' threw error '${i}'.`)}}}async _reconnect(l){const i=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(I.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=Ie.Reconnecting,l?this._logger.log(I.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(I.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(I.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==Ie.Reconnecting){this._logger.log(I.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(I.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ie.Reconnecting){this._logger.log(I.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ie.Connected,this._logger.log(I.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(I.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(I.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==Ie.Reconnecting){this._logger.log(I.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ie.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-i,d)}}this._logger.log(I.Information,`Reconnect retries have been exhausted after ${Date.now()-i} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,i,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:i,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(I.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${i}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const i=this._callbacks;this._callbacks={},Object.keys(i).forEach(u=>{const d=i[u];try{d(null,l)}catch(f){this._logger.log(I.Error,`Stream 'error' callback called with '${l}' threw error: ${ia(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,i,u,d){if(u)return d.length!==0?{arguments:i,streamIds:d,target:l,type:we.Invocation}:{arguments:i,target:l,type:we.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:i,invocationId:f.toString(),streamIds:d,target:l,type:we.Invocation}:{arguments:i,invocationId:f.toString(),target:l,type:we.Invocation}}}_launchStreams(l,i){if(l.length!==0){i||(i=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{i=i.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const i=[],u=[];for(let d=0;d0)&&(i=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return i&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[is.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[is.Authorization]&&delete l.headers[is.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Ze;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Ze||(Ze={}));var ut;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(ut||(ut={}));let Qp=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Id{get pollAborted(){return this._pollAbort.aborted}constructor(l,i,u){this._httpClient=l,this._logger=i,this._pollAbort=new Qp,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,i){if(Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._url=l,this._logger.log(I.Trace,"(LongPolling transport) Connecting."),i===ut.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=Fs(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};i===ut.Binary&&(m.responseType="arraybuffer");const v=`${l}&_=${Date.now()}`;this._logger.log(I.Trace,`(LongPolling transport) polling: ${v}.`);const p=await this._httpClient.get(v,m);p.statusCode!==200?(this._logger.log(I.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new os(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,i){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(I.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,i);d.statusCode===204?(this._logger.log(I.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(I.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new os(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(I.Trace,`(LongPolling transport) data received. ${Ur(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(I.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof ja?this._logger.log(I.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(I.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(I.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Yd(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(I.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(I.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[i,u]=Fs();l[i]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof os&&(f.statusCode===404?this._logger.log(I.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(I.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(I.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(I.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(I.Trace,l),this.onclose(this._closeError)}}}class Kp{constructor(l,i,u,d){this._httpClient=l,this._accessToken=i,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,i){return Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._logger.log(I.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(i!==ut.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(Ue.isBrowser||Ue.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const v=this._httpClient.getCookieString(l),p={};p.Cookie=v;const[j,S]=Fs();p[j]=S,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=v=>{if(this.onreceive)try{this._logger.log(I.Trace,`(SSE transport) data received. ${Ur(v.data,this._options.logMessageContent)}.`),this.onreceive(v.data)}catch(p){this._close(p);return}},m.onerror=v=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(I.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(v){d(v);return}})}async send(l){return this._eventSource?Yd(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Jp{constructor(l,i,u,d,f,m){this._logger=u,this._accessTokenFactory=i,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,i){Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._logger.log(I.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const v=this._httpClient.getCookieString(l);let p=!1;if(Ue.isNode||Ue.isReactNative){const j={},[S,C]=Fs();j[S]=C,u&&(j[is.Authorization]=`Bearer ${u}`),v&&(j[is.Cookie]=v),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),i===ut.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(I.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="There was an error with the transport",this._logger.log(I.Information,`(WebSockets transport) ${S}.`)},m.onmessage=j=>{if(this._logger.log(I.Trace,`(WebSockets transport) data received. ${Ur(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(S){this._close(S);return}},m.onclose=j=>{if(p)this._close(j);else{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(S))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(I.Trace,`(WebSockets transport) sending data. ${Ur(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(I.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Rd=100;class Xp{constructor(l,i={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Xe.isRequired(l,"url"),this._logger=Ep(i.logger),this.baseUrl=this._resolveUrl(l),i=i||{},i.logMessageContent=i.logMessageContent===void 0?!1:i.logMessageContent,typeof i.withCredentials=="boolean"||i.withCredentials===void 0)i.withCredentials=i.withCredentials===void 0?!0:i.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");i.timeout=i.timeout===void 0?100*1e3:i.timeout;let u=null,d=null;if(Ue.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!Ue.isNode&&typeof WebSocket<"u"&&!i.WebSocket?i.WebSocket=WebSocket:Ue.isNode&&!i.WebSocket&&u&&(i.WebSocket=u),!Ue.isNode&&typeof EventSource<"u"&&!i.EventSource?i.EventSource=EventSource:Ue.isNode&&!i.EventSource&&typeof d<"u"&&(i.EventSource=d),this._httpClient=new qp(i.httpClient||new Ap(this._logger),i.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=i,this.onreceive=null,this.onclose=null}async start(l){if(l=l||ut.Binary,Xe.isIn(l,ut,"transferFormat"),this._logger.log(I.Debug,`Starting connection with transfer format '${ut[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const i="Failed to start the HttpConnection before stop() was called.";return this._logger.log(I.Error,i),await this._stopPromise,Promise.reject(new Wt(i))}else if(this._connectionState!=="Connected"){const i="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(I.Error,i),Promise.reject(new Wt(i))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new _a(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(I.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(I.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(i=>{this._stopPromiseResolver=i}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(i){this._logger.log(I.Error,`HttpConnection.transport.stop() threw error '${i}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(I.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let i=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Ze.WebSockets)this.transport=this._constructTransport(Ze.WebSockets),await this._startTransport(i,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(i),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Wt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(i=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new Sp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Ze.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Jp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Ze.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Kp(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Ze.LongPolling:return new Id(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,i){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,i),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,i)}_resolveTransportOrError(l,i,u,d){const f=Ze[l.transport];if(f==null)return this._logger.log(I.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Gp(i,f))if(l.transferFormats.map(v=>ut[v]).indexOf(u)>=0){if(f===Ze.WebSockets&&!this._options.WebSocket||f===Ze.ServerSentEvents&&!this._options.EventSource)return this._logger.log(I.Debug,`Skipping transport '${Ze[f]}' because it is not supported in your environment.'`),new jp(`'${Ze[f]}' is not supported in your environment.`,f);this._logger.log(I.Debug,`Selecting transport '${Ze[f]}'.`);try{return this.features.reconnect=f===Ze.WebSockets?d:void 0,this._constructTransport(f)}catch(v){return v}}else return this._logger.log(I.Debug,`Skipping transport '${Ze[f]}' because it does not support the requested transfer format '${ut[u]}'.`),new Error(`'${Ze[f]}' does not support ${ut[u]}.`);else return this._logger.log(I.Debug,`Skipping transport '${Ze[f]}' because it was disabled by the client.`),new Np(`'${Ze[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(I.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(I.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(I.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(I.Error,`Connection disconnected with error '${l}'.`):this._logger.log(I.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(i=>{this._logger.log(I.Error,`TransportSendQueue.stop() threw error '${i}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(i){this._logger.log(I.Error,`HttpConnection.onclose(${l}) threw error '${i}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!Ue.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const i=window.document.createElement("a");return i.href=l,this._logger.log(I.Information,`Normalizing '${l}' to '${i.href}'.`),i.href}_resolveNegotiateUrl(l){const i=new URL(l);i.pathname.endsWith("/")?i.pathname+="negotiate":i.pathname+="/negotiate";const u=new URLSearchParams(i.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),i.search=u.toString(),i.toString()}}function Gp(a,l){return!a||(l&a)!==0}class _a{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new so,this._transportResult=new so,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new so),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new so;const l=this._transportResult;this._transportResult=void 0;const i=typeof this._buffer[0]=="string"?this._buffer.join(""):_a._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(i),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const i=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(i);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class so{constructor(){this.promise=new Promise((l,i)=>[this._resolver,this._rejecter]=[l,i])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Yp="json";class Zp{constructor(){this.name=Yp,this.version=2,this.transferFormat=ut.Text}parseMessages(l,i){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];i===null&&(i=zr.instance);const u=Et.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case we.Invocation:this._isInvocationMessage(m);break;case we.StreamItem:this._isStreamItemMessage(m);break;case we.Completion:this._isCompletionMessage(m);break;case we.Ping:break;case we.Close:break;case we.Ack:this._isAckMessage(m);break;case we.Sequence:this._isSequenceMessage(m);break;default:i.log(I.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return Et.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,i){if(typeof l!="string"||l==="")throw new Error(i)}}const e0={trace:I.Trace,debug:I.Debug,info:I.Information,information:I.Information,warn:I.Warning,warning:I.Warning,error:I.Error,critical:I.Critical,none:I.None};function t0(a){const l=e0[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class n0{configureLogging(l){if(Xe.isRequired(l,"logging"),s0(l))this.logger=l;else if(typeof l=="string"){const i=t0(l);this.logger=new lo(i)}else this.logger=new lo(l);return this}withUrl(l,i){return Xe.isRequired(l,"url"),Xe.isNotEmpty(l,"url"),this.url=l,typeof i=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...i}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:i},this}withHubProtocol(l){return Xe.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new Pd(l):this.reconnectPolicy=l:this.reconnectPolicy=new Pd,this}withServerTimeout(l){return Xe.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return Xe.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const i=new Xp(this.url,l);return Na.create(i,this.logger||zr.instance,this.protocol||new Zp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function s0(a){return a.log!==void 0}class r0{constructor(){wt(this,"connection",null);wt(this,"state","Disconnected");wt(this,"startPromise",null);wt(this,"permanentRetryTimer",null);wt(this,"isAuthenticated",!1);wt(this,"stateListeners",new Set);wt(this,"ackListeners",new Set);wt(this,"deviceStatusListeners",new Set);wt(this,"healthReportListeners",new Set);wt(this,"notificationListeners",new Set);wt(this,"cancelledListeners",new Set);zs.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(i=>i(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var i,u;if(!as()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((i=this.connection)==null?void 0:i.state)===Ie.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===Ie.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===Ie.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new n0().withUrl("/hubs/teacher",{accessTokenFactory:()=>as()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(I.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(i=>i(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(i=>i(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(i=>i(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(i=>i(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(i=>i(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===Ie.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const $t=new r0,Zd=x.createContext(void 0),l0=({children:a})=>{const[l,i]=x.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=x.useState(as()),[f,m]=x.useState(!0);x.useEffect(()=>{const j=zs.subscribe(()=>{$t.stop(),Dr(),d(null),i(null)});return()=>j()},[]),x.useEffect(()=>{(async()=>{var C,M;if(as())try{const B=await oe.getMe();i(B),localStorage.setItem("classnotify_user",JSON.stringify(B)),zs.reset(),$t.start()}catch(B){((C=B==null?void 0:B.message)!=null&&C.includes("未授权")||(M=B==null?void 0:B.message)!=null&&M.includes("401"))&&(Dr(),d(null),i(null))}else Dr(),i(null),d(null);m(!1)})()},[]);const v=async(j,S)=>{const C=await oe.login(j,S);if(!C.success||!C.token||!C.role)throw new Error(C.errorMessage||"登录失败");bp(C.token),d(C.token);const M={userId:C.userId||"",name:C.fullName||j,role:C.role,tenantId:C.tenantId||""};return i(M),localStorage.setItem("classnotify_user",JSON.stringify(M)),zs.reset(),$t.start(),C.role},p=()=>{$t.stop(),Dr(),d(null),i(null),zs.reset()};return s.jsx(Zd.Provider,{value:{user:l,token:u,login:v,logout:p,isLoading:f},children:a})},qs=()=>{const a=x.useContext(Zd);if(!a){let l=null;try{const i=localStorage.getItem("classnotify_user");i&&(l=JSON.parse(i))}catch{}return{user:l,token:as(),login:async()=>"Teacher",logout:()=>{},isLoading:!1}}return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eh=(...a)=>a.filter((l,i,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===i).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var i0={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=x.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...v},p)=>x.createElement("svg",{ref:p,...i0,width:l,height:l,stroke:a,strokeWidth:u?Number(i)*24/Number(l):i,className:eh("lucide",d),...v},[...m.map(([j,S])=>x.createElement(j,S)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ge=(a,l)=>{const i=x.forwardRef(({className:u,...d},f)=>x.createElement(a0,{ref:f,iconNode:l,className:eh(`lucide-${o0(a)}`,u),...d}));return i.displayName=`${a}`,i};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=[["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"}]],po=ge("Activity",c0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$r=ge("ArrowRight",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],oo=ge("Bell",d0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Zt=ge("Building2",h0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],io=ge("Check",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ld=ge("ChevronDown",m0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],x0=ge("ChevronRight",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["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"}]],mn=ge("CircleAlert",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vt=ge("CircleCheck",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ma=ge("CircleX",y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Br=ge("Clock",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],j0=ge("CloudRain",b0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pa=ge("Copy",N0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],S0=ge("Ellipsis",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const k0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],C0=ge("Eye",k0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],T0=ge("Flame",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Fr=ge("GraduationCap",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],xa=ge("History",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jt=ge("KeyRound",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Mr=ge("Layers",L0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gt=ge("LoaderCircle",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],th=ge("LockOpen",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ao=ge("Lock",M0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],O0=ge("LogOut",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],U0=ge("Megaphone",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],B0=ge("Menu",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Bs=ge("Monitor",H0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],nh=ge("PenLine",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],us=ge("Plus",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q0=[["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"}]],Hs=ge("Radio",q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Mt=ge("RefreshCw",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],J0=ge("RotateCcw",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const X0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Dd=ge("School",X0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hr=ge("Search",G0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y0=[["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"}]],co=ge("Send",Y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],sh=ge("ShieldAlert",Z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ex=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uo=ge("ShieldCheck",ex);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],rh=ge("Sparkles",tx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Sa=ge("Trash2",nx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Fn=ge("TriangleAlert",sx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],lh=ge("User",rx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Us=ge("Users",lx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ox=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],ix=ge("Volume2",ox);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ax=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Un=ge("X",ax);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ux=ge("ZoomIn",cx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],hx=ge("ZoomOut",dx),fx=()=>{const[a,l]=x.useState($t.getState());return x.useEffect(()=>$t.onStateChange(l),[]),a==="Connected"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"云端正常"]}):a==="Reconnecting"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400"}),"正在重连…"]}):a==="Connecting"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-500/10 text-blue-400 border border-blue-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),"正在连接…"]}):s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"云端离线"]})},mx=()=>{const{user:a,logout:l}=qs(),i=ds(),[u,d]=x.useState(!1);if(x.useEffect(()=>{d(!1)},[i.pathname]),!a)return null;const f=m=>i.pathname===m;return s.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"flex items-center justify-between h-16",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs(je,{to:"/",className:"flex items-center space-x-2.5",children:[s.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:s.jsx(oo,{className:"w-5 h-5 text-white"})}),s.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),s.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(uo,{className:"w-3.5 h-3.5 text-amber-400"}),s.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(Dd,{className:"w-3.5 h-3.5 text-sky-400"}),s.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&s.jsxs(s.Fragment,{children:[s.jsx(Fr,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]})]}),s.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsxs(je,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Mr,{className:"w-4 h-4"}),"总览"]}),s.jsxs(je,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Zt,{className:"w-4 h-4"}),"学校租户"]}),s.jsxs(je,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Us,{className:"w-4 h-4"}),"用户中枢"]}),s.jsxs(je,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Bs,{className:"w-4 h-4"}),"设备集控"]}),s.jsxs(je,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[s.jsx(Hs,{className:"w-4 h-4"}),"应急广播"]}),s.jsxs(je,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[s.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),s.jsxs(je,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(xa,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsxs(je,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Dd,{className:"w-4 h-4"}),"学校概览"]}),s.jsxs(je,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Mr,{className:"w-4 h-4"}),"班级管理"]}),s.jsxs(je,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Us,{className:"w-4 h-4"}),"教师账号"]}),s.jsxs(je,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[s.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&s.jsxs(je,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(oo,{className:"w-4 h-4"}),"呼叫与回执"]})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:"hidden sm:block",children:s.jsx(fx,{})}),s.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),s.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),s.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:s.jsx(O0,{className:"w-4 h-4"})}),s.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?s.jsx(Un,{className:"w-5 h-5"}):s.jsx(B0,{className:"w-5 h-5"})})]})]}),u&&s.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(je,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Mr,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),s.jsx(je,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[s.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),s.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),s.jsx(je,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Zt,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),s.jsx(je,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Us,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),s.jsx(je,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bs,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),s.jsx(je,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Hs,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),s.jsx(je,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(xa,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(je,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),s.jsx(je,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),s.jsx(je,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),s.jsx(je,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&s.jsx(je,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},aa=({allowedRoles:a,children:l})=>{const{user:i,isLoading:u}=qs();return u?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):i?a.includes(i.role)?l?s.jsx(s.Fragment,{children:l}):s.jsx(Jd,{}):i.role==="SuperAdmin"?s.jsx(Yt,{to:"/admin",replace:!0}):i.role==="SchoolAdmin"?s.jsx(Yt,{to:"/school-admin",replace:!0}):s.jsx(Yt,{to:"/teacher",replace:!0}):s.jsx(Yt,{to:"/login",replace:!0})},px=()=>{const[a,l]=x.useState(""),[i,u]=x.useState(""),[d,f]=x.useState(null),[m,v]=x.useState(!1),{login:p}=qs(),j=fo(),S=async(C=a,M=i)=>{f(null),v(!0);try{const B=await p(C,M);j(B==="SuperAdmin"?"/admin":B==="SchoolAdmin"?"/school-admin":"/teacher")}catch(B){f(B.message||"登录失败,请检查账号密码")}finally{v(!1)}};return s.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[s.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),s.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),s.jsx("div",{className:"w-full max-w-md relative z-10",children:s.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:s.jsx(oo,{className:"w-8 h-8 text-white"})}),s.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&s.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),s.jsxs("form",{onSubmit:C=>{C.preventDefault(),S()},className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),s.jsxs("div",{className:"relative",children:[s.jsx(lh,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),s.jsx("input",{type:"text",value:a,onChange:C=>l(C.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),s.jsxs("div",{className:"relative",children:[s.jsx(ao,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),s.jsx("input",{type:"password",value:i,onChange:C=>u(C.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),s.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?s.jsxs(s.Fragment,{children:[s.jsx(Gt,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"正在验证身份..."})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"登 录"}),s.jsx($r,{className:"w-4 h-4"})]})})]})]})})]})},ze=({label:a,variant:l="slate",dot:i=!0,className:u=""})=>{const d={emerald:{bg:"bg-emerald-500/10",text:"text-emerald-400",border:"border-emerald-500/20",dotColor:"bg-emerald-400"},amber:{bg:"bg-amber-500/10",text:"text-amber-400",border:"border-amber-500/20",dotColor:"bg-amber-400"},rose:{bg:"bg-rose-500/10",text:"text-rose-400",border:"border-rose-500/20",dotColor:"bg-rose-400"},sky:{bg:"bg-sky-500/10",text:"text-sky-400",border:"border-sky-500/20",dotColor:"bg-sky-400"},slate:{bg:"bg-slate-800/60",text:"text-slate-400",border:"border-slate-700/50",dotColor:"bg-slate-400"},indigo:{bg:"bg-indigo-500/10",text:"text-indigo-400",border:"border-indigo-500/20",dotColor:"bg-indigo-400"}},f=d[l]||d.slate;return s.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium border ${f.bg} ${f.text} ${f.border} ${u}`,children:[i&&s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${f.dotColor}`}),a]})},hs=({title:a,description:l,badge:i,action:u,className:d=""})=>s.jsxs("div",{className:`flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-6 border-b border-slate-800/80 ${d}`,children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-slate-100",children:a}),i]}),l&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:l})]}),u&&s.jsx("div",{className:"flex items-center gap-3",children:u})]}),xo=({tabs:a,activeId:l,onChange:i,className:u=""})=>s.jsx("div",{className:`flex items-center gap-1.5 p-1 bg-slate-900 border border-slate-800 rounded-xl overflow-x-auto ${u}`,children:a.map(d=>{const f=d.id===l;return s.jsxs("button",{type:"button",onClick:()=>i(d.id),className:`px-3 py-1.5 rounded-lg text-xs sm:text-sm font-medium transition-all whitespace-nowrap flex items-center gap-1.5 ${f?"bg-slate-800 text-white shadow-sm border border-slate-700/60":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/40"}`,children:[s.jsx("span",{children:d.label}),d.count!==void 0&&s.jsx("span",{className:`px-1.5 py-0.2 rounded-full text-[10px] font-semibold ${f?"bg-slate-700 text-slate-200":"bg-slate-800/80 text-slate-500"}`,children:d.count})]},d.id)})}),Wr=({value:a,onChange:l,placeholder:i="搜索...",className:u=""})=>s.jsxs("div",{className:`relative flex items-center ${u}`,children:[s.jsx(Hr,{className:"w-4 h-4 text-slate-500 absolute left-3 pointer-events-none"}),s.jsx("input",{type:"text",value:a,onChange:d=>l(d.target.value),placeholder:i,className:"w-full bg-slate-900 border border-slate-800 rounded-xl pl-9 pr-8 py-2 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/30 transition-colors"}),a&&s.jsx("button",{type:"button",onClick:()=>l(""),className:"absolute right-2.5 p-1 rounded-md text-slate-500 hover:text-slate-300 hover:bg-slate-800 transition-colors",children:s.jsx(Un,{className:"w-3.5 h-3.5"})})]}),ka=({items:a,className:l=""})=>{const[i,u]=x.useState(!1),d=x.useRef(null);return x.useEffect(()=>{const f=v=>{d.current&&!d.current.contains(v.target)&&u(!1)},m=v=>{v.key==="Escape"&&u(!1)};return i&&(document.addEventListener("mousedown",f),document.addEventListener("keydown",m)),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",m)}},[i]),s.jsxs("div",{className:`relative inline-block text-left ${l}`,ref:d,children:[s.jsx("button",{type:"button","aria-label":"更多操作","aria-expanded":i,"aria-haspopup":"true",onClick:()=>u(!i),className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-colors border border-transparent hover:border-slate-700/60",title:"更多操作",children:s.jsx(S0,{className:"w-4 h-4"})}),i&&s.jsx("div",{className:"absolute right-0 mt-1 w-44 rounded-xl bg-slate-900 border border-slate-800 shadow-2xl py-1 z-30 animate-in fade-in-50 zoom-in-95 duration-100",children:a.map((f,m)=>s.jsxs("button",{type:"button",disabled:f.disabled,onClick:()=>{u(!1),f.onClick()},className:`w-full text-left px-3.5 py-2 text-xs sm:text-sm font-medium flex items-center gap-2.5 transition-colors ${f.danger?"text-rose-400 hover:bg-rose-500/10":"text-slate-300 hover:text-white hover:bg-slate-800"} ${f.disabled?"opacity-40 cursor-not-allowed":""}`,children:[f.icon&&s.jsx("span",{className:"w-4 h-4",children:f.icon}),s.jsx("span",{children:f.label})]},m))})]})},oh=({text:a,label:l="复制",className:i=""})=>{const[u,d]=x.useState(!1),f=async m=>{m.stopPropagation();try{await navigator.clipboard.writeText(a),d(!0),setTimeout(()=>d(!1),1500)}catch{const v=document.createElement("textarea");v.value=a,document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v),d(!0),setTimeout(()=>d(!1),1500)}};return s.jsx("button",{type:"button","aria-label":u?"已复制":l,onClick:f,className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium transition-all ${u?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 font-semibold":"bg-slate-800 text-slate-300 hover:text-white hover:bg-slate-700/80 border border-slate-700/60"} ${i}`,children:u?s.jsxs(s.Fragment,{children:[s.jsx(io,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{children:"已复制"})]}):s.jsxs(s.Fragment,{children:[s.jsx(pa,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:l})]})})},ls=({title:a,value:l,subtitle:i,icon:u,badge:d,className:f=""})=>s.jsxs("div",{className:`p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex flex-col justify-between ${f}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs sm:text-sm font-medium text-slate-400",children:a}),u&&s.jsx("div",{className:"p-2 rounded-xl bg-slate-800/80 text-slate-300",children:u})]}),s.jsxs("div",{className:"mt-3 flex items-baseline justify-between gap-2",children:[s.jsx("div",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-white",children:l}),d]}),i&&s.jsx("p",{className:"mt-1 text-xs text-slate-500",children:i})]}),pn=({isOpen:a,onClose:l,title:i,children:u,maxWidth:d="max-w-md",preventClose:f=!1})=>(x.useEffect(()=>{const m=v=>{v.key==="Escape"&&!f&&l()};return a&&document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[a,l,f]),a?s.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-sm animate-in fade-in duration-150",children:s.jsxs("div",{className:`w-full ${d} bg-slate-900 border border-slate-800 rounded-2xl shadow-2xl overflow-hidden animate-in zoom-in-95 duration-150`,onClick:m=>m.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800/80",children:[s.jsx("h3",{className:"text-base sm:text-lg font-semibold text-slate-100",children:i}),s.jsx("button",{type:"button","aria-label":"关闭",disabled:f,onClick:()=>{f||l()},className:`p-1 rounded-lg text-slate-400 transition-colors ${f?"opacity-30 cursor-not-allowed":"hover:text-white hover:bg-slate-800"}`,children:s.jsx(Un,{className:"w-5 h-5"})})]}),s.jsx("div",{className:"p-6",children:u})]})}):null),ih=({isOpen:a,onClose:l,onConfirm:i,title:u,description:d,targetName:f,confirmLabel:m="确认执行",loading:v=!1})=>a?s.jsx(pn,{isOpen:a,onClose:l,title:u,maxWidth:"max-w-md",preventClose:v,children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-start gap-3 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300",children:[s.jsx(Fn,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),s.jsxs("div",{className:"text-xs sm:text-sm leading-relaxed",children:[f&&s.jsxs("span",{className:"font-semibold text-rose-200",children:["【",f,"】"]}),d]})]}),s.jsxs("div",{className:"flex items-center justify-end gap-3 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:l,disabled:v,className:"px-4 py-2 rounded-xl text-sm font-medium text-slate-300 hover:bg-slate-800 transition-colors",children:"取消"}),s.jsx("button",{type:"button",onClick:i,disabled:v,className:"px-4 py-2 rounded-xl text-sm font-semibold bg-rose-600 hover:bg-rose-500 text-white shadow-lg shadow-rose-600/20 transition-all disabled:opacity-50",children:v?"处理中...":m})]})]})}):null,xx=()=>{const[a,l]=x.useState(null),[i,u]=x.useState([]),[d,f]=x.useState([]),[m,v]=x.useState(null),[p,j]=x.useState([]),[S,C]=x.useState(!0),M=async()=>{var L,q;try{const[K,Z,le,ce,he]=await Promise.all([oe.getAdminMetrics(),oe.getTenants(),oe.getAdminNotifications(6),((L=oe.getSystemHealth)==null?void 0:L.call(oe).catch(()=>null))??Promise.resolve(null),((q=oe.getAuditLogs)==null?void 0:q.call(oe,6).catch(()=>[]))??Promise.resolve([])]);l(K),u(Z),f(le),ce&&v(ce),he&&j(he)}catch(K){console.error("Failed to load admin dashboard data",K)}finally{C(!1)}};x.useEffect(()=>{M();const L=setInterval(M,1e4);return()=>clearInterval(L)},[]);const B=(a==null?void 0:a.totalDevices)??0,J=(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0,H=(a==null?void 0:a.offlineDevices)??Math.max(0,B-J),P=B>0?Math.round(J/B*100):100;return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:"全域云控超管总览",description:"实时掌握全网多校区教学终端连通率、异常事件与核心调度通道",action:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsxs(je,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[s.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"激活码管理"]}),s.jsxs(je,{to:"/admin/broadcast",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all",children:[s.jsx(Hs,{className:"w-4 h-4"}),"全域应急广播"]})]})}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"大屏在线率"}),s.jsxs("div",{className:"mt-2 text-2xl sm:text-3xl font-bold tracking-tight text-white",children:[P,"%"]}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-mono mt-0.5",children:[J," / ",B," 台在线"]})]}),s.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[s.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[s.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),s.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${P}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),s.jsx(po,{className:"w-5 h-5 text-emerald-400 absolute"})]})]}),s.jsx(ls,{title:"离线设备",value:S?"-":H,subtitle:H>0?"建议督促校区排查网络":"全网终端运行畅通",icon:s.jsx(Fn,{className:`w-5 h-5 ${H>0?"text-amber-400":"text-slate-400"}`}),badge:H>0?s.jsx(ze,{label:"待恢复",variant:"amber"}):s.jsx(ze,{label:"正常",variant:"emerald"})}),s.jsx(ls,{title:"今日通知 / 点呼",value:S?"-":(a==null?void 0:a.todayNotifications)??0,subtitle:"各校区教师工作台发送",icon:s.jsx(oo,{className:"w-5 h-5 text-blue-400"})}),s.jsx(ls,{title:"入驻学校",value:S?"-":(a==null?void 0:a.totalTenants)??i.length,subtitle:"独立多租户隔离",icon:s.jsx(Zt,{className:"w-5 h-5 text-indigo-400"})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[s.jsxs("div",{className:"lg:col-span-7 space-y-6",children:[s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[s.jsx("h2",{className:"text-sm font-semibold text-white",children:"核心管控模块"}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(je,{to:"/admin/tenants",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-blue-500/10 text-blue-400",children:s.jsx(Zt,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"学校租户"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"校区开通、参数与冻结"})]})]}),s.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/users",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-indigo-500/10 text-indigo-400",children:s.jsx(Us,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"用户中枢"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"多角色账号与密码管控"})]})]}),s.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/devices",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-emerald-500/10 text-emerald-400",children:s.jsx(Bs,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"设备集控"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"心跳、远程指令与清退"})]})]}),s.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/broadcast",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-rose-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 text-rose-400",children:s.jsx(Hs,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"全网最高优先极速强插"})]})]}),s.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(Zt,{className:"w-4 h-4 text-indigo-400"}),"入驻校区简况"]}),s.jsx(je,{to:"/admin/tenants",className:"text-xs text-blue-400 hover:underline",children:"管理全部校区"})]}),s.jsx("div",{className:"divide-y divide-slate-800/60",children:i.slice(0,4).map(L=>s.jsxs("div",{className:"py-2.5 flex items-center justify-between text-xs",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-slate-200",children:L.name}),s.jsxs("div",{className:"text-[11px] font-mono text-slate-500",children:[L.id," · ",L.classroomCount," 班级"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-slate-400 text-xs font-mono",children:[L.deviceCount," 设备"]}),s.jsx(ze,{label:L.isActive?"正常":"已冻结",variant:L.isActive?"emerald":"rose"})]})]},L.id))})]})]}),s.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(Fn,{className:"w-4 h-4 text-amber-400"}),"需要关注"]}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"异常终端优先浮出"})]}),H===0?s.jsxs("div",{className:"py-6 text-center text-xs text-slate-400",children:[s.jsx(Vt,{className:"w-6 h-6 text-emerald-400 mx-auto mb-1.5"}),s.jsx("span",{children:"全网各校区终端运行良好,无异常阻断"})]}):s.jsx("div",{className:"space-y-2",children:s.jsxs("div",{className:"p-3 rounded-xl bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300",children:[s.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400"}),"检测到 ",H," 台大屏终端离线"]}),s.jsx("div",{className:"text-[11px] text-amber-400/80 mt-1",children:"未接收到周期心跳包,可能由于关机或校内网络断开导致。"}),s.jsx("div",{className:"mt-2 text-right",children:s.jsx(je,{to:"/admin/devices?status=offline",className:"text-xs text-amber-400 hover:underline font-semibold",children:"前往设备集控排查 →"})})]})})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(uo,{className:"w-4 h-4 text-emerald-400"}),"最近安全审计流水"]}),s.jsx(je,{to:"/admin/history",className:"text-xs text-blue-400 hover:underline",children:"完整流水"})]}),s.jsx("div",{className:"space-y-2 text-xs",children:p.length===0?s.jsx("div",{className:"py-6 text-center text-xs text-slate-500",children:"暂无审计记录"}):p.map(L=>s.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80",children:[s.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[s.jsx("span",{className:"font-semibold text-slate-200",children:L.action}),s.jsx("span",{className:"text-slate-500 font-mono",children:new Date(L.occurredAt).toLocaleTimeString()})]}),s.jsxs("div",{className:"text-[11px] text-slate-400 mt-1 truncate",children:[L.actorUsername||"系统"," · ",L.targetType," ",L.targetId]})]},L.id))})]})]})]})]})},gx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),[m,v]=x.useState("all"),[p,j]=x.useState(null),[S,C]=x.useState(null),[M,B]=x.useState(""),[J,H]=x.useState(""),[P,L]=x.useState(!1),[q,K]=x.useState(null),[Z,le]=x.useState(!1),ce=async()=>{try{const $=await oe.getAllDevices();l($)}catch($){console.error("Failed to load devices",$)}finally{u(!1)}};x.useEffect(()=>{ce();const $=setInterval(ce,5e3);return()=>clearInterval($)},[]);const he=async($,ve,O)=>{j(null);try{const re=await oe.sendDeviceCommand($,ve,O);j({deviceId:$,message:re.message,success:!0}),ce()}catch(re){j({deviceId:$,message:re.message||"远程指令下发失败",success:!1})}},fe=$=>{C($),B($.hostname||""),H($.classroomId||"")},G=async $=>{if($.preventDefault(),!!S){L(!0);try{await oe.updateDevice(S.deviceId,{hostname:M.trim()||void 0,classroomId:J.trim()||void 0}),j({deviceId:S.deviceId,message:"设备信息更新成功",success:!0}),C(null),ce()}catch(ve){j({deviceId:S.deviceId,message:ve.message||"更新设备失败",success:!1})}finally{L(!1)}}},ye=async()=>{if(q){le(!0);try{await oe.decommissionDevice(q.deviceId),j({deviceId:q.deviceId,message:"设备已成功清退并注销",success:!0}),K(null),ce()}catch($){j({deviceId:q.deviceId,message:$.message||"清退设备失败",success:!1})}finally{le(!1)}}},X=$=>{if(!$)return"从无心跳";const ve=Math.floor((Date.now()-new Date($).getTime())/1e3);return ve<10?"刚刚":ve<60?`${ve} 秒前`:ve<3600?`${Math.floor(ve/60)} 分钟前`:`${Math.floor(ve/3600)} 小时前`},pe=[{id:"all",label:"全部设备",count:a.length},{id:"online",label:"在线正常",count:a.filter($=>$.isOnline).length},{id:"offline",label:"离线需关注",count:a.filter($=>!$.isOnline).length}],V=a.filter($=>{if(m==="online"&&!$.isOnline||m==="offline"&&$.isOnline)return!1;if(d.trim()){const ve=d.toLowerCase(),O=$.tenantName.toLowerCase().includes(ve),re=$.classroomName.toLowerCase().includes(ve),_=$.deviceId.toLowerCase().includes(ve),Q=$.hostname&&$.hostname.toLowerCase().includes(ve);if(!O&&!re&&!_&&!Q)return!1}return!0});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:"全网设备集控中心",description:"实时监控教室终端健康心跳与服务状态,支持在线秒级下发或离线指令入队补发、元数据变更与安全清退",action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{u(!0),ce()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(Mt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新"]}),s.jsxs(je,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(jt,{className:"w-3.5 h-3.5"}),"生成激活码"]})]})}),p&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between text-xs transition-all ${p.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[p.success?s.jsx(Vt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):s.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsxs("span",{children:["[设备 ",p.deviceId,"] ",p.message]})]}),s.jsx("button",{onClick:()=>j(null),className:"text-xs opacity-70 hover:opacity-100 font-medium",children:"关闭"})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsx(xo,{tabs:pe,activeId:m,onChange:$=>v($)}),s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(Wr,{value:d,onChange:f,placeholder:"搜索学校、班级、设备编号..."})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-[11px] uppercase tracking-wider text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"学校 / 班级"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"设备编号 / 主机名"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"运行状态"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"心跳与 IP"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"版本"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:V.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-12 text-xs text-slate-500",children:i?"正在同步设备状态...":"暂无匹配的设备"})}):V.map($=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-3.5 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:$.classroomName}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:$.tenantName})]}),s.jsxs("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:[s.jsx("div",{children:$.deviceId}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[s.jsx(Bs,{className:"w-3 h-3 text-slate-500"}),s.jsx("span",{children:$.hostname||"Classroom-PC"})]})]}),s.jsx("td",{className:"py-3.5 px-4",children:s.jsx(ze,{label:$.isOnline?"在线":"离线",variant:$.isOnline?"emerald":"slate"})}),s.jsxs("td",{className:"py-3.5 px-4 text-xs text-slate-300",children:[s.jsx("div",{children:X($.lastHeartbeat)}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:$.remoteIp||"127.0.0.1"})]}),s.jsx("td",{className:"py-3.5 px-4 text-xs",children:s.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono text-[11px]",children:["v",$.clientVersion||"2.1.0"]})}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:s.jsx(ka,{items:[{label:"触发自检",icon:s.jsx(po,{className:"w-3.5 h-3.5 text-indigo-400"}),onClick:()=>he($.deviceId,"self_check")},{label:"刷新配置",icon:s.jsx(Mt,{className:"w-3.5 h-3.5 text-sky-400"}),onClick:()=>he($.deviceId,"refresh_config")},{label:"重启客户端",icon:s.jsx(J0,{className:"w-3.5 h-3.5 text-amber-400"}),onClick:()=>he($.deviceId,"restart_client")},{label:"编辑信息",icon:s.jsx(nh,{className:"w-3.5 h-3.5 text-slate-300"}),onClick:()=>fe($)},{label:"清退设备",icon:s.jsx(Sa,{className:"w-3.5 h-3.5 text-rose-400"}),onClick:()=>K($),danger:!0}]})})]},$.deviceId))})]})})}),S&&s.jsx(pn,{isOpen:!0,onClose:()=>C(null),title:`编辑设备: ${S.deviceId}`,preventClose:P,children:s.jsxs("form",{onSubmit:G,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"计算机主机名 (Hostname)"}),s.jsx("input",{type:"text",value:M,onChange:$=>B($.target.value),placeholder:"例如:ROOM-801-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属教室编号 (ClassroomId)"}),s.jsx("input",{type:"text",value:J,onChange:$=>H($.target.value),placeholder:"例如:class-801",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 font-mono"})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",disabled:P,onClick:()=>C(null),className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:P,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all disabled:opacity-50",children:P?"保存中...":"保存更改"})]})]})}),s.jsx(ih,{isOpen:!!q,onClose:()=>K(null),onConfirm:ye,title:"确认清退大屏设备",targetName:q?`${q.classroomName} (${q.deviceId})`:void 0,description:"清退后该大屏终端将注销授权,无法接收通知与指令,需重新生成激活码方可绑定。",confirmLabel:"确认注销清退",loading:Z})]})},vx=()=>{const[a]=yp(),[l,i]=x.useState([]),[u,d]=x.useState([]),[f,m]=x.useState(!0),[v,p]=x.useState(null),[j,S]=x.useState(""),[C,M]=x.useState(""),[B,J]=x.useState(!1),[H,P]=x.useState(""),[L,q]=x.useState([]),[K,Z]=x.useState(!1),[le,ce]=x.useState(""),[he,fe]=x.useState(!1),[G,ye]=x.useState(""),[X,pe]=x.useState(!1),[V,$]=x.useState(null),ve=async()=>{try{const[E,b]=await Promise.all([oe.getAdminActivationCodes(),oe.getTenants()]);i(E),d(b),b.length>0&&!H&&P(b[0].id)}catch(E){console.error("Failed to load activation codes",E)}finally{m(!1)}};x.useEffect(()=>{ve()},[]),x.useEffect(()=>{const E=a.get("tenantId"),b=a.get("openGenerate")==="true";E&&(M(E),P(E),b&&J(!0))},[a]),x.useEffect(()=>{H&&(Z(!0),oe.getAdminClasses(H).then(E=>{q(E),E.length>0?(ce(E[0].id),fe(!1)):(ce(""),fe(!0))}).catch(E=>{console.warn("Could not load classes for tenant:",H,E),q([]),fe(!0)}).finally(()=>Z(!1)))},[H]);const O=E=>{navigator.clipboard.writeText(E),p(E),setTimeout(()=>p(null),2e3)},re=async E=>{E.preventDefault();const b=he?G.trim():le.trim();if(!H||!b){alert("请选择学校及目标班级");return}pe(!0);try{const R=await oe.generateAdminCode(H,b),de=u.find(ue=>ue.id===H),U=L.find(ue=>ue.id===b);$({code:R.code,schoolName:(de==null?void 0:de.name)||H,className:(U==null?void 0:U.displayName)||b}),J(!1),ye(""),ve()}catch(R){alert(R.message||"生成激活码失败")}finally{pe(!1)}},_=async E=>{if(window.confirm(`确定要废弃/删除激活码 [${E}] 吗?废弃后将无法用于设备初始化绑定。`))try{await oe.deleteActivationCode(E),ve()}catch(b){alert(b.message||"删除激活码失败")}},Q=l.filter(E=>{const b=!C||E.tenantId===C,R=E.code.toLowerCase().includes(j.toLowerCase())||E.classroomName.toLowerCase().includes(j.toLowerCase())||E.tenantName.toLowerCase().includes(j.toLowerCase());return b&&R});return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:s.jsx(jt,{className:"w-4 h-4"})}),s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{m(!0),ve()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(Mt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>{$(null),J(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[s.jsx(us,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),V&&s.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:s.jsx(rh,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),s.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",s.jsx("span",{className:"font-medium text-white",children:V.schoolName})," / ",s.jsx("span",{className:"font-medium text-white",children:V.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:V.code}),s.jsx("button",{onClick:()=>O(V.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:v===V.code?s.jsxs(s.Fragment,{children:[s.jsx(io,{className:"w-3.5 h-3.5"}),"已复制"]}):s.jsxs(s.Fragment,{children:[s.jsx(pa,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[s.jsx(Hr,{className:"w-4 h-4 text-slate-400 shrink-0"}),s.jsx("input",{type:"text",value:j,onChange:E=>S(E.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(Zt,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:C,onChange:E=>M(E.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(E=>s.jsxs("option",{value:E.id,children:[E.name," (",E.id,")"]},E.id))]})]}),s.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",s.jsx("span",{className:"text-white font-medium",children:Q.length})," 个激活码"]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:Q.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[s.jsx(jt,{className:"w-8 h-8 text-slate-600"}),s.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),s.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),s.jsxs("button",{onClick:()=>J(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[s.jsx(us,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):Q.map(E=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{children:E.code}),s.jsx("button",{onClick:()=>O(E.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:v===E.code?s.jsx(io,{className:"w-3.5 h-3.5 text-emerald-400"}):s.jsx(pa,{className:"w-3.5 h-3.5"})})]})}),s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-medium text-white",children:E.classroomName}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:E.tenantName})]}),s.jsx("td",{className:"py-4 px-4",children:E.isUsed?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[s.jsx(Vt,{className:"w-3 h-3"}),"已激活绑定"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[s.jsx(Br,{className:"w-3 h-3"}),"等待激活"]})}),s.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:E.usedByDeviceId?s.jsx("span",{className:"text-slate-200",children:E.usedByDeviceId}):s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(E.expiresAt).toLocaleDateString()," ",new Date(E.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>O(E.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:v===E.code?"已复制":"复制"}),s.jsx("button",{onClick:()=>_(E.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:s.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},E.code))})]})})}),B&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[s.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[s.jsx(jt,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),s.jsxs("form",{onSubmit:re,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),s.jsx("select",{value:H,onChange:E=>P(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(E=>s.jsxs("option",{value:E.id,children:[E.name," (",E.id,") ",E.isActive?"":"[已冻结]"]},E.id))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),s.jsx("button",{type:"button",onClick:()=>fe(!he),className:"text-[11px] text-amber-400 hover:underline",children:he?"从班级列表选择":"手动输入班级ID"})]}),K?s.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[s.jsx(Mt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):he?s.jsx("input",{type:"text",value:G,onChange:E=>ye(E.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):L.length>0?s.jsx("select",{value:le,onChange:E=>ce(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:L.map(E=>s.jsxs("option",{value:E.id,children:[E.displayName," (",E.id,")"]},E.id))}):s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[s.jsx(mn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),s.jsx("input",{type:"text",value:G,onChange:E=>ye(E.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),s.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[s.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),s.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),s.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>J(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),s.jsx("button",{type:"submit",disabled:X,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:X?"生成中...":"立即生成激活码"})]})]})]})})]})},yx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),m=async()=>{try{const p=await oe.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};x.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const v=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),s.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[s.jsx(Mt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新审计"]})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(Hr,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:v.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在加载审计数据...":"暂无呼叫历史记录"})}):v.map(p=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:p.className}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),s.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[s.jsx("div",{className:"font-medium text-sm",children:p.message}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),s.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),s.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[s.jsx(Vt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[s.jsx(co,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[s.jsx(Br,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&s.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),s.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?s.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):s.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},wx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),[m,v]=x.useState(null),[p,j]=x.useState(!1),[S,C]=x.useState({id:"",name:""}),[M,B]=x.useState(!1),[J,H]=x.useState(null),[P,L]=x.useState({name:"",isActive:!0}),[q,K]=x.useState(!1),Z=async()=>{try{const G=await oe.getTenants();l(G)}catch(G){console.error("Failed to load tenants",G)}finally{u(!1)}};x.useEffect(()=>{Z()},[]);const le=async G=>{if(G.preventDefault(),!(!S.id.trim()||!S.name.trim())){B(!0);try{await oe.createTenant({id:S.id.trim(),name:S.name.trim()}),v({text:`学校 [${S.name}] 创建成功!`,success:!0}),j(!1),C({id:"",name:""}),Z()}catch(ye){v({text:ye.message||"创建学校失败",success:!1})}finally{B(!1)}}},ce=G=>{H(G),L({name:G.name,isActive:G.isActive})},he=async G=>{if(G.preventDefault(),!(!J||!P.name.trim())){K(!0);try{await oe.updateTenant(J.id,{name:P.name.trim(),isActive:P.isActive}),v({text:`学校 [${P.name}] 配置已更新`,success:!0}),H(null),Z()}catch(ye){v({text:ye.message||"更新学校配置失败",success:!1})}finally{K(!1)}}},fe=a.filter(G=>G.name.toLowerCase().includes(d.toLowerCase())||G.id.toLowerCase().includes(d.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{u(!0),Z()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(Mt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[s.jsx(us,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?s.jsx(Vt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:m.text})]}),s.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(Hr,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:d,onChange:G=>f(G.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&s.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:fe.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在读取租户列表...":"暂无匹配的学校租户"})}):fe.map(G=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:s.jsx(Zt,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:G.name}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:G.id})]})]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[s.jsx(Fr,{className:"w-3.5 h-3.5 text-indigo-400"}),s.jsxs("span",{children:[G.classroomCount," 个班级"]})]})}),s.jsx("td",{className:"py-4 px-4 text-xs",children:s.jsxs("div",{className:"inline-flex items-center gap-2",children:[s.jsxs("span",{className:"font-semibold text-emerald-400",children:[G.onlineCount," 在线"]}),s.jsx("span",{className:"text-slate-500",children:"/"}),s.jsxs("span",{className:"text-slate-400",children:[G.deviceCount," 总屏"]})]})}),s.jsx("td",{className:"py-4 px-4",children:G.isActive?s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[s.jsx(Vt,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"正常运营"})]}):s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[s.jsx(ma,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"已停用冻结"})]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(G.createdAt).toLocaleDateString()}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsxs(je,{to:`/admin/codes?tenantId=${G.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[s.jsx(jt,{className:"w-3.5 h-3.5"}),"生成激活码"]}),s.jsxs("button",{onClick:()=>ce(G),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[s.jsx(nh,{className:"w-3 h-3"}),"编辑配置"]})]})})]},G.id))})]})})}),p&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),s.jsxs("form",{onSubmit:le,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:S.id,onChange:G=>C({...S,id:G.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:S.name,onChange:G=>C({...S,name:G.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:M,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:M?"正在创建...":"确认接入"})]})]})]})}),J&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",J.id]}),s.jsxs("form",{onSubmit:he,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),s.jsx("input",{type:"text",required:!0,value:P.name,onChange:G=>L({...P,name:G.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),s.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[s.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"radio",name:"isActive",checked:P.isActive===!0,onChange:()=>L({...P,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),s.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),s.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"radio",name:"isActive",checked:P.isActive===!1,onChange:()=>L({...P,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),s.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>H(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:q,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:q?"保存中...":"保存更改"})]})]})]})})]})},bx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(""),[p,j]=x.useState(""),[S,C]=x.useState(""),[M,B]=x.useState(null),[J,H]=x.useState(!1),[P,L]=x.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[q,K]=x.useState(!1),[Z,le]=x.useState(null),[ce,he]=x.useState(""),[fe,G]=x.useState(!1),[ye,X]=x.useState(null),pe=async()=>{try{const[_,Q]=await Promise.all([oe.getUsers(p||void 0,S||void 0),oe.getTenants()]);l(_),u(Q)}catch(_){console.error("Failed to load user management data",_)}finally{f(!1)}};x.useEffect(()=>{pe()},[p,S]);const V=async _=>{var Q;if(_.preventDefault(),!P.tenantId||!P.username||!P.password||!P.fullName){B({text:"请填写所有必填字段",success:!1});return}K(!0);try{await oe.createUser(P),B({text:`用户 [${P.username}] 创建成功!`,success:!0}),H(!1),L({tenantId:((Q=i[0])==null?void 0:Q.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),pe()}catch(E){B({text:E.message||"创建用户失败",success:!1})}finally{K(!1)}},$=async _=>{if(_.preventDefault(),!(!Z||!ce.trim())){G(!0);try{await oe.resetPassword(Z.id,ce.trim()),B({text:`用户 [${Z.username}] 的密码已重置成功`,success:!0}),le(null),he("")}catch(Q){B({text:Q.message||"重置密码失败",success:!1})}finally{G(!1)}}},ve=async _=>{const Q=!_.isLocked,E=Q?`确定要锁定账号 [${_.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${_.username}] 吗?`;if(window.confirm(E)){X(`lock_${_.id}`);try{await oe.setUserLock(_.id,Q),B({text:`用户 [${_.username}] 已成功${Q?"锁定":"解锁"}`,success:!0}),pe()}catch(b){B({text:b.message||"操作失败",success:!1})}finally{X(null)}}},O=async _=>{if(_.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${_.username} (${_.fullName})] 吗?此操作不可逆!`)){X(`delete_${_.id}`);try{await oe.deleteUser(_.id),B({text:`用户 [${_.username}] 已被删除`,success:!0}),pe()}catch(Q){B({text:Q.message||"删除用户失败",success:!1})}finally{X(null)}}},re=a.filter(_=>_.username.toLowerCase().includes(m.toLowerCase())||_.fullName.toLowerCase().includes(m.toLowerCase())||_.tenantName.toLowerCase().includes(m.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{f(!0),pe()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(Mt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>{i.length>0&&!P.tenantId&&L(_=>({..._,tenantId:i[0].id})),H(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[s.jsx(us,{className:"w-4 h-4"}),"新建用户"]})]})]}),M&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${M.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[M.success?s.jsx(Vt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:M.text})]}),s.jsx("button",{onClick:()=>B(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[s.jsx(Hr,{className:"w-4 h-4 text-slate-400 shrink-0"}),s.jsx("input",{type:"text",value:m,onChange:_=>v(_.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(Zt,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:p,onChange:_=>j(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"全部学校 (全网)"}),i.map(_=>s.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(Fr,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:S,onChange:_=>C(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"全部角色"}),s.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),s.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),s.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:re.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):re.map(_=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:_.fullName}),s.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:_.username})]}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[s.jsx("div",{children:_.tenantName}),s.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:_.tenantId})]}),s.jsx("td",{className:"py-4 px-4",children:_.role==="SuperAdmin"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[s.jsx(sh,{className:"w-3 h-3"}),"超级管理员"]}):_.role==="SchoolAdmin"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[s.jsx(Zt,{className:"w-3 h-3"}),"校区管理员"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[s.jsx(Fr,{className:"w-3 h-3"}),"授课老师"]})}),s.jsx("td",{className:"py-4 px-4",children:_.isLocked?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[s.jsx(ao,{className:"w-3 h-3"}),"已锁定封禁"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[s.jsx(Vt,{className:"w-3 h-3"}),"正常"]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:_.lastLoginAt?new Date(_.lastLoginAt).toLocaleString():"尚未登录"}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[s.jsxs("button",{onClick:()=>le(_),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[s.jsx(jt,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),_.role!=="SuperAdmin"&&s.jsxs("button",{onClick:()=>ve(_),disabled:ye===`lock_${_.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${_.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:_.isLocked?"解除账号锁定":"锁定账号",children:[_.isLocked?s.jsx(th,{className:"w-3 h-3"}):s.jsx(ao,{className:"w-3 h-3"}),_.isLocked?"解锁":"锁定"]}),_.role!=="SuperAdmin"&&s.jsx("button",{onClick:()=>O(_),disabled:ye===`delete_${_.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:s.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},_.id))})]})})}),J&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),s.jsxs("form",{onSubmit:V,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),s.jsxs("select",{required:!0,value:P.tenantId,onChange:_=>L({...P,tenantId:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"-- 请选择学校 --"}),i.map(_=>s.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),s.jsxs("select",{value:P.role,onChange:_=>L({...P,role:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),s.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:P.username,onChange:_=>L({...P,username:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:P.fullName,onChange:_=>L({...P,fullName:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),s.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:P.password,onChange:_=>L({...P,password:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:q,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:q?"正在创建...":"确认开户"})]})]})]})}),Z&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",Z.username]}),s.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",Z.tenantName,"] 的 [",Z.fullName,"] 强行设置新密码。"]}),s.jsxs("form",{onSubmit:$,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),s.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:ce,onChange:_=>he(_.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>{le(null),he("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:fe,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:fe?"重置中...":"确认重置"})]})]})]})})]})},jx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState([]),[m,v]=x.useState(!1),[p,j]=x.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[S,C]=x.useState(!1),[M,B]=x.useState(!1),[J,H]=x.useState(null),[P,L]=x.useState(null),[q,K]=x.useState(null),Z=[{title:"消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速有序撤离至操场!",duration:60,shake:!0,voice:!0,icon:T0},{title:"恶劣天气避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁前往室外!",duration:45,shake:!0,voice:!0,icon:j0},{title:"临时紧急调度会议",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学教室内自习。",duration:30,shake:!1,voice:!0,icon:Us},{title:"作息调整离校通知",content:"因突发教学安排,今天下午放学时间临时调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:U0}],le=async()=>{try{const O=await oe.getTenants();l(O)}catch(O){console.error("Failed to load tenants",O)}finally{u(!1)}},ce=async()=>{v(!0);try{const O=await oe.getAdminNotifications(15);f(O)}catch(O){console.error("Failed to load recent broadcasts",O)}finally{v(!1)}};x.useEffect(()=>{le(),ce()},[]);const he=O=>{j(re=>({...re,title:`⚠️ ${O.title}`,message:O.content,durationSeconds:O.duration,shake:O.shake,voice:O.voice}))},fe=O=>{if(O.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}C(!0)};x.useEffect(()=>{if(!J)return;let O=!1,re;const _=Date.now(),Q=async()=>{try{const E=await oe.getBroadcastReceiptSummary(J);if(O)return;L(E),!E.completed&&Date.now()-_<6e4&&(re=window.setTimeout(Q,2e3))}catch{!O&&Date.now()-_<6e4&&(re=window.setTimeout(Q,3e3))}};return Q(),()=>{O=!0,re&&clearTimeout(re)}},[J]);const G=async()=>{B(!0);try{const O=await oe.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});O.broadcastId&&H(O.broadcastId),K({dispatchedCount:O.dispatchedCount,targetSchools:O.targetSchools,message:O.message,success:!0,timestamp:new Date().toLocaleTimeString()}),C(!1),j(re=>({...re,message:""})),ce()}catch(O){K({dispatchedCount:0,targetSchools:0,message:O.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),C(!1)}finally{B(!1)}},ye=a.find(O=>O.id===p.tenantId),X=ye?ye.classroomCount:a.reduce((O,re)=>O+(re.classroomCount||0),0),pe=ye?ye.deviceCount:a.reduce((O,re)=>O+(re.deviceCount||0),0),V=(P==null?void 0:P.targetDevices)||(q==null?void 0:q.dispatchedCount)||pe||1,$=(P==null?void 0:P.displayed)??0,ve=P?Math.min(100,Math.round($/V*100)):0;return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:"全域应急广播通道",description:"全网最高优先调度通道,覆盖多校区所有教室大屏终端,支持全屏强置顶与语音播报",badge:s.jsx(ze,{label:"极高优先级",variant:"rose"})}),q&&s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4 animate-in fade-in duration-150",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[q.success?s.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:s.jsx(Vt,{className:"w-5 h-5"})}):s.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:s.jsx(Fn,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-white",children:q.success?"紧急广播指令已成功下发至目标教室大屏":"广播下发失败"}),s.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:q.message})]})]}),s.jsx("button",{type:"button",onClick:()=>{K(null),H(null),L(null)},className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:s.jsx(Un,{className:"w-4 h-4"})})]}),q.success&&s.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[s.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[s.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),s.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${ve}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),s.jsxs("span",{className:"text-xs font-bold text-white absolute",children:[ve,"%"]})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-semibold text-white",children:"大屏显示达成率"}),s.jsx("div",{className:"text-[11px] text-slate-400 mt-0.5",children:P?`${$} / ${V} 台大屏已完成现场弹窗`:"广播已调度发出,正在等待大屏回执确认中..."})]})]}),s.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[s.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20 text-emerald-400",children:[s.jsx("div",{className:"font-bold text-sm",children:$}),s.jsx("div",{className:"text-[10px]",children:"已显示"})]}),s.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-300",children:[s.jsx("div",{className:"font-bold text-sm",children:(P==null?void 0:P.pending)??(q.dispatchedCount||0)}),s.jsx("div",{className:"text-[10px]",children:"等待回执"})]}),s.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-400",children:[s.jsx("div",{className:"font-bold text-sm",children:(P==null?void 0:P.failed)??0}),s.jsx("div",{className:"text-[10px]",children:"失败/离线"})]})]})]}),q.success&&a.length>0&&s.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-800",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"目标校区下达详情"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:a.map(O=>!p.tenantId||p.tenantId===O.id?s.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80 flex items-center justify-between text-xs",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-slate-200",children:O.name}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:[O.classroomCount," 间教室 · ",O.deviceCount," 台大屏"]})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 font-medium",children:[s.jsx(Hs,{className:"w-3.5 h-3.5 text-blue-400"}),s.jsx("span",{children:"已调度下发"})]})]},O.id):null)})]})]}),s.jsxs("div",{className:"space-y-2.5",children:[s.jsx("label",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider block",children:"应急广播预设模板(点击快速填装)"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Z.map((O,re)=>{const _=O.icon;return s.jsxs("button",{type:"button",onClick:()=>he(O),className:"p-3.5 rounded-xl bg-slate-900 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 text-left transition-all group",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-blue-400 mb-1",children:[s.jsx(_,{className:"w-4 h-4 text-blue-400 shrink-0"}),s.jsx("span",{children:O.title})]}),s.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2 leading-relaxed",children:O.content})]},re)})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm",children:s.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(Zt,{className:"w-3.5 h-3.5 text-blue-400"}),"目标广播校区"]}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:["预计覆盖 ",X," 班级"]})]}),s.jsxs("select",{value:p.tenantId||"",onChange:O=>j({...p,tenantId:O.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",children:[s.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(O=>s.jsxs("option",{value:O.id,children:["仅该校: ",O.name," (",O.classroomCount," 班级, ",O.deviceCount," 大屏)"]},O.id))]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[s.jsx(sh,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),s.jsx("input",{type:"text",required:!0,value:p.title,onChange:O=>j({...p,title:O.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容"}),s.jsx("textarea",{required:!0,rows:3,value:p.message,onChange:O=>j({...p,message:O.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white placeholder-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none leading-relaxed",placeholder:"请输入紧急通报具体事项..."})]}),s.jsxs("div",{className:"pt-2 border-t border-slate-800/80 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-4 text-xs",children:[s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[s.jsx("input",{type:"checkbox",checked:p.voice,onChange:O=>j({...p,voice:O.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx(ix,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{children:"TTS 语音朗读"})]}),s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[s.jsx("input",{type:"checkbox",checked:p.shake,onChange:O=>j({...p,shake:O.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx(po,{className:"w-3.5 h-3.5 text-rose-400"}),s.jsx("span",{children:"窗口视效抖动"})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400",children:[s.jsx(Br,{className:"w-3.5 h-3.5"}),s.jsxs("span",{children:["时长: ",p.durationSeconds,"s"]})]})]}),s.jsxs("button",{type:"submit",disabled:M||!p.message.trim(),className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center justify-center gap-2 disabled:opacity-40",children:[s.jsx(co,{className:"w-4 h-4"}),s.jsx("span",{children:"下发紧急广播"})]})]})]})}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(xa,{className:"w-4 h-4 text-blue-400"}),"最近全网广播与呼叫调度记录"]}),s.jsx("button",{onClick:ce,disabled:m,className:"text-xs text-blue-400 hover:underline disabled:opacity-50",children:m?"刷新中...":"刷新"})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs",children:[s.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),s.jsx("th",{className:"py-2.5 px-3",children:"类型"}),s.jsx("th",{className:"py-2.5 px-3",children:"目标范围"}),s.jsx("th",{className:"py-2.5 px-3",children:"通报内容"}),s.jsx("th",{className:"py-2.5 px-3 text-right",children:"状态"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:m?"正在加载历史记录...":"暂无调度记录"})}):d.slice(0,6).map(O=>s.jsxs("tr",{className:"hover:bg-slate-800/25",children:[s.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(O.createdAt).toLocaleTimeString()}),s.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:O.priority==="Urgent"?s.jsx(ze,{label:"紧急通报",variant:"rose",dot:!1}):s.jsx(ze,{label:"日常呼叫",variant:"slate",dot:!1})}),s.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:O.className||"全域广播"}),s.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:O.message}),s.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:O.status==="Cancelled"?s.jsx("span",{className:"text-slate-400",children:"已撤回"}):O.status==="Acknowledged"?s.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):O.status==="Delivered"?s.jsx("span",{className:"text-sky-400",children:"已送达"}):s.jsx("span",{className:"text-slate-400",children:"已发送"})})]},O.id))})]})})]}),S&&s.jsx(pn,{isOpen:!0,onClose:()=>C(!1),title:"全域应急调度二次确认",preventClose:M,children:s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300 text-xs leading-relaxed",children:"⚠️ 确认后,系统将强制穿透目标教室大屏正在进行的多媒体课件,以全屏高优先级弹窗展示并进行语音朗读。"}),s.jsxs("div",{className:"p-3 rounded-xl bg-slate-950 border border-slate-800 text-xs space-y-1.5",children:[s.jsxs("div",{className:"text-slate-400",children:["广播范围:",s.jsx("span",{className:"text-white font-semibold",children:p.tenantId?ye==null?void 0:ye.name:`全域覆盖 (${a.length} 所学校)`})]}),s.jsxs("div",{className:"text-slate-400",children:["广播标题:",s.jsx("span",{className:"text-white font-medium",children:p.title})]}),s.jsxs("div",{className:"text-slate-400",children:["广播正文:",s.jsx("span",{className:"text-slate-200",children:p.message})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[s.jsx("button",{type:"button",disabled:M,onClick:()=>C(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"放弃"}),s.jsx("button",{type:"button",disabled:M,onClick:G,className:"px-5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 flex items-center gap-2 disabled:opacity-50",children:M?s.jsxs(s.Fragment,{children:[s.jsx(Gt,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"下发中..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(co,{className:"w-4 h-4"}),s.jsx("span",{children:"确认下发"})]})})]})]})})]})},Nx=()=>{const[a,l]=x.useState(null),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(null),[p,j]=x.useState("all"),S=async()=>{f(!0),v(null);try{const[L,q]=await Promise.all([oe.getSchoolOverview(),oe.getSchoolDevices()]);l(L),u(q)}catch(L){v((L==null?void 0:L.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};x.useEffect(()=>{S();const L=$t.onDeviceStatusChanged(K=>{u(Z=>{const le=K.state===1||String(K.state).toLowerCase()==="online",ce=Z.map(fe=>fe.deviceId===K.deviceId?{...fe,isOnline:le,lastHeartbeat:K.lastHeartbeat,clientVersion:K.agentVersion||fe.clientVersion}:fe),he=ce.filter(fe=>fe.isOnline).length;return l(fe=>fe?{...fe,onlineCount:he}:null),ce})}),q=$t.onHealthReportReceived(K=>{u(Z=>Z.map(le=>le.deviceId===K.deviceId?{...le,healthStatus:K.overallStatus,lastHeartbeat:K.timestamp||new Date().toISOString()}:le))});return()=>{L(),q()}},[]);const C=(a==null?void 0:a.deviceCount)??i.length,M=(a==null?void 0:a.onlineCount)??i.filter(L=>L.isOnline).length,B=Math.max(0,C-M),J=[{id:"all",label:"全部设备",count:i.length},{id:"online",label:"在线正常",count:i.filter(L=>L.isOnline).length},{id:"offline",label:"离线需关注",count:i.filter(L=>!L.isOnline).length}],P=i.filter(L=>p==="online"?L.isOnline:p==="offline"?!L.isOnline:!0);return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:a!=null&&a.tenantName?`${a.tenantName} · 本校管理后台`:"本校管理后台",description:"实时监控全校各班级多媒体大屏运行状态与科任教师账号",action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(je,{to:"/school-admin/classes",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[s.jsx(Mr,{className:"w-4 h-4 text-sky-400"}),"班级管理"]}),s.jsxs(je,{to:"/school-admin/codes",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(jt,{className:"w-4 h-4"}),"生成激活码"]})]})}),m&&s.jsxs("div",{className:"p-4 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:m})]}),s.jsxs("button",{onClick:S,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(Mt,{className:"w-3.5 h-3.5"}),"重试"]})]}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsx(ls,{title:"教学班级",value:d?"-":(a==null?void 0:a.classCount)??0,subtitle:`安装终端 ${C} 台`,icon:s.jsx(Mr,{className:"w-5 h-5 text-indigo-400"})}),s.jsx(ls,{title:"在线终端",value:d?"-":M,subtitle:"正常就绪待接收",icon:s.jsx(po,{className:"w-5 h-5 text-emerald-400"}),badge:s.jsx(ze,{label:"正常",variant:"emerald"})}),s.jsx(ls,{title:"离线终端",value:d?"-":B,subtitle:B>0?"建议排查电源或网络":"全校终端连通正常",icon:s.jsx(Fn,{className:`w-5 h-5 ${B>0?"text-amber-400":"text-slate-400"}`}),badge:B>0?s.jsx(ze,{label:"待排查",variant:"amber"}):s.jsx(ze,{label:"全部在线",variant:"slate"})}),s.jsx(ls,{title:"任课教师",value:d?"-":(a==null?void 0:a.teacherCount)??0,subtitle:"已授权控制台账号",icon:s.jsx(Us,{className:"w-5 h-5 text-sky-400"})})]}),B>0&&s.jsxs("div",{className:"p-4 rounded-xl bg-amber-500/10 border border-amber-500/20 text-amber-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx(Fn,{className:"w-4 h-4 text-amber-400 shrink-0"}),s.jsxs("span",{children:["检测到 ",s.jsxs("strong",{children:[B," 台"]})," 教室大屏当前处于离线状态,已为您自动置顶展示,方便排查。"]})]}),s.jsx(je,{to:"/school-admin/codes",className:"text-amber-400 hover:text-amber-300 font-medium underline underline-offset-4",children:"获取安装激活码"})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Bs,{className:"w-4 h-4 text-blue-400"}),s.jsx("h2",{className:"text-sm font-semibold text-white",children:"大屏终端在线与健康状态"})]}),s.jsx(xo,{tabs:J,activeId:p,onChange:j})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"班级"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"健康评估"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"客户端版本"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Mt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在获取大屏状态..."})]})}):P.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:p==="offline"?"全校大屏均在线运行良好":"暂无大屏数据"})}):P.map(L=>s.jsxs("tr",{className:"hover:bg-slate-800/40 transition-colors",children:[s.jsx("td",{className:"py-3.5 px-4 font-semibold text-white",children:L.classroomName||"未分配班级"}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:L.deviceId}),s.jsx("td",{className:"py-3.5 px-4",children:L.isOnline?s.jsx(ze,{label:"在线",variant:"emerald"}):s.jsx(ze,{label:"离线",variant:"slate"})}),s.jsx("td",{className:"py-3.5 px-4",children:L.healthStatus==="Degraded"?s.jsx(ze,{label:"亚健康",variant:"amber"}):L.isOnline?s.jsx(ze,{label:"健康",variant:"emerald"}):s.jsx(ze,{label:"离线未检",variant:"slate"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:L.lastHeartbeat?new Date(L.lastHeartbeat).toLocaleTimeString():s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",L.clientVersion||"2.4.0"]})]},L.deviceId))})]})})]})]})},_x=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(""),[p,j]=x.useState(!1),[S,C]=x.useState(""),[M,B]=x.useState(""),[J,H]=x.useState(""),[P,L]=x.useState(""),[q,K]=x.useState(!1),[Z,le]=x.useState(null),[ce,he]=x.useState(null),fe=async()=>{try{const[V,$]=await Promise.all([oe.getSchoolClasses(),oe.getSchoolDevices().catch(()=>[])]);l(V),u($)}catch(V){console.error("Failed to load class or device data",V)}finally{f(!1)}};x.useEffect(()=>{fe()},[]);const G=async V=>{if(V.preventDefault(),!(!S||!M)){K(!0);try{await oe.createSchoolClass({id:S,displayName:M,grade:J,roomNumber:P}),j(!1),C(""),B(""),H(""),L(""),fe()}catch($){alert($.message||"创建班级失败")}finally{K(!1)}}},ye=async V=>{he(V.id);try{const $=await oe.generateSchoolCode(V.id);le({classId:V.id,className:V.displayName,code:$.code})}catch($){alert($.message||"生成激活码失败")}finally{he(null)}},X=V=>i.find($=>$.classroomId===V),pe=a.filter(V=>{if(!m.trim())return!0;const $=m.toLowerCase();return V.displayName.toLowerCase().includes($)||V.id.toLowerCase().includes($)||V.roomNumber&&V.roomNumber.toLowerCase().includes($)});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:"教学班级管理",description:"维护本校班级档案,管理教室位置与大屏终端绑定状态",action:s.jsxs("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(us,{className:"w-4 h-4"}),"新建教学班"]})}),s.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s.jsx("div",{className:"w-72",children:s.jsx(Wr,{value:m,onChange:v,placeholder:"搜索班级名称或位置..."})}),s.jsxs("div",{className:"text-xs text-slate-400",children:["共 ",s.jsx("span",{className:"font-semibold text-white",children:pe.length})," 个教学班"]})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"教室位置"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定大屏"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"大屏状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),s.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载班级数据..."})]})}):pe.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:m?"未找到匹配的班级":"暂无教学班,点击右上角新建"})}):pe.map(V=>{const $=X(V.id);return s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsxs("td",{className:"py-3.5 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:V.displayName}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:V.id})]}),s.jsx("td",{className:"py-3.5 px-4 text-slate-300",children:V.roomNumber||V.grade||s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-3.5 px-4",children:$?s.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-slate-200",children:[s.jsx(Bs,{className:"w-3.5 h-3.5 text-blue-400 shrink-0"}),s.jsx("span",{children:$.deviceId})]}):s.jsx("span",{className:"text-slate-500 text-xs",children:"未绑定大屏"})}),s.jsx("td",{className:"py-3.5 px-4",children:$?$.isOnline?s.jsx(ze,{label:"在线",variant:"emerald"}):s.jsx(ze,{label:"离线",variant:"slate"}):s.jsxs("button",{type:"button",onClick:()=>ye(V),className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 border border-blue-500/20 transition-colors",children:[s.jsx(jt,{className:"w-3 h-3"}),s.jsx("span",{children:"立即绑定"})]})}),s.jsx("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:$!=null&&$.lastHeartbeat?new Date($.lastHeartbeat).toLocaleTimeString():s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:s.jsx(ka,{items:[{label:"生成安装激活码",icon:s.jsx(jt,{className:"w-4 h-4 text-blue-400"}),onClick:()=>ye(V)}]})})]},V.id)})})]})})}),Z&&s.jsx(pn,{isOpen:!0,onClose:()=>le(null),title:`大屏安装激活码 · ${Z.className}`,children:s.jsxs("div",{className:"space-y-4 text-center py-2",children:[s.jsx("p",{className:"text-xs text-slate-400",children:"请在班级教室大屏运行客户端安装程序,并输入以下 8 位激活码完成绑定:"}),s.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex items-center justify-center gap-3",children:[s.jsx("span",{className:"font-mono text-2xl font-bold tracking-widest text-blue-400",children:Z.code}),s.jsx(oh,{text:Z.code,label:"复制"})]}),s.jsx("p",{className:"text-[11px] text-slate-500",children:"激活码 24 小时内有效,完成一次硬件绑定后将自动核销。"}),s.jsx("div",{className:"pt-2",children:s.jsx("button",{type:"button",onClick:()=>le(null),className:"w-full py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-semibold transition-colors",children:"完成"})})]})}),p&&s.jsx(pn,{isOpen:!0,onClose:()=>j(!1),title:"新建教学班级",children:s.jsxs("form",{onSubmit:G,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级编号 (唯一识别码)"}),s.jsx("input",{type:"text",value:S,onChange:V=>C(V.target.value),placeholder:"如 cls_801 或 c_eight_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级显示名称"}),s.jsx("input",{type:"text",value:M,onChange:V=>B(V.target.value),placeholder:"如 八年级(1)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"年级 (可选)"}),s.jsx("input",{type:"text",value:J,onChange:V=>H(V.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教室位置 (可选)"}),s.jsx("input",{type:"text",value:P,onChange:V=>L(V.target.value),placeholder:"如 教学楼 301",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:q,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:q?"创建中...":"确认创建"})]})]})})]})},Sx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState("all"),[m,v]=x.useState(""),[p,j]=x.useState(!1),[S,C]=x.useState(""),[M,B]=x.useState(""),[J,H]=x.useState(""),[P,L]=x.useState(!1),[q,K]=x.useState(null),[Z,le]=x.useState(""),[ce,he]=x.useState(!1),fe=x.useRef(null),[G,ye]=x.useState(null),[X,pe]=x.useState(!1),[V,$]=x.useState(null),ve=(U,ue)=>{$({type:U,text:ue}),setTimeout(()=>{$(be=>(be==null?void 0:be.text)===ue?null:be)},4e3)},O=async()=>{try{const U=await oe.getSchoolTeachers();l(U)}catch(U){ve("error",(U==null?void 0:U.message)||"加载教师列表失败")}finally{u(!1)}};x.useEffect(()=>{O()},[]),x.useEffect(()=>{q&&fe.current&&setTimeout(()=>{var U;return(U=fe.current)==null?void 0:U.focus()},100)},[q]);const re=async U=>{if(U.preventDefault(),!(!S||!M||!J)){if(M.length<8){alert("密码长度不能少于 8 位");return}L(!0);try{await oe.createSchoolTeacher({username:S,password:M,fullName:J,role:"Teacher"}),j(!1),C(""),B(""),H(""),ve("success",`教师账号 ${J} 开设成功`),O()}catch(ue){alert(ue.message||"创建教师账号失败")}finally{L(!1)}}},_=async U=>{if(U.preventDefault(),!(!q||!Z)){if(Z.length<8){alert("根据系统安全基线,密码长度不能少于 8 位");return}he(!0);try{await oe.resetSchoolTeacherPassword(q.id,Z),ve("success",`已成功将教师 [${q.fullName}] 的密码重置`),K(null),le("")}catch(ue){alert(ue.message||"重置密码失败")}finally{he(!1)}}},Q=async()=>{if(!G)return;pe(!0);const U=!G.isLocked;try{await oe.setSchoolTeacherLock(G.id,U),ve("success",`已成功${U?"停用":"启用"}教师 [${G.fullName}] 账号`),ye(null),O()}catch(ue){alert(ue.message||"操作失败")}finally{pe(!1)}},E=a.filter(U=>!U.isLocked).length,b=a.filter(U=>U.isLocked).length,R=[{id:"all",label:"全部教师",count:a.length},{id:"active",label:"正常使用",count:E},{id:"locked",label:"已停用",count:b}],de=a.filter(U=>{if(d==="active"&&U.isLocked||d==="locked"&&!U.isLocked)return!1;if(m.trim()){const ue=m.toLowerCase();return U.fullName.toLowerCase().includes(ue)||U.username.toLowerCase().includes(ue)}return!0});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:"教师账号管理",description:"管理本校任课教师账号登录凭证与权限状态",action:s.jsxs("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(us,{className:"w-4 h-4"}),"开设教师账号"]})}),V&&s.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${V.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[V.type==="success"?s.jsx(Vt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):s.jsx(Fn,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:V.text})]}),s.jsx("button",{onClick:()=>$(null),className:"text-slate-400 hover:text-white",children:s.jsx(Un,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsx(xo,{tabs:R,activeId:d,onChange:f}),s.jsx("div",{className:"w-full sm:w-64",children:s.jsx(Wr,{value:m,onChange:v,placeholder:"搜索教师姓名或登录名..."})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"教师姓名"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"登录账号"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"身份角色"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"账号状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最近登录"}),s.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:i?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载教师列表..."})]})}):de.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:m?"未找到符合条件的教师":"暂无教师数据"})}):de.map(U=>s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsxs("td",{className:"py-3.5 px-4 font-semibold text-white flex items-center gap-2",children:[s.jsx(Fr,{className:"w-4 h-4 text-emerald-400 shrink-0"}),s.jsx("span",{children:U.fullName})]}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:U.username}),s.jsx("td",{className:"py-3.5 px-4 text-xs",children:U.role==="SchoolAdmin"?s.jsx("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-400 border border-blue-500/20 text-xs",children:"学校管理员"}):s.jsx("span",{className:"px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700/60 text-xs",children:"任课教师"})}),s.jsx("td",{className:"py-3.5 px-4",children:U.isLocked?s.jsx(ze,{label:"已停用",variant:"rose"}):s.jsx(ze,{label:"正常",variant:"emerald"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:U.lastLoginAt?new Date(U.lastLoginAt).toLocaleString():s.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[s.jsx(Br,{className:"w-3 h-3"}),"从未登录"]})}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:U.role==="Teacher"?s.jsx(ka,{items:[{label:"重置登录密码",icon:s.jsx(jt,{className:"w-4 h-4 text-blue-400"}),onClick:()=>{K(U),le("")}},{label:U.isLocked?"启用账号":"停用账号",icon:U.isLocked?s.jsx(th,{className:"w-4 h-4 text-emerald-400"}):s.jsx(ao,{className:"w-4 h-4 text-rose-400"}),danger:!U.isLocked,onClick:()=>ye(U)}]}):s.jsx("span",{className:"text-slate-600 text-xs",children:"-"})})]},U.id))})]})})}),q&&s.jsx(pn,{isOpen:!0,onClose:()=>K(null),title:`重置教师密码 · ${q.fullName}`,children:s.jsxs("form",{onSubmit:_,className:"space-y-4",children:[s.jsx("p",{className:"text-xs text-slate-400",children:"重置密码将立即终止该教师当前的在线会话,下次登录必须使用新密码:"}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码(至少 8 位)"}),s.jsx("input",{ref:fe,type:"password",value:Z,onChange:U=>le(U.target.value),placeholder:"请输入不少于 8 位的新密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>K(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:ce||Z.length<8,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:ce?"正在重置...":"确认重置密码"})]})]})}),G&&s.jsx(ih,{isOpen:!0,onClose:()=>ye(null),onConfirm:Q,loading:X,title:G.isLocked?"恢复教师账号权限?":"停用该教师账号?",targetName:G.fullName,description:G.isLocked?"启用后,该教师将可以正常登录教师工作台并向班级大屏发送呼叫通知。":"停用后,该教师所有活跃登录会话将立即注销,无法再向大屏发起任何呼叫。历史通知与审计记录不受影响。",confirmLabel:G.isLocked?"确认启用":"确认停用账号"}),p&&s.jsx(pn,{isOpen:!0,onClose:()=>j(!1),title:"开设任课教师账号",children:s.jsxs("form",{onSubmit:re,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教师真实姓名"}),s.jsx("input",{type:"text",value:J,onChange:U=>H(U.target.value),placeholder:"如 张老师、王建国",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),s.jsx("input",{type:"text",value:S,onChange:U=>C(U.target.value),placeholder:"建议使用手机号或拼音如 teacher_zhang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始密码(至少 8 位)"}),s.jsx("input",{type:"password",value:M,onChange:U=>B(U.target.value),placeholder:"设置该教师首次登录的初始密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:P,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:P?"开设中...":"确认开设"})]})]})})]})},kx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,v]=x.useState(null),[p,j]=x.useState("all"),[S,C]=x.useState(""),[M,B]=x.useState(!1),[J,H]=x.useState(""),[P,L]=x.useState(!1),[q,K]=x.useState(null),Z=async()=>{f(!0),v(null);try{const[X,pe]=await Promise.all([oe.getSchoolCodes(),oe.getSchoolClasses()]);l(X),u(pe),pe.length>0&&!J&&H(pe[0].id)}catch(X){v((X==null?void 0:X.message)||"加载本校激活码数据失败")}finally{f(!1)}};x.useEffect(()=>{Z()},[]);const le=async X=>{if(X.preventDefault(),!!J){L(!0),K(null);try{await oe.generateSchoolCode(J),B(!1),Z()}catch(pe){K((pe==null?void 0:pe.message)||"生成激活码失败")}finally{L(!1)}}},ce=a.filter(X=>!X.isUsed&&new Date(X.expiresAt).getTime()>Date.now()).length,he=a.filter(X=>X.isUsed).length,fe=a.filter(X=>!X.isUsed&&new Date(X.expiresAt).getTime()<=Date.now()).length,G=[{id:"all",label:"全部",count:a.length},{id:"pending",label:"待激活 (可用)",count:ce},{id:"used",label:"已绑定",count:he},{id:"expired",label:"已过期",count:fe}],ye=a.filter(X=>{const pe=!X.isUsed&&new Date(X.expiresAt).getTime()<=Date.now();if(p==="pending"&&(X.isUsed||pe)||p==="used"&&!X.isUsed||p==="expired"&&!pe)return!1;if(S.trim()){const V=S.toLowerCase(),$=X.code.toLowerCase().includes(V),ve=(X.classroomName||X.classroomId).toLowerCase().includes(V);if(!$&&!ve)return!1}return!0});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(hs,{title:"本校教室终端激活码",description:"生成与管理本校教室大屏安装所需的 8 位一次性硬件绑定激活码",action:s.jsxs("button",{type:"button",onClick:()=>{K(null),B(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(us,{className:"w-4 h-4"}),"生成新激活码"]})}),m&&s.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:m})]}),s.jsxs("button",{onClick:Z,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(Mt,{className:"w-3.5 h-3.5"}),"重试"]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsx(xo,{tabs:G,activeId:p,onChange:j}),s.jsx("div",{className:"w-full sm:w-64",children:s.jsx(Wr,{value:S,onChange:C,placeholder:"搜索激活码或班级..."})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"8位激活码"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定班级"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"使用状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定设备 ID"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"有效期"}),s.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载激活码..."})]})}):ye.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:S?"未找到符合条件的激活码":"暂无激活码,点击右上角生成"})}):ye.map(X=>{const pe=!X.isUsed&&new Date(X.expiresAt).getTime()<=Date.now();return s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsx("td",{className:"py-3.5 px-4 font-mono font-bold text-blue-400 text-sm",children:X.code}),s.jsxs("td",{className:"py-3.5 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:X.classroomName||X.classroomId}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:X.classroomId})]}),s.jsx("td",{className:"py-3.5 px-4",children:X.isUsed?s.jsx(ze,{label:"已绑定",variant:"slate"}):pe?s.jsx(ze,{label:"已过期",variant:"rose"}):s.jsx(ze,{label:"待激活",variant:"emerald"})}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:X.usedByDeviceId||s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:new Date(X.expiresAt).toLocaleDateString()}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:s.jsx(oh,{text:X.code,label:"复制"})})]},X.code)})})]})})}),M&&s.jsx(pn,{isOpen:!0,onClose:()=>B(!1),title:"生成本校班级设备激活码",children:s.jsxs("form",{onSubmit:le,className:"space-y-4",children:[q&&s.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:q}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"选择目标班级"}),i.length===0?s.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无可分配班级,请先前往【班级管理】新建班级"}):s.jsx("select",{value:J,onChange:X=>H(X.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",required:!0,children:i.map(X=>s.jsxs("option",{value:X.id,children:[X.displayName," (",X.roomNumber||X.id,")"]},X.id))})]}),s.jsx("p",{className:"text-[11px] text-slate-500 leading-relaxed",children:"💡 激活码生成后有效期为 24 小时。在教室大屏安装客户端并成功绑定后,该激活码将自动核销。"}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>B(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:P||!J,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:P?"生成中...":"立即生成"})]})]})})]})};function ca(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const Cx=[],Ex=[{label:"到办公室",text:"请到教师办公室一趟。"},{label:"下楼集合",text:"请立即到楼下操场集合整队。"},{label:"家长来了",text:"校门口有家长找,请前往传达室。"},{label:"带作业本",text:"请收齐各科作业本送至办公室。"},{label:"课间回来",text:"预备铃已响,请迅速回教室内就坐。"},{label:"自习纪律",text:"请保持教室内安静自习,班干部负责维护纪律。"}],Tx=()=>{const{user:a}=qs(),[l,i]=x.useState([]),[u,d]=x.useState(""),[f,m]=x.useState(""),[v,p]=x.useState(""),[j,S]=x.useState(!1),[C,M]=x.useState(null),[B,J]=x.useState(!0),[H,P]=x.useState(!0),[L,q]=x.useState(!1),[K,Z]=x.useState(15),[le,ce]=x.useState(!1),[he,fe]=x.useState(!1),G=D=>!(a!=null&&a.tenantId)||!(a!=null&&a.userId)||!D?null:`classnotify:recentStudents:${a.tenantId}:${a.userId}:${D}`,[ye,X]=x.useState(Cx);x.useEffect(()=>{if(!u)return;const D=G(u);if(!D){X([]);return}try{const xe=localStorage.getItem(D);X(xe?JSON.parse(xe):[])}catch{X([])}},[u,a==null?void 0:a.tenantId,a==null?void 0:a.userId]);const[pe,V]=x.useState([]),[$,ve]=x.useState(50),[O,re]=x.useState(!1),[_,Q]=x.useState(!0),[E,b]=x.useState(!0),[R,de]=x.useState(null),[U,ue]=x.useState("all"),[be,Pe]=x.useState(""),[Se,Re]=x.useState(null),[et,gn]=x.useState(null),[Qs,Hn]=x.useState(!1),[fs,ms]=x.useState(null),[Wn,en]=x.useState(1),[tn,vn]=x.useState(null),[nn,sn]=x.useState(!1),ps=x.useRef(l);x.useEffect(()=>{ps.current=l},[l]);const Ks=async()=>{b(!0),de(null);try{const D=await oe.getTeacherClasses();i(D),D.length>0&&!u&&d(D[0].id);const xe=await oe.getTeacherHistory(void 0,$);V(xe.map(Be=>({...Be,status:ca(Be.status)}))),xe.length<$&&Q(!1)}catch(D){de((D==null?void 0:D.message)||"加载班级或历史记录失败")}finally{b(!1)}},Vr=async()=>{const D=$+50;re(!0);try{const xe=await oe.getTeacherHistory(void 0,D);V(xe.map(Be=>({...Be,status:ca(Be.status)}))),ve(D),xe.length{Ks()},[]),x.useEffect(()=>{const D=$t.onAckReceiptReceived(Ee=>{V(He=>He.map(Qe=>{if(Qe.id===Ee.messageId){const ft=ca(Ee.status);return{...Qe,status:ft,confirmedAt:Ee.timestamp||Qe.confirmedAt||new Date().toISOString()}}return Qe}))}),xe=$t.onNewNotificationBroadcast(Ee=>{V(He=>{if(He.some(mt=>mt.id===Ee.id))return He;const Qe=ps.current.find(mt=>mt.id===Ee.classId);return[{id:Ee.id,tenantId:Ee.tenantId,classId:Ee.classId,className:(Qe==null?void 0:Qe.displayName)||Ee.classId,senderName:"教师",message:Ee.message,priority:Ee.type===2?"Urgent":"Normal",createdAt:Ee.createdAt,status:"Sent"},...He]})}),Be=typeof $t.onNotificationCancelled=="function"?$t.onNotificationCancelled(Ee=>{V(He=>He.map(Qe=>Qe.id===Ee?{...Qe,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Qe))}):()=>{};return()=>{typeof D=="function"&&D(),typeof xe=="function"&&xe(),typeof Be=="function"&&Be()}},[]);const qr=D=>{if(j&&v.trim().length>0&&!window.confirm("当前输入框已有手写内容,确定使用模版覆盖吗?"))return;const xe=f.trim();p(xe?`${xe},${D.text}`:D.text),S(!1)},Qr=D=>{m(D),!j||!v.trim()?(p(`${D},请到教师办公室一趟。`),S(!1)):v.includes(D)||p(`${D},${v}`)},Js=async D=>{if(D.preventDefault(),!(!u||!v.trim())){ce(!0),M(null);try{const xe=l.find(ft=>ft.id===u),Be=f.trim()?`🔔 老师呼叫: ${f.trim()}`:`📢 ${(xe==null?void 0:xe.displayName)||"班级"}通知`,Ee=await oe.sendNotification({classId:u,studentName:f.trim()||void 0,title:Be,message:v.trim(),type:L?2:0,voice:B,shake:H,durationSeconds:K}),He=f.trim();He&&u&&X(ft=>{const mt=[He,...ft.filter(Nt=>Nt!==He)].slice(0,8);try{const Nt=G(u);Nt&&localStorage.setItem(Nt,JSON.stringify(mt))}catch{}return mt});const Qe=v.trim();p(""),m(""),S(!1),M(null),Ee!=null&&Ee.messageId&&V(ft=>ft.some(Nt=>Nt.id===Ee.messageId)?ft:[{id:Ee.messageId,tenantId:"",classId:u,className:(xe==null?void 0:xe.displayName)||u,senderName:"教师",message:Qe,priority:L?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...ft])}catch(xe){M((xe==null?void 0:xe.message)||"呼叫发送失败,请检查网络或稍后重试")}finally{ce(!1)}}},xs=async()=>{if(tn){sn(!0);try{await oe.cancelNotification(tn.id),V(D=>D.map(xe=>xe.id===tn.id?{...xe,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:xe)),vn(null)}catch(D){alert(D.message||"提前关闭通知失败")}finally{sn(!1)}}},Kr=async(D,xe,Be,Ee)=>{Re({notificationId:D,deviceId:xe,className:Be,capturedAt:Ee}),Hn(!0),ms(null),gn(null),en(1);try{const He=await oe.getVisualReceiptBlob(D,xe),Qe=URL.createObjectURL(He);gn(Qe)}catch(He){ms((He==null?void 0:He.message)||"获取视觉核验图像失败")}finally{Hn(!1)}},Vn=()=>{et&&URL.revokeObjectURL(et),gn(null),Re(null),ms(null),en(1)},rn=pe.filter(D=>{if(U!=="all"&&D.classId!==U)return!1;if(be.trim()){const xe=be.toLowerCase(),Be=D.message.toLowerCase().includes(xe),Ee=D.className.toLowerCase().includes(xe);if(!Be&&!Ee)return!1}return!0}),go=l.slice(0,4),Xs=l.slice(4);return s.jsxs("div",{className:"space-y-5",children:[s.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-slate-800/80",children:s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-white flex items-center gap-2.5",children:"教师呼叫工作台"}),s.jsx("p",{className:"text-xs sm:text-sm text-slate-400 mt-1",children:"秒级定向呼叫教室大屏,支持 TTS 朗读、视觉核验与实时送达回执"})]})}),R&&s.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:R})]}),s.jsxs("button",{onClick:Ks,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(Mt,{className:"w-3.5 h-3.5"}),"重试"]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[s.jsxs("div",{className:"lg:col-span-5 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-5",children:[s.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800/70",children:[s.jsx("h2",{className:"text-sm font-semibold text-slate-200",children:"快速发送呼叫"}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"3秒极速触达"})]}),s.jsxs("form",{onSubmit:Js,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),l.length===0?s.jsx("div",{className:"text-xs text-amber-400 p-2.5 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无关联班级,请联系管理员分配"}):s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:go.map(D=>{const xe=u===D.id;return s.jsx("button",{type:"button",onClick:()=>d(D.id),className:`px-3 py-2 rounded-xl text-left text-xs font-medium border transition-all flex items-center justify-between ${xe?"bg-blue-600/20 border-blue-500/60 text-white shadow-sm":"bg-slate-950/70 border-slate-800 text-slate-300 hover:bg-slate-800 hover:text-white"}`,children:s.jsx("span",{className:"truncate",children:D.displayName})},D.id)})}),Xs.length>0&&s.jsxs("div",{className:"relative",children:[s.jsxs("select",{value:u,onChange:D=>d(D.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-slate-300 focus:outline-none focus:border-blue-500 appearance-none pr-8 cursor-pointer",children:[s.jsx("option",{value:"",disabled:!0,children:"选择其他班级..."}),Xs.map(D=>s.jsxs("option",{value:D.id,children:[D.displayName," (",D.roomNumber||D.id,")"]},D.id))]}),s.jsx(Ld,{className:"w-3.5 h-3.5 text-slate-500 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("label",{className:"text-xs font-medium text-slate-300 flex items-center gap-1",children:[s.jsx(lh,{className:"w-3.5 h-3.5 text-slate-400"}),"呼叫对象(学生姓名)"]}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"可选,留空则为全班"})]}),ye.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:ye.slice(0,6).map(D=>s.jsx("button",{type:"button",onClick:()=>Qr(D),className:`px-2 py-0.5 rounded-lg text-xs transition-colors ${f===D?"bg-blue-600 text-white font-medium":"bg-slate-950 text-slate-400 hover:text-slate-200 hover:bg-slate-800 border border-slate-800"}`,children:D},D))}),s.jsx("input",{type:"text",value:f,onChange:D=>m(D.target.value),placeholder:"点击上方学生姓名或直接输入...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1",children:[s.jsx(rh,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷通知短语"]}),s.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:Ex.map(D=>s.jsx("button",{type:"button",onClick:()=>qr(D),className:"px-2.5 py-1.5 rounded-xl bg-slate-950 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-all truncate text-center font-medium",title:D.text,children:D.label},D.label))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("label",{className:"text-xs font-medium text-slate-300",children:"通知内容"}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:[v.length,"/200"]})]}),s.jsx("textarea",{rows:3,value:v,onChange:D=>{p(D.target.value.slice(0,200)),S(!0)},placeholder:"点击上方模板快速生成,或直接输入通知内容...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none",required:!0}),C&&s.jsxs("div",{className:"mt-2 p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:C})]}),s.jsx("button",{type:"button",onClick:()=>M(null),className:"text-rose-400 hover:text-white p-0.5",children:s.jsx(Un,{className:"w-3.5 h-3.5"})})]})]}),s.jsxs("div",{className:"pt-2 border-t border-slate-800/80",children:[s.jsxs("button",{type:"button",onClick:()=>fe(!he),className:"w-full flex items-center justify-between text-xs text-slate-400 hover:text-slate-200 transition-colors py-1",children:[s.jsxs("span",{className:"flex items-center gap-1.5 font-medium",children:[he?s.jsx(Ld,{className:"w-3.5 h-3.5 text-slate-400"}):s.jsx(x0,{className:"w-3.5 h-3.5 text-slate-400"}),"播报与显示设置"]}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:[B?"语音开启":"静音"," · ",H?"震屏":"无震"," · ",K,"秒"]})]}),he&&s.jsxs("div",{className:"mt-3 p-3 rounded-xl bg-slate-950 border border-slate-800/80 space-y-3 animate-in fade-in duration-100",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[s.jsx("input",{type:"checkbox",checked:B,onChange:D=>J(D.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx("span",{className:"text-slate-300",children:"TTS 语音朗读"})]}),s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[s.jsx("input",{type:"checkbox",checked:H,onChange:D=>P(D.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx("span",{className:"text-slate-300",children:"窗口抖动震颤"})]})]}),s.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-300 pt-1",children:[s.jsx("span",{children:"停留时长"}),s.jsx("div",{className:"flex items-center gap-1",children:[10,15,30].map(D=>s.jsxs("button",{type:"button",onClick:()=>Z(D),className:`px-2.5 py-0.5 rounded-lg text-xs font-mono transition-colors ${K===D?"bg-blue-600 text-white font-semibold":"bg-slate-900 text-slate-400 hover:text-white border border-slate-800"}`,children:[D,"s"]},D))})]}),s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:[s.jsx("input",{type:"checkbox",checked:L,onChange:D=>q(D.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600"}),s.jsx("span",{className:"font-semibold",children:"红色紧急通知(全屏优先展示)"})]})]})]}),s.jsx("button",{type:"submit",disabled:le||!u||!v.trim(),className:"w-full py-3 rounded-xl bg-blue-600 hover:bg-blue-500 active:bg-blue-700 text-white font-semibold text-sm shadow-md shadow-blue-600/20 flex items-center justify-center gap-2 transition-all disabled:opacity-40 disabled:cursor-not-allowed",children:le?s.jsxs(s.Fragment,{children:[s.jsx(Gt,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"正在投递至教室大屏..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(co,{className:"w-4 h-4"}),s.jsx("span",{children:"立即发送呼叫"})]})})]})]}),s.jsxs("div",{className:"lg:col-span-7 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-slate-800/70",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Hs,{className:"w-4 h-4 text-emerald-400"}),s.jsx("h2",{className:"text-sm font-semibold text-white",children:"回执动态"}),s.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",rn.length,")"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto max-w-[200px] sm:max-w-none",children:[s.jsx("button",{type:"button",onClick:()=>ue("all"),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors ${U==="all"?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:"全部"}),l.slice(0,3).map(D=>s.jsx("button",{type:"button",onClick:()=>ue(D.id),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors whitespace-nowrap ${U===D.id?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:D.displayName},D.id))]}),s.jsx("div",{className:"w-36",children:s.jsx(Wr,{value:be,onChange:Pe,placeholder:"搜索动态...",className:"text-xs"})})]})]}),s.jsxs("div",{className:"space-y-3 max-h-[calc(100vh-250px)] overflow-y-auto pr-1",children:[E&&pe.length===0?s.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[s.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载回执记录..."})]}):rn.length===0?s.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:be||U!=="all"?"未找到符合条件的通知记录":"暂无呼叫记录,左侧选择班级即可下发"}):rn.map(D=>{var Be;const xe=(Be=D.receipts)==null?void 0:Be.find(Ee=>Ee.visualReceiptState==="Available");return s.jsxs("div",{className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800/80 hover:border-slate-700/80 transition-all space-y-2.5",children:[s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2 font-medium text-slate-200",children:[s.jsx("span",{className:"font-semibold text-white",children:D.className}),D.priority==="Urgent"&&s.jsx(ze,{label:"紧急",variant:"rose",dot:!1,className:"py-0 px-1.5 text-[10px]"})]}),s.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(D.createdAt).toLocaleTimeString()})]}),s.jsx("div",{className:"text-xs text-slate-300 leading-relaxed bg-slate-900/60 p-2.5 rounded-lg border border-slate-800/60",children:D.message}),s.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between flex-wrap gap-2 text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[D.status==="Acknowledged"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400 font-medium text-xs",children:[s.jsx(Vt,{className:"w-3.5 h-3.5 text-emerald-400"}),"学生已点击确认"]}),D.status==="Delivered"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-sky-400 font-medium text-xs",children:[s.jsx(io,{className:"w-3.5 h-3.5 text-sky-400"}),"已在大屏展示"]}),D.status==="Sent"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-400 text-xs",children:[s.jsx(Br,{className:"w-3.5 h-3.5 text-amber-400"}),"云端投递中..."]}),D.status==="Cancelled"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-slate-400 text-xs",children:[s.jsx(ma,{className:"w-3.5 h-3.5"}),"已撤回关闭"]}),D.status==="Timeout"&&s.jsx("span",{className:"text-slate-500 text-xs",children:"超时自动收起"}),D.status==="Failed"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-rose-400 text-xs",children:[s.jsx(Fn,{className:"w-3.5 h-3.5"}),"投递失败"]}),xe&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400/90 text-[11px] font-medium ml-1",children:[s.jsx(uo,{className:"w-3.5 h-3.5 text-emerald-400"}),"视觉核验:已完成"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[xe&&s.jsxs("button",{type:"button",onClick:()=>Kr(D.id,xe.deviceId,D.className,xe.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 text-xs font-medium border border-blue-500/20 transition-colors",children:[s.jsx(C0,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"查看大屏实际展示"})]}),(D.status==="Sent"||D.status==="Delivered")&&!D.isCancelled&&s.jsxs("button",{type:"button",onClick:()=>vn(D),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-rose-500/10 text-slate-300 hover:text-rose-400 text-xs font-medium border border-slate-700/60 hover:border-rose-500/30 transition-colors",children:[s.jsx(Un,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"提前关闭"})]})]})]})]},D.id)}),_&&s.jsx("div",{className:"pt-3 text-center",children:s.jsx("button",{type:"button",onClick:Vr,disabled:O,className:"px-4 py-2 rounded-xl bg-slate-950 hover:bg-slate-800 text-slate-300 hover:text-white text-xs font-medium border border-slate-800 transition-colors inline-flex items-center gap-2",children:O?s.jsxs(s.Fragment,{children:[s.jsx(Gt,{className:"w-3.5 h-3.5 animate-spin text-blue-400"}),s.jsx("span",{children:"正在拉取更早历史..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(Mt,{className:"w-3.5 h-3.5 text-slate-400"}),s.jsx("span",{children:"加载更多历史回执 (+50)"})]})})})]})]})]}),Se&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-3xl bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[s.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(uo,{className:"w-5 h-5 text-emerald-400"}),s.jsxs("h3",{className:"font-semibold text-white text-base",children:[Se.className," · 通知视觉核验"]})]}),s.jsx("button",{type:"button",onClick:Vn,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:s.jsx(Un,{className:"w-5 h-5"})})]}),s.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[Qs&&s.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[s.jsx(Gt,{className:"w-8 h-8 animate-spin text-blue-400"}),s.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),fs&&s.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[s.jsx(mn,{className:"w-8 h-8 text-rose-400"}),s.jsx("span",{children:fs})]}),et&&!Qs&&s.jsxs("div",{className:"flex flex-col items-center w-full",children:[s.jsx("div",{className:"overflow-auto max-h-[58vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:s.jsx("img",{src:et,alt:"教室大屏实际展示画面",style:{transform:`scale(${Wn})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[52vh]"})}),s.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[s.jsx("button",{type:"button",onClick:()=>en(D=>Math.max(.5,+(D-.25).toFixed(2))),disabled:Wn<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:s.jsx(hx,{className:"w-4 h-4"})}),s.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(Wn*100),"%"]}),s.jsx("button",{type:"button",onClick:()=>en(D=>Math.min(3,+(D+.25).toFixed(2))),disabled:Wn>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:s.jsx(ux,{className:"w-4 h-4"})}),s.jsx("button",{type:"button",onClick:()=>en(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),s.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[s.jsx("span",{children:Se.capturedAt?`捕获时间: ${new Date(Se.capturedAt).toLocaleString()}`:""}),s.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),tn&&s.jsx(pn,{isOpen:!0,onClose:()=>vn(null),title:"提前关闭并撤回通知?",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-slate-950 p-3 rounded-xl border border-slate-800 text-xs text-slate-300",children:[s.jsxs("div",{className:"text-slate-400 text-[11px] mb-1",children:["班级:",s.jsx("span",{className:"text-white font-medium",children:tn.className})]}),s.jsx("p",{className:"line-clamp-3",children:tn.message})]}),s.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300/90 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏下发终止指令,",s.jsx("strong",{children:"停止语音播报并收起弹窗"}),"。"]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[s.jsx("button",{type:"button",disabled:nn,onClick:()=>vn(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"button",disabled:nn,onClick:xs,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center gap-1.5 disabled:opacity-50",children:nn?s.jsxs(s.Fragment,{children:[s.jsx(Gt,{className:"w-3.5 h-3.5 animate-spin"}),s.jsx("span",{children:"正在撤回..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(ma,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},Px=()=>{const{user:a,isLoading:l}=qs();return l?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?s.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[s.jsx(mx,{}),s.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:s.jsx(Jd,{})})]}):s.jsx(Yt,{to:"/login",replace:!0})},Ix=()=>{const{user:a,isLoading:l}=qs();return l?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?s.jsx(Yt,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?s.jsx(Yt,{to:"/school-admin",replace:!0}):s.jsx(Yt,{to:"/teacher",replace:!0}):s.jsx(Yt,{to:"/login",replace:!0})},Rx=()=>s.jsxs(ip,{children:[s.jsx(Je,{path:"/login",element:s.jsx(px,{})}),s.jsx(Je,{path:"/",element:s.jsx(Ix,{})}),s.jsxs(Je,{element:s.jsx(Px,{}),children:[s.jsxs(Je,{element:s.jsx(aa,{allowedRoles:["SuperAdmin"]}),children:[s.jsx(Je,{path:"/admin",element:s.jsx(xx,{})}),s.jsx(Je,{path:"/admin/tenants",element:s.jsx(wx,{})}),s.jsx(Je,{path:"/admin/users",element:s.jsx(bx,{})}),s.jsx(Je,{path:"/admin/devices",element:s.jsx(gx,{})}),s.jsx(Je,{path:"/admin/broadcast",element:s.jsx(jx,{})}),s.jsx(Je,{path:"/admin/codes",element:s.jsx(vx,{})}),s.jsx(Je,{path:"/admin/history",element:s.jsx(yx,{})})]}),s.jsxs(Je,{element:s.jsx(aa,{allowedRoles:["SchoolAdmin"]}),children:[s.jsx(Je,{path:"/school-admin",element:s.jsx(Nx,{})}),s.jsx(Je,{path:"/school-admin/classes",element:s.jsx(_x,{})}),s.jsx(Je,{path:"/school-admin/teachers",element:s.jsx(Sx,{})}),s.jsx(Je,{path:"/school-admin/codes",element:s.jsx(kx,{})})]}),s.jsx(Je,{element:s.jsx(aa,{allowedRoles:["Teacher"]}),children:s.jsx(Je,{path:"/teacher",element:s.jsx(Tx,{})})})]}),s.jsx(Je,{path:"*",element:s.jsx(Yt,{to:"/",replace:!0})})]}),Lx=()=>s.jsx(l0,{children:s.jsx(pp,{children:s.jsx(Rx,{})})});pm.createRoot(document.getElementById("root")).render(s.jsx(Md.StrictMode,{children:s.jsx(Lx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-BJNbsTE0.js ================================================================================ var Jf=Object.defineProperty;var Xf=(a,l,o)=>l in a?Jf(a,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[l]=o;var xt=(a,l,o)=>Xf(a,typeof l!="symbol"?l+"":l,o);function Gf(a,l){for(var o=0;ou[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=o(d);fetch(d.href,f)}})();function Td(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oo={exports:{}},pr={},Uo={exports:{}},me={};/** * @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 rd;function Yf(){if(rd)return me;rd=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.iterator;function $(N){return N===null||typeof N!="object"?null:(N=k&&N[k]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,H={};function P(N,L,ae){this.props=N,this.context=L,this.refs=H,this.updater=ae||D}P.prototype.isReactComponent={},P.prototype.setState=function(N,L){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,L,"setState")},P.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function J(){}J.prototype=P.prototype;function K(N,L,ae){this.props=N,this.context=L,this.refs=H,this.updater=ae||D}var Y=K.prototype=new J;Y.constructor=K,Q(Y,P.prototype),Y.isPureReactComponent=!0;var ne=Array.isArray,U=Object.prototype.hasOwnProperty,Z={current:null},ge={key:!0,ref:!0,__self:!0,__source:!0};function xe(N,L,ae){var ue,fe={},we=null,Ee=null;if(L!=null)for(ue in L.ref!==void 0&&(Ee=L.ref),L.key!==void 0&&(we=""+L.key),L)U.call(L,ue)&&!ge.hasOwnProperty(ue)&&(fe[ue]=L[ue]);var ke=arguments.length-2;if(ke===1)fe.children=ae;else if(1>>1,L=_[N];if(0>>1;Nd(fe,E))wed(Ee,fe)?(_[N]=Ee,_[we]=E,N=we):(_[N]=fe,_[ue]=E,N=ue);else if(wed(Ee,E))_[N]=Ee,_[we]=E,N=we;else break e}}return V}function d(_,V){var E=_.sortIndex-V.sortIndex;return E!==0?E:_.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var p=[],j=[],S=1,k=null,$=3,D=!1,Q=!1,H=!1,P=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(_){for(var V=o(j);V!==null;){if(V.callback===null)u(j);else if(V.startTime<=_)u(j),V.sortIndex=V.expirationTime,l(p,V);else break;V=o(j)}}function ne(_){if(H=!1,Y(_),!Q)if(o(p)!==null)Q=!0,_e(U);else{var V=o(j);V!==null&&W(ne,V.startTime-_)}}function U(_,V){Q=!1,H&&(H=!1,J(xe),xe=-1),D=!0;var E=$;try{for(Y(V),k=o(p);k!==null&&(!(k.expirationTime>V)||_&&!Ce());){var N=k.callback;if(typeof N=="function"){k.callback=null,$=k.priorityLevel;var L=N(k.expirationTime<=V);V=a.unstable_now(),typeof L=="function"?k.callback=L:k===o(p)&&u(p),Y(V)}else u(p);k=o(p)}if(k!==null)var ae=!0;else{var ue=o(j);ue!==null&&W(ne,ue.startTime-V),ae=!1}return ae}finally{k=null,$=E,D=!1}}var Z=!1,ge=null,xe=-1,R=5,se=-1;function Ce(){return!(a.unstable_now()-se_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return $},a.unstable_getFirstCallbackNode=function(){return o(p)},a.unstable_next=function(_){switch($){case 1:case 2:case 3:var V=3;break;default:V=$}var E=$;$=V;try{return _()}finally{$=E}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(_,V){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var E=$;$=_;try{return V()}finally{$=E}},a.unstable_scheduleCallback=function(_,V,E){var N=a.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0N?(_.sortIndex=E,l(j,_),o(p)===null&&_===o(j)&&(H?(J(xe),xe=-1):H=!0,W(ne,E-N))):(_.sortIndex=L,l(p,_),Q||D||(Q=!0,_e(U))),_},a.unstable_shouldYield=Ce,a.unstable_wrapCallback=function(_){var V=$;return function(){var E=$;$=V;try{return _.apply(this,arguments)}finally{$=E}}}})(Ho)),Ho}var cd;function sm(){return cd||(cd=1,Bo.exports=nm()),Bo.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 ud;function rm(){if(ud)return gt;ud=1;var a=ta(),l=sm();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,S={},k={};function $(e){return p.call(k,e)?!0:p.call(S,e)?!1:j.test(e)?k[e]=!0:(S[e]=!0,!1)}function D(e,t,s,r){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Q(e,t,s,r){if(t===null||typeof t>"u"||D(e,t,s,r))return!0;if(r)return!1;if(s!==null)switch(s.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 H(e,t,s,r,i,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new H(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new H(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new H(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new H(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){P[e]=new H(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new H(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new H(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new H(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new H(e,5,!1,e.toLowerCase(),null,!1,!1)});var J=/[\-:]([a-z])/g;function K(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(J,K);P[t]=new H(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(J,K);P[t]=new H(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(J,K);P[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new H(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new H(e,1,!1,e.toLowerCase(),null,!0,!0)});function Y(e,t,s,r){var i=P.hasOwnProperty(t)?P[t]:null;(i!==null?i.type!==0:r||!(2x||i[h]!==c[x]){var v=` `+i[h].replace(" at new "," at ");return e.displayName&&v.includes("")&&(v=v.replace("",e.displayName)),v}while(1<=h&&0<=x);break}}}finally{ae=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?L(e):""}function fe(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return""}}function we(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 ge:return"Fragment";case Z:return"Portal";case R:return"Profiler";case xe:return"StrictMode";case O:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ce:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case je:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pe:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}function Ee(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 we(t);case 8:return t===xe?"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 ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function F(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function he(e){var t=F(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var i=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=he(e))}function Se(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),r="";return e&&(r=F(e)?e.checked?"true":"false":e.value),e=r,e!==s?(t.setValue(e),!0):!1}function We(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 $e(e,t){var s=t.checked;return E({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Jn(e,t){var s=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;s=ke(t.value!=null?t.value:s),e._wrapperState={initialChecked:r,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nn(e,t){t=t.checked,t!=null&&Y(e,"checked",t,!1)}function Ql(e,t){nn(e,t);var s=ke(t.value),r=t.type;if(s!=null)r==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,s):t.hasOwnProperty("defaultValue")&&ql(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,s){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,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function ql(e,t,s){(t!=="number"||We(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Ps=Array.isArray;function Xn(e,t,s,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Is(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Rs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yd=["Webkit","ms","Moz","O"];Object.keys(Rs).forEach(function(e){Yd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rs[t]=Rs[e]})});function ya(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||Rs.hasOwnProperty(e)&&Rs[e]?(""+t).trim():t+"px"}function wa(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var r=s.indexOf("--")===0,i=ya(s,t[s],r);s==="float"&&(s="cssFloat"),r?e.setProperty(s,i):e[s]=i}}var Zd=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xl(e,t){if(t){if(Zd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Gl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yl=null;function Zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,Gn=null,Yn=null;function ja(e){if(e=er(e)){if(typeof ei!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Gr(t),ei(e.stateNode,e.type,t))}}function Na(e){Gn?Yn?Yn.push(e):Yn=[e]:Gn=e}function ba(){if(Gn){var e=Gn,t=Yn;if(Yn=Gn=null,ja(e),t)for(e=0;e>>=0,e===0?32:31-(uh(e)/dh|0)|0}var Lr=64,Dr=4194304;function Ms(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $r(e,t){var s=e.pendingLanes;if(s===0)return 0;var r=0,i=e.suspendedLanes,c=e.pingedLanes,h=s&268435455;if(h!==0){var x=h&~i;x!==0?r=Ms(x):(c&=h,c!==0&&(r=Ms(c)))}else h=s&~i,h!==0?r=Ms(h):c!==0&&(r=Ms(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,c=t&-t,i>=c||i===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0s;s++)t.push(e);return t}function As(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=s}function ph(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vs),Ga=" ",Ya=!1;function Za(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ts=!1;function Vh(e,t){switch(e){case"compositionend":return ec(t);case"keypress":return t.which!==32?null:(Ya=!0,Ga);case"textInput":return e=t.data,e===Ga&&Ya?null:e;default:return null}}function Qh(e,t){if(ts)return e==="compositionend"||!vi&&Za(e,t)?(e=Va(),Ur=hi=an=null,ts=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=oc(s)}}function cc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uc(){for(var e=window,t=We();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=We(e.document)}return t}function ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tf(e){var t=uc(),s=e.focusedElem,r=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&cc(s.ownerDocument.documentElement,s)){if(r!==null&&ji(s)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=s.textContent.length,c=Math.min(r.start,i);r=r.end===void 0?c:Math.min(r.end,i),!e.extend&&c>r&&(i=r,r=c,c=i),i=ac(s,c);var h=ac(s,r);i&&h&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,ns=null,Ni=null,Js=null,bi=!1;function dc(e,t,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;bi||ns==null||ns!==We(r)||(r=ns,"selectionStart"in r&&ji(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Js&&Ks(Js,r)||(Js=r,r=Kr(Ni,"onSelect"),0os||(e.current=$i[os],$i[os]=null,os--)}function Re(e,t){os++,$i[os]=e.current,e.current=t}var hn={},nt=dn(hn),dt=dn(!1),Pn=hn;function as(e,t){var s=e.type.contextTypes;if(!s)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},c;for(c in s)i[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function Yr(){De(dt),De(nt)}function Sc(e,t,s){if(nt.current!==hn)throw Error(o(168));Re(nt,t),Re(dt,s)}function Cc(e,t,s){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return s;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(o(108,Ee(e)||"Unknown",i));return E({},s,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Pn=nt.current,Re(nt,e),Re(dt,dt.current),!0}function Ec(e,t,s){var r=e.stateNode;if(!r)throw Error(o(169));s?(e=Cc(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,De(dt),De(nt),Re(nt,e)):De(dt),Re(dt,s)}var Kt=null,el=!1,Mi=!1;function Tc(e){Kt===null?Kt=[e]:Kt.push(e)}function mf(e){el=!0,Tc(e)}function fn(){if(!Mi&&Kt!==null){Mi=!0;var e=0,t=Te;try{var s=Kt;for(Te=1;e>=h,i-=h,Jt=1<<32-It(t)+i|s<ie?(Ze=le,le=null):Ze=le.sibling;var be=M(b,le,C[ie],B);if(be===null){le===null&&(le=Ze);break}e&&le&&be.alternate===null&&t(b,le),w=c(be,w,ie),re===null?te=be:re.sibling=be,re=be,le=Ze}if(ie===C.length)return s(b,le),Me&&Rn(b,ie),te;if(le===null){for(;ieie?(Ze=le,le=null):Ze=le.sibling;var Nn=M(b,le,be.value,B);if(Nn===null){le===null&&(le=Ze);break}e&&le&&Nn.alternate===null&&t(b,le),w=c(Nn,w,ie),re===null?te=Nn:re.sibling=Nn,re=Nn,le=Ze}if(be.done)return s(b,le),Me&&Rn(b,ie),te;if(le===null){for(;!be.done;ie++,be=C.next())be=z(b,be.value,B),be!==null&&(w=c(be,w,ie),re===null?te=be:re.sibling=be,re=be);return Me&&Rn(b,ie),te}for(le=r(b,le);!be.done;ie++,be=C.next())be=q(le,b,ie,be.value,B),be!==null&&(e&&be.alternate!==null&&le.delete(be.key===null?ie:be.key),w=c(be,w,ie),re===null?te=be:re.sibling=be,re=be);return e&&le.forEach(function(Kf){return t(b,Kf)}),Me&&Rn(b,ie),te}function Be(b,w,C,B){if(typeof C=="object"&&C!==null&&C.type===ge&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case U:e:{for(var te=C.key,re=w;re!==null;){if(re.key===te){if(te=C.type,te===ge){if(re.tag===7){s(b,re.sibling),w=i(re,C.props.children),w.return=b,b=w;break e}}else if(re.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===_e&&$c(te)===re.type){s(b,re.sibling),w=i(re,C.props),w.ref=tr(b,re,C),w.return=b,b=w;break e}s(b,re);break}else t(b,re);re=re.sibling}C.type===ge?(w=Un(C.props.children,b.mode,B,C.key),w.return=b,b=w):(B=El(C.type,C.key,C.props,null,b.mode,B),B.ref=tr(b,w,C),B.return=b,b=B)}return h(b);case Z:e:{for(re=C.key;w!==null;){if(w.key===re)if(w.tag===4&&w.stateNode.containerInfo===C.containerInfo&&w.stateNode.implementation===C.implementation){s(b,w.sibling),w=i(w,C.children||[]),w.return=b,b=w;break e}else{s(b,w);break}else t(b,w);w=w.sibling}w=Do(C,b.mode,B),w.return=b,b=w}return h(b);case _e:return re=C._init,Be(b,w,re(C._payload),B)}if(Ps(C))return G(b,w,C,B);if(V(C))return ee(b,w,C,B);rl(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,w!==null&&w.tag===6?(s(b,w.sibling),w=i(w,C),w.return=b,b=w):(s(b,w),w=Lo(C,b.mode,B),w.return=b,b=w),h(b)):s(b,w)}return Be}var hs=Mc(!0),Ac=Mc(!1),ll=dn(null),il=null,fs=null,Bi=null;function Hi(){Bi=fs=il=null}function Wi(e){var t=ll.current;De(ll),e._currentValue=t}function Vi(e,t,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===s)break;e=e.return}}function ms(e,t){il=e,Bi=fs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(Bi!==e)if(e={context:e,memoizedValue:t,next:null},fs===null){if(il===null)throw Error(o(308));fs=e,il.dependencies={lanes:0,firstContext:e}}else fs=fs.next=e;return t}var Ln=null;function Qi(e){Ln===null?Ln=[e]:Ln.push(e)}function zc(e,t,s,r){var i=t.interleaved;return i===null?(s.next=s,Qi(t)):(s.next=i.next,i.next=s),t.interleaved=s,Gt(e,r)}function Gt(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var mn=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ne&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,s)}return i=r.interleaved,i===null?(t.next=t,Qi(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,s)}function ol(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,oi(e,s)}}function Uc(e,t){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var i=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var h={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};c===null?i=c=h:c=c.next=h,s=s.next}while(s!==null);c===null?i=c=t:c=c.next=t}else i=c=t;s={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function al(e,t,s,r){var i=e.updateQueue;mn=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var v=x,T=v.next;v.next=null,h===null?c=T:h.next=T,h=v;var A=e.alternate;A!==null&&(A=A.updateQueue,x=A.lastBaseUpdate,x!==h&&(x===null?A.firstBaseUpdate=T:x.next=T,A.lastBaseUpdate=v))}if(c!==null){var z=i.baseState;h=0,A=T=v=null,x=c;do{var M=x.lane,q=x.eventTime;if((r&M)===M){A!==null&&(A=A.next={eventTime:q,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var G=e,ee=x;switch(M=t,q=s,ee.tag){case 1:if(G=ee.payload,typeof G=="function"){z=G.call(q,z,M);break e}z=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=ee.payload,M=typeof G=="function"?G.call(q,z,M):G,M==null)break e;z=E({},z,M);break e;case 2:mn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,M=i.effects,M===null?i.effects=[x]:M.push(x))}else q={eventTime:q,lane:M,tag:x.tag,payload:x.payload,callback:x.callback,next:null},A===null?(T=A=q,v=z):A=A.next=q,h|=M;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;M=x,x=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);if(A===null&&(v=z),i.baseState=v,i.firstBaseUpdate=T,i.lastBaseUpdate=A,t=i.shared.interleaved,t!==null){i=t;do h|=i.lane,i=i.next;while(i!==t)}else c===null&&(i.shared.lanes=0);Mn|=h,e.lanes=h,e.memoizedState=z}}function Fc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;ts?s:4,e(!0);var r=Yi.transition;Yi.transition={};try{e(!1),t()}finally{Te=s,Yi.transition=r}}function iu(){return Ct().memoizedState}function vf(e,t,s){var r=yn(e);if(s={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null},ou(e))au(t,s);else if(s=zc(e,t,s,r),s!==null){var i=ct();At(s,e,r,i),cu(s,t,r)}}function yf(e,t,s){var r=yn(e),i={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null};if(ou(e))au(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,s);if(i.hasEagerState=!0,i.eagerState=x,Rt(x,h)){var v=t.interleaved;v===null?(i.next=i,Qi(t)):(i.next=v.next,v.next=i),t.interleaved=i;return}}catch{}finally{}s=zc(e,t,i,r),s!==null&&(i=ct(),At(s,e,r,i),cu(s,t,r))}}function ou(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function au(e,t){lr=dl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function cu(e,t,s){if((s&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,oi(e,s)}}var ml={readContext:St,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},wf={readContext:St,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Yc,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,hl(4194308,4,tu.bind(null,t,e),s)},useLayoutEffect:function(e,t){return hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return hl(4,2,e,t)},useMemo:function(e,t){var s=Ht();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var r=Ht();return t=s!==void 0?s(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vf.bind(null,ze,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:lo,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=gf.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var r=ze,i=Ht();if(Me){if(s===void 0)throw Error(o(407));s=s()}else{if(s=t(),Ye===null)throw Error(o(349));($n&30)!==0||Vc(r,t,s)}i.memoizedState=s;var c={value:s,getSnapshot:t};return i.queue=c,Yc(qc.bind(null,r,c,e),[e]),r.flags|=2048,ar(9,Qc.bind(null,r,c,s,t),void 0,null),s},useId:function(){var e=Ht(),t=Ye.identifierPrefix;if(Me){var s=Xt,r=Jt;s=(r&~(1<<32-It(r)-1)).toString(32)+s,t=":"+t+"R"+s,s=ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(s,{is:r.is}):(e=h.createElement(s),s==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,s),e[Ft]=t,e[Zs]=r,Tu(e,t,!1,!1),t.stateNode=e;e:{switch(h=Gl(s,r),s){case"dialog":Le("cancel",e),Le("close",e),i=r;break;case"iframe":case"object":case"embed":Le("load",e),i=r;break;case"video":case"audio":for(i=0;iys&&(t.flags|=128,r=!0,cr(c,!1),t.lanes=4194304)}else{if(!r)if(e=cl(h),e!==null){if(t.flags|=128,r=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),cr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Me)return rt(t),null}else 2*Fe()-c.renderingStartTime>ys&&s!==1073741824&&(t.flags|=128,r=!0,cr(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(s=c.last,s!==null?s.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Fe(),t.sibling=null,s=Ae.current,Re(Ae,r?s&1|2:s&1),t):(rt(t),null);case 22:case 23:return Po(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(jt&1073741824)!==0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Ef(e,t){switch(zi(t),t.tag){case 1:return ht(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ps(),De(dt),De(nt),Gi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ji(t),null;case 13:if(De(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ae),null;case 4:return ps(),null;case 10:return Wi(t.type._context),null;case 22:case 23:return Po(),null;case 24:return null;default:return null}}var vl=!1,lt=!1,Tf=typeof WeakSet=="function"?WeakSet:Set,X=null;function gs(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(r){Ue(e,t,r)}else s.current=null}function vo(e,t,s){try{s()}catch(r){Ue(e,t,r)}}var Ru=!1;function Pf(e,t){if(Ti=zr,e=uc(),ji(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var i=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,x=-1,v=-1,T=0,A=0,z=e,M=null;t:for(;;){for(var q;z!==s||i!==0&&z.nodeType!==3||(x=h+i),z!==c||r!==0&&z.nodeType!==3||(v=h+r),z.nodeType===3&&(h+=z.nodeValue.length),(q=z.firstChild)!==null;)M=z,z=q;for(;;){if(z===e)break t;if(M===s&&++T===i&&(x=h),M===c&&++A===r&&(v=h),(q=z.nextSibling)!==null)break;z=M,M=z.parentNode}z=q}s=x===-1||v===-1?null:{start:x,end:v}}else s=null}s=s||{start:0,end:0}}else s=null;for(Pi={focusedElem:e,selectionRange:s},zr=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var G=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var ee=G.memoizedProps,Be=G.memoizedState,b=t.stateNode,w=b.getSnapshotBeforeUpdate(t.elementType===t.type?ee:Dt(t.type,ee),Be);b.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(B){Ue(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return G=Ru,Ru=!1,G}function ur(e,t,s){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var c=i.destroy;i.destroy=void 0,c!==void 0&&vo(t,s,c)}i=i.next}while(i!==r)}}function yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var r=s.create;s.destroy=r()}s=s.next}while(s!==t)}}function yo(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function Lu(e){var t=e.alternate;t!==null&&(e.alternate=null,Lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Zs],delete t[Di],delete t[hf],delete t[ff])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Du(e){return e.tag===5||e.tag===3||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Du(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wo(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(wo(e,t,s),e=e.sibling;e!==null;)wo(e,t,s),e=e.sibling}function jo(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jo(e,t,s),e=e.sibling;e!==null;)jo(e,t,s),e=e.sibling}var et=null,$t=!1;function xn(e,t,s){for(s=s.child;s!==null;)Mu(e,t,s),s=s.sibling}function Mu(e,t,s){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Rr,s)}catch{}switch(s.tag){case 5:lt||gs(s,t);case 6:var r=et,i=$t;et=null,xn(e,t,s),et=r,$t=i,et!==null&&($t?(e=et,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):et.removeChild(s.stateNode));break;case 18:et!==null&&($t?(e=et,s=s.stateNode,e.nodeType===8?Li(e.parentNode,s):e.nodeType===1&&Li(e,s),Bs(e)):Li(et,s.stateNode));break;case 4:r=et,i=$t,et=s.stateNode.containerInfo,$t=!0,xn(e,t,s),et=r,$t=i;break;case 0:case 11:case 14:case 15:if(!lt&&(r=s.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var c=i,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&vo(s,t,h),i=i.next}while(i!==r)}xn(e,t,s);break;case 1:if(!lt&&(gs(s,t),r=s.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=s.memoizedProps,r.state=s.memoizedState,r.componentWillUnmount()}catch(x){Ue(s,t,x)}xn(e,t,s);break;case 21:xn(e,t,s);break;case 22:s.mode&1?(lt=(r=lt)||s.memoizedState!==null,xn(e,t,s),lt=r):xn(e,t,s);break;default:xn(e,t,s)}}function Au(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Tf),t.forEach(function(r){var i=Of.bind(null,e,r);s.has(r)||(s.add(r),r.then(i,i))})}}function Mt(e,t){var s=t.deletions;if(s!==null)for(var r=0;ri&&(i=h),r&=~c}if(r=i,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rf(r/1960))-r,10e?16:e,vn===null)var r=!1;else{if(e=vn,vn=null,_l=0,(Ne&6)!==0)throw Error(o(331));var i=Ne;for(Ne|=4,X=e.current;X!==null;){var c=X,h=c.child;if((X.flags&16)!==0){var x=c.deletions;if(x!==null){for(var v=0;vFe()-_o?zn(e,0):bo|=s),pt(e,t)}function Xu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dr,Dr<<=1,(Dr&130023424)===0&&(Dr=4194304)));var s=ct();e=Gt(e,t),e!==null&&(As(e,t,s),pt(e,s))}function zf(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Xu(e,s)}function Of(e,t){var s=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(s=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Xu(e,s)}var Gu;Gu=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ft=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return ft=!1,Sf(e,t,s);ft=(e.flags&131072)!==0}else ft=!1,Me&&(t.flags&1048576)!==0&&Pc(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gl(e,t),e=t.pendingProps;var i=as(t,nt.current);ms(t,s),i=eo(null,t,r,e,i,s);var c=to();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(c=!0,Zr(t)):c=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qi(t),i.updater=pl,t.stateNode=i,i._reactInternals=t,oo(t,r,e,s),t=ho(null,t,r,!0,c,s)):(t.tag=0,Me&&c&&Ai(t),at(null,t,i,s),t=t.child),t;case 16:r=t.elementType;e:{switch(gl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ff(r),e=Dt(r,e),i){case 0:t=uo(null,t,r,e,s);break e;case 1:t=bu(null,t,r,e,s);break e;case 11:t=vu(null,t,r,e,s);break e;case 14:t=yu(null,t,r,Dt(r.type,e),s);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),uo(e,t,r,i,s);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),bu(e,t,r,i,s);case 3:e:{if(_u(t),e===null)throw Error(o(387));r=t.pendingProps,c=t.memoizedState,i=c.element,Oc(e,t),al(t,r,null,s);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){i=xs(Error(o(423)),t),t=ku(e,t,r,s,i);break e}else if(r!==i){i=xs(Error(o(424)),t),t=ku(e,t,r,s,i);break e}else for(wt=un(t.stateNode.containerInfo.firstChild),yt=t,Me=!0,Lt=null,s=Ac(t,null,r,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ds(),r===i){t=Zt(e,t,s);break e}at(e,t,r,s)}t=t.child}return t;case 5:return Bc(t),e===null&&Ui(t),r=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,h=i.children,Ii(r,i)?h=null:c!==null&&Ii(r,c)&&(t.flags|=32),Nu(e,t),at(e,t,h,s),t.child;case 6:return e===null&&Ui(t),null;case 13:return Su(e,t,s);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hs(t,null,r,s):at(e,t,r,s),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),vu(e,t,r,i,s);case 7:return at(e,t,t.pendingProps,s),t.child;case 8:return at(e,t,t.pendingProps.children,s),t.child;case 12:return at(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,c=t.memoizedProps,h=i.value,Re(ll,r._currentValue),r._currentValue=h,c!==null)if(Rt(c.value,h)){if(c.children===i.children&&!dt.current){t=Zt(e,t,s);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var x=c.dependencies;if(x!==null){h=c.child;for(var v=x.firstContext;v!==null;){if(v.context===r){if(c.tag===1){v=Yt(-1,s&-s),v.tag=2;var T=c.updateQueue;if(T!==null){T=T.shared;var A=T.pending;A===null?v.next=v:(v.next=A.next,A.next=v),T.pending=v}}c.lanes|=s,v=c.alternate,v!==null&&(v.lanes|=s),Vi(c.return,s,t),x.lanes|=s;break}v=v.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(o(341));h.lanes|=s,x=h.alternate,x!==null&&(x.lanes|=s),Vi(h,s,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}at(e,t,i.children,s),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ms(t,s),i=St(i),r=r(i),t.flags|=1,at(e,t,r,s),t.child;case 14:return r=t.type,i=Dt(r,t.pendingProps),i=Dt(r.type,i),yu(e,t,r,i,s);case 15:return wu(e,t,t.type,t.pendingProps,s);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),gl(e,t),t.tag=1,ht(r)?(e=!0,Zr(t)):e=!1,ms(t,s),du(t,r,i),oo(t,r,i,s),ho(null,t,r,!0,e,s);case 19:return Eu(e,t,s);case 22:return ju(e,t,s)}throw Error(o(156,t.tag))};function Yu(e,t){return Ia(e,t)}function Uf(e,t,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,s,r){return new Uf(e,t,s,r)}function Ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ff(e){if(typeof e=="function")return Ro(e)?1:0;if(e!=null){if(e=e.$$typeof,e===je)return 11;if(e===Pe)return 14}return 2}function jn(e,t){var s=e.alternate;return s===null?(s=Tt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function El(e,t,s,r,i,c){var h=2;if(r=e,typeof e=="function")Ro(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case ge:return Un(s.children,i,c,t);case xe:h=8,i|=8;break;case R:return e=Tt(12,s,t,i|2),e.elementType=R,e.lanes=c,e;case O:return e=Tt(13,s,t,i),e.elementType=O,e.lanes=c,e;case ve:return e=Tt(19,s,t,i),e.elementType=ve,e.lanes=c,e;case W:return Tl(s,i,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:h=10;break e;case Ce:h=9;break e;case je:h=11;break e;case Pe:h=14;break e;case _e:h=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Tt(h,s,t,i),t.elementType=e,t.type=r,t.lanes=c,t}function Un(e,t,s,r){return e=Tt(7,e,r,t),e.lanes=s,e}function Tl(e,t,s,r){return e=Tt(22,e,r,t),e.elementType=W,e.lanes=s,e.stateNode={isHidden:!1},e}function Lo(e,t,s){return e=Tt(6,e,null,t),e.lanes=s,e}function Do(e,t,s){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bf(e,t,s,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ii(0),this.expirationTimes=ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $o(e,t,s,r,i,c,h,x,v){return e=new Bf(e,t,s,x,v),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Tt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(c),e}function Hf(e,t,s){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Fo.exports=rm(),Fo.exports}var hd;function lm(){if(hd)return Ml;hd=1;var a=Pd();return Ml.createRoot=a.createRoot,Ml.hydrateRoot=a.hydrateRoot,Ml}var im=lm();const om=Td(im);Pd();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function vr(){return vr=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Id(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function cm(){return Math.random().toString(36).substr(2,8)}function md(a,l){return{usr:a.state,key:a.key,idx:l}}function qo(a,l,o,u){return o===void 0&&(o=null),vr({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?Es(l):l,{state:o,key:l&&l.key||u||cm()})}function zl(a){let{pathname:l="/",search:o="",hash:u=""}=a;return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Es(a){let l={};if(a){let o=a.indexOf("#");o>=0&&(l.hash=a.substr(o),a=a.substr(0,o));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function um(a,l,o,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,y=bn.Pop,p=null,j=S();j==null&&(j=0,m.replaceState(vr({},m.state,{idx:j}),""));function S(){return(m.state||{idx:null}).idx}function k(){y=bn.Pop;let P=S(),J=P==null?null:P-j;j=P,p&&p({action:y,location:H.location,delta:J})}function $(P,J){y=bn.Push;let K=qo(H.location,P,J);j=S()+1;let Y=md(K,j),ne=H.createHref(K);try{m.pushState(Y,"",ne)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;d.location.assign(ne)}f&&p&&p({action:y,location:H.location,delta:1})}function D(P,J){y=bn.Replace;let K=qo(H.location,P,J);j=S();let Y=md(K,j),ne=H.createHref(K);m.replaceState(Y,"",ne),f&&p&&p({action:y,location:H.location,delta:0})}function Q(P){let J=d.location.origin!=="null"?d.location.origin:d.location.href,K=typeof P=="string"?P:zl(P);return K=K.replace(/ $/,"%20"),He(J,"No window.location.(origin|href) available to create URL for href: "+K),new URL(K,J)}let H={get action(){return y},get location(){return a(d,m)},listen(P){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(fd,k),p=P,()=>{d.removeEventListener(fd,k),p=null}},createHref(P){return l(d,P)},createURL:Q,encodeLocation(P){let J=Q(P);return{pathname:J.pathname,search:J.search,hash:J.hash}},push:$,replace:D,go(P){return m.go(P)}};return H}var pd;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(pd||(pd={}));function dm(a,l,o){return o===void 0&&(o="/"),hm(a,l,o)}function hm(a,l,o,u){let d=typeof l=="string"?Es(l):l,f=sa(d.pathname||"/",o);if(f==null)return null;let m=Rd(a);fm(m);let y=null,p=km(f);for(let j=0;y==null&&j{let p={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(He(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=_n([u,p.relativePath]),S=o.concat(p);f.children&&f.children.length>0&&(He(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),Rd(f.children,l,S,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:wm(j,f.index),routesMeta:S})};return a.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,m);else for(let p of Ld(f.path))d(f,m,p)}),l}function Ld(a){let l=a.split("/");if(l.length===0)return[];let[o,...u]=l,d=o.endsWith("?"),f=o.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Ld(u.join("/")),y=[];return y.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&y.push(...m),y.map(p=>a.startsWith("/")&&p===""?"/":p)}function fm(a){a.sort((l,o)=>l.score!==o.score?o.score-l.score:jm(l.routesMeta.map(u=>u.childrenIndex),o.routesMeta.map(u=>u.childrenIndex)))}const mm=/^:[\w-]+$/,pm=3,xm=2,gm=1,vm=10,ym=-2,xd=a=>a==="*";function wm(a,l){let o=a.split("/"),u=o.length;return o.some(xd)&&(u+=ym),l&&(u+=xm),o.filter(d=>!xd(d)).reduce((d,f)=>d+(mm.test(f)?pm:f===""?gm:vm),u)}function jm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function Nm(a,l,o){let{routesMeta:u}=a,d={},f="/",m=[];for(let y=0;y{let{paramName:$,isOptional:D}=S;if($==="*"){let H=y[k]||"";m=f.slice(0,f.length-H.length).replace(/(.)\/+$/,"$1")}const Q=y[k];return D&&!Q?j[$]=void 0:j[$]=(Q||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function _m(a,l,o){l===void 0&&(l=!1),o===void 0&&(o=!0),Id(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,p)=>(u.push({paramName:y,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function km(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Id(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function sa(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,u=a.charAt(o);return u&&u!=="/"?null:a.slice(o)||"/"}function Sm(a,l){l===void 0&&(l="/");let{pathname:o,search:u="",hash:d=""}=typeof a=="string"?Es(a):a,f;return o?(o=Dd(o),o.startsWith("/")?f=gd(o.substring(1),"/"):f=gd(o,l)):f=l,{pathname:f,search:Tm(u),hash:Pm(d)}}function gd(a,l){let o=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function Wo(a,l,o,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Cm(a){return a.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function ra(a,l){let o=Cm(a);return l?o.map((u,d)=>d===o.length-1?u.pathname:u.pathnameBase):o.map(u=>u.pathnameBase)}function la(a,l,o,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=Es(a):(d=vr({},a),He(!d.pathname||!d.pathname.includes("?"),Wo("?","pathname","search",d)),He(!d.pathname||!d.pathname.includes("#"),Wo("#","pathname","hash",d)),He(!d.search||!d.search.includes("#"),Wo("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,y;if(m==null)y=o;else{let k=l.length-1;if(!u&&m.startsWith("..")){let $=m.split("/");for(;$[0]==="..";)$.shift(),k-=1;d.pathname=$.join("/")}y=k>=0?l[k]:"/"}let p=Sm(d,y),j=m&&m!=="/"&&m.endsWith("/"),S=(f||m===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(j||S)&&(p.pathname+="/"),p}const Dd=a=>a.replace(/\/\/+/g,"/"),_n=a=>Dd(a.join("/")),Em=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Tm=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Pm=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function Im(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const $d=["post","put","patch","delete"];new Set($d);const Rm=["get",...$d];new Set(Rm);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function yr(){return yr=Object.assign?Object.assign.bind():function(a){for(var l=1;l{y.current=!0}),g.useCallback(function(j,S){if(S===void 0&&(S={}),!y.current)return;if(typeof j=="number"){u.go(j);return}let k=la(j,JSON.parse(m),f,S.relative==="path");a==null&&l!=="/"&&(k.pathname=k.pathname==="/"?l:_n([l,k.pathname])),(S.replace?u.replace:u.push)(k,S.state,S)},[l,u,m,f,a])}const Mm=g.createContext(null);function Am(a){let l=g.useContext(tn).outlet;return l&&g.createElement(Mm.Provider,{value:a},l)}function zd(a,l){let{relative:o}=l===void 0?{}:l,{future:u}=g.useContext(Cn),{matches:d}=g.useContext(tn),{pathname:f}=qn(),m=JSON.stringify(ra(d,u.v7_relativeSplatPath));return g.useMemo(()=>la(a,JSON.parse(m),f,o==="path"),[a,m,f,o])}function zm(a,l){return Om(a,l)}function Om(a,l,o,u){Ts()||He(!1);let{navigator:d}=g.useContext(Cn),{matches:f}=g.useContext(tn),m=f[f.length-1],y=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=qn(),S;if(l){var k;let P=typeof l=="string"?Es(l):l;p==="/"||(k=P.pathname)!=null&&k.startsWith(p)||He(!1),S=P}else S=j;let $=S.pathname||"/",D=$;if(p!=="/"){let P=p.replace(/^\//,"").split("/");D="/"+$.replace(/^\//,"").split("/").slice(P.length).join("/")}let Q=dm(a,{pathname:D}),H=Wm(Q&&Q.map(P=>Object.assign({},P,{params:Object.assign({},y,P.params),pathname:_n([p,d.encodeLocation?d.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?p:_n([p,d.encodeLocation?d.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),f,o,u);return l&&H?g.createElement(Hl.Provider,{value:{location:yr({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:bn.Pop}},H):H}function Um(){let a=Km(),l=Im(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},l),o?g.createElement("pre",{style:d},o):null,null)}const Fm=g.createElement(Um,null);class Bm extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){console.error("React Router caught the following error during render",l,o)}render(){return this.state.error!==void 0?g.createElement(tn.Provider,{value:this.props.routeContext},g.createElement(Md.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Hm(a){let{routeContext:l,match:o,children:u}=a,d=g.useContext(ia);return d&&d.static&&d.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=o.route.id),g.createElement(tn.Provider,{value:l},u)}function Wm(a,l,o,u){var d;if(l===void 0&&(l=[]),o===void 0&&(o=null),u===void 0&&(u=null),a==null){var f;if(!o)return null;if(o.errors)a=o.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let m=a,y=(d=o)==null?void 0:d.errors;if(y!=null){let S=m.findIndex(k=>k.route.id&&(y==null?void 0:y[k.route.id])!==void 0);S>=0||He(!1),m=m.slice(0,Math.min(m.length,S+1))}let p=!1,j=-1;if(o&&u&&u.v7_partialHydration)for(let S=0;S=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((S,k,$)=>{let D,Q=!1,H=null,P=null;o&&(D=y&&k.route.id?y[k.route.id]:void 0,H=k.route.errorElement||Fm,p&&(j<0&&$===0?(Xm("route-fallback"),Q=!0,P=null):j===$&&(Q=!0,P=k.route.hydrateFallbackElement||null)));let J=l.concat(m.slice(0,$+1)),K=()=>{let Y;return D?Y=H:Q?Y=P:k.route.Component?Y=g.createElement(k.route.Component,null):k.route.element?Y=k.route.element:Y=S,g.createElement(Hm,{match:k,routeContext:{outlet:S,matches:J,isDataRoute:o!=null},children:Y})};return o&&(k.route.ErrorBoundary||k.route.errorElement||$===0)?g.createElement(Bm,{location:o.location,revalidation:o.revalidation,component:H,error:D,children:K(),routeContext:{outlet:null,matches:J,isDataRoute:!0}}):K()},null)}var Od=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(Od||{}),Ud=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(Ud||{});function Vm(a){let l=g.useContext(ia);return l||He(!1),l}function Qm(a){let l=g.useContext(Lm);return l||He(!1),l}function qm(a){let l=g.useContext(tn);return l||He(!1),l}function Fd(a){let l=qm(),o=l.matches[l.matches.length-1];return o.route.id||He(!1),o.route.id}function Km(){var a;let l=g.useContext(Md),o=Qm(),u=Fd();return l!==void 0?l:(a=o.errors)==null?void 0:a[u]}function Jm(){let{router:a}=Vm(Od.UseNavigateStable),l=Fd(Ud.UseNavigateStable),o=g.useRef(!1);return Ad(()=>{o.current=!0}),g.useCallback(function(d,f){f===void 0&&(f={}),o.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,yr({fromRouteId:l},f)))},[a,l])}const vd={};function Xm(a,l,o){vd[a]||(vd[a]=!0)}function Gm(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Vt(a){let{to:l,replace:o,state:u,relative:d}=a;Ts()||He(!1);let{future:f,static:m}=g.useContext(Cn),{matches:y}=g.useContext(tn),{pathname:p}=qn(),j=Wl(),S=la(l,ra(y,f.v7_relativeSplatPath),p,d==="path"),k=JSON.stringify(S);return g.useEffect(()=>j(JSON.parse(k),{replace:o,state:u,relative:d}),[j,k,d,o,u]),null}function Bd(a){return Am(a.context)}function Qe(a){He(!1)}function Ym(a){let{basename:l="/",children:o=null,location:u,navigationType:d=bn.Pop,navigator:f,static:m=!1,future:y}=a;Ts()&&He(!1);let p=l.replace(/^\/*/,"/"),j=g.useMemo(()=>({basename:p,navigator:f,static:m,future:yr({v7_relativeSplatPath:!1},y)}),[p,y,f,m]);typeof u=="string"&&(u=Es(u));let{pathname:S="/",search:k="",hash:$="",state:D=null,key:Q="default"}=u,H=g.useMemo(()=>{let P=sa(S,p);return P==null?null:{location:{pathname:P,search:k,hash:$,state:D,key:Q},navigationType:d}},[p,S,k,$,D,Q,d]);return H==null?null:g.createElement(Cn.Provider,{value:j},g.createElement(Hl.Provider,{children:o,value:H}))}function Zm(a){let{children:l,location:o}=a;return zm(Ko(l),o)}new Promise(()=>{});function Ko(a,l){l===void 0&&(l=[]);let o=[];return g.Children.forEach(a,(u,d)=>{if(!g.isValidElement(u))return;let f=[...l,d];if(u.type===g.Fragment){o.push.apply(o,Ko(u.props.children,f));return}u.type!==Qe&&He(!1),!u.props.index||!u.props.children||He(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=Ko(u.props.children,f)),o.push(m)}),o}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jo(){return Jo=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[o];return l.concat(Array.isArray(u)?u.map(d=>[o,d]):[[o,u]])},[]))}function sp(a,l){let o=Xo(a);return l&&l.forEach((u,d)=>{o.has(d)||l.getAll(d).forEach(f=>{o.append(d,f)})}),o}const rp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lp="6";try{window.__reactRouterVersion=lp}catch{}const ip="startTransition",yd=tm[ip];function op(a){let{basename:l,children:o,future:u,window:d}=a,f=g.useRef();f.current==null&&(f.current=am({window:d,v5Compat:!0}));let m=f.current,[y,p]=g.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},S=g.useCallback(k=>{j&&yd?yd(()=>p(k)):p(k)},[p,j]);return g.useLayoutEffect(()=>m.listen(S),[m,S]),g.useEffect(()=>Gm(u),[u]),g.createElement(Ym,{basename:l,children:o,location:y.location,navigationType:y.action,navigator:m,future:u})}const ap=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ye=g.forwardRef(function(l,o){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:y,target:p,to:j,preventScrollReset:S,viewTransition:k}=l,$=ep(l,rp),{basename:D}=g.useContext(Cn),Q,H=!1;if(typeof j=="string"&&cp.test(j)&&(Q=j,ap))try{let Y=new URL(window.location.href),ne=j.startsWith("//")?new URL(Y.protocol+j):new URL(j),U=sa(ne.pathname,D);ne.origin===Y.origin&&U!=null?j=U+ne.search+ne.hash:H=!0}catch{}let P=Dm(j,{relative:d}),J=up(j,{replace:m,state:y,target:p,preventScrollReset:S,relative:d,viewTransition:k});function K(Y){u&&u(Y),Y.defaultPrevented||J(Y)}return g.createElement("a",Jo({},$,{href:Q||P,onClick:H||f?u:K,ref:o,target:p}))});var wd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(wd||(wd={}));var jd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(jd||(jd={}));function up(a,l){let{target:o,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:y}=l===void 0?{}:l,p=Wl(),j=qn(),S=zd(a,{relative:m});return g.useCallback(k=>{if(np(k,o)){k.preventDefault();let $=u!==void 0?u:zl(j)===zl(S);p(a,{replace:$,state:d,preventScrollReset:f,relative:m,viewTransition:y})}},[j,p,S,u,d,o,a,f,m,y])}function dp(a){let l=g.useRef(Xo(a)),o=g.useRef(!1),u=qn(),d=g.useMemo(()=>sp(u.search,o.current?null:l.current),[u.search]),f=Wl(),m=g.useCallback((y,p)=>{const j=Xo(typeof y=="function"?y(d):y);o.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class hp{constructor(){xt(this,"listeners",new Set);xt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(o=>{try{o(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const Ns=new hp,Hd="/api";function Ss(){return localStorage.getItem("classnotify_token")}function fp(a){localStorage.setItem("classnotify_token",a)}function xr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function pe(a,l={}){const o=Ss(),u={"Content-Type":"application/json",...l.headers};o&&(u.Authorization=`Bearer ${o}`);const d=await fetch(`${Hd}${a}`,{...l,headers:u});if(d.status===401)throw xr(),Ns.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const oe={login:(a,l)=>pe("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>pe("/auth/me"),getAdminMetrics:()=>pe("/admin/metrics"),getTenants:()=>pe("/admin/tenants"),getAllDevices:()=>pe("/admin/devices"),sendDeviceCommand:(a,l,o)=>pe(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:o})}),getAdminActivationCodes:()=>pe("/admin/activation-codes"),getAdminClasses:a=>pe(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>pe(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>pe(`/admin/notifications?limit=${a}`),createTenant:a=>pe("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>pe(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const o=new URLSearchParams;a&&o.append("tenantId",a),l&&o.append("role",l);const u=o.toString();return pe(`/admin/users${u?`?${u}`:""}`)},createUser:a=>pe("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>pe(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>pe(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>pe(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>pe(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>pe(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>pe(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>pe("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getBroadcastReceiptSummary:a=>pe(`/admin/broadcasts/${encodeURIComponent(a)}/receipt-summary`),getSystemHealth:()=>pe("/admin/system/health"),getAuditLogs:(a=100)=>pe(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>pe("/school-admin/overview"),getSchoolClasses:()=>pe("/school-admin/classes"),createSchoolClass:a=>pe("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>pe("/school-admin/teachers"),createSchoolTeacher:a=>pe("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),resetSchoolTeacherPassword:(a,l)=>pe(`/school-admin/teachers/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(a,l)=>pe(`/school-admin/teachers/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>pe("/school-admin/devices"),getSchoolCodes:()=>pe("/school-admin/activation-codes"),generateSchoolCode:a=>pe(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>pe("/notification/classes"),sendNotification:a=>pe("/notification/send",{method:"POST",body:JSON.stringify(a)}),cancelNotification:a=>pe(`/notifications/${encodeURIComponent(a)}/cancel`,{method:"POST"}),getTeacherHistory:(a,l=50)=>pe(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`),getVisualReceiptBlob:async(a,l)=>{const o=Ss(),u=await fetch(`${Hd}/notifications/${encodeURIComponent(a)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:o?{Authorization:`Bearer ${o}`}:{}});if(u.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(u.status===404)throw new Error("未找到该通知的视觉回执");if(!u.ok)throw new Error(`获取视觉回执失败 (${u.status})`);return u.blob()}};class Fn extends Error{constructor(l,o){const u=new.target.prototype;super(`${l}: Status code '${o}'`),this.statusCode=o,this.__proto__=u}}class oa extends Error{constructor(l="A timeout occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class zt extends Error{constructor(l="An abort occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class mp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="UnsupportedTransportError",this.__proto__=u}}class pp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="DisabledTransportError",this.__proto__=u}}class xp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="FailedToStartTransportError",this.__proto__=u}}class Nd extends Error{constructor(l){const o=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=o}}class gp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.innerErrors=o,this.__proto__=u}}class Wd{constructor(l,o,u){this.statusCode=l,this.statusText=o,this.content=u}}class Vl{get(l,o){return this.send({...o,method:"GET",url:l})}post(l,o){return this.send({...o,method:"POST",url:l})}delete(l,o){return this.send({...o,method:"DELETE",url:l})}getCookieString(l){return""}}var I;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(I||(I={}));class wr{constructor(){}log(l,o){}}wr.instance=new wr;const vp="8.0.29";class qe{static isRequired(l,o){if(l==null)throw new Error(`The '${o}' argument is required.`)}static isNotEmpty(l,o){if(!l||l.match(/^\s*$/))throw new Error(`The '${o}' argument should not be empty.`)}static isIn(l,o,u){if(!(l in o))throw new Error(`Unknown ${u} value: ${l}.`)}}class Oe{static get isBrowser(){return!Oe.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Oe.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Oe.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function jr(a,l){let o="";return Wn(a)?(o=`Binary data of length ${a.byteLength}`,l&&(o+=`. Content: '${yp(a)}'`)):typeof a=="string"&&(o=`String data of length ${a.length}`,l&&(o+=`. Content: '${a}'`)),o}function yp(a){const l=new Uint8Array(a);let o="";return l.forEach(u=>{const d=u<16?"0":"";o+=`0x${d}${u.toString(16)} `}),o.substr(0,o.length-1)}function Wn(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Vd(a,l,o,u,d,f){const m={},[y,p]=Cs();m[y]=p,a.log(I.Trace,`(${l} transport) sending data. ${jr(d,f.logMessageContent)}.`);const j=Wn(d)?"arraybuffer":"text",S=await o.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(I.Trace,`(${l} transport) request complete. Response status: ${S.statusCode}.`)}function wp(a){return a===void 0?new Ol(I.Information):a===null?wr.instance:a.log!==void 0?a:new Ol(a)}class jp{constructor(l,o){this._subject=l,this._observer=o}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(o=>{})}}class Ol{constructor(l){this._minLevel=l,this.out=console}log(l,o){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${I[l]}: ${o}`;switch(l){case I.Critical:case I.Error:this.out.error(u);break;case I.Warning:this.out.warn(u);break;case I.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function Cs(){let a="X-SignalR-User-Agent";return Oe.isNode&&(a="User-Agent"),[a,Np(vp,bp(),kp(),_p())]}function Np(a,l,o,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${o}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function bp(){if(Oe.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function _p(){if(Oe.isNode)return process.versions.node}function kp(){return Oe.isNode?"NodeJS":"Browser"}function Vo(a){return a.stack?a.stack:a.message?a.message:`${a}`}function Sp(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class Cp extends Vl{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||Oe.isNode){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(o("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=o("node-fetch"):this._fetchType=fetch,this._fetchType=o("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Sp());if(typeof AbortController>"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=o("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new zt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const o=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{o.abort(),u=new zt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{o.abort(),this._logger.log(I.Warning,"Timeout from HTTP request."),u=new oa},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},Wn(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:o.signal})}catch(p){throw u||(this._logger.log(I.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await bd(f,"text");throw new Fn(p||f.statusText,f.status)}const y=await bd(f,l.responseType);return new Wd(f.status,f.statusText,y)}getCookieString(l){let o="";return Oe.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>o=d.join("; ")),o}}function bd(a,l){let o;switch(l){case"arraybuffer":o=a.arrayBuffer();break;case"text":o=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:o=a.text();break}return o}class Ep extends Vl{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new zt):l.method?l.url?new Promise((o,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(Wn(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new zt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?o(new Wd(d.status,d.statusText,d.response||d.responseText)):u(new Fn(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(I.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new Fn(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(I.Warning,"Timeout from HTTP request."),u(new oa)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Tp extends Vl{constructor(l){if(super(),typeof fetch<"u"||Oe.isNode)this._httpClient=new Cp(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Ep(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new zt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class Nt{static write(l){return`${l}${Nt.RecordSeparator}`}static parse(l){if(l[l.length-1]!==Nt.RecordSeparator)throw new Error("Message is incomplete.");const o=l.split(Nt.RecordSeparator);return o.pop(),o}}Nt.RecordSeparatorCode=30;Nt.RecordSeparator=String.fromCharCode(Nt.RecordSeparatorCode);class Pp{writeHandshakeRequest(l){return Nt.write(JSON.stringify(l))}parseHandshakeResponse(l){let o,u;if(Wn(l)){const y=new Uint8Array(l),p=y.indexOf(Nt.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=String.fromCharCode.apply(null,Array.prototype.slice.call(y.slice(0,j))),u=y.byteLength>j?y.slice(j).buffer:null}else{const y=l,p=y.indexOf(Nt.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=y.substring(0,j),u=y.length>j?y.substring(j):null}const d=Nt.parse(o),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var de;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(de||(de={}));class Ip{constructor(){this.observers=[]}next(l){for(const o of this.observers)o.next(l)}error(l){for(const o of this.observers)o.error&&o.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new jp(this,l)}}class Rp{constructor(l,o,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=o,this._bufferSize=u}async _send(l){const o=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};Wn(o)?this._bufferedByteCount+=o.byteLength:this._bufferedByteCount+=o.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,y)=>{d=m,f=y})),this._messages.push(new Lp(o,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(o)}catch{this._disconnected()}await u}_ack(l){let o=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:de.Sequence,sequenceId:l}));const o=this._messages;for(const u of o)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const o of this._messages)o._rejector(l)}_isInvocationMessage(l){switch(l.type){case de.Invocation:case de.StreamItem:case de.Completion:case de.StreamInvocation:case de.CancelInvocation:return!0;case de.Close:case de.Sequence:case de.Ping:case de.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:de.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Lp{constructor(l,o,u,d){this._message=l,this._id=o,this._resolver=u,this._rejector=d}}const Dp=30*1e3,$p=15*1e3,Mp=1e5;var Ie;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(Ie||(Ie={}));class aa{static create(l,o,u,d,f,m,y){return new aa(l,o,u,d,f,m,y)}constructor(l,o,u,d,f,m,y){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(I.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},qe.isRequired(l,"connection"),qe.isRequired(o,"logger"),qe.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Dp,this.keepAliveIntervalInMilliseconds=m??$p,this._statefulReconnectBufferSize=y??Mp,this._logger=o,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Pp,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:de.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==Ie.Disconnected&&this._connectionState!==Ie.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ie.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ie.Connecting,this._logger.log(I.Debug,"Starting HubConnection.");try{await this._startInternal(),Oe.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ie.Connected,this._connectionStarted=!0,this._logger.log(I.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=Ie.Disconnected,this._logger.log(I.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((o,u)=>{this._handshakeResolver=o,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let o=this._protocol.version;this.connection.features.reconnect||(o=1);const u={protocol:this._protocol.name,version:o};if(this._logger.log(I.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(I.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Rp(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(o){throw this._logger.log(I.Debug,`Hub handshake failed with error '${o}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(o),o}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===Ie.Disconnected)return this._logger.log(I.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ie.Disconnecting)return this._logger.log(I.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const o=this._connectionState;return this._connectionState=Ie.Disconnecting,this._logger.log(I.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(I.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(o===Ie.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new zt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createStreamInvocation(l,o,d);let m;const y=new Ip;return y.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){y.error(j);return}else p&&(p.type===de.Completion?p.error?y.error(new Error(p.error)):y.complete():y.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{y.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),y}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._sendWithProtocol(this._createInvocation(l,o,!0,d));return this._launchStreams(u,f),f}invoke(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createInvocation(l,o,!1,d);return new Promise((y,p)=>{this._callbacks[f.invocationId]=(S,k)=>{if(k){p(k);return}else S&&(S.type===de.Completion?S.error?p(new Error(S.error)):y(S.result):p(new Error(`Unexpected message type: ${S.type}`)))};const j=this._sendWithProtocol(f).catch(S=>{p(S),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,o){!l||!o||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(o)===-1&&this._methods[l].push(o))}off(l,o){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(o){const d=u.indexOf(o);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const o=this._protocol.parseMessages(l,this._logger);for(const u of o)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case de.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(I.Error,`Invoke client method threw error: ${Vo(d)}`)});break;case de.StreamItem:case de.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===de.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(I.Error,`Stream callback threw error: ${Vo(f)}`)}}break}case de.Ping:break;case de.Close:{this._logger.log(I.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case de.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case de.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(I.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let o,u;try{[u,o]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(I.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(o.error){const d="Server returned handshake error: "+o.error;this._logger.log(I.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(I.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ie.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const o=l.target.toLowerCase(),u=this._methods[o];if(!u){this._logger.log(I.Warning,`No client method with the name '${o}' found.`),l.invocationId&&(this._logger.log(I.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,y,p;for(const j of d)try{const S=m;m=await j.apply(this,l.arguments),f&&m&&S&&(this._logger.log(I.Error,`Multiple results provided for '${o}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),y=void 0}catch(S){y=S,this._logger.log(I.Error,`A callback for the method '${o}' threw error '${S}'.`)}p?await this._sendWithProtocol(p):f?(y?p=this._createCompletionMessage(l.invocationId,`${y}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(I.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(I.Error,`Result given for '${o}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(I.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new zt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ie.Disconnecting?this._completeClose(l):this._connectionState===Ie.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===Ie.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=Ie.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),Oe.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(o=>o.apply(this,[l]))}catch(o){this._logger.log(I.Error,`An onclose callback called with error '${l}' threw error '${o}'.`)}}}async _reconnect(l){const o=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(I.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=Ie.Reconnecting,l?this._logger.log(I.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(I.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(I.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==Ie.Reconnecting){this._logger.log(I.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(I.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ie.Reconnecting){this._logger.log(I.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ie.Connected,this._logger.log(I.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(I.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(I.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==Ie.Reconnecting){this._logger.log(I.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ie.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-o,d)}}this._logger.log(I.Information,`Reconnect retries have been exhausted after ${Date.now()-o} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,o,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:o,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(I.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${o}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const o=this._callbacks;this._callbacks={},Object.keys(o).forEach(u=>{const d=o[u];try{d(null,l)}catch(f){this._logger.log(I.Error,`Stream 'error' callback called with '${l}' threw error: ${Vo(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,o,u,d){if(u)return d.length!==0?{arguments:o,streamIds:d,target:l,type:de.Invocation}:{arguments:o,target:l,type:de.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:o,invocationId:f.toString(),streamIds:d,target:l,type:de.Invocation}:{arguments:o,invocationId:f.toString(),target:l,type:de.Invocation}}}_launchStreams(l,o){if(l.length!==0){o||(o=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{o=o.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const o=[],u=[];for(let d=0;d0)&&(o=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return o&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[Bn.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[Bn.Authorization]&&delete l.headers[Bn.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Xe;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Xe||(Xe={}));var it;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(it||(it={}));let Op=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class kd{get pollAborted(){return this._pollAbort.aborted}constructor(l,o,u){this._httpClient=l,this._logger=o,this._pollAbort=new Op,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,o){if(qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._url=l,this._logger.log(I.Trace,"(LongPolling transport) Connecting."),o===it.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=Cs(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};o===it.Binary&&(m.responseType="arraybuffer");const y=`${l}&_=${Date.now()}`;this._logger.log(I.Trace,`(LongPolling transport) polling: ${y}.`);const p=await this._httpClient.get(y,m);p.statusCode!==200?(this._logger.log(I.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new Fn(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,o){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(I.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,o);d.statusCode===204?(this._logger.log(I.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(I.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new Fn(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(I.Trace,`(LongPolling transport) data received. ${jr(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(I.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof oa?this._logger.log(I.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(I.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(I.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Vd(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(I.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(I.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[o,u]=Cs();l[o]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof Fn&&(f.statusCode===404?this._logger.log(I.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(I.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(I.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(I.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(I.Trace,l),this.onclose(this._closeError)}}}class Up{constructor(l,o,u,d){this._httpClient=l,this._accessToken=o,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,o){return qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._logger.log(I.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(o!==it.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(Oe.isBrowser||Oe.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const y=this._httpClient.getCookieString(l),p={};p.Cookie=y;const[j,S]=Cs();p[j]=S,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=y=>{if(this.onreceive)try{this._logger.log(I.Trace,`(SSE transport) data received. ${jr(y.data,this._options.logMessageContent)}.`),this.onreceive(y.data)}catch(p){this._close(p);return}},m.onerror=y=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(I.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(y){d(y);return}})}async send(l){return this._eventSource?Vd(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Fp{constructor(l,o,u,d,f,m){this._logger=u,this._accessTokenFactory=o,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,o){qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._logger.log(I.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const y=this._httpClient.getCookieString(l);let p=!1;if(Oe.isNode||Oe.isReactNative){const j={},[S,k]=Cs();j[S]=k,u&&(j[Bn.Authorization]=`Bearer ${u}`),y&&(j[Bn.Cookie]=y),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),o===it.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(I.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="There was an error with the transport",this._logger.log(I.Information,`(WebSockets transport) ${S}.`)},m.onmessage=j=>{if(this._logger.log(I.Trace,`(WebSockets transport) data received. ${jr(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(S){this._close(S);return}},m.onclose=j=>{if(p)this._close(j);else{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(S))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(I.Trace,`(WebSockets transport) sending data. ${jr(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(I.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Sd=100;class Bp{constructor(l,o={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,qe.isRequired(l,"url"),this._logger=wp(o.logger),this.baseUrl=this._resolveUrl(l),o=o||{},o.logMessageContent=o.logMessageContent===void 0?!1:o.logMessageContent,typeof o.withCredentials=="boolean"||o.withCredentials===void 0)o.withCredentials=o.withCredentials===void 0?!0:o.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");o.timeout=o.timeout===void 0?100*1e3:o.timeout;let u=null,d=null;if(Oe.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!Oe.isNode&&typeof WebSocket<"u"&&!o.WebSocket?o.WebSocket=WebSocket:Oe.isNode&&!o.WebSocket&&u&&(o.WebSocket=u),!Oe.isNode&&typeof EventSource<"u"&&!o.EventSource?o.EventSource=EventSource:Oe.isNode&&!o.EventSource&&typeof d<"u"&&(o.EventSource=d),this._httpClient=new zp(o.httpClient||new Tp(this._logger),o.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=o,this.onreceive=null,this.onclose=null}async start(l){if(l=l||it.Binary,qe.isIn(l,it,"transferFormat"),this._logger.log(I.Debug,`Starting connection with transfer format '${it[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const o="Failed to start the HttpConnection before stop() was called.";return this._logger.log(I.Error,o),await this._stopPromise,Promise.reject(new zt(o))}else if(this._connectionState!=="Connected"){const o="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(I.Error,o),Promise.reject(new zt(o))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new ca(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(I.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(I.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(o=>{this._stopPromiseResolver=o}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(o){this._logger.log(I.Error,`HttpConnection.transport.stop() threw error '${o}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(I.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let o=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Xe.WebSockets)this.transport=this._constructTransport(Xe.WebSockets),await this._startTransport(o,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(o),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new zt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(o=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new gp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Xe.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Fp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Xe.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Up(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Xe.LongPolling:return new kd(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,o){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,o),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,o)}_resolveTransportOrError(l,o,u,d){const f=Xe[l.transport];if(f==null)return this._logger.log(I.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Hp(o,f))if(l.transferFormats.map(y=>it[y]).indexOf(u)>=0){if(f===Xe.WebSockets&&!this._options.WebSocket||f===Xe.ServerSentEvents&&!this._options.EventSource)return this._logger.log(I.Debug,`Skipping transport '${Xe[f]}' because it is not supported in your environment.'`),new mp(`'${Xe[f]}' is not supported in your environment.`,f);this._logger.log(I.Debug,`Selecting transport '${Xe[f]}'.`);try{return this.features.reconnect=f===Xe.WebSockets?d:void 0,this._constructTransport(f)}catch(y){return y}}else return this._logger.log(I.Debug,`Skipping transport '${Xe[f]}' because it does not support the requested transfer format '${it[u]}'.`),new Error(`'${Xe[f]}' does not support ${it[u]}.`);else return this._logger.log(I.Debug,`Skipping transport '${Xe[f]}' because it was disabled by the client.`),new pp(`'${Xe[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(I.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(I.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(I.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(I.Error,`Connection disconnected with error '${l}'.`):this._logger.log(I.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(o=>{this._logger.log(I.Error,`TransportSendQueue.stop() threw error '${o}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(o){this._logger.log(I.Error,`HttpConnection.onclose(${l}) threw error '${o}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!Oe.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const o=window.document.createElement("a");return o.href=l,this._logger.log(I.Information,`Normalizing '${l}' to '${o.href}'.`),o.href}_resolveNegotiateUrl(l){const o=new URL(l);o.pathname.endsWith("/")?o.pathname+="negotiate":o.pathname+="/negotiate";const u=new URLSearchParams(o.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),o.search=u.toString(),o.toString()}}function Hp(a,l){return!a||(l&a)!==0}class ca{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new Al,this._transportResult=new Al,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new Al),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Al;const l=this._transportResult;this._transportResult=void 0;const o=typeof this._buffer[0]=="string"?this._buffer.join(""):ca._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(o),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const o=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(o);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class Al{constructor(){this.promise=new Promise((l,o)=>[this._resolver,this._rejecter]=[l,o])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Wp="json";class Vp{constructor(){this.name=Wp,this.version=2,this.transferFormat=it.Text}parseMessages(l,o){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];o===null&&(o=wr.instance);const u=Nt.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case de.Invocation:this._isInvocationMessage(m);break;case de.StreamItem:this._isStreamItemMessage(m);break;case de.Completion:this._isCompletionMessage(m);break;case de.Ping:break;case de.Close:break;case de.Ack:this._isAckMessage(m);break;case de.Sequence:this._isSequenceMessage(m);break;default:o.log(I.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return Nt.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,o){if(typeof l!="string"||l==="")throw new Error(o)}}const Qp={trace:I.Trace,debug:I.Debug,info:I.Information,information:I.Information,warn:I.Warning,warning:I.Warning,error:I.Error,critical:I.Critical,none:I.None};function qp(a){const l=Qp[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class Kp{configureLogging(l){if(qe.isRequired(l,"logging"),Jp(l))this.logger=l;else if(typeof l=="string"){const o=qp(l);this.logger=new Ol(o)}else this.logger=new Ol(l);return this}withUrl(l,o){return qe.isRequired(l,"url"),qe.isNotEmpty(l,"url"),this.url=l,typeof o=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...o}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:o},this}withHubProtocol(l){return qe.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new _d(l):this.reconnectPolicy=l:this.reconnectPolicy=new _d,this}withServerTimeout(l){return qe.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return qe.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const o=new Bp(this.url,l);return aa.create(o,this.logger||wr.instance,this.protocol||new Vp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function Jp(a){return a.log!==void 0}class Xp{constructor(){xt(this,"connection",null);xt(this,"state","Disconnected");xt(this,"startPromise",null);xt(this,"permanentRetryTimer",null);xt(this,"isAuthenticated",!1);xt(this,"stateListeners",new Set);xt(this,"ackListeners",new Set);xt(this,"deviceStatusListeners",new Set);xt(this,"healthReportListeners",new Set);xt(this,"notificationListeners",new Set);xt(this,"cancelledListeners",new Set);Ns.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(o=>o(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var o,u;if(!Ss()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((o=this.connection)==null?void 0:o.state)===Ie.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===Ie.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===Ie.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new Kp().withUrl("/hubs/teacher",{accessTokenFactory:()=>Ss()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(I.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(o=>o(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(o=>o(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(o=>o(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(o=>o(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(o=>o(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===Ie.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const Ot=new Xp,Qd=g.createContext(void 0),Gp=({children:a})=>{const[l,o]=g.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=g.useState(Ss()),[f,m]=g.useState(!0);g.useEffect(()=>{const j=Ns.subscribe(()=>{Ot.stop(),xr(),d(null),o(null)});return()=>j()},[]),g.useEffect(()=>{(async()=>{var k,$;if(Ss())try{const D=await oe.getMe();o(D),localStorage.setItem("classnotify_user",JSON.stringify(D)),Ns.reset(),Ot.start()}catch(D){((k=D==null?void 0:D.message)!=null&&k.includes("未授权")||($=D==null?void 0:D.message)!=null&&$.includes("401"))&&(xr(),d(null),o(null))}else xr(),o(null),d(null);m(!1)})()},[]);const y=async(j,S)=>{const k=await oe.login(j,S);if(!k.success||!k.token||!k.role)throw new Error(k.errorMessage||"登录失败");fp(k.token),d(k.token);const $={userId:k.userId||"",name:k.fullName||j,role:k.role,tenantId:k.tenantId||""};return o($),localStorage.setItem("classnotify_user",JSON.stringify($)),Ns.reset(),Ot.start(),k.role},p=()=>{Ot.stop(),xr(),d(null),o(null),Ns.reset()};return n.jsx(Qd.Provider,{value:{user:l,token:u,login:y,logout:p,isLoading:f},children:a})},Sr=()=>{const a=g.useContext(Qd);if(!a)throw new Error("useAuth must be used within an AuthProvider");return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yp=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qd=(...a)=>a.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Zp={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e0=g.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...y},p)=>g.createElement("svg",{ref:p,...Zp,width:l,height:l,stroke:a,strokeWidth:u?Number(o)*24/Number(l):o,className:qd("lucide",d),...y},[...m.map(([j,S])=>g.createElement(j,S)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ce=(a,l)=>{const o=g.forwardRef(({className:u,...d},f)=>g.createElement(e0,{ref:f,iconNode:l,className:qd(`lucide-${Yp(a)}`,u),...d}));return o.displayName=`${a}`,o};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t0=[["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"}]],ua=ce("Activity",t0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const n0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],js=ce("ArrowRight",n0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ul=ce("Bell",s0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Qt=ce("Building2",r0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fl=ce("Check",l0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i0=[["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"}]],Sn=ce("CircleAlert",i0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pt=ce("CircleCheck",o0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Go=ce("CircleX",a0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Kn=ce("Clock",c0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],d0=ce("CloudRain",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Yo=ce("Copy",h0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],m0=ce("Eye",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],x0=ce("Flame",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Nr=ce("GraduationCap",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Zo=ce("History",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ut=ce("KeyRound",y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],gr=ce("Layers",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kn=ce("LoaderCircle",j0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],ea=ce("LockOpen",N0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],bs=ce("Lock",b0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],k0=ce("LogOut",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],C0=ce("Megaphone",S0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],T0=ce("Menu",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Vn=ce("Monitor",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],Kd=ce("PenLine",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qn=ce("Plus",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L0=[["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"}]],br=ce("Radio",L0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],bt=ce("RefreshCw",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],M0=ce("RotateCcw",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Cd=ce("School",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Cr=ce("Search",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O0=[["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"}]],_r=ce("Send",O0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Bl=ce("ShieldAlert",U0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_s=ce("ShieldCheck",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const B0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],H0=ce("Shield",B0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Jd=ce("Sparkles",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],da=ce("Trash2",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ks=ce("TriangleAlert",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Xd=ce("User",q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Hn=ce("Users",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J0=[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]],X0=ce("Vibrate",J0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G0=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Gd=ce("Volume2",G0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kr=ce("X",Y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ex=ce("ZoomIn",Z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],nx=ce("ZoomOut",tx),ha=()=>{const[a,l]=g.useState(Ot.getState());return g.useEffect(()=>Ot.onStateChange(l),[]),a==="Connected"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"云端已连接"]}):a==="Reconnecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-ping"}),"正在重连"]}):a==="Connecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-sky-400 animate-pulse"}),"正在连接..."]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"连接断开"]})},sx=()=>{const{user:a,logout:l}=Sr(),o=qn(),[u,d]=g.useState(!1);if(g.useEffect(()=>{d(!1)},[o.pathname]),!a)return null;const f=m=>o.pathname===m;return n.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"flex items-center justify-between h-16",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs(ye,{to:"/",className:"flex items-center space-x-2.5",children:[n.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:n.jsx(Ul,{className:"w-5 h-5 text-white"})}),n.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),n.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(_s,{className:"w-3.5 h-3.5 text-amber-400"}),n.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(Cd,{className:"w-3.5 h-3.5 text-sky-400"}),n.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&n.jsxs(n.Fragment,{children:[n.jsx(Nr,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]}),n.jsx("div",{className:"hidden sm:block",children:n.jsx(ha,{})})]}),n.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(ye,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(gr,{className:"w-4 h-4"}),"总览"]}),n.jsxs(ye,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Qt,{className:"w-4 h-4"}),"学校租户"]}),n.jsxs(ye,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Hn,{className:"w-4 h-4"}),"用户中枢"]}),n.jsxs(ye,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Vn,{className:"w-4 h-4"}),"设备集控"]}),n.jsxs(ye,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[n.jsx(br,{className:"w-4 h-4"}),"应急广播"]}),n.jsxs(ye,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),n.jsxs(ye,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Zo,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(ye,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Cd,{className:"w-4 h-4"}),"学校概览"]}),n.jsxs(ye,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(gr,{className:"w-4 h-4"}),"班级管理"]}),n.jsxs(ye,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Hn,{className:"w-4 h-4"}),"教师账号"]}),n.jsxs(ye,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&n.jsxs(ye,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Ul,{className:"w-4 h-4"}),"呼叫与回执"]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),n.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),n.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:n.jsx(k0,{className:"w-4 h-4"})}),n.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?n.jsx(kr,{className:"w-5 h-5"}):n.jsx(T0,{className:"w-5 h-5"})})]})]}),u&&n.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ye,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(gr,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),n.jsx(ye,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),n.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),n.jsx(ye,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Qt,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),n.jsx(ye,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Hn,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),n.jsx(ye,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Vn,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),n.jsx(ye,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(br,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),n.jsx(ye,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Zo,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ye,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),n.jsx(ye,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),n.jsx(ye,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),n.jsx(ye,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&n.jsx(ye,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},Qo=({allowedRoles:a,children:l})=>{const{user:o,isLoading:u}=Sr();return u?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):o?a.includes(o.role)?l?n.jsx(n.Fragment,{children:l}):n.jsx(Bd,{}):o.role==="SuperAdmin"?n.jsx(Vt,{to:"/admin",replace:!0}):o.role==="SchoolAdmin"?n.jsx(Vt,{to:"/school-admin",replace:!0}):n.jsx(Vt,{to:"/teacher",replace:!0}):n.jsx(Vt,{to:"/login",replace:!0})},rx=()=>{const[a,l]=g.useState(""),[o,u]=g.useState(""),[d,f]=g.useState(null),[m,y]=g.useState(!1),{login:p}=Sr(),j=Wl(),S=async(k=a,$=o)=>{f(null),y(!0);try{const D=await p(k,$);j(D==="SuperAdmin"?"/admin":D==="SchoolAdmin"?"/school-admin":"/teacher")}catch(D){f(D.message||"登录失败,请检查账号密码")}finally{y(!1)}};return n.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[n.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),n.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),n.jsx("div",{className:"w-full max-w-md relative z-10",children:n.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:n.jsx(Ul,{className:"w-8 h-8 text-white"})}),n.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&n.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),n.jsxs("form",{onSubmit:k=>{k.preventDefault(),S()},className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsxs("div",{className:"relative",children:[n.jsx(Xd,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"text",value:a,onChange:k=>l(k.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),n.jsxs("div",{className:"relative",children:[n.jsx(bs,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"password",value:o,onChange:k=>u(k.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在验证身份..."})]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{children:"登 录"}),n.jsx(js,{className:"w-4 h-4"})]})})]})]})})]})},lx=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState([]),[m,y]=g.useState(null),[p,j]=g.useState([]),[S,k]=g.useState(!0),$=async()=>{try{const[D,Q,H,P,J]=await Promise.all([oe.getAdminMetrics(),oe.getTenants(),oe.getAdminNotifications(6),oe.getSystemHealth().catch(()=>null),oe.getAuditLogs(6).catch(()=>[])]);l(D),u(Q),f(H),P&&y(P),J&&j(J)}catch(D){console.error("Failed to load admin dashboard data",D)}finally{k(!1)}};return g.useEffect(()=>{$();const D=setInterval($,1e4);return()=>clearInterval(D)},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域云控超管总览"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时管控多校区实体、网格化终端生命周期、底层微内核与紧急调度通道"})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 self-start sm:self-auto",children:[n.jsxs(ye,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold shadow-md shadow-amber-500/20 active:scale-95 transition-all",children:[n.jsx(ut,{className:"w-4 h-4"}),"生成设备激活码"]}),n.jsxs("div",{className:"flex items-center gap-2.5 px-3.5 py-2 rounded-xl bg-slate-900/80 border border-slate-800 text-xs",children:[m!=null&&m.databaseConnected?n.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),n.jsxs("span",{className:"font-medium",children:["PostgreSQL 正常 (",m.databaseLatencyMs.toFixed(1),"ms)"]})]}):n.jsxs("div",{className:"flex items-center gap-2 text-rose-400",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500"}),n.jsx("span",{className:"font-medium",children:"数据库异常断开"})]}),n.jsx("span",{className:"text-slate-600",children:"|"}),n.jsxs("div",{className:"text-slate-400",children:[n.jsx("span",{children:"在线屏: "}),n.jsx("span",{className:"text-white font-mono",children:(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0})]}),n.jsx("span",{className:"text-slate-600",children:"|"}),n.jsx("div",{className:"text-slate-400 font-mono text-[11px]",children:n.jsxs("span",{children:["运行: ",(m==null?void 0:m.uptime)||"99.98%"]})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"入驻学校 / 租户"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:n.jsx(Qt,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:S?"-":(a==null?void 0:a.totalTenants)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"所校区"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"总设备数量"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-sky-500/10 text-sky-400 flex items-center justify-center",children:n.jsx(Vn,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:S?"-":(a==null?void 0:a.totalDevices)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"台教室终端"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800 relative overflow-hidden",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"在线设备 (实时连通)"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(ua,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),S?"-":(a==null?void 0:a.onlineDevices)??0]}),n.jsxs("span",{className:"text-xs text-slate-400",children:["/ 离线 ",S?"-":(a==null?void 0:a.offlineDevices)??0]})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"今日呼叫通知"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 text-amber-400 flex items-center justify-center",children:n.jsx(Ul,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:S?"-":(a==null?void 0:a.todayNotifications)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"次下发"})]})]})]}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"核心管控中枢入口"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4",children:[n.jsxs(ye,{to:"/admin/tenants",className:"glass-panel p-4 border-slate-800 hover:border-indigo-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:n.jsx(Qt,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-indigo-400",children:"学校租户"}),n.jsx("div",{className:"text-xs text-slate-400",children:"入驻、变更与冻结"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-indigo-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ye,{to:"/admin/users",className:"glass-panel p-4 border-slate-800 hover:border-sky-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-sky-500/10 text-sky-400 flex items-center justify-center",children:n.jsx(Hn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-sky-400",children:"用户中枢"}),n.jsx("div",{className:"text-xs text-slate-400",children:"跨校开户、改密与封禁"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-sky-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ye,{to:"/admin/devices",className:"glass-panel p-4 border-slate-800 hover:border-emerald-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(Vn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-emerald-400",children:"设备集控"}),n.jsx("div",{className:"text-xs text-slate-400",children:"心跳、远程指令与清退"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-emerald-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ye,{to:"/admin/codes",className:"glass-panel p-4 border-slate-800 hover:border-amber-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group relative overflow-hidden",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(ut,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-sm font-semibold text-white group-hover:text-amber-400 flex items-center gap-1.5",children:["激活码大盘",n.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-amber-500/20 text-amber-300 font-normal",children:"快速生成"})]}),n.jsx("div",{className:"text-xs text-slate-400",children:"生成、绑定与废除"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-amber-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ye,{to:"/admin/broadcast",className:"glass-panel p-4 border-slate-800 hover:border-rose-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:n.jsx(br,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),n.jsx("div",{className:"text-xs text-slate-400",children:"全域群发与强置顶"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n.jsxs("div",{className:"lg:col-span-2 glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(Qt,{className:"w-4 h-4 text-indigo-400"}),"各校区终端在线统计"]}),n.jsx(ye,{to:"/admin/tenants",className:"text-xs text-indigo-400 hover:underline",children:"管理学校 →"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"pb-3 font-medium",children:"学校名称"}),n.jsx("th",{className:"pb-3 font-medium",children:"班级数"}),n.jsx("th",{className:"pb-3 font-medium",children:"设备数"}),n.jsx("th",{className:"pb-3 font-medium",children:"在线状态"}),n.jsx("th",{className:"pb-3 font-medium text-right",children:"在线率"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o.map(D=>{const Q=D.deviceCount>0?Math.round(D.onlineCount/D.deviceCount*100):0;return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3 font-medium text-white flex items-center gap-2",children:[n.jsx("span",{children:D.name}),n.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",D.id,")"]})]}),n.jsx("td",{className:"py-3 text-slate-300",children:D.classroomCount}),n.jsx("td",{className:"py-3 text-slate-300",children:D.deviceCount}),n.jsx("td",{className:"py-3",children:n.jsxs("span",{className:"text-xs text-slate-300",children:[D.onlineCount," / ",D.deviceCount," 在线"]})}),n.jsx("td",{className:"py-3 text-right",children:n.jsxs("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${Q>=80?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/30":Q>0?"bg-amber-500/10 text-amber-400 border border-amber-500/30":"bg-slate-800 text-slate-400"}`,children:[Q,"%"]})})]},D.id)})})]})})]}),n.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(_s,{className:"w-4 h-4 text-amber-400"}),"管理员关键操作审计"]}),n.jsx("span",{className:"text-xs text-slate-500",children:"不可篡改"})]}),n.jsx("div",{className:"space-y-3",children:p.length===0?n.jsx("div",{className:"text-center py-8 text-xs text-slate-500",children:"暂无审计记录"}):p.map(D=>n.jsxs("div",{className:"glass-card p-3 text-xs space-y-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"font-semibold text-indigo-300 font-mono",children:D.action}),n.jsx("span",{className:"text-[10px] text-slate-500",children:new Date(D.occurredAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-slate-300 text-[11px] line-clamp-1",children:D.details||D.targetId}),n.jsxs("div",{className:"flex items-center justify-between text-slate-500 text-[10px]",children:[n.jsxs("span",{children:["操作者: ",D.actorUsername]}),n.jsx("span",{className:"font-mono",children:D.targetType})]})]},D.id))})]})]})]})},ix=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,y]=g.useState(null),[p,j]=g.useState(null),[S,k]=g.useState(null),[$,D]=g.useState(""),[Q,H]=g.useState(""),[P,J]=g.useState(!1),K=async()=>{try{const R=await oe.getAllDevices();l(R)}catch(R){console.error("Failed to load devices",R)}finally{u(!1)}};g.useEffect(()=>{K();const R=setInterval(K,5e3);return()=>clearInterval(R)},[]);const Y=async(R,se,Ce)=>{j(`${R}_${se}`),y(null);try{const je=await oe.sendDeviceCommand(R,se,Ce);y({deviceId:R,message:je.message,success:!0}),K()}catch(je){y({deviceId:R,message:je.message||"远程指令下发失败",success:!1})}finally{j(null)}},ne=R=>{k(R),D(R.hostname||""),H(R.classroomId||"")},U=async R=>{if(R.preventDefault(),!!S){J(!0);try{await oe.updateDevice(S.deviceId,{hostname:$.trim()||void 0,classroomId:Q.trim()||void 0}),y({deviceId:S.deviceId,message:"设备信息更新成功",success:!0}),k(null),K()}catch(se){y({deviceId:S.deviceId,message:se.message||"更新设备失败",success:!1})}finally{J(!1)}}},Z=async R=>{if(window.confirm(`高危操作确认:确定要注销并清退设备 [${R.deviceId} (${R.hostname||R.classroomName})] 吗? 清退后该设备将无法接入,需重新生成激活码绑定!`)){j(`decommission_${R.deviceId}`);try{await oe.decommissionDevice(R.deviceId),y({deviceId:R.deviceId,message:"设备已成功清退并注销",success:!0}),K()}catch(se){y({deviceId:R.deviceId,message:se.message||"清退设备失败",success:!1})}finally{j(null)}}},ge=R=>{if(!R)return"从无心跳";const se=Math.floor((Date.now()-new Date(R).getTime())/1e3);return se<10?"刚刚 (几秒前)":se<60?`${se} 秒前`:se<3600?`${Math.floor(se/60)} 分钟前`:`${Math.floor(se/3600)} 小时前`},xe=a.filter(R=>R.tenantName.toLowerCase().includes(d.toLowerCase())||R.classroomName.toLowerCase().includes(d.toLowerCase())||R.deviceId.toLowerCase().includes(d.toLowerCase())||R.hostname&&R.hostname.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备集控中心"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时监控教室终端健康心跳与服务状态,支持在线秒级下发或离线指令入队补发、元数据变更与清退"})]}),n.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[n.jsxs("button",{onClick:()=>{u(!0),K()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新状态"]}),n.jsxs(ye,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-600/25 transition-all",children:[n.jsx(ut,{className:"w-3.5 h-3.5 text-amber-300"}),"生成新设备激活码"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between transition-all ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsxs("span",{children:["[设备 ",m.deviceId,"] ",m.message]})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:R=>f(R.target.value),placeholder:"按学校、班级、设备编号或计算机名过滤...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"设备编号 / 主机名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"运行状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"心跳与 IP"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"版本"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"运维指令与管理"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:xe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在同步设备状态...":"暂无匹配的设备"})}):xe.map(R=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:R.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:R.tenantName})]}),n.jsxs("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:[n.jsx("div",{children:R.deviceId}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[n.jsx(Vn,{className:"w-3 h-3 text-slate-500"}),n.jsx("span",{children:R.hostname||"Classroom-PC"})]})]}),n.jsx("td",{className:"py-4 px-4",children:R.isOnline?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),n.jsx("span",{children:"在线 (实时连通)"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-400",title:"指令将入队,上线时自动补发",children:[n.jsx(Kn,{className:"w-3 h-3 text-amber-500"}),n.jsx("span",{children:"离线 (支持离线入队)"})]})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:ge(R.lastHeartbeat)}),n.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:R.remoteIp||"127.0.0.1"})]}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono",children:["v",R.clientVersion||"2.1.0"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>Y(R.deviceId,"self_check"),disabled:p===`${R.deviceId}_self_check`,className:"px-2 py-1 rounded-lg bg-indigo-600/10 hover:bg-indigo-600/20 border border-indigo-500/30 text-indigo-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发远程自检指令 (若离线将入队补发)",children:[n.jsx(ua,{className:"w-3 h-3"}),"自检"]}),n.jsxs("button",{onClick:()=>Y(R.deviceId,"restart_client"),disabled:p===`${R.deviceId}_restart_client`,className:"px-2 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"远程重启前台 WPF Client 弹窗进程",children:[n.jsx(M0,{className:"w-3 h-3"}),"重启"]}),n.jsxs("button",{onClick:()=>Y(R.deviceId,"refresh_config"),disabled:p===`${R.deviceId}_refresh_config`,className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发配置刷新指令",children:[n.jsx(bt,{className:"w-3 h-3"}),"刷新"]}),n.jsx("button",{onClick:()=>ne(R),className:"p-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 transition-colors",title:"重命名或调整班级绑定",children:n.jsx(Kd,{className:"w-3.5 h-3.5"})}),n.jsx("button",{onClick:()=>Z(R),disabled:p===`decommission_${R.deviceId}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"清退并注销设备",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},R.deviceId))})]})})}),S&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"调整设备元数据"}),n.jsxs("p",{className:"text-xs text-slate-400",children:["设备唯一识别码: ",n.jsx("span",{className:"font-mono text-indigo-400",children:S.deviceId})]}),n.jsxs("form",{onSubmit:U,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"计算机名 / 主机标识 (Hostname)"}),n.jsx("input",{type:"text",value:$,onChange:R=>D(R.target.value),placeholder:"例如: LAB-BUILDING-201-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"所属班级编号 (Classroom ID)"}),n.jsx("input",{type:"text",value:Q,onChange:R=>H(R.target.value),placeholder:"例如: cls_801",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>k(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:P,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:P?"保存中...":"确认保存"})]})]})]})})]})},ox=()=>{const[a]=dp(),[l,o]=g.useState([]),[u,d]=g.useState([]),[f,m]=g.useState(!0),[y,p]=g.useState(null),[j,S]=g.useState(""),[k,$]=g.useState(""),[D,Q]=g.useState(!1),[H,P]=g.useState(""),[J,K]=g.useState([]),[Y,ne]=g.useState(!1),[U,Z]=g.useState(""),[ge,xe]=g.useState(!1),[R,se]=g.useState(""),[Ce,je]=g.useState(!1),[O,ve]=g.useState(null),Pe=async()=>{try{const[E,N]=await Promise.all([oe.getAdminActivationCodes(),oe.getTenants()]);o(E),d(N),N.length>0&&!H&&P(N[0].id)}catch(E){console.error("Failed to load activation codes",E)}finally{m(!1)}};g.useEffect(()=>{Pe()},[]),g.useEffect(()=>{const E=a.get("tenantId"),N=a.get("openGenerate")==="true";E&&($(E),P(E),N&&Q(!0))},[a]),g.useEffect(()=>{H&&(ne(!0),oe.getAdminClasses(H).then(E=>{K(E),E.length>0?(Z(E[0].id),xe(!1)):(Z(""),xe(!0))}).catch(E=>{console.warn("Could not load classes for tenant:",H,E),K([]),xe(!0)}).finally(()=>ne(!1)))},[H]);const _e=E=>{navigator.clipboard.writeText(E),p(E),setTimeout(()=>p(null),2e3)},W=async E=>{E.preventDefault();const N=ge?R.trim():U.trim();if(!H||!N){alert("请选择学校及目标班级");return}je(!0);try{const L=await oe.generateAdminCode(H,N),ae=u.find(fe=>fe.id===H),ue=J.find(fe=>fe.id===N);ve({code:L.code,schoolName:(ae==null?void 0:ae.name)||H,className:(ue==null?void 0:ue.displayName)||N}),Q(!1),se(""),Pe()}catch(L){alert(L.message||"生成激活码失败")}finally{je(!1)}},_=async E=>{if(window.confirm(`确定要废弃/删除激活码 [${E}] 吗?废弃后将无法用于设备初始化绑定。`))try{await oe.deleteActivationCode(E),Pe()}catch(N){alert(N.message||"删除激活码失败")}},V=l.filter(E=>{const N=!k||E.tenantId===k,L=E.code.toLowerCase().includes(j.toLowerCase())||E.classroomName.toLowerCase().includes(j.toLowerCase())||E.tenantName.toLowerCase().includes(j.toLowerCase());return N&&L});return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(ut,{className:"w-4 h-4"})}),n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{m(!0),Pe()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{ve(null),Q(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[n.jsx(Qn,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),O&&n.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:n.jsx(Jd,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),n.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",n.jsx("span",{className:"font-medium text-white",children:O.schoolName})," / ",n.jsx("span",{className:"font-medium text-white",children:O.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:O.code}),n.jsx("button",{onClick:()=>_e(O.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:y===O.code?n.jsxs(n.Fragment,{children:[n.jsx(Fl,{className:"w-3.5 h-3.5"}),"已复制"]}):n.jsxs(n.Fragment,{children:[n.jsx(Yo,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:j,onChange:E=>S(E.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Qt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:k,onChange:E=>$(E.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(E=>n.jsxs("option",{value:E.id,children:[E.name," (",E.id,")"]},E.id))]})]}),n.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"text-white font-medium",children:V.length})," 个激活码"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:V.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(ut,{className:"w-8 h-8 text-slate-600"}),n.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),n.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),n.jsxs("button",{onClick:()=>Q(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[n.jsx(Qn,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):V.map(E=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:E.code}),n.jsx("button",{onClick:()=>_e(E.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:y===E.code?n.jsx(Fl,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(Yo,{className:"w-3.5 h-3.5"})})]})}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:E.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:E.tenantName})]}),n.jsx("td",{className:"py-4 px-4",children:E.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx(Pt,{className:"w-3 h-3"}),"已激活绑定"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx(Kn,{className:"w-3 h-3"}),"等待激活"]})}),n.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:E.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:E.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(E.expiresAt).toLocaleDateString()," ",new Date(E.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsx("button",{onClick:()=>_e(E.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:y===E.code?"已复制":"复制"}),n.jsx("button",{onClick:()=>_(E.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},E.code))})]})})}),D&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(ut,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),n.jsxs("form",{onSubmit:W,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),n.jsx("select",{value:H,onChange:E=>P(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(E=>n.jsxs("option",{value:E.id,children:[E.name," (",E.id,") ",E.isActive?"":"[已冻结]"]},E.id))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),n.jsx("button",{type:"button",onClick:()=>xe(!ge),className:"text-[11px] text-amber-400 hover:underline",children:ge?"从班级列表选择":"手动输入班级ID"})]}),Y?n.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[n.jsx(bt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):ge?n.jsx("input",{type:"text",value:R,onChange:E=>se(E.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):J.length>0?n.jsx("select",{value:U,onChange:E=>Z(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:J.map(E=>n.jsxs("option",{value:E.id,children:[E.displayName," (",E.id,")"]},E.id))}):n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[n.jsx(Sn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),n.jsx("input",{type:"text",value:R,onChange:E=>se(E.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),n.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[n.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),n.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),n.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>Q(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:Ce,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:Ce?"生成中...":"立即生成激活码"})]})]})]})})]})},ax=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),m=async()=>{try{const p=await oe.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};g.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const y=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),n.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新审计"]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:y.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在加载审计数据...":"暂无呼叫历史记录"})}):y.map(p=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:p.className}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),n.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[n.jsx("div",{className:"font-medium text-sm",children:p.message}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),n.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),n.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Pt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[n.jsx(_r,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Kn,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),n.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?n.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):n.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},cx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,y]=g.useState(null),[p,j]=g.useState(!1),[S,k]=g.useState({id:"",name:""}),[$,D]=g.useState(!1),[Q,H]=g.useState(null),[P,J]=g.useState({name:"",isActive:!0}),[K,Y]=g.useState(!1),ne=async()=>{try{const R=await oe.getTenants();l(R)}catch(R){console.error("Failed to load tenants",R)}finally{u(!1)}};g.useEffect(()=>{ne()},[]);const U=async R=>{if(R.preventDefault(),!(!S.id.trim()||!S.name.trim())){D(!0);try{await oe.createTenant({id:S.id.trim(),name:S.name.trim()}),y({text:`学校 [${S.name}] 创建成功!`,success:!0}),j(!1),k({id:"",name:""}),ne()}catch(se){y({text:se.message||"创建学校失败",success:!1})}finally{D(!1)}}},Z=R=>{H(R),J({name:R.name,isActive:R.isActive})},ge=async R=>{if(R.preventDefault(),!(!Q||!P.name.trim())){Y(!0);try{await oe.updateTenant(Q.id,{name:P.name.trim(),isActive:P.isActive}),y({text:`学校 [${P.name}] 配置已更新`,success:!0}),H(null),ne()}catch(se){y({text:se.message||"更新学校配置失败",success:!1})}finally{Y(!1)}}},xe=a.filter(R=>R.name.toLowerCase().includes(d.toLowerCase())||R.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{u(!0),ne()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:m.text})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:R=>f(R.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:xe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在读取租户列表...":"暂无匹配的学校租户"})}):xe.map(R=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:n.jsx(Qt,{className:"w-4 h-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-white",children:R.name}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:R.id})]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[n.jsx(Nr,{className:"w-3.5 h-3.5 text-indigo-400"}),n.jsxs("span",{children:[R.classroomCount," 个班级"]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("span",{className:"font-semibold text-emerald-400",children:[R.onlineCount," 在线"]}),n.jsx("span",{className:"text-slate-500",children:"/"}),n.jsxs("span",{className:"text-slate-400",children:[R.deviceCount," 总屏"]})]})}),n.jsx("td",{className:"py-4 px-4",children:R.isActive?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx(Pt,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"正常运营"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(Go,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"已停用冻结"})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(R.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsxs(ye,{to:`/admin/codes?tenantId=${R.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),"生成激活码"]}),n.jsxs("button",{onClick:()=>Z(R),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[n.jsx(Kd,{className:"w-3 h-3"}),"编辑配置"]})]})})]},R.id))})]})})}),p&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),n.jsxs("form",{onSubmit:U,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:S.id,onChange:R=>k({...S,id:R.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:S.name,onChange:R=>k({...S,name:R.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:$,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:$?"正在创建...":"确认接入"})]})]})]})}),Q&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",Q.id]}),n.jsxs("form",{onSubmit:ge,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),n.jsx("input",{type:"text",required:!0,value:P.name,onChange:R=>J({...P,name:R.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),n.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:P.isActive===!0,onChange:()=>J({...P,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:P.isActive===!1,onChange:()=>J({...P,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>H(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:K,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:K?"保存中...":"保存更改"})]})]})]})})]})},ux=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(""),[p,j]=g.useState(""),[S,k]=g.useState(""),[$,D]=g.useState(null),[Q,H]=g.useState(!1),[P,J]=g.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[K,Y]=g.useState(!1),[ne,U]=g.useState(null),[Z,ge]=g.useState(""),[xe,R]=g.useState(!1),[se,Ce]=g.useState(null),je=async()=>{try{const[_,V]=await Promise.all([oe.getUsers(p||void 0,S||void 0),oe.getTenants()]);l(_),u(V)}catch(_){console.error("Failed to load user management data",_)}finally{f(!1)}};g.useEffect(()=>{je()},[p,S]);const O=async _=>{var V;if(_.preventDefault(),!P.tenantId||!P.username||!P.password||!P.fullName){D({text:"请填写所有必填字段",success:!1});return}Y(!0);try{await oe.createUser(P),D({text:`用户 [${P.username}] 创建成功!`,success:!0}),H(!1),J({tenantId:((V=o[0])==null?void 0:V.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),je()}catch(E){D({text:E.message||"创建用户失败",success:!1})}finally{Y(!1)}},ve=async _=>{if(_.preventDefault(),!(!ne||!Z.trim())){R(!0);try{await oe.resetPassword(ne.id,Z.trim()),D({text:`用户 [${ne.username}] 的密码已重置成功`,success:!0}),U(null),ge("")}catch(V){D({text:V.message||"重置密码失败",success:!1})}finally{R(!1)}}},Pe=async _=>{const V=!_.isLocked,E=V?`确定要锁定账号 [${_.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${_.username}] 吗?`;if(window.confirm(E)){Ce(`lock_${_.id}`);try{await oe.setUserLock(_.id,V),D({text:`用户 [${_.username}] 已成功${V?"锁定":"解锁"}`,success:!0}),je()}catch(N){D({text:N.message||"操作失败",success:!1})}finally{Ce(null)}}},_e=async _=>{if(_.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${_.username} (${_.fullName})] 吗?此操作不可逆!`)){Ce(`delete_${_.id}`);try{await oe.deleteUser(_.id),D({text:`用户 [${_.username}] 已被删除`,success:!0}),je()}catch(V){D({text:V.message||"删除用户失败",success:!1})}finally{Ce(null)}}},W=a.filter(_=>_.username.toLowerCase().includes(m.toLowerCase())||_.fullName.toLowerCase().includes(m.toLowerCase())||_.tenantName.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{f(!0),je()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{o.length>0&&!P.tenantId&&J(_=>({..._,tenantId:o[0].id})),H(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建用户"]})]})]}),$&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${$.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[$.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:$.text})]}),n.jsx("button",{onClick:()=>D(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:m,onChange:_=>y(_.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Qt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:p,onChange:_=>j(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部学校 (全网)"}),o.map(_=>n.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Nr,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:S,onChange:_=>k(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部角色"}),n.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),n.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:W.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):W.map(_=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:_.fullName}),n.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:_.username})]}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:_.tenantName}),n.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:_.tenantId})]}),n.jsx("td",{className:"py-4 px-4",children:_.role==="SuperAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(Bl,{className:"w-3 h-3"}),"超级管理员"]}):_.role==="SchoolAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[n.jsx(Qt,{className:"w-3 h-3"}),"校区管理员"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[n.jsx(Nr,{className:"w-3 h-3"}),"授课老师"]})}),n.jsx("td",{className:"py-4 px-4",children:_.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[n.jsx(bs,{className:"w-3 h-3"}),"已锁定封禁"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Pt,{className:"w-3 h-3"}),"正常"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:_.lastLoginAt?new Date(_.lastLoginAt).toLocaleString():"尚未登录"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>U(_),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[n.jsx(ut,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),_.role!=="SuperAdmin"&&n.jsxs("button",{onClick:()=>Pe(_),disabled:se===`lock_${_.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${_.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:_.isLocked?"解除账号锁定":"锁定账号",children:[_.isLocked?n.jsx(ea,{className:"w-3 h-3"}):n.jsx(bs,{className:"w-3 h-3"}),_.isLocked?"解锁":"锁定"]}),_.role!=="SuperAdmin"&&n.jsx("button",{onClick:()=>_e(_),disabled:se===`delete_${_.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},_.id))})]})})}),Q&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),n.jsxs("form",{onSubmit:O,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),n.jsxs("select",{required:!0,value:P.tenantId,onChange:_=>J({...P,tenantId:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"-- 请选择学校 --"}),o.map(_=>n.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),n.jsxs("select",{value:P.role,onChange:_=>J({...P,role:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:P.username,onChange:_=>J({...P,username:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:P.fullName,onChange:_=>J({...P,fullName:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:P.password,onChange:_=>J({...P,password:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:K,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:K?"正在创建...":"确认开户"})]})]})]})}),ne&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",ne.username]}),n.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",ne.tenantName,"] 的 [",ne.fullName,"] 强行设置新密码。"]}),n.jsxs("form",{onSubmit:ve,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:Z,onChange:_=>ge(_.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>{U(null),ge("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:xe,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:xe?"重置中...":"确认重置"})]})]})]})})]})},dx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState([]),[m,y]=g.useState(!1),[p,j]=g.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[S,k]=g.useState(!1),[$,D]=g.useState(!1),[Q,H]=g.useState(null),[P,J]=g.useState(null),[K,Y]=g.useState(null),ne=[{title:"⚠️ 消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速、有序撤离至操场,不要慌乱!",duration:60,shake:!0,voice:!0,icon:x0},{title:"⛈️ 恶劣雷雨大风避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁学生前往走廊与室外活动!",duration:45,shake:!0,voice:!0,icon:d0},{title:"📢 临时紧急集合通知",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学保持教室内安静自习。",duration:30,shake:!1,voice:!0,icon:Hn},{title:"🔔 全校临时作息调整",content:"因突发教学安排,今天下午放学时间调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:C0}],U=async()=>{try{const O=await oe.getTenants();l(O)}catch(O){console.error("Failed to load tenants",O)}finally{u(!1)}},Z=async()=>{y(!0);try{const O=await oe.getAdminNotifications(15);f(O)}catch(O){console.error("Failed to load recent broadcasts",O)}finally{y(!1)}};g.useEffect(()=>{U(),Z()},[]);const ge=O=>{j(ve=>({...ve,title:O.title,message:O.content,durationSeconds:O.duration,shake:O.shake,voice:O.voice}))},xe=O=>{if(O.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}k(!0)};g.useEffect(()=>{if(!Q)return;let O=!1,ve;const Pe=Date.now(),_e=async()=>{try{const W=await oe.getBroadcastReceiptSummary(Q);if(O)return;J(W),!W.completed&&Date.now()-Pe<6e4&&(ve=window.setTimeout(_e,2e3))}catch{!O&&Date.now()-Pe<6e4&&(ve=window.setTimeout(_e,3e3))}};return _e(),()=>{O=!0,ve&&clearTimeout(ve)}},[Q]);const R=async()=>{D(!0);try{const O=await oe.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});O.broadcastId&&H(O.broadcastId),Y({dispatchedCount:O.dispatchedCount,targetSchools:O.targetSchools,message:O.message,success:!0,timestamp:new Date().toLocaleTimeString()}),k(!1),j(ve=>({...ve,message:""})),Z()}catch(O){Y({dispatchedCount:0,targetSchools:0,message:O.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),k(!1)}finally{D(!1)}},se=a.find(O=>O.id===p.tenantId),Ce=se?se.classroomCount:a.reduce((O,ve)=>O+(ve.classroomCount||0),0),je=se?se.deviceCount:a.reduce((O,ve)=>O+(ve.deviceCount||0),0);return n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:n.jsx(br,{className:"w-5 h-5 animate-pulse"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域紧急应急广播"}),n.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"超级管理员最高优先调度通道,覆盖全网多校区所有教室大屏终端,支持强置顶、TTS 语音播报与视效抖动"})]})]})}),K&&n.jsx("div",{className:`p-5 rounded-xl border transition-all animate-in fade-in slide-in-from-top-2 ${K.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[K.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0 mt-0.5"}):n.jsx(ks,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),n.jsxs("div",{className:"flex-1",children:[n.jsx("h3",{className:"font-semibold text-sm",children:K.success?"全域紧急广播指令已成功下发":"广播下发遇到异常"}),n.jsx("p",{className:"text-xs text-slate-300 mt-1",children:K.message}),K.success&&n.jsxs("div",{className:"flex flex-wrap gap-4 mt-3 text-xs",children:[n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-200",children:["目标学校: ",n.jsx("strong",{className:"text-white",children:K.targetSchools})," 所"]}),n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-200",children:["投递教室班级: ",n.jsx("strong",{className:"text-emerald-400",children:K.dispatchedCount})," 间"]}),n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-400 font-mono",children:["下发时间: ",K.timestamp]})]}),P&&n.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-5 gap-2 mt-4 pt-3 border-t border-slate-700/50 text-xs",children:[n.jsxs("div",{className:"p-2 rounded-lg bg-black/40 border border-slate-700/60 text-center",children:[n.jsx("span",{className:"text-[11px] text-slate-400 block",children:"目标终端设备"}),n.jsx("strong",{className:"text-white text-sm font-mono",children:P.targetDevices})]}),n.jsxs("div",{className:"p-2 rounded-lg bg-emerald-500/10 border border-emerald-500/30 text-center",children:[n.jsx("span",{className:"text-[11px] text-emerald-300 block",children:"已在屏幕显示"}),n.jsx("strong",{className:"text-emerald-400 text-sm font-mono",children:P.displayed})]}),n.jsxs("div",{className:"p-2 rounded-lg bg-amber-500/10 border border-amber-500/30 text-center",children:[n.jsx("span",{className:"text-[11px] text-amber-300 block",children:"排队 / 离线等待"}),n.jsx("strong",{className:"text-amber-400 text-sm font-mono",children:P.pending})]}),n.jsxs("div",{className:"p-2 rounded-lg bg-slate-800 border border-slate-700 text-center",children:[n.jsx("span",{className:"text-[11px] text-slate-400 block",children:"已取消"}),n.jsx("strong",{className:"text-slate-300 text-sm font-mono",children:P.cancelled})]}),n.jsxs("div",{className:"p-2 rounded-lg bg-rose-500/10 border border-rose-500/30 text-center",children:[n.jsx("span",{className:"text-[11px] text-rose-300 block",children:"失败 / 超时"}),n.jsx("strong",{className:"text-rose-400 text-sm font-mono",children:P.failed})]})]})]})]}),n.jsx("button",{onClick:()=>{Y(null),H(null),J(null)},className:"text-slate-400 hover:text-white p-1 rounded-lg hover:bg-slate-800 transition-colors",children:n.jsx(kr,{className:"w-4 h-4"})})]})}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"应急广播预设模板 (点击快速填装)"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:ne.map((O,ve)=>{const Pe=O.icon;return n.jsxs("button",{type:"button",onClick:()=>ge(O),className:"glass-panel p-3.5 border-slate-800 text-left hover:border-indigo-500/50 hover:bg-slate-800/40 transition-all group",children:[n.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-indigo-400 mb-1",children:[n.jsx(Pe,{className:"w-4 h-4 text-indigo-400"}),n.jsx("span",{children:O.title})]}),n.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2",children:O.content})]},ve)})})]}),n.jsx("div",{className:"glass-panel p-6 border-slate-800",children:n.jsxs("form",{onSubmit:xe,className:"space-y-5",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Qt,{className:"w-3.5 h-3.5 text-indigo-400"}),"目标广播范围"]}),n.jsxs("span",{className:"text-[11px] text-slate-400 font-normal",children:["预计覆盖 ",Ce," 班级 / ",je," 大屏"]})]}),n.jsxs("select",{value:p.tenantId||"",onChange:O=>j({...p,tenantId:O.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(O=>n.jsxs("option",{value:O.id,children:["仅该校: ",O.name," (",O.classroomCount," 班级, ",O.deviceCount," 大屏)"]},O.id))]})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[n.jsx(Bl,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),n.jsx("input",{type:"text",required:!0,value:p.title,onChange:O=>j({...p,title:O.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容 (将同步在所有大屏全屏高显并由 Windows TTS 朗读)"}),n.jsx("textarea",{required:!0,rows:4,value:p.message,onChange:O=>j({...p,message:O.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500 font-sans",placeholder:"请输入紧急通报具体事项,语言力求简明扼要..."})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2 border-t border-slate-800",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[n.jsx(Kn,{className:"w-3.5 h-3.5 text-indigo-400"}),"展示持续时长: ",p.durationSeconds," 秒"]}),n.jsx("input",{type:"range",min:10,max:300,step:5,value:p.durationSeconds,onChange:O=>j({...p,durationSeconds:parseInt(O.target.value,10)}),className:"w-full accent-indigo-500 cursor-pointer"}),n.jsxs("div",{className:"flex justify-between text-[11px] text-slate-500 mt-1",children:[n.jsx("span",{children:"10秒"}),n.jsx("span",{children:"60秒"}),n.jsx("span",{children:"5分钟"})]})]}),n.jsx("div",{className:"flex items-center",children:n.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[n.jsx("input",{type:"checkbox",checked:p.voice,onChange:O=>j({...p,voice:O.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[n.jsx(Gd,{className:"w-3.5 h-3.5 text-emerald-400"}),"TTS 语音朗读"]}),n.jsx("div",{className:"text-[11px] text-slate-500",children:"大屏端通过系统扬声器朗读"})]})]})}),n.jsx("div",{className:"flex items-center",children:n.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[n.jsx("input",{type:"checkbox",checked:p.shake,onChange:O=>j({...p,shake:O.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[n.jsx(X0,{className:"w-3.5 h-3.5 text-rose-400"}),"窗口视效震颤"]}),n.jsx("div",{className:"text-[11px] text-slate-500",children:"高频强抖动提醒上课师生"})]})]})})]}),n.jsx("div",{className:"pt-2 flex justify-end",children:n.jsxs("button",{type:"submit",disabled:$||!p.message.trim(),className:"flex items-center gap-2 px-6 py-3 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-sm font-semibold shadow-xl shadow-rose-600/30 transition-all disabled:opacity-50",children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"下发全域紧急广播..."})]})})]})}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Zo,{className:"w-4 h-4 text-indigo-400"}),"最近全网广播与呼叫调度记录"]}),n.jsx("button",{onClick:Z,disabled:m,className:"text-xs text-indigo-400 hover:text-indigo-300 disabled:opacity-50",children:m?"刷新中...":"刷新记录"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs",children:[n.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),n.jsx("th",{className:"py-2.5 px-3",children:"调度类型"}),n.jsx("th",{className:"py-2.5 px-3",children:"目标班级/范围"}),n.jsx("th",{className:"py-2.5 px-3",children:"通知内容"}),n.jsx("th",{className:"py-2.5 px-3 text-right",children:"投递状态"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:m?"正在加载历史记录...":"暂无最近调度记录"})}):d.slice(0,8).map(O=>n.jsxs("tr",{className:"hover:bg-slate-800/20",children:[n.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(O.createdAt).toLocaleTimeString()}),n.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:O.priority==="Urgent"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-rose-500/10 text-rose-400 border border-rose-500/20 font-medium",children:[n.jsx(ks,{className:"w-3 h-3"}),"紧急通报"]}):n.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/20",children:"日常呼叫"})}),n.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:O.className||"全域广播"}),n.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:O.message}),n.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:O.status==="Cancelled"?n.jsx("span",{className:"text-slate-400",children:"已撤回关闭"}):O.status==="Acknowledged"?n.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):O.status==="Delivered"?n.jsx("span",{className:"text-sky-400",children:"大屏已接收"}):n.jsx("span",{className:"text-slate-400",children:"已发送"})})]},O.id))})]})})]}),S&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-lg w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:n.jsx(Bl,{className:"w-6 h-6 animate-pulse"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"全域极高优先级应急调度二次核验"}),n.jsx("p",{className:"text-xs text-rose-400/90 font-medium mt-0.5",children:"请谨慎操作:此指令将强制穿透终端并在全网大屏置顶展示"})]})]}),n.jsxs("div",{className:"space-y-3 mb-5",children:[n.jsxs("div",{className:"bg-slate-950/70 p-3.5 rounded-xl border border-slate-800/80 space-y-2 text-xs",children:[n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"目标受众范围:"}),n.jsx("span",{className:"text-white font-semibold",children:p.tenantId?`${(se==null?void 0:se.name)||p.tenantId} (${Ce} 班级)`:`全域所有学校 (${a.length} 所学校, 约 ${Ce} 班级)`})]}),n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"广播标题:"}),n.jsx("span",{className:"text-white font-medium",children:p.title})]}),n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"展示时长与视效:"}),n.jsxs("span",{className:"text-slate-200",children:[p.durationSeconds," 秒 · ",p.voice?"TTS 语音":"无声音"," · ",p.shake?"视效抖动":"无抖动"]})]})]}),n.jsxs("div",{className:"bg-slate-950/70 p-3 rounded-xl border border-slate-800/80 text-xs",children:[n.jsx("span",{className:"text-slate-500 text-[11px] block mb-1",children:"播报正文内容:"}),n.jsx("p",{className:"text-slate-200 font-sans leading-relaxed",children:p.message})]}),n.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-[11px] text-rose-300/90 leading-relaxed",children:"⚠️ 确认后,云端将在毫秒内将此通报广播下发至所选教室大屏。终端如果处于上课或展示课件状态,也将直接浮现全屏红框强提醒!"})]}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:$,onClick:()=>k(!1),className:"px-4 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"放弃下发"}),n.jsx("button",{type:"button",disabled:$,onClick:R,className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-lg shadow-rose-600/30 transition-all flex items-center gap-2 disabled:opacity-50",children:$?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在全域调度广播..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"确认立即全网广播"})]})})]})]})})]})},hx=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(null),p=async()=>{f(!0),y(null);try{const[j,S]=await Promise.all([oe.getSchoolOverview(),oe.getSchoolDevices()]);l(j),u(S)}catch(j){y((j==null?void 0:j.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};return g.useEffect(()=>{p();const j=Ot.onDeviceStatusChanged(k=>{u($=>{const D=k.state===1||String(k.state).toLowerCase()==="online",Q=$.map(P=>P.deviceId===k.deviceId?{...P,isOnline:D,lastHeartbeat:k.lastHeartbeat,clientVersion:k.agentVersion||P.clientVersion}:P),H=Q.filter(P=>P.isOnline).length;return l(P=>P?{...P,onlineCount:H}:null),Q})}),S=Ot.onHealthReportReceived(k=>{u($=>$.map(D=>D.deviceId===k.deviceId?{...D,healthStatus:k.overallStatus,lastHeartbeat:k.timestamp||new Date().toISOString()}:D))});return()=>{j(),S()}},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:(a==null?void 0:a.tenantName)||"本校管理后台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"管理本校班级配置、多媒体教室设备绑定与科任教师账号"})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:n.jsx(ha,{})})]}),m&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:p,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"已建班级"}),n.jsx(gr,{className:"w-4 h-4 text-sky-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.classCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"个教学班"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教室终端"}),n.jsx(Vn,{className:"w-4 h-4 text-indigo-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.deviceCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"台已安装"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"实时在线"}),n.jsx(ua,{className:"w-4 h-4 text-emerald-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),d?"-":(a==null?void 0:a.onlineCount)??0]}),n.jsxs("span",{className:"text-xs text-slate-400",children:["/ 总 ",d?"-":(a==null?void 0:a.deviceCount)??0]})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教师账号"}),n.jsx(Hn,{className:"w-4 h-4 text-amber-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.teacherCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"位老师"})]})]})]}),n.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(Vn,{className:"w-4 h-4 text-sky-400"}),"本校各教室设备状态与健康体检"]}),n.jsx(ye,{to:"/school-admin/classes",className:"text-xs text-sky-400 hover:text-sky-300 font-medium flex items-center gap-1",children:"班级管理"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"健康状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最后心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"版本"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-400",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin text-sky-400"}),n.jsx("span",{children:"正在同步设备列表..."})]})})}):o.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-500",children:"暂无已绑定的教室设备,请前往【本校激活码】生成激活码并在教室电脑安装"})}):o.map(j=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-medium text-white",children:j.classroomName}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:j.deviceId}),n.jsx("td",{className:"py-3.5 px-4",children:j.isOnline?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"在线"]}):n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线"})}),n.jsx("td",{className:"py-3.5 px-4",children:j.healthStatus==="Degraded"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Bl,{className:"w-3 h-3 text-amber-400"}),"亚健康"]}):j.healthStatus==="Healthy"||j.isOnline&&!j.healthStatus?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(_s,{className:"w-3 h-3 text-emerald-400"}),"健康"]}):n.jsx("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线未检"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400",children:j.lastHeartbeat?new Date(j.lastHeartbeat).toLocaleTimeString():"无"}),n.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",j.clientVersion||"2.1.0"]})]},j.deviceId))})]})})]})]})},fx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,y]=g.useState(""),[p,j]=g.useState(""),[S,k]=g.useState(""),[$,D]=g.useState(""),[Q,H]=g.useState(!1),[P,J]=g.useState(null),K=async()=>{try{const U=await oe.getSchoolClasses();l(U)}catch(U){console.error("Failed to load classes",U)}finally{u(!1)}};g.useEffect(()=>{K()},[]);const Y=async U=>{if(U.preventDefault(),!(!m||!p)){H(!0);try{await oe.createSchoolClass({id:m,displayName:p,grade:S,roomNumber:$}),f(!1),y(""),j(""),k(""),D(""),K()}catch(Z){alert(Z.message||"创建班级失败")}finally{H(!1)}}},ne=async U=>{try{const Z=await oe.generateSchoolCode(U);J({classId:U,code:Z.code})}catch(Z){alert(Z.message||"生成激活码失败")}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校班级管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"维护学校全部教学班级,并为各班级生成设备激活码"})]}),n.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建教学班"]})]}),P&&n.jsxs("div",{className:"p-4 rounded-xl bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("span",{className:"font-semibold",children:["【",P.classId,"】激活码已生成:"]}),n.jsx("span",{className:"font-mono text-base font-bold text-white ml-2 bg-slate-900 px-2 py-1 rounded",children:P.code}),n.jsx("span",{className:"text-xs text-emerald-400/80 ml-3",children:"(请在教室电脑运行 ClassNotifySetup.exe 输入该激活码完成绑定)"})]}),n.jsx("button",{onClick:()=>{navigator.clipboard.writeText(P.code),alert("激活码已复制!")},className:"px-3 py-1 rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium",children:"复制激活码"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级编号 (ClassId)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"年级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教室位置"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:a.map(U=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-semibold text-white",children:U.displayName}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:U.id}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:U.grade||"-"}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:U.roomNumber||"-"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("button",{onClick:()=>ne(U.id),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-sky-600/10 hover:bg-sky-600/20 border border-sky-500/30 text-sky-400 text-xs font-medium transition-colors",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),"生成安装激活码"]})})]},U.id))})]})})}),d&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(gr,{className:"w-5 h-5 text-sky-400"}),"新建教学班级"]}),n.jsxs("form",{onSubmit:Y,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级编号 (唯一识别码)"}),n.jsx("input",{type:"text",value:m,onChange:U=>y(U.target.value),placeholder:"如 cls_803 或 cls_grade7_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级显示名称"}),n.jsx("input",{type:"text",value:p,onChange:U=>j(U.target.value),placeholder:"如 八年级(3)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"年级 (可选)"}),n.jsx("input",{type:"text",value:S,onChange:U=>k(U.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教室位置 (可选)"}),n.jsx("input",{type:"text",value:$,onChange:U=>D(U.target.value),placeholder:"如 教学楼 303",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:Q,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:Q?"创建中...":"确认创建"})]})]})]})})]})},mx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,y]=g.useState(""),[p,j]=g.useState(""),[S,k]=g.useState(""),[$,D]=g.useState("Teacher"),[Q,H]=g.useState(!1),[P,J]=g.useState(null),[K,Y]=g.useState(""),[ne,U]=g.useState(!1),[Z,ge]=g.useState(null),[xe,R]=g.useState(!1),[se,Ce]=g.useState(null),je=(W,_)=>{Ce({type:W,text:_}),setTimeout(()=>{Ce(V=>(V==null?void 0:V.text)===_?null:V)},4e3)},O=async()=>{try{const W=await oe.getSchoolTeachers();l(W)}catch(W){je("error",(W==null?void 0:W.message)||"加载教师列表失败")}finally{u(!1)}};g.useEffect(()=>{O()},[]);const ve=async W=>{if(W.preventDefault(),!(!m||!p||!S)){H(!0);try{await oe.createSchoolTeacher({username:m,password:p,fullName:S,role:$}),f(!1),y(""),j(""),k(""),je("success",`教师账号 ${S} 开设成功`),O()}catch(_){alert(_.message||"创建教师账号失败")}finally{H(!1)}}},Pe=async W=>{if(W.preventDefault(),!(!P||!K)){if(K.length<6){alert("新密码长度不能少于 6 位");return}U(!0);try{await oe.resetSchoolTeacherPassword(P.id,K),je("success",`已成功将教师 [${P.fullName}] 的密码重置`),J(null),Y("")}catch(_){alert(_.message||"重置密码失败")}finally{U(!1)}}},_e=async()=>{if(!Z)return;R(!0);const W=!Z.isLocked;try{await oe.setSchoolTeacherLock(Z.id,W),je("success",`已成功${W?"停用":"启用"}教师 [${Z.fullName}] 账号`),ge(null),O()}catch(_){alert(_.message||"操作失败")}finally{R(!1)}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教师账号管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"为科任教师开设 ClassNotify 网页控制台与后续 Android 移动端登录权限"})]}),n.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"开设教师账号"]})]}),se&&n.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${se.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[se.type==="success"?n.jsx(Pt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):n.jsx(ks,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:se.text})]}),n.jsx("button",{onClick:()=>Ce(null),className:"text-slate-400 hover:text-white",children:n.jsx(kr,{className:"w-3.5 h-3.5"})})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教师姓名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"登录账号"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"权限角色"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(kn,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-sky-400"}),n.jsx("span",{children:"正在加载教师列表..."})]})}):a.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:"暂未开设任何教师账号,请点击右上角按钮添加"})}):a.map(W=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4 font-semibold text-white flex items-center gap-2",children:[W.role==="SchoolAdmin"?n.jsx(H0,{className:"w-4 h-4 text-sky-400"}):n.jsx(Nr,{className:"w-4 h-4 text-emerald-400"}),n.jsx("span",{children:W.fullName})]}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:W.username}),n.jsx("td",{className:"py-4 px-4 text-xs",children:W.role==="SchoolAdmin"?n.jsx("span",{className:"px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/30",children:"学校管理员"}):n.jsx("span",{className:"px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:"任课教师"})}),n.jsx("td",{className:"py-4 px-4",children:W.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-rose-500/10 text-rose-400 border border-rose-500/30 text-xs font-medium",children:[n.jsx(bs,{className:"w-3 h-3"}),"已停用"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30 text-xs font-medium",children:[n.jsx(Pt,{className:"w-3 h-3"}),"正常可用"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400 font-mono",children:W.lastLoginAt?new Date(W.lastLoginAt).toLocaleString():n.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[n.jsx(Kn,{className:"w-3 h-3"}),"从未登录"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("div",{className:"inline-flex items-center gap-2",children:W.role==="Teacher"&&n.jsxs(n.Fragment,{children:[n.jsxs("button",{type:"button",onClick:()=>{J(W),Y("")},className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-slate-800 hover:bg-slate-700 text-sky-400 hover:text-sky-300 text-xs font-medium border border-slate-700 transition-colors",title:"重置登录密码",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"重置密码"})]}),n.jsx("button",{type:"button",onClick:()=>ge(W),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium border transition-colors ${W.isLocked?"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 border-emerald-500/30":"bg-rose-500/10 hover:bg-rose-500/20 text-rose-400 border-rose-500/30"}`,title:W.isLocked?"恢复账号":"停用账号",children:W.isLocked?n.jsxs(n.Fragment,{children:[n.jsx(ea,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"恢复"})]}):n.jsxs(n.Fragment,{children:[n.jsx(bs,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"停用"})]})})]})})})]},W.id))})]})})}),d&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(Hn,{className:"w-5 h-5 text-sky-400"}),"开设新账号"]}),n.jsxs("form",{onSubmit:ve,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教师真实姓名"}),n.jsx("input",{type:"text",value:S,onChange:W=>k(W.target.value),placeholder:"如 王老师 / 李明",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsx("input",{type:"text",value:m,onChange:W=>y(W.target.value),placeholder:"如 teacher_wang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录初始密码"}),n.jsx("input",{type:"password",value:p,onChange:W=>j(W.target.value),placeholder:"••••••••",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"角色权限"}),n.jsxs("select",{value:$,onChange:W=>D(W.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",children:[n.jsx("option",{value:"Teacher",children:"普通科任教师 (仅呼叫与回执)"}),n.jsx("option",{value:"SchoolAdmin",children:"学校管理员 (可管理班级与账号)"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:Q,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:Q?"开设计算中...":"确认开通"})]})]})]})}),P&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-sky-500/10 border border-sky-500/20 text-sky-400",children:n.jsx(ut,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"重置教师密码"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["教师: ",P.fullName," (",P.username,")"]})]})]}),n.jsxs("form",{onSubmit:Pe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"请输入新密码 (不少于 8 位)"}),n.jsx("input",{type:"text",autoFocus:!0,required:!0,minLength:8,value:K,onChange:W=>Y(W.target.value),placeholder:"例如: Teacher@2026",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm font-mono focus:ring-2 focus:ring-sky-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"密码重置后请告知教师,教师下一次在网页端或移动端即可使用此新密码登录。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",disabled:ne,onClick:()=>J(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:ne||K.length<8,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50 flex items-center gap-1.5",children:ne?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在重置..."})]}):n.jsx("span",{children:"确认重置密码"})})]})]})]})}),Z&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:`p-2.5 rounded-xl border ${Z.isLocked?"bg-emerald-500/10 border-emerald-500/20 text-emerald-400":"bg-rose-500/10 border-rose-500/20 text-rose-400"}`,children:Z.isLocked?n.jsx(ea,{className:"w-5 h-5"}):n.jsx(bs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:Z.isLocked?"恢复启用教师账号?":"停用该教师账号?"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["教师: ",Z.fullName," (",Z.username,")"]})]})]}),n.jsx("p",{className:"text-xs text-slate-300 leading-relaxed mb-5",children:Z.isLocked?"恢复启用后,该教师可重新登录控制台并向关联班级发送上课通知。":"停用后,该教师将无法登录网页控制台与 Android 移动端,且无法继续发送呼叫通知。教师的历史发送记录与回执将完整保留。"}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:xe,onClick:()=>ge(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"button",disabled:xe,onClick:_e,className:`px-4 py-2 rounded-xl text-white text-xs font-semibold shadow-lg transition-all flex items-center gap-1.5 disabled:opacity-50 ${Z.isLocked?"bg-emerald-600 hover:bg-emerald-500 shadow-emerald-600/25":"bg-rose-600 hover:bg-rose-500 shadow-rose-600/25"}`,children:xe?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"处理中..."})]}):n.jsx("span",{children:Z.isLocked?"确认恢复启用":"确认停用账号"})})]})]})})]})},px=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(null),[p,j]=g.useState(null),[S,k]=g.useState(!1),[$,D]=g.useState(""),[Q,H]=g.useState(!1),[P,J]=g.useState(null),K=async()=>{f(!0),y(null);try{const[U,Z]=await Promise.all([oe.getSchoolCodes(),oe.getSchoolClasses()]);l(U),u(Z),Z.length>0&&!$&&D(Z[0].id)}catch(U){y((U==null?void 0:U.message)||"加载本校激活码数据失败")}finally{f(!1)}};g.useEffect(()=>{K()},[]);const Y=U=>{navigator.clipboard.writeText(U),j(U),setTimeout(()=>j(null),2e3)},ne=async U=>{if(U.preventDefault(),!!$){H(!0),J(null);try{await oe.generateSchoolCode($),k(!1),K()}catch(Z){J((Z==null?void 0:Z.message)||"生成激活码失败")}finally{H(!1)}}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教室终端激活码"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理本校教室电脑安装所需的 8 位一次性硬件绑定激活码"})]}),n.jsxs("button",{onClick:()=>{J(null),k(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"生成新激活码"]})]}),m&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:K,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-400",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin text-sky-400"}),n.jsx("span",{children:"正在加载本校激活码..."})]})})}):a.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-500",children:"本校暂无生成的激活码,请点击右上角生成"})}):a.map(U=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4 font-mono font-bold text-sky-400 text-base flex items-center gap-2",children:[n.jsx("span",{children:U.code}),n.jsx("button",{onClick:()=>Y(U.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:p===U.code?n.jsx(Fl,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(Yo,{className:"w-3.5 h-3.5"})})]}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:U.classroomName||U.classroomId}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:U.classroomId})]}),n.jsx("td",{className:"py-4 px-4",children:U.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:[n.jsx(Pt,{className:"w-3.5 h-3.5 text-slate-500"}),"已激活使用"]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"待激活 (可用)"]})}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:U.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:U.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Kn,{className:"w-3.5 h-3.5 text-slate-500"}),n.jsxs("span",{children:[new Date(U.expiresAt).toLocaleDateString()," 到期"]})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("button",{onClick:()=>Y(U.code),className:"text-xs text-slate-400 hover:text-white underline underline-offset-4",children:p===U.code?"已复制":"复制用于安装"})})]},U.code))})]})})}),S&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(ut,{className:"w-5 h-5 text-sky-400"}),"生成本校班级设备激活码"]}),P&&n.jsx("div",{className:"mb-4 p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs",children:P}),n.jsxs("form",{onSubmit:ne,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),o.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-2 bg-amber-500/10 rounded-lg border border-amber-500/30",children:"本校暂无班级,请先前往“班级管理”创建班级。"}):n.jsx("select",{value:$,onChange:U=>D(U.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0,children:o.map(U=>n.jsxs("option",{value:U.id,children:[U.displayName," (",U.id,")"]},U.id))})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>k(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:Q||o.length===0,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:Q?"生成中...":"立即生成"})]})]})]})})]})};function Ed(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const xx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(""),[d,f]=g.useState(""),[m,y]=g.useState(""),[p,j]=g.useState(!0),[S,k]=g.useState(!0),[$,D]=g.useState(!1),[Q,H]=g.useState(15),[P,J]=g.useState(!1),[K,Y]=g.useState([]),[ne,U]=g.useState(!0),[Z,ge]=g.useState(null),[xe,R]=g.useState(null),[se,Ce]=g.useState(null),[je,O]=g.useState(!1),[ve,Pe]=g.useState(null),[_e,W]=g.useState(1),_=async(F,he,ot,Se)=>{R({notificationId:F,deviceId:he,className:ot,capturedAt:Se}),O(!0),Pe(null),Ce(null),W(1);try{const We=await oe.getVisualReceiptBlob(F,he),$e=URL.createObjectURL(We);Ce($e)}catch(We){Pe((We==null?void 0:We.message)||"获取视觉核验图像失败")}finally{O(!1)}},V=()=>{se&&URL.revokeObjectURL(se),Ce(null),R(null),Pe(null),W(1)},[E,N]=g.useState(null),[L,ae]=g.useState(!1),ue=async()=>{if(E){ae(!0);try{await oe.cancelNotification(E.id),Y(F=>F.map(he=>he.id===E.id?{...he,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:he)),N(null)}catch(F){alert(F.message||"提前关闭通知失败")}finally{ae(!1)}}},fe=na.useRef(a);g.useEffect(()=>{fe.current=a},[a]);const we=["请带各科作业本到办公室","马上到操场集合整队","课代表请到教研室领试卷","午休时间请教室内保持安静","请班长负责维护自习纪律","放学后值日生留下来打扫卫生"],Ee=async()=>{U(!0),ge(null);try{const F=await oe.getTeacherClasses();l(F),F.length>0&&!o&&u(F[0].id);const he=await oe.getTeacherHistory(void 0,20);Y(he.map(ot=>({...ot,status:Ed(ot.status)})))}catch(F){ge((F==null?void 0:F.message)||"加载班级或历史记录失败")}finally{U(!1)}};g.useEffect(()=>{Ee()},[]),g.useEffect(()=>{const F=Ot.onAckReceiptReceived(Se=>{Y(We=>We.map($e=>{if($e.id===Se.messageId){const Jn=Ed(Se.status);return{...$e,status:Jn,confirmedAt:Se.timestamp||$e.confirmedAt||new Date().toISOString()}}return $e}))}),he=Ot.onNewNotificationBroadcast(Se=>{Y(We=>{if(We.some(nn=>nn.id===Se.id))return We;const $e=fe.current.find(nn=>nn.id===Se.classId);return[{id:Se.id,tenantId:Se.tenantId,classId:Se.classId,className:($e==null?void 0:$e.displayName)||Se.classId,senderName:"教师",message:Se.message,priority:Se.type===2?"Urgent":"Normal",createdAt:Se.createdAt,status:"Sent"},...We]})}),ot=Ot.onNotificationCancelled(Se=>{Y(We=>We.map($e=>$e.id===Se?{...$e,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:$e))});return()=>{F(),he(),ot()}},[]);const ke=async F=>{if(F.preventDefault(),!(!o||!m.trim())){J(!0);try{const he=a.find($e=>$e.id===o),ot=d.trim()?`🔔 老师呼叫: ${d.trim()}`:`📢 ${(he==null?void 0:he.displayName)||"班级"}通知`,Se=await oe.sendNotification({classId:o,studentName:d.trim()||void 0,title:ot,message:m.trim(),type:$?2:0,voice:p,shake:S,durationSeconds:Q}),We=m.trim();y(""),f(""),Se!=null&&Se.messageId&&Y($e=>$e.some(nn=>nn.id===Se.messageId)?$e:[{id:Se.messageId,tenantId:"",classId:o,className:(he==null?void 0:he.displayName)||o,senderName:"教师",message:We,priority:$?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...$e])}catch(he){alert(he.message||"呼叫发送失败")}finally{J(!1)}}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"教师呼叫工作台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"向指定教室大屏下发即时点呼与通知,支持语音朗读(TTS)与学生回执确认"})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:n.jsx(ha,{})})]}),Z&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:Z})]}),n.jsxs("button",{onClick:Ee,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[n.jsx("div",{className:"lg:col-span-7 space-y-5",children:n.jsx("div",{className:"glass-panel p-6 border-slate-800",children:n.jsxs("form",{onSubmit:ke,className:"space-y-5",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-2",children:"目标授课班级"}),a.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/30",children:"未查询到可用班级,请联系学校管理员添加班级"}):n.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:a.map(F=>{const he=o===F.id;return n.jsxs("button",{type:"button",onClick:()=>u(F.id),className:`p-3 rounded-xl border text-left transition-all relative ${he?"bg-indigo-600/20 border-indigo-500/50 text-white shadow-lg shadow-indigo-600/10":"bg-slate-900/60 border-slate-800 text-slate-400 hover:text-slate-200 hover:bg-slate-800/50"}`,children:[n.jsx("div",{className:"font-semibold text-sm truncate",children:F.displayName}),n.jsx("div",{className:"text-[11px] text-slate-500 truncate mt-0.5",children:F.roomNumber||F.id}),he&&n.jsx(Fl,{className:"w-4 h-4 text-indigo-400 absolute top-3 right-3"})]},F.id)})})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Xd,{className:"w-3.5 h-3.5 text-slate-400"}),"指定学生姓名(可选,点呼场景使用)"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"留空则为全班广播"})]}),n.jsx("input",{type:"text",value:d,onChange:F=>f(F.target.value),placeholder:"如:张三、李四(支持单人或多人)",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsx("span",{children:"呼叫通知内容"}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[m.length,"/200 字"]})]}),n.jsx("textarea",{rows:4,value:m,onChange:F=>y(F.target.value.slice(0,200)),placeholder:"请输入需要大屏弹窗展示并朗读的内容...",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600",required:!0})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[n.jsx(Jd,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷点呼短语推荐"]}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:we.map((F,he)=>n.jsx("button",{type:"button",onClick:()=>y(F),className:"px-2.5 py-1 rounded-lg bg-slate-900 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-colors",children:F},he))})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80 grid grid-cols-1 sm:grid-cols-3 gap-3",children:[n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:p,onChange:F=>j(F.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[n.jsx(Gd,{className:"w-3.5 h-3.5 text-indigo-400"}),"TTS 语音朗读"]}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"教室音响朗读2遍"})]})]}),n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:S,onChange:F=>k(F.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsx("span",{className:"font-medium text-slate-200 block",children:"窗口抖动震颤"}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"强制吸引注意力"})]})]}),n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:$,onChange:F=>D(F.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600 focus:ring-rose-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[n.jsx(ks,{className:"w-3.5 h-3.5 text-rose-400"}),"紧急通知"]}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"红色全屏强提醒"})]})]})]}),n.jsx("button",{type:"submit",disabled:P||!o||!m.trim(),className:"w-full py-3.5 rounded-xl bg-gradient-to-r from-indigo-600 to-violet-600 hover:from-indigo-500 hover:to-violet-500 text-white font-semibold text-sm shadow-lg shadow-indigo-600/25 flex items-center justify-center gap-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:P?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在秒级投递至教室大屏..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"立即下发到教室大屏"})]})})]})})}),n.jsx("div",{className:"lg:col-span-5 space-y-4",children:n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(br,{className:"w-4 h-4 text-emerald-400"}),"实时回执动态 (ACK)"]}),n.jsx("span",{className:"text-xs text-slate-500",children:"SignalR 实时推送"})]}),n.jsx("div",{className:"space-y-3 max-h-[580px] overflow-y-auto pr-1",children:ne&&K.length===0?n.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-indigo-400"}),n.jsx("span",{children:"正在加载历史动态..."})]}):K.length===0?n.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:"暂无发送记录,在左侧选择班级即可下发第一条呼叫"}):K.map(F=>n.jsxs("div",{className:"glass-card p-4 space-y-2.5",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"font-semibold text-sm text-white",children:F.className}),n.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(F.createdAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-xs text-slate-300 bg-slate-950/50 p-2.5 rounded-lg border border-slate-800/80",children:F.message}),n.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between text-xs",children:[n.jsx("span",{className:"text-slate-400 text-[11px]",children:"回执阶段:"}),F.status==="Cancelled"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-slate-400 font-medium",children:[n.jsx(Go,{className:"w-3.5 h-3.5 text-slate-400"}),n.jsx("span",{children:"已提前关闭撤回"})]}),F.status==="Acknowledged"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(Pt,{className:"w-4 h-4 text-emerald-400"}),n.jsxs("span",{children:["学生已点击确认 (",F.confirmedAt?new Date(F.confirmedAt).toLocaleTimeString():"刚刚",")"]})]}),F.status==="Delivered"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-sky-400 font-medium",children:[n.jsx(_r,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"教室大屏已接收"})]}),F.status==="Sent"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-amber-400",children:[n.jsx(Kn,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"云端投递中..."})]}),F.status==="Timeout"&&n.jsx("div",{className:"text-slate-400 text-xs",children:n.jsx("span",{children:"超时已自动关闭"})}),F.status==="Failed"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-rose-400 font-medium",children:[n.jsx(ks,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"投递失败"})]})]}),(F.status==="Sent"||F.status==="Delivered")&&!F.isCancelled&&n.jsx("div",{className:"flex items-center justify-end pt-1",children:n.jsxs("button",{type:"button",onClick:()=>N(F),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded bg-rose-500/10 hover:bg-rose-500/20 text-rose-300 text-[11px] font-medium transition-colors border border-rose-500/30",title:"在大屏端停止TTS并关闭弹窗",children:[n.jsx(kr,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"提前关闭 / 撤回"})]})}),F.receipts&&F.receipts.length>0&&(()=>{const he=F.receipts.find(Se=>Se.visualReceiptState==="Available"),ot=F.receipts.find(Se=>Se.visualReceiptState==="Expired");return he?n.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-slate-800/40 text-xs",children:[n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(_s,{className:"w-4 h-4 text-emerald-400"}),n.jsx("span",{children:"视觉核验:已完成"})]}),n.jsxs("button",{type:"button",onClick:()=>_(F.id,he.deviceId,F.className,he.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-indigo-600/30 hover:bg-indigo-600/50 text-indigo-300 text-[11px] font-medium transition-colors border border-indigo-500/30",children:[n.jsx(m0,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"查看大屏实际展示"})]})]}):ot?n.jsx("div",{className:"flex items-center justify-between pt-2 border-t border-slate-800/40 text-[11px] text-slate-500",children:n.jsxs("div",{className:"inline-flex items-center gap-1",children:[n.jsx(_s,{className:"w-3.5 h-3.5 text-slate-500"}),n.jsx("span",{children:"视觉核验:已按 24h 策略自动销毁"})]})}):null})()]},F.id))})]})})]}),xe&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel w-full max-w-3xl bg-slate-900 border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[n.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(_s,{className:"w-5 h-5 text-emerald-400"}),n.jsxs("h3",{className:"font-semibold text-white text-base",children:[xe.className," · 通知视觉核验"]})]}),n.jsx("button",{type:"button",onClick:V,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(kr,{className:"w-5 h-5"})})]}),n.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[je&&n.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[n.jsx(kn,{className:"w-8 h-8 animate-spin text-indigo-400"}),n.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),ve&&n.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[n.jsx(Sn,{className:"w-8 h-8 text-rose-400"}),n.jsx("span",{children:ve})]}),se&&!je&&n.jsxs("div",{className:"flex flex-col items-center w-full",children:[n.jsx("div",{className:"overflow-auto max-h-[60vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:n.jsx("img",{src:se,alt:"教室大屏实际展示画面",style:{transform:`scale(${_e})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[55vh]"})}),n.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[n.jsx("button",{type:"button",onClick:()=>W(F=>Math.max(.5,+(F-.25).toFixed(2))),disabled:_e<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:n.jsx(nx,{className:"w-4 h-4"})}),n.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(_e*100),"%"]}),n.jsx("button",{type:"button",onClick:()=>W(F=>Math.min(3,+(F+.25).toFixed(2))),disabled:_e>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:n.jsx(ex,{className:"w-4 h-4"})}),n.jsx("button",{type:"button",onClick:()=>W(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),n.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[n.jsx("span",{children:xe.capturedAt?`捕获时间: ${new Date(xe.capturedAt).toLocaleString()}`:""}),n.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),E&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-400",children:n.jsx(ks,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"提前关闭并撤回通知?"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["目标班级: ",E.className]})]})]}),n.jsxs("div",{className:"bg-slate-950/70 p-3.5 rounded-xl border border-slate-800/80 mb-4 text-xs text-slate-300",children:[n.jsx("div",{className:"text-slate-400 text-[11px] mb-1",children:"通知内容:"}),n.jsx("p",{className:"line-clamp-3",children:E.message})]}),n.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-[11px] text-amber-300/90 mb-5 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏发出关闭指令,大屏将",n.jsx("strong",{children:"立即停止 TTS 语音播报"}),"并",n.jsx("strong",{children:"收起弹窗窗口"}),"。"]}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:L,onClick:()=>N(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"button",disabled:L,onClick:ue,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-lg shadow-rose-600/25 transition-all flex items-center gap-1.5 disabled:opacity-50",children:L?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在撤回..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Go,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},gx=()=>{const{user:a,isLoading:l}=Sr();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?n.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[n.jsx(sx,{}),n.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:n.jsx(Bd,{})})]}):n.jsx(Vt,{to:"/login",replace:!0})},vx=()=>{const{user:a,isLoading:l}=Sr();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?n.jsx(Vt,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?n.jsx(Vt,{to:"/school-admin",replace:!0}):n.jsx(Vt,{to:"/teacher",replace:!0}):n.jsx(Vt,{to:"/login",replace:!0})},yx=()=>n.jsxs(Zm,{children:[n.jsx(Qe,{path:"/login",element:n.jsx(rx,{})}),n.jsx(Qe,{path:"/",element:n.jsx(vx,{})}),n.jsxs(Qe,{element:n.jsx(gx,{}),children:[n.jsxs(Qe,{element:n.jsx(Qo,{allowedRoles:["SuperAdmin"]}),children:[n.jsx(Qe,{path:"/admin",element:n.jsx(lx,{})}),n.jsx(Qe,{path:"/admin/tenants",element:n.jsx(cx,{})}),n.jsx(Qe,{path:"/admin/users",element:n.jsx(ux,{})}),n.jsx(Qe,{path:"/admin/devices",element:n.jsx(ix,{})}),n.jsx(Qe,{path:"/admin/broadcast",element:n.jsx(dx,{})}),n.jsx(Qe,{path:"/admin/codes",element:n.jsx(ox,{})}),n.jsx(Qe,{path:"/admin/history",element:n.jsx(ax,{})})]}),n.jsxs(Qe,{element:n.jsx(Qo,{allowedRoles:["SchoolAdmin"]}),children:[n.jsx(Qe,{path:"/school-admin",element:n.jsx(hx,{})}),n.jsx(Qe,{path:"/school-admin/classes",element:n.jsx(fx,{})}),n.jsx(Qe,{path:"/school-admin/teachers",element:n.jsx(mx,{})}),n.jsx(Qe,{path:"/school-admin/codes",element:n.jsx(px,{})})]}),n.jsx(Qe,{element:n.jsx(Qo,{allowedRoles:["Teacher"]}),children:n.jsx(Qe,{path:"/teacher",element:n.jsx(xx,{})})})]}),n.jsx(Qe,{path:"*",element:n.jsx(Vt,{to:"/",replace:!0})})]}),wx=()=>n.jsx(Gp,{children:n.jsx(op,{children:n.jsx(yx,{})})});om.createRoot(document.getElementById("root")).render(n.jsx(na.StrictMode,{children:n.jsx(wx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-BTx44Hl3.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3{left:.75rem}.left-3\.5{left:.875rem}.right-0{right:0}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-2\.5{top:.625rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-full{height:100%}.max-h-\[52vh\]{max-height:52vh}.max-h-\[58vh\]{max-height:58vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[calc\(100vh-250px\)\]{max-height:calc(100vh - 250px)}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.divide-slate-800\/60>:not([hidden])~:not([hidden]){border-color:#1e293b99}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-blue-500\/20{border-color:#3b82f633}.border-blue-500\/40{border-color:#3b82f666}.border-blue-500\/60{border-color:#3b82f699}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/50{border-color:#33415580}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/70{border-color:#1e293bb3}.border-slate-800\/80{border-color:#1e293bcc}.border-transparent{border-color:transparent}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-blue-600\/20{background-color:#2563eb33}.bg-blue-950\/60{background-color:#17255499}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/20{background-color:#4f46e533}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-800\/60{background-color:#1e293b99}.bg-slate-800\/80{background-color:#1e293bcc}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/80{color:#fbbf24cc}.text-amber-400\/90{color:#fbbf24e6}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/90{color:#34d399e6}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-600\/20{--tw-shadow-color: rgb(37 99 235 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/20{--tw-shadow-color: rgb(225 29 72 / .2);--tw-shadow: var(--tw-shadow-colored)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-blue-500\/40:hover{border-color:#3b82f666}.hover\:border-rose-500\/30:hover{border-color:#f43f5e4d}.hover\:border-rose-500\/40:hover{border-color:#f43f5e66}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:border-slate-700\/60:hover{border-color:#33415599}.hover\:border-slate-700\/80:hover{border-color:#334155cc}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600\/20:hover{background-color:#2563eb33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-700\/80:hover{background-color:#334155cc}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500\/50:focus{border-color:#6366f180}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/30:focus{--tw-ring-color: rgb(99 102 241 / .3)}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:w-64{width:16rem}.sm\:w-72{width:18rem}.sm\:max-w-none{max-width:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-C6huwYfG.js ================================================================================ var sm=Object.defineProperty;var rm=(a,l,i)=>l in a?sm(a,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[l]=i;var wt=(a,l,i)=>rm(a,typeof l!="symbol"?l+"":l,i);function lm(a,l){for(var i=0;iu[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function i(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=i(d);fetch(d.href,f)}})();function $d(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ta={exports:{}},Lr={},na={exports:{}},je={};/** * @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 ud;function om(){if(ud)return je;ud=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.iterator;function $(g){return g===null||typeof g!="object"?null:(g=k&&g[k]||g["@@iterator"],typeof g=="function"?g:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},W=Object.assign,U={};function I(g,P,se){this.props=g,this.context=P,this.refs=U,this.updater=se||B}I.prototype.isReactComponent={},I.prototype.setState=function(g,P){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,P,"setState")},I.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function L(){}L.prototype=I.prototype;function Y(g,P,se){this.props=g,this.context=P,this.refs=U,this.updater=se||B}var Q=Y.prototype=new L;Q.constructor=Y,W(Q,I.prototype),Q.isPureReactComponent=!0;var J=Array.isArray,oe=Object.prototype.hasOwnProperty,ie={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function me(g,P,se){var M,ae={},ye=null,Ie=null;if(P!=null)for(M in P.ref!==void 0&&(Ie=P.ref),P.key!==void 0&&(ye=""+P.key),P)oe.call(P,M)&&!fe.hasOwnProperty(M)&&(ae[M]=P[M]);var _e=arguments.length-2;if(_e===1)ae.children=se;else if(1<_e){for(var Re=Array(_e),et=0;et<_e;et++)Re[et]=arguments[et+2];ae.children=Re}if(g&&g.defaultProps)for(M in _e=g.defaultProps,_e)ae[M]===void 0&&(ae[M]=_e[M]);return{$$typeof:a,type:g,key:ye,ref:Ie,props:ae,_owner:ie.current}}function X(g,P){return{$$typeof:a,type:g.type,key:P,ref:g.ref,props:g.props,_owner:g._owner}}function he(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function K(g){var P={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(se){return P[se]})}var pe=/\/+/g;function V(g,P){return typeof g=="object"&&g!==null&&g.key!=null?K(""+g.key):P.toString(36)}function re(g,P,se,M,ae){var ye=typeof g;(ye==="undefined"||ye==="boolean")&&(g=null);var Ie=!1;if(g===null)Ie=!0;else switch(ye){case"string":case"number":Ie=!0;break;case"object":switch(g.$$typeof){case a:case l:Ie=!0}}if(Ie)return Ie=g,ae=ae(Ie),g=M===""?"."+V(Ie,0):M,J(ae)?(se="",g!=null&&(se=g.replace(pe,"$&/")+"/"),re(ae,P,se,"",function(et){return et})):ae!=null&&(he(ae)&&(ae=X(ae,se+(!ae.key||Ie&&Ie.key===ae.key?"":(""+ae.key).replace(pe,"$&/")+"/")+g)),P.push(ae)),1;if(Ie=0,M=M===""?".":M+":",J(g))for(var _e=0;_e>>1,P=_[g];if(0>>1;gd(ae,E))yed(Ie,ae)?(_[g]=Ie,_[ye]=E,g=ye):(_[g]=ae,_[M]=E,g=M);else if(yed(Ie,E))_[g]=Ie,_[ye]=E,g=ye;else break e}}return q}function d(_,q){var E=_.sortIndex-q.sortIndex;return E!==0?E:_.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var p=[],j=[],S=1,k=null,$=3,B=!1,W=!1,U=!1,I=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Q(_){for(var q=i(j);q!==null;){if(q.callback===null)u(j);else if(q.startTime<=_)u(j),q.sortIndex=q.expirationTime,l(p,q);else break;q=i(j)}}function J(_){if(U=!1,Q(_),!W)if(i(p)!==null)W=!0,z(oe);else{var q=i(j);q!==null&&de(J,q.startTime-_)}}function oe(_,q){W=!1,U&&(U=!1,L(me),me=-1),B=!0;var E=$;try{for(Q(q),k=i(p);k!==null&&(!(k.expirationTime>q)||_&&!K());){var g=k.callback;if(typeof g=="function"){k.callback=null,$=k.priorityLevel;var P=g(k.expirationTime<=q);q=a.unstable_now(),typeof P=="function"?k.callback=P:k===i(p)&&u(p),Q(q)}else u(p);k=i(p)}if(k!==null)var se=!0;else{var M=i(j);M!==null&&de(J,M.startTime-q),se=!1}return se}finally{k=null,$=E,B=!1}}var ie=!1,fe=null,me=-1,X=5,he=-1;function K(){return!(a.unstable_now()-he_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return $},a.unstable_getFirstCallbackNode=function(){return i(p)},a.unstable_next=function(_){switch($){case 1:case 2:case 3:var q=3;break;default:q=$}var E=$;$=q;try{return _()}finally{$=E}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(_,q){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var E=$;$=_;try{return q()}finally{$=E}},a.unstable_scheduleCallback=function(_,q,E){var g=a.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0g?(_.sortIndex=E,l(j,_),i(p)===null&&_===i(j)&&(U?(L(me),me=-1):U=!0,de(J,E-g))):(_.sortIndex=P,l(p,_),W||B||(W=!0,z(oe))),_},a.unstable_shouldYield=K,a.unstable_wrapCallback=function(_){var q=$;return function(){var E=$;$=q;try{return _.apply(this,arguments)}finally{$=E}}}})(la)),la}var pd;function dm(){return pd||(pd=1,ra.exports=um()),ra.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 xd;function hm(){if(xd)return bt;xd=1;var a=ga(),l=dm();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,S={},k={};function $(e){return p.call(k,e)?!0:p.call(S,e)?!1:j.test(e)?k[e]=!0:(S[e]=!0,!1)}function B(e,t,s,r){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function W(e,t,s,r){if(t===null||typeof t>"u"||B(e,t,s,r))return!0;if(r)return!1;if(s!==null)switch(s.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 U(e,t,s,r,o,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new U(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new U(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new U(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new U(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){I[e]=new U(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new U(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new U(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new U(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new U(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function Y(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(L,Y);I[t]=new U(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(L,Y);I[t]=new U(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(L,Y);I[t]=new U(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new U(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new U(e,1,!1,e.toLowerCase(),null,!0,!0)});function Q(e,t,s,r){var o=I.hasOwnProperty(t)?I[t]:null;(o!==null?o.type!==0:r||!(2v||o[h]!==c[v]){var w=` `+o[h].replace(" at new "," at ");return e.displayName&&w.includes("")&&(w=w.replace("",e.displayName)),w}while(1<=h&&0<=v);break}}}finally{se=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?P(e):""}function ae(e){switch(e.tag){case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1),e;case 11:return e=M(e.type.render,!1),e;case 1:return e=M(e.type,!0),e;default:return""}}function ye(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 fe:return"Fragment";case ie:return"Portal";case X:return"Profiler";case me:return"StrictMode";case V:return"Suspense";case re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case K:return(e.displayName||"Context")+".Consumer";case he:return(e._context.displayName||"Context")+".Provider";case pe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ce:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function Ie(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 ye(t);case 8:return t===me?"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 _e(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function et(e){var t=Re(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gn(e){e._valueTracker||(e._valueTracker=et(e))}function Qs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),r="";return e&&(r=Re(e)?e.checked?"true":"false":e.value),e=r,e!==s?(t.setValue(e),!0):!1}function Hn(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 fs(e,t){var s=t.checked;return E({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function ms(e,t){var s=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;s=_e(t.value!=null?t.value:s),e._wrapperState={initialChecked:r,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wn(e,t){t=t.checked,t!=null&&Q(e,"checked",t,!1)}function en(e,t){Wn(e,t);var s=_e(t.value),r=t.type;if(s!=null)r==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vn(e,t.type,s):t.hasOwnProperty("defaultValue")&&vn(e,t.type,_e(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tn(e,t,s){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,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function vn(e,t,s){(t!=="number"||Hn(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var nn=Array.isArray;function sn(e,t,s,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vn(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var rn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},go=["Webkit","ms","Moz","O"];Object.keys(rn).forEach(function(e){go.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rn[t]=rn[e]})});function Xs(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||rn.hasOwnProperty(e)&&rn[e]?(""+t).trim():t+"px"}function D(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var r=s.indexOf("--")===0,o=Xs(s,t[s],r);s==="float"&&(s="cssFloat"),r?e.setProperty(s,o):e[s]=o}}var ge=E({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Be(e,t){if(t){if(ge[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function Ee(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var He=null;function Qe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ft=null,mt=null,Nt=null;function Ca(e){if(e=vr(e)){if(typeof ft!="function")throw Error(i(280));var t=e.stateNode;t&&(t=vl(t),ft(e.stateNode,e.type,t))}}function Ea(e){mt?Nt?Nt.push(e):Nt=[e]:mt=e}function Ta(){if(mt){var e=mt,t=Nt;if(Nt=mt=null,Ca(e),t)for(e=0;e>>=0,e===0?32:31-(vh(e)/yh|0)|0}var el=64,tl=4194304;function er(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,t){var s=e.pendingLanes;if(s===0)return 0;var r=0,o=e.suspendedLanes,c=e.pingedLanes,h=s&268435455;if(h!==0){var v=h&~o;v!==0?r=er(v):(c&=h,c!==0&&(r=er(c)))}else h=s&~o,h!==0?r=er(h):c!==0&&(r=er(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,c=t&-t,o>=c||o===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0s;s++)t.push(e);return t}function tr(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ot(t),e[t]=s}function Nh(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=cr),sc=" ",rc=!1;function lc(e,t){switch(e){case"keyup":return Gh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function Zh(e,t){switch(e){case"compositionend":return oc(t);case"keypress":return t.which!==32?null:(rc=!0,sc);case"textInput":return e=t.data,e===sc&&rc?null:e;default:return null}}function ef(e,t){if(ys)return e==="compositionend"||!$o&&lc(e,t)?(e=Ga(),il=To=Nn=null,ys=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=fc(s)}}function pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xc(){for(var e=window,t=Hn();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Hn(e.document)}return t}function Oo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uf(e){var t=xc(),s=e.focusedElem,r=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&pc(s.ownerDocument.documentElement,s)){if(r!==null&&Oo(s)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=s.textContent.length,c=Math.min(r.start,o);r=r.end===void 0?c:Math.min(r.end,o),!e.extend&&c>r&&(o=r,r=c,c=o),o=mc(s,c);var h=mc(s,r);o&&h&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,ws=null,zo=null,fr=null,Uo=!1;function gc(e,t,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Uo||ws==null||ws!==Hn(r)||(r=ws,"selectionStart"in r&&Oo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),fr&&hr(fr,r)||(fr=r,r=pl(zo,"onSelect"),0Ss||(e.current=Yo[Ss],Yo[Ss]=null,Ss--)}function Le(e,t){Ss++,Yo[Ss]=e.current,e.current=t}var Cn={},ot=kn(Cn),pt=kn(!1),Kn=Cn;function ks(e,t){var s=e.type.contextTypes;if(!s)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},c;for(c in s)o[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function xt(e){return e=e.childContextTypes,e!=null}function yl(){$e(pt),$e(ot)}function Rc(e,t,s){if(ot.current!==Cn)throw Error(i(168));Le(ot,t),Le(pt,s)}function Lc(e,t,s){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return s;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(i(108,Ie(e)||"Unknown",o));return E({},s,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Kn=ot.current,Le(ot,e),Le(pt,pt.current),!0}function Dc(e,t,s){var r=e.stateNode;if(!r)throw Error(i(169));s?(e=Lc(e,t,Kn),r.__reactInternalMemoizedMergedChildContext=e,$e(pt),$e(ot),Le(ot,e)):$e(pt),Le(pt,s)}var on=null,bl=!1,Zo=!1;function $c(e){on===null?on=[e]:on.push(e)}function jf(e){bl=!0,$c(e)}function En(){if(!Zo&&on!==null){Zo=!0;var e=0,t=Te;try{var s=on;for(Te=1;e>=h,o-=h,an=1<<32-Ot(t)+o|s<xe?(st=ue,ue=null):st=ue.sibling;var ke=A(N,ue,C[xe],H);if(ke===null){ue===null&&(ue=st);break}e&&ue&&ke.alternate===null&&t(N,ue),b=c(ke,b,xe),ce===null?ne=ke:ce.sibling=ke,ce=ke,ue=st}if(xe===C.length)return s(N,ue),Me&&Xn(N,xe),ne;if(ue===null){for(;xexe?(st=ue,ue=null):st=ue.sibling;var An=A(N,ue,ke.value,H);if(An===null){ue===null&&(ue=st);break}e&&ue&&An.alternate===null&&t(N,ue),b=c(An,b,xe),ce===null?ne=An:ce.sibling=An,ce=An,ue=st}if(ke.done)return s(N,ue),Me&&Xn(N,xe),ne;if(ue===null){for(;!ke.done;xe++,ke=C.next())ke=F(N,ke.value,H),ke!==null&&(b=c(ke,b,xe),ce===null?ne=ke:ce.sibling=ke,ce=ke);return Me&&Xn(N,xe),ne}for(ue=r(N,ue);!ke.done;xe++,ke=C.next())ke=G(ue,N,xe,ke.value,H),ke!==null&&(e&&ke.alternate!==null&&ue.delete(ke.key===null?xe:ke.key),b=c(ke,b,xe),ce===null?ne=ke:ce.sibling=ke,ce=ke);return e&&ue.forEach(function(nm){return t(N,nm)}),Me&&Xn(N,xe),ne}function Ve(N,b,C,H){if(typeof C=="object"&&C!==null&&C.type===fe&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case oe:e:{for(var ne=C.key,ce=b;ce!==null;){if(ce.key===ne){if(ne=C.type,ne===fe){if(ce.tag===7){s(N,ce.sibling),b=o(ce,C.props.children),b.return=N,N=b;break e}}else if(ce.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===z&&Fc(ne)===ce.type){s(N,ce.sibling),b=o(ce,C.props),b.ref=yr(N,ce,C),b.return=N,N=b;break e}s(N,ce);break}else t(N,ce);ce=ce.sibling}C.type===fe?(b=rs(C.props.children,N.mode,H,C.key),b.return=N,N=b):(H=Jl(C.type,C.key,C.props,null,N.mode,H),H.ref=yr(N,b,C),H.return=N,N=H)}return h(N);case ie:e:{for(ce=C.key;b!==null;){if(b.key===ce)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){s(N,b.sibling),b=o(b,C.children||[]),b.return=N,N=b;break e}else{s(N,b);break}else t(N,b);b=b.sibling}b=Xi(C,N.mode,H),b.return=N,N=b}return h(N);case z:return ce=C._init,Ve(N,b,ce(C._payload),H)}if(nn(C))return ee(N,b,C,H);if(q(C))return te(N,b,C,H);Sl(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(s(N,b.sibling),b=o(b,C),b.return=N,N=b):(s(N,b),b=Ji(C,N.mode,H),b.return=N,N=b),h(N)):s(N,b)}return Ve}var Is=Bc(!0),Hc=Bc(!1),kl=kn(null),Cl=null,Ps=null,li=null;function oi(){li=Ps=Cl=null}function ii(e){var t=kl.current;$e(kl),e._currentValue=t}function ai(e,t,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===s)break;e=e.return}}function Rs(e,t){Cl=e,li=Ps=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(gt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(li!==e)if(e={context:e,memoizedValue:t,next:null},Ps===null){if(Cl===null)throw Error(i(308));Ps=e,Cl.dependencies={lanes:0,firstContext:e}}else Ps=Ps.next=e;return t}var Gn=null;function ci(e){Gn===null?Gn=[e]:Gn.push(e)}function Wc(e,t,s,r){var o=t.interleaved;return o===null?(s.next=s,ci(t)):(s.next=o.next,o.next=s),t.interleaved=s,un(e,r)}function un(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var Tn=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function In(e,t,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Se&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,un(e,s)}return o=r.interleaved,o===null?(t.next=t,ci(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,s)}function El(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,_o(e,s)}}function qc(e,t){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var o=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var h={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};c===null?o=c=h:c=c.next=h,s=s.next}while(s!==null);c===null?o=c=t:c=c.next=t}else o=c=t;s={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function Tl(e,t,s,r){var o=e.updateQueue;Tn=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,T=w.next;w.next=null,h===null?c=T:h.next=T,h=w;var O=e.alternate;O!==null&&(O=O.updateQueue,v=O.lastBaseUpdate,v!==h&&(v===null?O.firstBaseUpdate=T:v.next=T,O.lastBaseUpdate=w))}if(c!==null){var F=o.baseState;h=0,O=T=w=null,v=c;do{var A=v.lane,G=v.eventTime;if((r&A)===A){O!==null&&(O=O.next={eventTime:G,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var ee=e,te=v;switch(A=t,G=s,te.tag){case 1:if(ee=te.payload,typeof ee=="function"){F=ee.call(G,F,A);break e}F=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=te.payload,A=typeof ee=="function"?ee.call(G,F,A):ee,A==null)break e;F=E({},F,A);break e;case 2:Tn=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,A=o.effects,A===null?o.effects=[v]:A.push(v))}else G={eventTime:G,lane:A,tag:v.tag,payload:v.payload,callback:v.callback,next:null},O===null?(T=O=G,w=F):O=O.next=G,h|=A;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;A=v,v=A.next,A.next=null,o.lastBaseUpdate=A,o.shared.pending=null}}while(!0);if(O===null&&(w=F),o.baseState=w,o.firstBaseUpdate=T,o.lastBaseUpdate=O,t=o.shared.interleaved,t!==null){o=t;do h|=o.lane,o=o.next;while(o!==t)}else c===null&&(o.shared.lanes=0);es|=h,e.lanes=h,e.memoizedState=F}}function Qc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;ts?s:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{Te=s,pi.transition=r}}function hu(){return Lt().memoizedState}function kf(e,t,s){var r=Dn(e);if(s={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null},fu(e))mu(t,s);else if(s=Wc(e,t,s,r),s!==null){var o=ht();Wt(s,e,r,o),pu(s,t,r)}}function Cf(e,t,s){var r=Dn(e),o={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null};if(fu(e))mu(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,v=c(h,s);if(o.hasEagerState=!0,o.eagerState=v,zt(v,h)){var w=t.interleaved;w===null?(o.next=o,ci(t)):(o.next=w.next,w.next=o),t.interleaved=o;return}}catch{}finally{}s=Wc(e,t,o,r),s!==null&&(o=ht(),Wt(s,e,r,o),pu(s,t,r))}}function fu(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function mu(e,t){Nr=Rl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function pu(e,t,s){if((s&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,_o(e,s)}}var $l={readContext:Rt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Ef={readContext:Rt,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:ru,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,Ll(4194308,4,iu.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ll(4,2,e,t)},useMemo:function(e,t){var s=Jt();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var r=Jt();return t=s!==void 0?s(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kf.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:nu,useDebugValue:ji,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=nu(!1),t=e[0];return e=Sf.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var r=Oe,o=Jt();if(Me){if(s===void 0)throw Error(i(407));s=s()}else{if(s=t(),nt===null)throw Error(i(349));(Zn&30)!==0||Gc(r,t,s)}o.memoizedState=s;var c={value:s,getSnapshot:t};return o.queue=c,ru(Zc.bind(null,r,c,e),[e]),r.flags|=2048,kr(9,Yc.bind(null,r,c,s,t),void 0,null),s},useId:function(){var e=Jt(),t=nt.identifierPrefix;if(Me){var s=cn,r=an;s=(r&~(1<<32-Ot(r)-1)).toString(32)+s,t=":"+t+"R"+s,s=_r++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(s,{is:r.is}):(e=h.createElement(s),s==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,s),e[Qt]=t,e[gr]=r,$u(e,t,!1,!1),t.stateNode=e;e:{switch(h=Ee(s,r),s){case"dialog":De("cancel",e),De("close",e),o=r;break;case"iframe":case"object":case"embed":De("load",e),o=r;break;case"video":case"audio":for(o=0;oAs&&(t.flags|=128,r=!0,Cr(c,!1),t.lanes=4194304)}else{if(!r)if(e=Il(h),e!==null){if(t.flags|=128,r=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),Cr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Me)return at(t),null}else 2*We()-c.renderingStartTime>As&&s!==1073741824&&(t.flags|=128,r=!0,Cr(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(s=c.last,s!==null?s.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=We(),t.sibling=null,s=Ae.current,Le(Ae,r?s&1|2:s&1),t):(at(t),null);case 22:case 23:return qi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Ct&1073741824)!==0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function Mf(e,t){switch(ti(t),t.tag){case 1:return xt(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ls(),$e(pt),$e(ot),mi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return hi(t),null;case 13:if($e(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ts()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Ae),null;case 4:return Ls(),null;case 10:return ii(t.type._context),null;case 22:case 23:return qi(),null;case 24:return null;default:return null}}var zl=!1,ct=!1,Af=typeof WeakSet=="function"?WeakSet:Set,Z=null;function $s(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(r){Fe(e,t,r)}else s.current=null}function Di(e,t,s){try{s()}catch(r){Fe(e,t,r)}}var Ou=!1;function Of(e,t){if(qo=ll,e=xc(),Oo(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,v=-1,w=-1,T=0,O=0,F=e,A=null;t:for(;;){for(var G;F!==s||o!==0&&F.nodeType!==3||(v=h+o),F!==c||r!==0&&F.nodeType!==3||(w=h+r),F.nodeType===3&&(h+=F.nodeValue.length),(G=F.firstChild)!==null;)A=F,F=G;for(;;){if(F===e)break t;if(A===s&&++T===o&&(v=h),A===c&&++O===r&&(w=h),(G=F.nextSibling)!==null)break;F=A,A=F.parentNode}F=G}s=v===-1||w===-1?null:{start:v,end:w}}else s=null}s=s||{start:0,end:0}}else s=null;for(Qo={focusedElem:e,selectionRange:s},ll=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var te=ee.memoizedProps,Ve=ee.memoizedState,N=t.stateNode,b=N.getSnapshotBeforeUpdate(t.elementType===t.type?te:Ft(t.type,te),Ve);N.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(H){Fe(t,t.return,H)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return ee=Ou,Ou=!1,ee}function Er(e,t,s){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var c=o.destroy;o.destroy=void 0,c!==void 0&&Di(t,s,c)}o=o.next}while(o!==r)}}function Ul(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var r=s.create;s.destroy=r()}s=s.next}while(s!==t)}}function $i(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function zu(e){var t=e.alternate;t!==null&&(e.alternate=null,zu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[gr],delete t[Go],delete t[wf],delete t[bf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uu(e){return e.tag===5||e.tag===3||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Uu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mi(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=gl));else if(r!==4&&(e=e.child,e!==null))for(Mi(e,t,s),e=e.sibling;e!==null;)Mi(e,t,s),e=e.sibling}function Ai(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ai(e,t,s),e=e.sibling;e!==null;)Ai(e,t,s),e=e.sibling}var rt=null,Bt=!1;function Pn(e,t,s){for(s=s.child;s!==null;)Bu(e,t,s),s=s.sibling}function Bu(e,t,s){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Zr,s)}catch{}switch(s.tag){case 5:ct||$s(s,t);case 6:var r=rt,o=Bt;rt=null,Pn(e,t,s),rt=r,Bt=o,rt!==null&&(Bt?(e=rt,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):rt.removeChild(s.stateNode));break;case 18:rt!==null&&(Bt?(e=rt,s=s.stateNode,e.nodeType===8?Xo(e.parentNode,s):e.nodeType===1&&Xo(e,s),or(e)):Xo(rt,s.stateNode));break;case 4:r=rt,o=Bt,rt=s.stateNode.containerInfo,Bt=!0,Pn(e,t,s),rt=r,Bt=o;break;case 0:case 11:case 14:case 15:if(!ct&&(r=s.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var c=o,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&Di(s,t,h),o=o.next}while(o!==r)}Pn(e,t,s);break;case 1:if(!ct&&($s(s,t),r=s.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=s.memoizedProps,r.state=s.memoizedState,r.componentWillUnmount()}catch(v){Fe(s,t,v)}Pn(e,t,s);break;case 21:Pn(e,t,s);break;case 22:s.mode&1?(ct=(r=ct)||s.memoizedState!==null,Pn(e,t,s),ct=r):Pn(e,t,s);break;default:Pn(e,t,s)}}function Hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Af),t.forEach(function(r){var o=Qf.bind(null,e,r);s.has(r)||(s.add(r),r.then(o,o))})}}function Ht(e,t){var s=t.deletions;if(s!==null)for(var r=0;ro&&(o=h),r&=~c}if(r=o,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uf(r/1960))-r,10e?16:e,Ln===null)var r=!1;else{if(e=Ln,Ln=null,Vl=0,(Se&6)!==0)throw Error(i(331));var o=Se;for(Se|=4,Z=e.current;Z!==null;){var c=Z,h=c.child;if((Z.flags&16)!==0){var v=c.deletions;if(v!==null){for(var w=0;wWe()-Ui?ns(e,0):zi|=s),yt(e,t)}function nd(e,t){t===0&&((e.mode&1)===0?t=1:(t=tl,tl<<=1,(tl&130023424)===0&&(tl=4194304)));var s=ht();e=un(e,t),e!==null&&(tr(e,t,s),yt(e,s))}function qf(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),nd(e,s)}function Qf(e,t){var s=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(s=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}r!==null&&r.delete(t),nd(e,s)}var sd;sd=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)gt=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return gt=!1,Df(e,t,s);gt=(e.flags&131072)!==0}else gt=!1,Me&&(t.flags&1048576)!==0&&Mc(t,Nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ol(e,t),e=t.pendingProps;var o=ks(t,ot.current);Rs(t,s),o=gi(null,t,r,e,o,s);var c=vi();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(r)?(c=!0,wl(t)):c=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ui(t),o.updater=Ml,t.stateNode=o,o._reactInternals=t,_i(t,r,e,s),t=Ei(null,t,r,!0,c,s)):(t.tag=0,Me&&c&&ei(t),dt(null,t,o,s),t=t.child),t;case 16:r=t.elementType;e:{switch(Ol(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Jf(r),e=Ft(r,e),o){case 0:t=Ci(null,t,r,e,s);break e;case 1:t=Tu(null,t,r,e,s);break e;case 11:t=_u(null,t,r,e,s);break e;case 14:t=Su(null,t,r,Ft(r.type,e),s);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ci(e,t,r,o,s);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Tu(e,t,r,o,s);case 3:e:{if(Iu(t),e===null)throw Error(i(387));r=t.pendingProps,c=t.memoizedState,o=c.element,Vc(e,t),Tl(t,r,null,s);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){o=Ds(Error(i(423)),t),t=Pu(e,t,r,s,o);break e}else if(r!==o){o=Ds(Error(i(424)),t),t=Pu(e,t,r,s,o);break e}else for(kt=Sn(t.stateNode.containerInfo.firstChild),St=t,Me=!0,Ut=null,s=Hc(t,null,r,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ts(),r===o){t=hn(e,t,s);break e}dt(e,t,r,s)}t=t.child}return t;case 5:return Kc(t),e===null&&si(t),r=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,h=o.children,Ko(r,o)?h=null:c!==null&&Ko(r,c)&&(t.flags|=32),Eu(e,t),dt(e,t,h,s),t.child;case 6:return e===null&&si(t),null;case 13:return Ru(e,t,s);case 4:return di(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Is(t,null,r,s):dt(e,t,r,s),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),_u(e,t,r,o,s);case 7:return dt(e,t,t.pendingProps,s),t.child;case 8:return dt(e,t,t.pendingProps.children,s),t.child;case 12:return dt(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,c=t.memoizedProps,h=o.value,Le(kl,r._currentValue),r._currentValue=h,c!==null)if(zt(c.value,h)){if(c.children===o.children&&!pt.current){t=hn(e,t,s);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var v=c.dependencies;if(v!==null){h=c.child;for(var w=v.firstContext;w!==null;){if(w.context===r){if(c.tag===1){w=dn(-1,s&-s),w.tag=2;var T=c.updateQueue;if(T!==null){T=T.shared;var O=T.pending;O===null?w.next=w:(w.next=O.next,O.next=w),T.pending=w}}c.lanes|=s,w=c.alternate,w!==null&&(w.lanes|=s),ai(c.return,s,t),v.lanes|=s;break}w=w.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(i(341));h.lanes|=s,v=h.alternate,v!==null&&(v.lanes|=s),ai(h,s,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}dt(e,t,o.children,s),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Rs(t,s),o=Rt(o),r=r(o),t.flags|=1,dt(e,t,r,s),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),Su(e,t,r,o,s);case 15:return ku(e,t,t.type,t.pendingProps,s);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ol(e,t),t.tag=1,xt(r)?(e=!0,wl(t)):e=!1,Rs(t,s),gu(t,r,o),_i(t,r,o,s),Ei(null,t,r,!0,e,s);case 19:return Du(e,t,s);case 22:return Cu(e,t,s)}throw Error(i(156,t.tag))};function rd(e,t){return Aa(e,t)}function Kf(e,t,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $t(e,t,s,r){return new Kf(e,t,s,r)}function Ki(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jf(e){if(typeof e=="function")return Ki(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pe)return 11;if(e===Ce)return 14}return 2}function Mn(e,t){var s=e.alternate;return s===null?(s=$t(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function Jl(e,t,s,r,o,c){var h=2;if(r=e,typeof e=="function")Ki(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case fe:return rs(s.children,o,c,t);case me:h=8,o|=8;break;case X:return e=$t(12,s,t,o|2),e.elementType=X,e.lanes=c,e;case V:return e=$t(13,s,t,o),e.elementType=V,e.lanes=c,e;case re:return e=$t(19,s,t,o),e.elementType=re,e.lanes=c,e;case de:return Xl(s,o,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case he:h=10;break e;case K:h=9;break e;case pe:h=11;break e;case Ce:h=14;break e;case z:h=16,r=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=$t(h,s,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function rs(e,t,s,r){return e=$t(7,e,r,t),e.lanes=s,e}function Xl(e,t,s,r){return e=$t(22,e,r,t),e.elementType=de,e.lanes=s,e.stateNode={isHidden:!1},e}function Ji(e,t,s){return e=$t(6,e,null,t),e.lanes=s,e}function Xi(e,t,s){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xf(e,t,s,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=No(0),this.expirationTimes=No(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=No(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gi(e,t,s,r,o,c,h,v,w){return e=new Xf(e,t,s,v,w),t===1?(t=1,c===!0&&(t|=8)):t=0,c=$t(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ui(c),e}function Gf(e,t,s){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),sa.exports=hm(),sa.exports}var vd;function fm(){if(vd)return so;vd=1;var a=Ad();return so.createRoot=a.createRoot,so.hydrateRoot=a.hydrateRoot,so}var mm=fm();const pm=$d(mm);Ad();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Ar(){return Ar=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Od(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function gm(){return Math.random().toString(36).substr(2,8)}function wd(a,l){return{usr:a.state,key:a.key,idx:l}}function ua(a,l,i,u){return i===void 0&&(i=null),Ar({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?Ws(l):l,{state:i,key:l&&l.key||u||gm()})}function lo(a){let{pathname:l="/",search:i="",hash:u=""}=a;return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Ws(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substr(i),a=a.substr(0,i));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function vm(a,l,i,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,y=On.Pop,p=null,j=S();j==null&&(j=0,m.replaceState(Ar({},m.state,{idx:j}),""));function S(){return(m.state||{idx:null}).idx}function k(){y=On.Pop;let I=S(),L=I==null?null:I-j;j=I,p&&p({action:y,location:U.location,delta:L})}function $(I,L){y=On.Push;let Y=ua(U.location,I,L);j=S()+1;let Q=wd(Y,j),J=U.createHref(Y);try{m.pushState(Q,"",J)}catch(oe){if(oe instanceof DOMException&&oe.name==="DataCloneError")throw oe;d.location.assign(J)}f&&p&&p({action:y,location:U.location,delta:1})}function B(I,L){y=On.Replace;let Y=ua(U.location,I,L);j=S();let Q=wd(Y,j),J=U.createHref(Y);m.replaceState(Q,"",J),f&&p&&p({action:y,location:U.location,delta:0})}function W(I){let L=d.location.origin!=="null"?d.location.origin:d.location.href,Y=typeof I=="string"?I:lo(I);return Y=Y.replace(/ $/,"%20"),qe(L,"No window.location.(origin|href) available to create URL for href: "+Y),new URL(Y,L)}let U={get action(){return y},get location(){return a(d,m)},listen(I){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(yd,k),p=I,()=>{d.removeEventListener(yd,k),p=null}},createHref(I){return l(d,I)},createURL:W,encodeLocation(I){let L=W(I);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:$,replace:B,go(I){return m.go(I)}};return U}var bd;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(bd||(bd={}));function ym(a,l,i){return i===void 0&&(i="/"),wm(a,l,i)}function wm(a,l,i,u){let d=typeof l=="string"?Ws(l):l,f=va(d.pathname||"/",i);if(f==null)return null;let m=zd(a);bm(m);let y=null,p=Lm(f);for(let j=0;y==null&&j{let p={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(qe(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=zn([u,p.relativePath]),S=i.concat(p);f.children&&f.children.length>0&&(qe(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),zd(f.children,l,S,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:Em(j,f.index),routesMeta:S})};return a.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,m);else for(let p of Ud(f.path))d(f,m,p)}),l}function Ud(a){let l=a.split("/");if(l.length===0)return[];let[i,...u]=l,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Ud(u.join("/")),y=[];return y.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&y.push(...m),y.map(p=>a.startsWith("/")&&p===""?"/":p)}function bm(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:Tm(l.routesMeta.map(u=>u.childrenIndex),i.routesMeta.map(u=>u.childrenIndex)))}const jm=/^:[\w-]+$/,Nm=3,_m=2,Sm=1,km=10,Cm=-2,jd=a=>a==="*";function Em(a,l){let i=a.split("/"),u=i.length;return i.some(jd)&&(u+=Cm),l&&(u+=_m),i.filter(d=>!jd(d)).reduce((d,f)=>d+(jm.test(f)?Nm:f===""?Sm:km),u)}function Tm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function Im(a,l,i){let{routesMeta:u}=a,d={},f="/",m=[];for(let y=0;y{let{paramName:$,isOptional:B}=S;if($==="*"){let U=y[k]||"";m=f.slice(0,f.length-U.length).replace(/(.)\/+$/,"$1")}const W=y[k];return B&&!W?j[$]=void 0:j[$]=(W||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function Rm(a,l,i){l===void 0&&(l=!1),i===void 0&&(i=!0),Od(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,p)=>(u.push({paramName:y,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function Lm(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Od(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function va(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,u=a.charAt(i);return u&&u!=="/"?null:a.slice(i)||"/"}function Dm(a,l){l===void 0&&(l="/");let{pathname:i,search:u="",hash:d=""}=typeof a=="string"?Ws(a):a,f;return i?(i=Fd(i),i.startsWith("/")?f=Nd(i.substring(1),"/"):f=Nd(i,l)):f=l,{pathname:f,search:Am(u),hash:Om(d)}}function Nd(a,l){let i=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function oa(a,l,i,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $m(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function ya(a,l){let i=$m(a);return l?i.map((u,d)=>d===i.length-1?u.pathname:u.pathnameBase):i.map(u=>u.pathnameBase)}function wa(a,l,i,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=Ws(a):(d=Ar({},a),qe(!d.pathname||!d.pathname.includes("?"),oa("?","pathname","search",d)),qe(!d.pathname||!d.pathname.includes("#"),oa("#","pathname","hash",d)),qe(!d.search||!d.search.includes("#"),oa("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,y;if(m==null)y=i;else{let k=l.length-1;if(!u&&m.startsWith("..")){let $=m.split("/");for(;$[0]==="..";)$.shift(),k-=1;d.pathname=$.join("/")}y=k>=0?l[k]:"/"}let p=Dm(d,y),j=m&&m!=="/"&&m.endsWith("/"),S=(f||m===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(j||S)&&(p.pathname+="/"),p}const Fd=a=>a.replace(/\/\/+/g,"/"),zn=a=>Fd(a.join("/")),Mm=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Am=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Om=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function zm(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const Bd=["post","put","patch","delete"];new Set(Bd);const Um=["get",...Bd];new Set(Um);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Or(){return Or=Object.assign?Object.assign.bind():function(a){for(var l=1;l{y.current=!0}),x.useCallback(function(j,S){if(S===void 0&&(S={}),!y.current)return;if(typeof j=="number"){u.go(j);return}let k=wa(j,JSON.parse(m),f,S.relative==="path");a==null&&l!=="/"&&(k.pathname=k.pathname==="/"?l:zn([l,k.pathname])),(S.replace?u.replace:u.push)(k,S.state,S)},[l,u,m,f,a])}const Wm=x.createContext(null);function Vm(a){let l=x.useContext(xn).outlet;return l&&x.createElement(Wm.Provider,{value:a},l)}function Vd(a,l){let{relative:i}=l===void 0?{}:l,{future:u}=x.useContext(Bn),{matches:d}=x.useContext(xn),{pathname:f}=ds(),m=JSON.stringify(ya(d,u.v7_relativeSplatPath));return x.useMemo(()=>wa(a,JSON.parse(m),f,i==="path"),[a,m,f,i])}function qm(a,l){return Qm(a,l)}function Qm(a,l,i,u){Vs()||qe(!1);let{navigator:d}=x.useContext(Bn),{matches:f}=x.useContext(xn),m=f[f.length-1],y=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=ds(),S;if(l){var k;let I=typeof l=="string"?Ws(l):l;p==="/"||(k=I.pathname)!=null&&k.startsWith(p)||qe(!1),S=I}else S=j;let $=S.pathname||"/",B=$;if(p!=="/"){let I=p.replace(/^\//,"").split("/");B="/"+$.replace(/^\//,"").split("/").slice(I.length).join("/")}let W=ym(a,{pathname:B}),U=Ym(W&&W.map(I=>Object.assign({},I,{params:Object.assign({},y,I.params),pathname:zn([p,d.encodeLocation?d.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?p:zn([p,d.encodeLocation?d.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),f,i,u);return l&&U?x.createElement(fo.Provider,{value:{location:Or({pathname:"/",search:"",hash:"",state:null,key:"default"},S),navigationType:On.Pop}},U):U}function Km(){let a=np(),l=zm(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),i=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},l),i?x.createElement("pre",{style:d},i):null,null)}const Jm=x.createElement(Km,null);class Xm extends x.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){console.error("React Router caught the following error during render",l,i)}render(){return this.state.error!==void 0?x.createElement(xn.Provider,{value:this.props.routeContext},x.createElement(Hd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gm(a){let{routeContext:l,match:i,children:u}=a,d=x.useContext(ba);return d&&d.static&&d.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement(xn.Provider,{value:l},u)}function Ym(a,l,i,u){var d;if(l===void 0&&(l=[]),i===void 0&&(i=null),u===void 0&&(u=null),a==null){var f;if(!i)return null;if(i.errors)a=i.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!i.initialized&&i.matches.length>0)a=i.matches;else return null}let m=a,y=(d=i)==null?void 0:d.errors;if(y!=null){let S=m.findIndex(k=>k.route.id&&(y==null?void 0:y[k.route.id])!==void 0);S>=0||qe(!1),m=m.slice(0,Math.min(m.length,S+1))}let p=!1,j=-1;if(i&&u&&u.v7_partialHydration)for(let S=0;S=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((S,k,$)=>{let B,W=!1,U=null,I=null;i&&(B=y&&k.route.id?y[k.route.id]:void 0,U=k.route.errorElement||Jm,p&&(j<0&&$===0?(rp("route-fallback"),W=!0,I=null):j===$&&(W=!0,I=k.route.hydrateFallbackElement||null)));let L=l.concat(m.slice(0,$+1)),Y=()=>{let Q;return B?Q=U:W?Q=I:k.route.Component?Q=x.createElement(k.route.Component,null):k.route.element?Q=k.route.element:Q=S,x.createElement(Gm,{match:k,routeContext:{outlet:S,matches:L,isDataRoute:i!=null},children:Q})};return i&&(k.route.ErrorBoundary||k.route.errorElement||$===0)?x.createElement(Xm,{location:i.location,revalidation:i.revalidation,component:U,error:B,children:Y(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):Y()},null)}var qd=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(qd||{}),Qd=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(Qd||{});function Zm(a){let l=x.useContext(ba);return l||qe(!1),l}function ep(a){let l=x.useContext(Fm);return l||qe(!1),l}function tp(a){let l=x.useContext(xn);return l||qe(!1),l}function Kd(a){let l=tp(),i=l.matches[l.matches.length-1];return i.route.id||qe(!1),i.route.id}function np(){var a;let l=x.useContext(Hd),i=ep(),u=Kd();return l!==void 0?l:(a=i.errors)==null?void 0:a[u]}function sp(){let{router:a}=Zm(qd.UseNavigateStable),l=Kd(Qd.UseNavigateStable),i=x.useRef(!1);return Wd(()=>{i.current=!0}),x.useCallback(function(d,f){f===void 0&&(f={}),i.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,Or({fromRouteId:l},f)))},[a,l])}const _d={};function rp(a,l,i){_d[a]||(_d[a]=!0)}function lp(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Yt(a){let{to:l,replace:i,state:u,relative:d}=a;Vs()||qe(!1);let{future:f,static:m}=x.useContext(Bn),{matches:y}=x.useContext(xn),{pathname:p}=ds(),j=mo(),S=wa(l,ya(y,f.v7_relativeSplatPath),p,d==="path"),k=JSON.stringify(S);return x.useEffect(()=>j(JSON.parse(k),{replace:i,state:u,relative:d}),[j,k,d,i,u]),null}function Jd(a){return Vm(a.context)}function Je(a){qe(!1)}function op(a){let{basename:l="/",children:i=null,location:u,navigationType:d=On.Pop,navigator:f,static:m=!1,future:y}=a;Vs()&&qe(!1);let p=l.replace(/^\/*/,"/"),j=x.useMemo(()=>({basename:p,navigator:f,static:m,future:Or({v7_relativeSplatPath:!1},y)}),[p,y,f,m]);typeof u=="string"&&(u=Ws(u));let{pathname:S="/",search:k="",hash:$="",state:B=null,key:W="default"}=u,U=x.useMemo(()=>{let I=va(S,p);return I==null?null:{location:{pathname:I,search:k,hash:$,state:B,key:W},navigationType:d}},[p,S,k,$,B,W,d]);return U==null?null:x.createElement(Bn.Provider,{value:j},x.createElement(fo.Provider,{children:i,value:U}))}function ip(a){let{children:l,location:i}=a;return qm(da(l),i)}new Promise(()=>{});function da(a,l){l===void 0&&(l=[]);let i=[];return x.Children.forEach(a,(u,d)=>{if(!x.isValidElement(u))return;let f=[...l,d];if(u.type===x.Fragment){i.push.apply(i,da(u.props.children,f));return}u.type!==Je&&qe(!1),!u.props.index||!u.props.children||qe(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=da(u.props.children,f)),i.push(m)}),i}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ha(){return ha=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[i];return l.concat(Array.isArray(u)?u.map(d=>[i,d]):[[i,u]])},[]))}function dp(a,l){let i=fa(a);return l&&l.forEach((u,d)=>{i.has(d)||l.getAll(d).forEach(f=>{i.append(d,f)})}),i}const hp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fp="6";try{window.__reactRouterVersion=fp}catch{}const mp="startTransition",Sd=cm[mp];function pp(a){let{basename:l,children:i,future:u,window:d}=a,f=x.useRef();f.current==null&&(f.current=xm({window:d,v5Compat:!0}));let m=f.current,[y,p]=x.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},S=x.useCallback(k=>{j&&Sd?Sd(()=>p(k)):p(k)},[p,j]);return x.useLayoutEffect(()=>m.listen(S),[m,S]),x.useEffect(()=>lp(u),[u]),x.createElement(op,{basename:l,children:i,location:y.location,navigationType:y.action,navigator:m,future:u})}const xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=x.forwardRef(function(l,i){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:y,target:p,to:j,preventScrollReset:S,viewTransition:k}=l,$=ap(l,hp),{basename:B}=x.useContext(Bn),W,U=!1;if(typeof j=="string"&&gp.test(j)&&(W=j,xp))try{let Q=new URL(window.location.href),J=j.startsWith("//")?new URL(Q.protocol+j):new URL(j),oe=va(J.pathname,B);J.origin===Q.origin&&oe!=null?j=oe+J.search+J.hash:U=!0}catch{}let I=Bm(j,{relative:d}),L=vp(j,{replace:m,state:y,target:p,preventScrollReset:S,relative:d,viewTransition:k});function Y(Q){u&&u(Q),Q.defaultPrevented||L(Q)}return x.createElement("a",ha({},$,{href:W||I,onClick:U||f?u:Y,ref:i,target:p}))});var kd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(kd||(kd={}));var Cd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(Cd||(Cd={}));function vp(a,l){let{target:i,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:y}=l===void 0?{}:l,p=mo(),j=ds(),S=Vd(a,{relative:m});return x.useCallback(k=>{if(up(k,i)){k.preventDefault();let $=u!==void 0?u:lo(j)===lo(S);p(a,{replace:$,state:d,preventScrollReset:f,relative:m,viewTransition:y})}},[j,p,S,u,d,i,a,f,m,y])}function yp(a){let l=x.useRef(fa(a)),i=x.useRef(!1),u=ds(),d=x.useMemo(()=>dp(u.search,i.current?null:l.current),[u.search]),f=mo(),m=x.useCallback((y,p)=>{const j=fa(typeof y=="function"?y(d):y);i.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class wp{constructor(){wt(this,"listeners",new Set);wt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(i=>{try{i(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const zs=new wp,Xd="/api";function as(){return localStorage.getItem("classnotify_token")}function bp(a){localStorage.setItem("classnotify_token",a)}function Dr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function Ne(a,l={}){const i=as(),u={"Content-Type":"application/json",...l.headers};i&&(u.Authorization=`Bearer ${i}`);const d=await fetch(`${Xd}${a}`,{...l,headers:u});if(d.status===401)throw Dr(),zs.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const le={login:(a,l)=>Ne("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>Ne("/auth/me"),getAdminMetrics:()=>Ne("/admin/metrics"),getTenants:()=>Ne("/admin/tenants"),getAllDevices:()=>Ne("/admin/devices"),sendDeviceCommand:(a,l,i)=>Ne(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:i})}),getAdminActivationCodes:()=>Ne("/admin/activation-codes"),getAdminClasses:a=>Ne(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>Ne(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>Ne(`/admin/notifications?limit=${a}`),createTenant:a=>Ne("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>Ne(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const i=new URLSearchParams;a&&i.append("tenantId",a),l&&i.append("role",l);const u=i.toString();return Ne(`/admin/users${u?`?${u}`:""}`)},createUser:a=>Ne("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>Ne(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>Ne(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>Ne(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>Ne(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>Ne(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>Ne(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>Ne("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getBroadcastReceiptSummary:a=>Ne(`/admin/broadcasts/${encodeURIComponent(a)}/receipt-summary`),getSystemHealth:()=>Ne("/admin/system/health"),getAuditLogs:(a=100)=>Ne(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>Ne("/school-admin/overview"),getSchoolClasses:()=>Ne("/school-admin/classes"),createSchoolClass:a=>Ne("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>Ne("/school-admin/teachers"),createSchoolTeacher:a=>Ne("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),resetSchoolTeacherPassword:(a,l)=>Ne(`/school-admin/teachers/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(a,l)=>Ne(`/school-admin/teachers/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>Ne("/school-admin/devices"),getSchoolCodes:()=>Ne("/school-admin/activation-codes"),generateSchoolCode:a=>Ne(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>Ne("/notification/classes"),sendNotification:a=>Ne("/notification/send",{method:"POST",body:JSON.stringify(a)}),cancelNotification:a=>Ne(`/notifications/${encodeURIComponent(a)}/cancel`,{method:"POST"}),getTeacherHistory:(a,l=50)=>Ne(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`),getVisualReceiptBlob:async(a,l)=>{const i=as(),u=await fetch(`${Xd}/notifications/${encodeURIComponent(a)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:i?{Authorization:`Bearer ${i}`}:{}});if(u.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(u.status===404)throw new Error("未找到该通知的视觉回执");if(!u.ok)throw new Error(`获取视觉回执失败 (${u.status})`);return u.blob()}};class os extends Error{constructor(l,i){const u=new.target.prototype;super(`${l}: Status code '${i}'`),this.statusCode=i,this.__proto__=u}}class ja extends Error{constructor(l="A timeout occurred."){const i=new.target.prototype;super(l),this.__proto__=i}}class Vt extends Error{constructor(l="An abort occurred."){const i=new.target.prototype;super(l),this.__proto__=i}}class jp extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="UnsupportedTransportError",this.__proto__=u}}class Np extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="DisabledTransportError",this.__proto__=u}}class _p extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.transport=i,this.errorType="FailedToStartTransportError",this.__proto__=u}}class Ed extends Error{constructor(l){const i=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=i}}class Sp extends Error{constructor(l,i){const u=new.target.prototype;super(l),this.innerErrors=i,this.__proto__=u}}class Gd{constructor(l,i,u){this.statusCode=l,this.statusText=i,this.content=u}}class po{get(l,i){return this.send({...i,method:"GET",url:l})}post(l,i){return this.send({...i,method:"POST",url:l})}delete(l,i){return this.send({...i,method:"DELETE",url:l})}getCookieString(l){return""}}var R;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(R||(R={}));class zr{constructor(){}log(l,i){}}zr.instance=new zr;const kp="8.0.29";class Xe{static isRequired(l,i){if(l==null)throw new Error(`The '${i}' argument is required.`)}static isNotEmpty(l,i){if(!l||l.match(/^\s*$/))throw new Error(`The '${i}' argument should not be empty.`)}static isIn(l,i,u){if(!(l in i))throw new Error(`Unknown ${u} value: ${l}.`)}}class Ue{static get isBrowser(){return!Ue.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Ue.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Ue.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Ur(a,l){let i="";return cs(a)?(i=`Binary data of length ${a.byteLength}`,l&&(i+=`. Content: '${Cp(a)}'`)):typeof a=="string"&&(i=`String data of length ${a.length}`,l&&(i+=`. Content: '${a}'`)),i}function Cp(a){const l=new Uint8Array(a);let i="";return l.forEach(u=>{const d=u<16?"0":"";i+=`0x${d}${u.toString(16)} `}),i.substr(0,i.length-1)}function cs(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Yd(a,l,i,u,d,f){const m={},[y,p]=Fs();m[y]=p,a.log(R.Trace,`(${l} transport) sending data. ${Ur(d,f.logMessageContent)}.`);const j=cs(d)?"arraybuffer":"text",S=await i.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(R.Trace,`(${l} transport) request complete. Response status: ${S.statusCode}.`)}function Ep(a){return a===void 0?new oo(R.Information):a===null?zr.instance:a.log!==void 0?a:new oo(a)}class Tp{constructor(l,i){this._subject=l,this._observer=i}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(i=>{})}}class oo{constructor(l){this._minLevel=l,this.out=console}log(l,i){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${R[l]}: ${i}`;switch(l){case R.Critical:case R.Error:this.out.error(u);break;case R.Warning:this.out.warn(u);break;case R.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function Fs(){let a="X-SignalR-User-Agent";return Ue.isNode&&(a="User-Agent"),[a,Ip(kp,Pp(),Lp(),Rp())]}function Ip(a,l,i,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${i}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function Pp(){if(Ue.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function Rp(){if(Ue.isNode)return process.versions.node}function Lp(){return Ue.isNode?"NodeJS":"Browser"}function ia(a){return a.stack?a.stack:a.message?a.message:`${a}`}function Dp(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class $p extends po{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||Ue.isNode){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(i("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=i("node-fetch"):this._fetchType=fetch,this._fetchType=i("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Dp());if(typeof AbortController>"u"){const i=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=i("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new Vt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const i=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{i.abort(),u=new Vt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{i.abort(),this._logger.log(R.Warning,"Timeout from HTTP request."),u=new ja},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},cs(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:i.signal})}catch(p){throw u||(this._logger.log(R.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await Td(f,"text");throw new os(p||f.statusText,f.status)}const y=await Td(f,l.responseType);return new Gd(f.status,f.statusText,y)}getCookieString(l){let i="";return Ue.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>i=d.join("; ")),i}}function Td(a,l){let i;switch(l){case"arraybuffer":i=a.arrayBuffer();break;case"text":i=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:i=a.text();break}return i}class Mp extends po{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Vt):l.method?l.url?new Promise((i,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(cs(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new Vt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?i(new Gd(d.status,d.statusText,d.response||d.responseText)):u(new os(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(R.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new os(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(R.Warning,"Timeout from HTTP request."),u(new ja)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Ap extends po{constructor(l){if(super(),typeof fetch<"u"||Ue.isNode)this._httpClient=new $p(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Mp(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Vt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class Et{static write(l){return`${l}${Et.RecordSeparator}`}static parse(l){if(l[l.length-1]!==Et.RecordSeparator)throw new Error("Message is incomplete.");const i=l.split(Et.RecordSeparator);return i.pop(),i}}Et.RecordSeparatorCode=30;Et.RecordSeparator=String.fromCharCode(Et.RecordSeparatorCode);class Op{writeHandshakeRequest(l){return Et.write(JSON.stringify(l))}parseHandshakeResponse(l){let i,u;if(cs(l)){const y=new Uint8Array(l),p=y.indexOf(Et.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;i=String.fromCharCode.apply(null,Array.prototype.slice.call(y.slice(0,j))),u=y.byteLength>j?y.slice(j).buffer:null}else{const y=l,p=y.indexOf(Et.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;i=y.substring(0,j),u=y.length>j?y.substring(j):null}const d=Et.parse(i),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var we;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(we||(we={}));class zp{constructor(){this.observers=[]}next(l){for(const i of this.observers)i.next(l)}error(l){for(const i of this.observers)i.error&&i.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new Tp(this,l)}}class Up{constructor(l,i,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=i,this._bufferSize=u}async _send(l){const i=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};cs(i)?this._bufferedByteCount+=i.byteLength:this._bufferedByteCount+=i.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,y)=>{d=m,f=y})),this._messages.push(new Fp(i,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(i)}catch{this._disconnected()}await u}_ack(l){let i=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:we.Sequence,sequenceId:l}));const i=this._messages;for(const u of i)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const i of this._messages)i._rejector(l)}_isInvocationMessage(l){switch(l.type){case we.Invocation:case we.StreamItem:case we.Completion:case we.StreamInvocation:case we.CancelInvocation:return!0;case we.Close:case we.Sequence:case we.Ping:case we.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:we.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Fp{constructor(l,i,u,d){this._message=l,this._id=i,this._resolver=u,this._rejector=d}}const Bp=30*1e3,Hp=15*1e3,Wp=1e5;var Pe;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(Pe||(Pe={}));class Na{static create(l,i,u,d,f,m,y){return new Na(l,i,u,d,f,m,y)}constructor(l,i,u,d,f,m,y){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(R.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Xe.isRequired(l,"connection"),Xe.isRequired(i,"logger"),Xe.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Bp,this.keepAliveIntervalInMilliseconds=m??Hp,this._statefulReconnectBufferSize=y??Wp,this._logger=i,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Op,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:we.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==Pe.Disconnected&&this._connectionState!==Pe.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Pe.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Pe.Connecting,this._logger.log(R.Debug,"Starting HubConnection.");try{await this._startInternal(),Ue.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Pe.Connected,this._connectionStarted=!0,this._logger.log(R.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=Pe.Disconnected,this._logger.log(R.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((i,u)=>{this._handshakeResolver=i,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let i=this._protocol.version;this.connection.features.reconnect||(i=1);const u={protocol:this._protocol.name,version:i};if(this._logger.log(R.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(R.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Up(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(i){throw this._logger.log(R.Debug,`Hub handshake failed with error '${i}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(i),i}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===Pe.Disconnected)return this._logger.log(R.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Pe.Disconnecting)return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const i=this._connectionState;return this._connectionState=Pe.Disconnecting,this._logger.log(R.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(R.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(i===Pe.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new Vt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._createStreamInvocation(l,i,d);let m;const y=new zp;return y.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){y.error(j);return}else p&&(p.type===we.Completion?p.error?y.error(new Error(p.error)):y.complete():y.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{y.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),y}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._sendWithProtocol(this._createInvocation(l,i,!0,d));return this._launchStreams(u,f),f}invoke(l,...i){const[u,d]=this._replaceStreamingParams(i),f=this._createInvocation(l,i,!1,d);return new Promise((y,p)=>{this._callbacks[f.invocationId]=(S,k)=>{if(k){p(k);return}else S&&(S.type===we.Completion?S.error?p(new Error(S.error)):y(S.result):p(new Error(`Unexpected message type: ${S.type}`)))};const j=this._sendWithProtocol(f).catch(S=>{p(S),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,i){!l||!i||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(i)===-1&&this._methods[l].push(i))}off(l,i){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(i){const d=u.indexOf(i);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const i=this._protocol.parseMessages(l,this._logger);for(const u of i)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case we.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(R.Error,`Invoke client method threw error: ${ia(d)}`)});break;case we.StreamItem:case we.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===we.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(R.Error,`Stream callback threw error: ${ia(f)}`)}}break}case we.Ping:break;case we.Close:{this._logger.log(R.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case we.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case we.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(R.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let i,u;try{[u,i]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(R.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(i.error){const d="Server returned handshake error: "+i.error;this._logger.log(R.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(R.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Pe.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const i=l.target.toLowerCase(),u=this._methods[i];if(!u){this._logger.log(R.Warning,`No client method with the name '${i}' found.`),l.invocationId&&(this._logger.log(R.Warning,`No result given for '${i}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,y,p;for(const j of d)try{const S=m;m=await j.apply(this,l.arguments),f&&m&&S&&(this._logger.log(R.Error,`Multiple results provided for '${i}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),y=void 0}catch(S){y=S,this._logger.log(R.Error,`A callback for the method '${i}' threw error '${S}'.`)}p?await this._sendWithProtocol(p):f?(y?p=this._createCompletionMessage(l.invocationId,`${y}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(R.Warning,`No result given for '${i}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(R.Error,`Result given for '${i}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(R.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new Vt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Pe.Disconnecting?this._completeClose(l):this._connectionState===Pe.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===Pe.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=Pe.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),Ue.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(i=>i.apply(this,[l]))}catch(i){this._logger.log(R.Error,`An onclose callback called with error '${l}' threw error '${i}'.`)}}}async _reconnect(l){const i=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(R.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=Pe.Reconnecting,l?this._logger.log(R.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(R.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(R.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==Pe.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(R.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==Pe.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Pe.Connected,this._logger.log(R.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(R.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(R.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==Pe.Reconnecting){this._logger.log(R.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Pe.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-i,d)}}this._logger.log(R.Information,`Reconnect retries have been exhausted after ${Date.now()-i} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,i,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:i,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(R.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${i}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const i=this._callbacks;this._callbacks={},Object.keys(i).forEach(u=>{const d=i[u];try{d(null,l)}catch(f){this._logger.log(R.Error,`Stream 'error' callback called with '${l}' threw error: ${ia(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,i,u,d){if(u)return d.length!==0?{arguments:i,streamIds:d,target:l,type:we.Invocation}:{arguments:i,target:l,type:we.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:i,invocationId:f.toString(),streamIds:d,target:l,type:we.Invocation}:{arguments:i,invocationId:f.toString(),target:l,type:we.Invocation}}}_launchStreams(l,i){if(l.length!==0){i||(i=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",i=i.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{i=i.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const i=[],u=[];for(let d=0;d0)&&(i=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return i&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[is.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[is.Authorization]&&delete l.headers[is.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Ze;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Ze||(Ze={}));var ut;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(ut||(ut={}));let Qp=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class Pd{get pollAborted(){return this._pollAbort.aborted}constructor(l,i,u){this._httpClient=l,this._logger=i,this._pollAbort=new Qp,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,i){if(Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._url=l,this._logger.log(R.Trace,"(LongPolling transport) Connecting."),i===ut.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=Fs(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};i===ut.Binary&&(m.responseType="arraybuffer");const y=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${y}.`);const p=await this._httpClient.get(y,m);p.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new os(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,i){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,i);d.statusCode===204?(this._logger.log(R.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new os(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(R.Trace,`(LongPolling transport) data received. ${Ur(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof ja?this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(R.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(R.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Yd(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(R.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(R.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[i,u]=Fs();l[i]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof os&&(f.statusCode===404?this._logger.log(R.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(R.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(R.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(R.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(R.Trace,l),this.onclose(this._closeError)}}}class Kp{constructor(l,i,u,d){this._httpClient=l,this._accessToken=i,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,i){return Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._logger.log(R.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(i!==ut.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(Ue.isBrowser||Ue.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const y=this._httpClient.getCookieString(l),p={};p.Cookie=y;const[j,S]=Fs();p[j]=S,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=y=>{if(this.onreceive)try{this._logger.log(R.Trace,`(SSE transport) data received. ${Ur(y.data,this._options.logMessageContent)}.`),this.onreceive(y.data)}catch(p){this._close(p);return}},m.onerror=y=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(R.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(y){d(y);return}})}async send(l){return this._eventSource?Yd(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Jp{constructor(l,i,u,d,f,m){this._logger=u,this._accessTokenFactory=i,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,i){Xe.isRequired(l,"url"),Xe.isRequired(i,"transferFormat"),Xe.isIn(i,ut,"transferFormat"),this._logger.log(R.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const y=this._httpClient.getCookieString(l);let p=!1;if(Ue.isNode||Ue.isReactNative){const j={},[S,k]=Fs();j[S]=k,u&&(j[is.Authorization]=`Bearer ${u}`),y&&(j[is.Cookie]=y),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),i===ut.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(R.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="There was an error with the transport",this._logger.log(R.Information,`(WebSockets transport) ${S}.`)},m.onmessage=j=>{if(this._logger.log(R.Trace,`(WebSockets transport) data received. ${Ur(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(S){this._close(S);return}},m.onclose=j=>{if(p)this._close(j);else{let S=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?S=j.error:S="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(S))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(R.Trace,`(WebSockets transport) sending data. ${Ur(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(R.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Rd=100;class Xp{constructor(l,i={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Xe.isRequired(l,"url"),this._logger=Ep(i.logger),this.baseUrl=this._resolveUrl(l),i=i||{},i.logMessageContent=i.logMessageContent===void 0?!1:i.logMessageContent,typeof i.withCredentials=="boolean"||i.withCredentials===void 0)i.withCredentials=i.withCredentials===void 0?!0:i.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");i.timeout=i.timeout===void 0?100*1e3:i.timeout;let u=null,d=null;if(Ue.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!Ue.isNode&&typeof WebSocket<"u"&&!i.WebSocket?i.WebSocket=WebSocket:Ue.isNode&&!i.WebSocket&&u&&(i.WebSocket=u),!Ue.isNode&&typeof EventSource<"u"&&!i.EventSource?i.EventSource=EventSource:Ue.isNode&&!i.EventSource&&typeof d<"u"&&(i.EventSource=d),this._httpClient=new qp(i.httpClient||new Ap(this._logger),i.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=i,this.onreceive=null,this.onclose=null}async start(l){if(l=l||ut.Binary,Xe.isIn(l,ut,"transferFormat"),this._logger.log(R.Debug,`Starting connection with transfer format '${ut[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const i="Failed to start the HttpConnection before stop() was called.";return this._logger.log(R.Error,i),await this._stopPromise,Promise.reject(new Vt(i))}else if(this._connectionState!=="Connected"){const i="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(R.Error,i),Promise.reject(new Vt(i))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new _a(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(i=>{this._stopPromiseResolver=i}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(i){this._logger.log(R.Error,`HttpConnection.transport.stop() threw error '${i}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(R.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let i=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Ze.WebSockets)this.transport=this._constructTransport(Ze.WebSockets),await this._startTransport(i,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(i),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Vt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(i=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new Sp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Ze.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Jp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Ze.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Kp(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Ze.LongPolling:return new Pd(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,i){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,i),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,i)}_resolveTransportOrError(l,i,u,d){const f=Ze[l.transport];if(f==null)return this._logger.log(R.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Gp(i,f))if(l.transferFormats.map(y=>ut[y]).indexOf(u)>=0){if(f===Ze.WebSockets&&!this._options.WebSocket||f===Ze.ServerSentEvents&&!this._options.EventSource)return this._logger.log(R.Debug,`Skipping transport '${Ze[f]}' because it is not supported in your environment.'`),new jp(`'${Ze[f]}' is not supported in your environment.`,f);this._logger.log(R.Debug,`Selecting transport '${Ze[f]}'.`);try{return this.features.reconnect=f===Ze.WebSockets?d:void 0,this._constructTransport(f)}catch(y){return y}}else return this._logger.log(R.Debug,`Skipping transport '${Ze[f]}' because it does not support the requested transfer format '${ut[u]}'.`),new Error(`'${Ze[f]}' does not support ${ut[u]}.`);else return this._logger.log(R.Debug,`Skipping transport '${Ze[f]}' because it was disabled by the client.`),new Np(`'${Ze[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(R.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(R.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(R.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(R.Error,`Connection disconnected with error '${l}'.`):this._logger.log(R.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(i=>{this._logger.log(R.Error,`TransportSendQueue.stop() threw error '${i}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(i){this._logger.log(R.Error,`HttpConnection.onclose(${l}) threw error '${i}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!Ue.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const i=window.document.createElement("a");return i.href=l,this._logger.log(R.Information,`Normalizing '${l}' to '${i.href}'.`),i.href}_resolveNegotiateUrl(l){const i=new URL(l);i.pathname.endsWith("/")?i.pathname+="negotiate":i.pathname+="/negotiate";const u=new URLSearchParams(i.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),i.search=u.toString(),i.toString()}}function Gp(a,l){return!a||(l&a)!==0}class _a{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new ro,this._transportResult=new ro,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new ro),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new ro;const l=this._transportResult;this._transportResult=void 0;const i=typeof this._buffer[0]=="string"?this._buffer.join(""):_a._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(i),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const i=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(i);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class ro{constructor(){this.promise=new Promise((l,i)=>[this._resolver,this._rejecter]=[l,i])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Yp="json";class Zp{constructor(){this.name=Yp,this.version=2,this.transferFormat=ut.Text}parseMessages(l,i){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];i===null&&(i=zr.instance);const u=Et.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case we.Invocation:this._isInvocationMessage(m);break;case we.StreamItem:this._isStreamItemMessage(m);break;case we.Completion:this._isCompletionMessage(m);break;case we.Ping:break;case we.Close:break;case we.Ack:this._isAckMessage(m);break;case we.Sequence:this._isSequenceMessage(m);break;default:i.log(R.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return Et.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,i){if(typeof l!="string"||l==="")throw new Error(i)}}const e0={trace:R.Trace,debug:R.Debug,info:R.Information,information:R.Information,warn:R.Warning,warning:R.Warning,error:R.Error,critical:R.Critical,none:R.None};function t0(a){const l=e0[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class n0{configureLogging(l){if(Xe.isRequired(l,"logging"),s0(l))this.logger=l;else if(typeof l=="string"){const i=t0(l);this.logger=new oo(i)}else this.logger=new oo(l);return this}withUrl(l,i){return Xe.isRequired(l,"url"),Xe.isNotEmpty(l,"url"),this.url=l,typeof i=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...i}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:i},this}withHubProtocol(l){return Xe.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new Id(l):this.reconnectPolicy=l:this.reconnectPolicy=new Id,this}withServerTimeout(l){return Xe.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return Xe.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const i=new Xp(this.url,l);return Na.create(i,this.logger||zr.instance,this.protocol||new Zp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function s0(a){return a.log!==void 0}class r0{constructor(){wt(this,"connection",null);wt(this,"state","Disconnected");wt(this,"startPromise",null);wt(this,"permanentRetryTimer",null);wt(this,"isAuthenticated",!1);wt(this,"stateListeners",new Set);wt(this,"ackListeners",new Set);wt(this,"deviceStatusListeners",new Set);wt(this,"healthReportListeners",new Set);wt(this,"notificationListeners",new Set);wt(this,"cancelledListeners",new Set);zs.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(i=>i(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var i,u;if(!as()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((i=this.connection)==null?void 0:i.state)===Pe.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===Pe.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===Pe.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new n0().withUrl("/hubs/teacher",{accessTokenFactory:()=>as()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(R.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(i=>i(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(i=>i(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(i=>i(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(i=>i(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(i=>i(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===Pe.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const Mt=new r0,Zd=x.createContext(void 0),l0=({children:a})=>{const[l,i]=x.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=x.useState(as()),[f,m]=x.useState(!0);x.useEffect(()=>{const j=zs.subscribe(()=>{Mt.stop(),Dr(),d(null),i(null)});return()=>j()},[]),x.useEffect(()=>{(async()=>{var k,$;if(as())try{const B=await le.getMe();i(B),localStorage.setItem("classnotify_user",JSON.stringify(B)),zs.reset(),Mt.start()}catch(B){((k=B==null?void 0:B.message)!=null&&k.includes("未授权")||($=B==null?void 0:B.message)!=null&&$.includes("401"))&&(Dr(),d(null),i(null))}else Dr(),i(null),d(null);m(!1)})()},[]);const y=async(j,S)=>{const k=await le.login(j,S);if(!k.success||!k.token||!k.role)throw new Error(k.errorMessage||"登录失败");bp(k.token),d(k.token);const $={userId:k.userId||"",name:k.fullName||j,role:k.role,tenantId:k.tenantId||""};return i($),localStorage.setItem("classnotify_user",JSON.stringify($)),zs.reset(),Mt.start(),k.role},p=()=>{Mt.stop(),Dr(),d(null),i(null),zs.reset()};return n.jsx(Zd.Provider,{value:{user:l,token:u,login:y,logout:p,isLoading:f},children:a})},qs=()=>{const a=x.useContext(Zd);if(!a){let l=null;try{const i=localStorage.getItem("classnotify_user");i&&(l=JSON.parse(i))}catch{}return{user:l,token:as(),login:async()=>"Teacher",logout:()=>{},isLoading:!1}}return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eh=(...a)=>a.filter((l,i,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===i).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var i0={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=x.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...y},p)=>x.createElement("svg",{ref:p,...i0,width:l,height:l,stroke:a,strokeWidth:u?Number(i)*24/Number(l):i,className:eh("lucide",d),...y},[...m.map(([j,S])=>x.createElement(j,S)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.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=(a,l)=>{const i=x.forwardRef(({className:u,...d},f)=>x.createElement(a0,{ref:f,iconNode:l,className:eh(`lucide-${o0(a)}`,u),...d}));return i.displayName=`${a}`,i};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=[["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"}]],Fr=ve("Activity",c0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$r=ve("ArrowRight",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],io=ve("Bell",d0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Zt=ve("Building2",h0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ao=ve("Check",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ld=ve("ChevronDown",m0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],x0=ve("ChevronRight",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["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"}]],mn=ve("CircleAlert",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],At=ve("CircleCheck",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ma=ve("CircleX",y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Hr=ve("Clock",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],j0=ve("CloudRain",b0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],pa=ve("Copy",N0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],S0=ve("Ellipsis",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const k0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],C0=ve("Eye",k0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],T0=ve("Flame",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Br=ve("GraduationCap",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],xa=ve("History",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],jt=ve("KeyRound",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Mr=ve("Layers",L0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gt=ve("LoaderCircle",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],th=ve("LockOpen",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],co=ve("Lock",M0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],O0=ve("LogOut",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],U0=ve("Megaphone",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],B0=ve("Menu",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Bs=ve("Monitor",H0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],nh=ve("PenLine",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],us=ve("Plus",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q0=[["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"}]],Hs=ve("Radio",q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Tt=ve("RefreshCw",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],J0=ve("RotateCcw",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const X0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Dd=ve("School",X0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Wr=ve("Search",G0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y0=[["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"}]],uo=ve("Send",Y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],sh=ve("ShieldAlert",Z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ex=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ho=ve("ShieldCheck",ex);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],rh=ve("Sparkles",tx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Sa=ve("Trash2",nx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Fn=ve("TriangleAlert",sx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],lh=ve("User",rx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Us=ve("Users",lx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ox=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],ix=ve("Volume2",ox);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ax=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Un=ve("X",ax);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ux=ve("ZoomIn",cx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],hx=ve("ZoomOut",dx),fx=()=>{const[a,l]=x.useState(Mt.getState());return x.useEffect(()=>Mt.onStateChange(l),[]),a==="Connected"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"云端正常"]}):a==="Reconnecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400"}),"正在重连…"]}):a==="Connecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-500/10 text-blue-400 border border-blue-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),"正在连接…"]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"云端离线"]})},mx=()=>{const{user:a,logout:l}=qs(),i=ds(),[u,d]=x.useState(!1);if(x.useEffect(()=>{d(!1)},[i.pathname]),!a)return null;const f=m=>i.pathname===m;return n.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"flex items-center justify-between h-16",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs(be,{to:"/",className:"flex items-center space-x-2.5",children:[n.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:n.jsx(io,{className:"w-5 h-5 text-white"})}),n.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),n.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ho,{className:"w-3.5 h-3.5 text-amber-400"}),n.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(Dd,{className:"w-3.5 h-3.5 text-sky-400"}),n.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&n.jsxs(n.Fragment,{children:[n.jsx(Br,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]})]}),n.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(be,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Mr,{className:"w-4 h-4"}),"总览"]}),n.jsxs(be,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Zt,{className:"w-4 h-4"}),"学校租户"]}),n.jsxs(be,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Us,{className:"w-4 h-4"}),"用户中枢"]}),n.jsxs(be,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Bs,{className:"w-4 h-4"}),"设备集控"]}),n.jsxs(be,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[n.jsx(Hs,{className:"w-4 h-4"}),"应急广播"]}),n.jsxs(be,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),n.jsxs(be,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(xa,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(be,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Dd,{className:"w-4 h-4"}),"学校概览"]}),n.jsxs(be,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Mr,{className:"w-4 h-4"}),"班级管理"]}),n.jsxs(be,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Us,{className:"w-4 h-4"}),"教师账号"]}),n.jsxs(be,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&n.jsxs(be,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(io,{className:"w-4 h-4"}),"呼叫与回执"]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:"hidden sm:block",children:n.jsx(fx,{})}),n.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),n.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),n.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:n.jsx(O0,{className:"w-4 h-4"})}),n.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?n.jsx(Un,{className:"w-5 h-5"}):n.jsx(B0,{className:"w-5 h-5"})})]})]}),u&&n.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(be,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Mr,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),n.jsx(be,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),n.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),n.jsx(be,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Zt,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),n.jsx(be,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Us,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),n.jsx(be,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Bs,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),n.jsx(be,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Hs,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),n.jsx(be,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(xa,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(be,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),n.jsx(be,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),n.jsx(be,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),n.jsx(be,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&n.jsx(be,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},aa=({allowedRoles:a,children:l})=>{const{user:i,isLoading:u}=qs();return u?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):i?a.includes(i.role)?l?n.jsx(n.Fragment,{children:l}):n.jsx(Jd,{}):i.role==="SuperAdmin"?n.jsx(Yt,{to:"/admin",replace:!0}):i.role==="SchoolAdmin"?n.jsx(Yt,{to:"/school-admin",replace:!0}):n.jsx(Yt,{to:"/teacher",replace:!0}):n.jsx(Yt,{to:"/login",replace:!0})},px=()=>{const[a,l]=x.useState(""),[i,u]=x.useState(""),[d,f]=x.useState(null),[m,y]=x.useState(!1),{login:p}=qs(),j=mo(),S=async(k=a,$=i)=>{f(null),y(!0);try{const B=await p(k,$);j(B==="SuperAdmin"?"/admin":B==="SchoolAdmin"?"/school-admin":"/teacher")}catch(B){f(B.message||"登录失败,请检查账号密码")}finally{y(!1)}};return n.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[n.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),n.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),n.jsx("div",{className:"w-full max-w-md relative z-10",children:n.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:n.jsx(io,{className:"w-8 h-8 text-white"})}),n.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&n.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),n.jsxs("form",{onSubmit:k=>{k.preventDefault(),S()},className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsxs("div",{className:"relative",children:[n.jsx(lh,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"text",value:a,onChange:k=>l(k.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),n.jsxs("div",{className:"relative",children:[n.jsx(co,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"password",value:i,onChange:k=>u(k.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在验证身份..."})]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{children:"登 录"}),n.jsx($r,{className:"w-4 h-4"})]})})]})]})})]})},ze=({label:a,variant:l="slate",dot:i=!0,className:u=""})=>{const d={emerald:{bg:"bg-emerald-500/10",text:"text-emerald-400",border:"border-emerald-500/20",dotColor:"bg-emerald-400"},amber:{bg:"bg-amber-500/10",text:"text-amber-400",border:"border-amber-500/20",dotColor:"bg-amber-400"},rose:{bg:"bg-rose-500/10",text:"text-rose-400",border:"border-rose-500/20",dotColor:"bg-rose-400"},sky:{bg:"bg-sky-500/10",text:"text-sky-400",border:"border-sky-500/20",dotColor:"bg-sky-400"},slate:{bg:"bg-slate-800/60",text:"text-slate-400",border:"border-slate-700/50",dotColor:"bg-slate-400"},indigo:{bg:"bg-indigo-500/10",text:"text-indigo-400",border:"border-indigo-500/20",dotColor:"bg-indigo-400"}},f=d[l]||d.slate;return n.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium border ${f.bg} ${f.text} ${f.border} ${u}`,children:[i&&n.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${f.dotColor}`}),a]})},hs=({title:a,description:l,badge:i,action:u,className:d=""})=>n.jsxs("div",{className:`flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-6 border-b border-slate-800/80 ${d}`,children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-slate-100",children:a}),i]}),l&&n.jsx("p",{className:"mt-1 text-sm text-slate-400",children:l})]}),u&&n.jsx("div",{className:"flex items-center gap-3",children:u})]}),xo=({tabs:a,activeId:l,onChange:i,className:u=""})=>n.jsx("div",{className:`flex items-center gap-1.5 p-1 bg-slate-900 border border-slate-800 rounded-xl overflow-x-auto ${u}`,children:a.map(d=>{const f=d.id===l;return n.jsxs("button",{type:"button",onClick:()=>i(d.id),className:`px-3 py-1.5 rounded-lg text-xs sm:text-sm font-medium transition-all whitespace-nowrap flex items-center gap-1.5 ${f?"bg-slate-800 text-white shadow-sm border border-slate-700/60":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/40"}`,children:[n.jsx("span",{children:d.label}),d.count!==void 0&&n.jsx("span",{className:`px-1.5 py-0.2 rounded-full text-[10px] font-semibold ${f?"bg-slate-700 text-slate-200":"bg-slate-800/80 text-slate-500"}`,children:d.count})]},d.id)})}),Vr=({value:a,onChange:l,placeholder:i="搜索...",className:u=""})=>n.jsxs("div",{className:`relative flex items-center ${u}`,children:[n.jsx(Wr,{className:"w-4 h-4 text-slate-500 absolute left-3 pointer-events-none"}),n.jsx("input",{type:"text",value:a,onChange:d=>l(d.target.value),placeholder:i,className:"w-full bg-slate-900 border border-slate-800 rounded-xl pl-9 pr-8 py-2 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/30 transition-colors"}),a&&n.jsx("button",{type:"button",onClick:()=>l(""),className:"absolute right-2.5 p-1 rounded-md text-slate-500 hover:text-slate-300 hover:bg-slate-800 transition-colors",children:n.jsx(Un,{className:"w-3.5 h-3.5"})})]}),ka=({items:a,className:l=""})=>{const[i,u]=x.useState(!1),d=x.useRef(null);return x.useEffect(()=>{const f=y=>{d.current&&!d.current.contains(y.target)&&u(!1)},m=y=>{y.key==="Escape"&&u(!1)};return i&&(document.addEventListener("mousedown",f),document.addEventListener("keydown",m)),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",m)}},[i]),n.jsxs("div",{className:`relative inline-block text-left ${l}`,ref:d,children:[n.jsx("button",{type:"button","aria-label":"更多操作","aria-expanded":i,"aria-haspopup":"true",onClick:()=>u(!i),className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-colors border border-transparent hover:border-slate-700/60",title:"更多操作",children:n.jsx(S0,{className:"w-4 h-4"})}),i&&n.jsx("div",{className:"absolute right-0 mt-1 w-44 rounded-xl bg-slate-900 border border-slate-800 shadow-2xl py-1 z-30 animate-in fade-in-50 zoom-in-95 duration-100",children:a.map((f,m)=>n.jsxs("button",{type:"button",disabled:f.disabled,onClick:()=>{u(!1),f.onClick()},className:`w-full text-left px-3.5 py-2 text-xs sm:text-sm font-medium flex items-center gap-2.5 transition-colors ${f.danger?"text-rose-400 hover:bg-rose-500/10":"text-slate-300 hover:text-white hover:bg-slate-800"} ${f.disabled?"opacity-40 cursor-not-allowed":""}`,children:[f.icon&&n.jsx("span",{className:"w-4 h-4",children:f.icon}),n.jsx("span",{children:f.label})]},m))})]})},oh=({text:a,label:l="复制",className:i=""})=>{const[u,d]=x.useState(!1),f=async m=>{m.stopPropagation();try{await navigator.clipboard.writeText(a),d(!0),setTimeout(()=>d(!1),1500)}catch{const y=document.createElement("textarea");y.value=a,document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y),d(!0),setTimeout(()=>d(!1),1500)}};return n.jsx("button",{type:"button","aria-label":u?"已复制":l,onClick:f,className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium transition-all ${u?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 font-semibold":"bg-slate-800 text-slate-300 hover:text-white hover:bg-slate-700/80 border border-slate-700/60"} ${i}`,children:u?n.jsxs(n.Fragment,{children:[n.jsx(ao,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{children:"已复制"})]}):n.jsxs(n.Fragment,{children:[n.jsx(pa,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:l})]})})},ls=({title:a,value:l,subtitle:i,icon:u,badge:d,className:f=""})=>n.jsxs("div",{className:`p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex flex-col justify-between ${f}`,children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs sm:text-sm font-medium text-slate-400",children:a}),u&&n.jsx("div",{className:"p-2 rounded-xl bg-slate-800/80 text-slate-300",children:u})]}),n.jsxs("div",{className:"mt-3 flex items-baseline justify-between gap-2",children:[n.jsx("div",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-white",children:l}),d]}),i&&n.jsx("p",{className:"mt-1 text-xs text-slate-500",children:i})]}),pn=({isOpen:a,onClose:l,title:i,children:u,maxWidth:d="max-w-md",preventClose:f=!1})=>(x.useEffect(()=>{const m=y=>{y.key==="Escape"&&!f&&l()};return a&&document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[a,l,f]),a?n.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-sm animate-in fade-in duration-150",children:n.jsxs("div",{className:`w-full ${d} bg-slate-900 border border-slate-800 rounded-2xl shadow-2xl overflow-hidden animate-in zoom-in-95 duration-150`,onClick:m=>m.stopPropagation(),children:[n.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800/80",children:[n.jsx("h3",{className:"text-base sm:text-lg font-semibold text-slate-100",children:i}),n.jsx("button",{type:"button","aria-label":"关闭",disabled:f,onClick:()=>{f||l()},className:`p-1 rounded-lg text-slate-400 transition-colors ${f?"opacity-30 cursor-not-allowed":"hover:text-white hover:bg-slate-800"}`,children:n.jsx(Un,{className:"w-5 h-5"})})]}),n.jsx("div",{className:"p-6",children:u})]})}):null),ih=({isOpen:a,onClose:l,onConfirm:i,title:u,description:d,targetName:f,confirmLabel:m="确认执行",loading:y=!1})=>a?n.jsx(pn,{isOpen:a,onClose:l,title:u,maxWidth:"max-w-md",preventClose:y,children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-start gap-3 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300",children:[n.jsx(Fn,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),n.jsxs("div",{className:"text-xs sm:text-sm leading-relaxed",children:[f&&n.jsxs("span",{className:"font-semibold text-rose-200",children:["【",f,"】"]}),d]})]}),n.jsxs("div",{className:"flex items-center justify-end gap-3 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:l,disabled:y,className:"px-4 py-2 rounded-xl text-sm font-medium text-slate-300 hover:bg-slate-800 transition-colors",children:"取消"}),n.jsx("button",{type:"button",onClick:i,disabled:y,className:"px-4 py-2 rounded-xl text-sm font-semibold bg-rose-600 hover:bg-rose-500 text-white shadow-lg shadow-rose-600/20 transition-all disabled:opacity-50",children:y?"处理中...":m})]})]})}):null,xx=()=>{const[a,l]=x.useState(null),[i,u]=x.useState([]),[d,f]=x.useState([]),[m,y]=x.useState(null),[p,j]=x.useState([]),[S,k]=x.useState(!0),$=async()=>{var L,Y;try{const[Q,J,oe,ie,fe]=await Promise.all([le.getAdminMetrics(),le.getTenants(),le.getAdminNotifications(6),((L=le.getSystemHealth)==null?void 0:L.call(le).catch(()=>null))??Promise.resolve(null),((Y=le.getAuditLogs)==null?void 0:Y.call(le,6).catch(()=>[]))??Promise.resolve([])]);l(Q),u(J),f(oe),ie&&y(ie),fe&&j(fe)}catch(Q){console.error("Failed to load admin dashboard data",Q)}finally{k(!1)}};x.useEffect(()=>{$();const L=setInterval($,1e4);return()=>clearInterval(L)},[]);const B=(a==null?void 0:a.totalDevices)??0,W=(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0,U=(a==null?void 0:a.offlineDevices)??Math.max(0,B-W),I=B>0?Math.round(W/B*100):100;return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:"全域云控超管总览",description:"实时掌握全网多校区教学终端连通率、异常事件与核心调度通道",action:n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsxs(be,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[n.jsx(jt,{className:"w-4 h-4 text-amber-400"}),"激活码管理"]}),n.jsxs(be,{to:"/admin/broadcast",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all",children:[n.jsx(Hs,{className:"w-4 h-4"}),"全域应急广播"]})]})}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"大屏在线率"}),n.jsxs("div",{className:"mt-2 text-2xl sm:text-3xl font-bold tracking-tight text-white",children:[I,"%"]}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-mono mt-0.5",children:[W," / ",B," 台在线"]})]}),n.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[n.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[n.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),n.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${I}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),n.jsx(Fr,{className:"w-5 h-5 text-emerald-400 absolute"})]})]}),n.jsx(ls,{title:"离线设备",value:S?"-":U,subtitle:U>0?"建议督促校区排查网络":"全网终端运行畅通",icon:n.jsx(Fn,{className:`w-5 h-5 ${U>0?"text-amber-400":"text-slate-400"}`}),badge:U>0?n.jsx(ze,{label:"待恢复",variant:"amber"}):n.jsx(ze,{label:"正常",variant:"emerald"})}),n.jsx(ls,{title:"今日通知 / 点呼",value:S?"-":(a==null?void 0:a.todayNotifications)??0,subtitle:"各校区教师工作台发送",icon:n.jsx(io,{className:"w-5 h-5 text-blue-400"})}),n.jsx(ls,{title:"入驻学校",value:S?"-":(a==null?void 0:a.totalTenants)??i.length,subtitle:"独立多租户隔离",icon:n.jsx(Zt,{className:"w-5 h-5 text-indigo-400"})})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[n.jsxs("div",{className:"lg:col-span-7 space-y-6",children:[n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[n.jsx("h2",{className:"text-sm font-semibold text-white",children:"核心管控模块"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs(be,{to:"/admin/tenants",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-blue-500/10 text-blue-400",children:n.jsx(Zt,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"学校租户"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"校区开通、参数与冻结"})]})]}),n.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(be,{to:"/admin/users",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-indigo-500/10 text-indigo-400",children:n.jsx(Us,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"用户中枢"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"多角色账号与密码管控"})]})]}),n.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(be,{to:"/admin/devices",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-emerald-500/10 text-emerald-400",children:n.jsx(Bs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"设备集控"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"心跳、远程指令与清退"})]})]}),n.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(be,{to:"/admin/broadcast",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-rose-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 text-rose-400",children:n.jsx(Hs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),n.jsx("div",{className:"text-[11px] text-slate-400",children:"全网最高优先极速强插"})]})]}),n.jsx($r,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Zt,{className:"w-4 h-4 text-indigo-400"}),"入驻校区简况"]}),n.jsx(be,{to:"/admin/tenants",className:"text-xs text-blue-400 hover:underline",children:"管理全部校区"})]}),n.jsx("div",{className:"divide-y divide-slate-800/60",children:i.slice(0,4).map(L=>n.jsxs("div",{className:"py-2.5 flex items-center justify-between text-xs",children:[n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-slate-200",children:L.name}),n.jsxs("div",{className:"text-[11px] font-mono text-slate-500",children:[L.id," · ",L.classroomCount," 班级"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("span",{className:"text-slate-400 text-xs font-mono",children:[L.deviceCount," 设备"]}),n.jsx(ze,{label:L.isActive?"正常":"已冻结",variant:L.isActive?"emerald":"rose"})]})]},L.id))})]})]}),n.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Fn,{className:"w-4 h-4 text-amber-400"}),"需要关注"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"异常终端优先浮出"})]}),U===0?n.jsxs("div",{className:"py-6 text-center text-xs text-slate-400",children:[n.jsx(At,{className:"w-6 h-6 text-emerald-400 mx-auto mb-1.5"}),n.jsx("span",{children:"全网各校区终端运行良好,无异常阻断"})]}):n.jsx("div",{className:"space-y-2",children:n.jsxs("div",{className:"p-3 rounded-xl bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300",children:[n.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400"}),"检测到 ",U," 台大屏终端离线"]}),n.jsx("div",{className:"text-[11px] text-amber-400/80 mt-1",children:"未接收到周期心跳包,可能由于关机或校内网络断开导致。"}),n.jsx("div",{className:"mt-2 text-right",children:n.jsx(be,{to:"/admin/devices?status=offline",className:"text-xs text-amber-400 hover:underline font-semibold",children:"前往设备集控排查 →"})})]})})]}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(ho,{className:"w-4 h-4 text-emerald-400"}),"最近安全审计流水"]}),n.jsx(be,{to:"/admin/history",className:"text-xs text-blue-400 hover:underline",children:"完整流水"})]}),n.jsx("div",{className:"space-y-2 text-xs",children:p.length===0?n.jsx("div",{className:"py-6 text-center text-xs text-slate-500",children:"暂无审计记录"}):p.map(L=>n.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80",children:[n.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[n.jsx("span",{className:"font-semibold text-slate-200",children:L.action}),n.jsx("span",{className:"text-slate-500 font-mono",children:new Date(L.occurredAt).toLocaleTimeString()})]}),n.jsxs("div",{className:"text-[11px] text-slate-400 mt-1 truncate",children:[L.actorUsername||"系统"," · ",L.targetType," ",L.targetId]})]},L.id))})]})]})]})]})},gx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),[m,y]=x.useState("all"),[p,j]=x.useState(null),[S,k]=x.useState([]),[$,B]=x.useState(!1),[W,U]=x.useState(null),[I,L]=x.useState(""),[Y,Q]=x.useState(""),[J,oe]=x.useState(!1),[ie,fe]=x.useState(null),[me,X]=x.useState(!1),he=async()=>{try{const g=await le.getAllDevices();l(g)}catch(g){console.error("Failed to load devices",g)}finally{u(!1)}};x.useEffect(()=>{he();const g=setInterval(he,5e3);return()=>clearInterval(g)},[]);const K=async(g,P,se)=>{j(null);try{const M=await le.sendDeviceCommand(g,P,se);j({deviceId:g,message:M.message,success:!0}),he()}catch(M){j({deviceId:g,message:M.message||"远程指令下发失败",success:!1})}},pe=async g=>{if(S.length===0)return;B(!0);let P=0;for(const M of S)try{await le.sendDeviceCommand(M,g),P++}catch{}const se=g==="self_check"?"批量运行自检":"批量刷新配置";j({deviceId:`已选 ${S.length} 台`,message:`${se}指令已成功下发至 ${P} 台大屏终端`,success:!0}),k([]),B(!1),he()},V=g=>{k(P=>P.includes(g)?P.filter(se=>se!==g):[...P,g])},re=g=>{S.length===g.length?k([]):k(g.map(P=>P.deviceId))},Ce=g=>{U(g),L(g.hostname||""),Q(g.classroomId||"")},z=async g=>{if(g.preventDefault(),!!W){oe(!0);try{await le.updateDevice(W.deviceId,{hostname:I.trim()||void 0,classroomId:Y.trim()||void 0}),j({deviceId:W.deviceId,message:"设备信息更新成功",success:!0}),U(null),he()}catch(P){j({deviceId:W.deviceId,message:P.message||"更新设备失败",success:!1})}finally{oe(!1)}}},de=async()=>{if(ie){X(!0);try{await le.decommissionDevice(ie.deviceId),j({deviceId:ie.deviceId,message:"设备已成功清退并注销",success:!0}),fe(null),he()}catch(g){j({deviceId:ie.deviceId,message:g.message||"清退设备失败",success:!1})}finally{X(!1)}}},_=g=>{if(!g)return"从无心跳";const P=Math.floor((Date.now()-new Date(g).getTime())/1e3);return P<10?"刚刚":P<60?`${P} 秒前`:P<3600?`${Math.floor(P/60)} 分钟前`:`${Math.floor(P/3600)} 小时前`},q=[{id:"all",label:"全部设备",count:a.length},{id:"online",label:"在线正常",count:a.filter(g=>g.isOnline).length},{id:"offline",label:"离线需关注",count:a.filter(g=>!g.isOnline).length}],E=a.filter(g=>{if(m==="online"&&!g.isOnline||m==="offline"&&g.isOnline)return!1;if(d.trim()){const P=d.toLowerCase(),se=g.tenantName.toLowerCase().includes(P),M=g.classroomName.toLowerCase().includes(P),ae=g.deviceId.toLowerCase().includes(P),ye=g.hostname&&g.hostname.toLowerCase().includes(P);if(!se&&!M&&!ae&&!ye)return!1}return!0});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:"全网设备集控中心",description:"实时监控教室终端健康心跳与服务状态,支持批量安全自检/刷新配置、单机秒级调控与安全清退",action:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{u(!0),he()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Tt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新"]}),n.jsxs(be,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(jt,{className:"w-3.5 h-3.5"}),"生成激活码"]})]})}),p&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between text-xs transition-all ${p.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[p.success?n.jsx(At,{className:"w-4 h-4 text-emerald-400 shrink-0"}):n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsxs("span",{children:["[",p.deviceId,"] ",p.message]})]}),n.jsx("button",{onClick:()=>j(null),className:"text-xs opacity-70 hover:opacity-100 font-medium",children:"关闭"})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsx(xo,{tabs:q,activeId:m,onChange:g=>{y(g),k([])}}),n.jsx("div",{className:"w-full sm:w-72",children:n.jsx(Vr,{value:d,onChange:f,placeholder:"搜索学校、班级、设备编号..."})})]}),S.length>0&&n.jsxs("div",{className:"p-3 bg-blue-950/60 border border-blue-500/40 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-3 text-xs shadow-lg animate-in fade-in duration-100",children:[n.jsxs("div",{className:"flex items-center gap-2 text-blue-200",children:[n.jsx(At,{className:"w-4 h-4 text-blue-400 shrink-0"}),n.jsxs("span",{children:["已勾选 ",n.jsx("strong",{children:S.length})," 台教室大屏终端"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{type:"button",disabled:$,onClick:()=>pe("self_check"),className:"px-3 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium flex items-center gap-1.5 transition-colors disabled:opacity-50",children:[n.jsx(Fr,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"批量运行自检"})]}),n.jsxs("button",{type:"button",disabled:$,onClick:()=>pe("refresh_config"),className:"px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 hover:text-white font-medium border border-slate-700 flex items-center gap-1.5 transition-colors disabled:opacity-50",children:[n.jsx(Tt,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"批量刷新配置"})]}),n.jsx("button",{type:"button",disabled:$,onClick:()=>k([]),className:"px-2.5 py-1.5 rounded-xl text-slate-400 hover:text-white transition-colors",children:"取消"})]})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-[11px] uppercase tracking-wider text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-3 w-10 text-center",children:n.jsx("input",{type:"checkbox",checked:E.length>0&&S.length===E.length,onChange:()=>re(E),className:"rounded bg-slate-950 border-slate-700 text-blue-600 focus:ring-0 cursor-pointer",title:"全选当前列表"})}),n.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"设备编号 / 主机名"}),n.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"运行状态"}),n.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"心跳与 IP"}),n.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"版本"}),n.jsx("th",{className:"py-3.5 px-4 font-semibold text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:E.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:7,className:"text-center py-12 text-xs text-slate-500",children:i?"正在同步设备状态...":"暂无匹配的设备"})}):E.map(g=>{const P=S.includes(g.deviceId);return n.jsxs("tr",{className:`hover:bg-slate-800/25 transition-colors ${P?"bg-blue-600/10":""}`,children:[n.jsx("td",{className:"py-3.5 px-3 text-center",children:n.jsx("input",{type:"checkbox",checked:P,onChange:()=>V(g.deviceId),className:"rounded bg-slate-950 border-slate-700 text-blue-600 focus:ring-0 cursor-pointer"})}),n.jsxs("td",{className:"py-3.5 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:g.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:g.tenantName})]}),n.jsxs("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:[n.jsx("div",{children:g.deviceId}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[n.jsx(Bs,{className:"w-3 h-3 text-slate-500"}),n.jsx("span",{children:g.hostname||"Classroom-PC"})]})]}),n.jsx("td",{className:"py-3.5 px-4",children:n.jsx(ze,{label:g.isOnline?"在线":"离线",variant:g.isOnline?"emerald":"slate"})}),n.jsxs("td",{className:"py-3.5 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:_(g.lastHeartbeat)}),n.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:g.remoteIp||"127.0.0.1"})]}),n.jsx("td",{className:"py-3.5 px-4 text-xs",children:n.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono text-[11px]",children:["v",g.clientVersion||"2.1.0"]})}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:n.jsx(ka,{items:[{label:"触发自检",icon:n.jsx(Fr,{className:"w-3.5 h-3.5 text-indigo-400"}),onClick:()=>K(g.deviceId,"self_check")},{label:"刷新配置",icon:n.jsx(Tt,{className:"w-3.5 h-3.5 text-sky-400"}),onClick:()=>K(g.deviceId,"refresh_config")},{label:"重启客户端",icon:n.jsx(J0,{className:"w-3.5 h-3.5 text-amber-400"}),onClick:()=>K(g.deviceId,"restart_client")},{label:"编辑信息",icon:n.jsx(nh,{className:"w-3.5 h-3.5 text-slate-300"}),onClick:()=>Ce(g)},{label:"清退设备",icon:n.jsx(Sa,{className:"w-3.5 h-3.5 text-rose-400"}),onClick:()=>fe(g),danger:!0}]})})]},g.deviceId)})})]})})}),W&&n.jsx(pn,{isOpen:!0,onClose:()=>U(null),title:`编辑设备: ${W.deviceId}`,preventClose:J,children:n.jsxs("form",{onSubmit:z,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"计算机主机名 (Hostname)"}),n.jsx("input",{type:"text",value:I,onChange:g=>L(g.target.value),placeholder:"例如:ROOM-801-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属教室编号 (ClassroomId)"}),n.jsx("input",{type:"text",value:Y,onChange:g=>Q(g.target.value),placeholder:"例如:class-801",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 font-mono"})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",disabled:J,onClick:()=>U(null),className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:J,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all disabled:opacity-50",children:J?"保存中...":"保存更改"})]})]})}),n.jsx(ih,{isOpen:!!ie,onClose:()=>fe(null),onConfirm:de,title:"确认清退大屏设备",targetName:ie?`${ie.classroomName} (${ie.deviceId})`:void 0,description:"清退后该大屏终端将注销授权,无法接收通知与指令,需重新生成激活码方可绑定。",confirmLabel:"确认注销清退",loading:me})]})},vx=()=>{const[a]=yp(),[l,i]=x.useState([]),[u,d]=x.useState([]),[f,m]=x.useState(!0),[y,p]=x.useState(null),[j,S]=x.useState(""),[k,$]=x.useState(""),[B,W]=x.useState(!1),[U,I]=x.useState(""),[L,Y]=x.useState([]),[Q,J]=x.useState(!1),[oe,ie]=x.useState(""),[fe,me]=x.useState(!1),[X,he]=x.useState(""),[K,pe]=x.useState(!1),[V,re]=x.useState(null),Ce=async()=>{try{const[E,g]=await Promise.all([le.getAdminActivationCodes(),le.getTenants()]);i(E),d(g),g.length>0&&!U&&I(g[0].id)}catch(E){console.error("Failed to load activation codes",E)}finally{m(!1)}};x.useEffect(()=>{Ce()},[]),x.useEffect(()=>{const E=a.get("tenantId"),g=a.get("openGenerate")==="true";E&&($(E),I(E),g&&W(!0))},[a]),x.useEffect(()=>{U&&(J(!0),le.getAdminClasses(U).then(E=>{Y(E),E.length>0?(ie(E[0].id),me(!1)):(ie(""),me(!0))}).catch(E=>{console.warn("Could not load classes for tenant:",U,E),Y([]),me(!0)}).finally(()=>J(!1)))},[U]);const z=E=>{navigator.clipboard.writeText(E),p(E),setTimeout(()=>p(null),2e3)},de=async E=>{E.preventDefault();const g=fe?X.trim():oe.trim();if(!U||!g){alert("请选择学校及目标班级");return}pe(!0);try{const P=await le.generateAdminCode(U,g),se=u.find(ae=>ae.id===U),M=L.find(ae=>ae.id===g);re({code:P.code,schoolName:(se==null?void 0:se.name)||U,className:(M==null?void 0:M.displayName)||g}),W(!1),he(""),Ce()}catch(P){alert(P.message||"生成激活码失败")}finally{pe(!1)}},_=async E=>{if(window.confirm(`确定要废弃/删除激活码 [${E}] 吗?废弃后将无法用于设备初始化绑定。`))try{await le.deleteActivationCode(E),Ce()}catch(g){alert(g.message||"删除激活码失败")}},q=l.filter(E=>{const g=!k||E.tenantId===k,P=E.code.toLowerCase().includes(j.toLowerCase())||E.classroomName.toLowerCase().includes(j.toLowerCase())||E.tenantName.toLowerCase().includes(j.toLowerCase());return g&&P});return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(jt,{className:"w-4 h-4"})}),n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{m(!0),Ce()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Tt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{re(null),W(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[n.jsx(us,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),V&&n.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:n.jsx(rh,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),n.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",n.jsx("span",{className:"font-medium text-white",children:V.schoolName})," / ",n.jsx("span",{className:"font-medium text-white",children:V.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:V.code}),n.jsx("button",{onClick:()=>z(V.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:y===V.code?n.jsxs(n.Fragment,{children:[n.jsx(ao,{className:"w-3.5 h-3.5"}),"已复制"]}):n.jsxs(n.Fragment,{children:[n.jsx(pa,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Wr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:j,onChange:E=>S(E.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Zt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:k,onChange:E=>$(E.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(E=>n.jsxs("option",{value:E.id,children:[E.name," (",E.id,")"]},E.id))]})]}),n.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"text-white font-medium",children:q.length})," 个激活码"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:q.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(jt,{className:"w-8 h-8 text-slate-600"}),n.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),n.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),n.jsxs("button",{onClick:()=>W(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[n.jsx(us,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):q.map(E=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:E.code}),n.jsx("button",{onClick:()=>z(E.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:y===E.code?n.jsx(ao,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(pa,{className:"w-3.5 h-3.5"})})]})}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:E.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:E.tenantName})]}),n.jsx("td",{className:"py-4 px-4",children:E.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx(At,{className:"w-3 h-3"}),"已激活绑定"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx(Hr,{className:"w-3 h-3"}),"等待激活"]})}),n.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:E.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:E.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(E.expiresAt).toLocaleDateString()," ",new Date(E.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsx("button",{onClick:()=>z(E.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:y===E.code?"已复制":"复制"}),n.jsx("button",{onClick:()=>_(E.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:n.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},E.code))})]})})}),B&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(jt,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),n.jsxs("form",{onSubmit:de,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),n.jsx("select",{value:U,onChange:E=>I(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(E=>n.jsxs("option",{value:E.id,children:[E.name," (",E.id,") ",E.isActive?"":"[已冻结]"]},E.id))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),n.jsx("button",{type:"button",onClick:()=>me(!fe),className:"text-[11px] text-amber-400 hover:underline",children:fe?"从班级列表选择":"手动输入班级ID"})]}),Q?n.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[n.jsx(Tt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):fe?n.jsx("input",{type:"text",value:X,onChange:E=>he(E.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):L.length>0?n.jsx("select",{value:oe,onChange:E=>ie(E.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:L.map(E=>n.jsxs("option",{value:E.id,children:[E.displayName," (",E.id,")"]},E.id))}):n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[n.jsx(mn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),n.jsx("input",{type:"text",value:X,onChange:E=>he(E.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),n.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[n.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),n.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),n.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>W(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:K,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:K?"生成中...":"立即生成激活码"})]})]})]})})]})},yx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),m=async()=>{try{const p=await le.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};x.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const y=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),n.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[n.jsx(Tt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新审计"]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Wr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:y.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在加载审计数据...":"暂无呼叫历史记录"})}):y.map(p=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:p.className}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),n.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[n.jsx("div",{className:"font-medium text-sm",children:p.message}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),n.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),n.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(At,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[n.jsx(uo,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Hr,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),n.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?n.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):n.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},wx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState(""),[m,y]=x.useState(null),[p,j]=x.useState(!1),[S,k]=x.useState({id:"",name:""}),[$,B]=x.useState(!1),[W,U]=x.useState(null),[I,L]=x.useState({name:"",isActive:!0}),[Y,Q]=x.useState(!1),J=async()=>{try{const X=await le.getTenants();l(X)}catch(X){console.error("Failed to load tenants",X)}finally{u(!1)}};x.useEffect(()=>{J()},[]);const oe=async X=>{if(X.preventDefault(),!(!S.id.trim()||!S.name.trim())){B(!0);try{await le.createTenant({id:S.id.trim(),name:S.name.trim()}),y({text:`学校 [${S.name}] 创建成功!`,success:!0}),j(!1),k({id:"",name:""}),J()}catch(he){y({text:he.message||"创建学校失败",success:!1})}finally{B(!1)}}},ie=X=>{U(X),L({name:X.name,isActive:X.isActive})},fe=async X=>{if(X.preventDefault(),!(!W||!I.name.trim())){Q(!0);try{await le.updateTenant(W.id,{name:I.name.trim(),isActive:I.isActive}),y({text:`学校 [${I.name}] 配置已更新`,success:!0}),U(null),J()}catch(he){y({text:he.message||"更新学校配置失败",success:!1})}finally{Q(!1)}}},me=a.filter(X=>X.name.toLowerCase().includes(d.toLowerCase())||X.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{u(!0),J()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Tt,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(At,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:m.text})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Wr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:X=>f(X.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:me.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:i?"正在读取租户列表...":"暂无匹配的学校租户"})}):me.map(X=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:n.jsx(Zt,{className:"w-4 h-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-white",children:X.name}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:X.id})]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[n.jsx(Br,{className:"w-3.5 h-3.5 text-indigo-400"}),n.jsxs("span",{children:[X.classroomCount," 个班级"]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("span",{className:"font-semibold text-emerald-400",children:[X.onlineCount," 在线"]}),n.jsx("span",{className:"text-slate-500",children:"/"}),n.jsxs("span",{className:"text-slate-400",children:[X.deviceCount," 总屏"]})]})}),n.jsx("td",{className:"py-4 px-4",children:X.isActive?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx(At,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"正常运营"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(ma,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"已停用冻结"})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(X.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsxs(be,{to:`/admin/codes?tenantId=${X.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[n.jsx(jt,{className:"w-3.5 h-3.5"}),"生成激活码"]}),n.jsxs("button",{onClick:()=>ie(X),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[n.jsx(nh,{className:"w-3 h-3"}),"编辑配置"]})]})})]},X.id))})]})})}),p&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),n.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:S.id,onChange:X=>k({...S,id:X.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:S.name,onChange:X=>k({...S,name:X.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:$,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:$?"正在创建...":"确认接入"})]})]})]})}),W&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",W.id]}),n.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),n.jsx("input",{type:"text",required:!0,value:I.name,onChange:X=>L({...I,name:X.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),n.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!0,onChange:()=>L({...I,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!1,onChange:()=>L({...I,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>U(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:Y,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:Y?"保存中...":"保存更改"})]})]})]})})]})},bx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,y]=x.useState(""),[p,j]=x.useState(""),[S,k]=x.useState(""),[$,B]=x.useState(null),[W,U]=x.useState(!1),[I,L]=x.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[Y,Q]=x.useState(!1),[J,oe]=x.useState(null),[ie,fe]=x.useState(""),[me,X]=x.useState(!1),[he,K]=x.useState(null),pe=async()=>{try{const[_,q]=await Promise.all([le.getUsers(p||void 0,S||void 0),le.getTenants()]);l(_),u(q)}catch(_){console.error("Failed to load user management data",_)}finally{f(!1)}};x.useEffect(()=>{pe()},[p,S]);const V=async _=>{var q;if(_.preventDefault(),!I.tenantId||!I.username||!I.password||!I.fullName){B({text:"请填写所有必填字段",success:!1});return}Q(!0);try{await le.createUser(I),B({text:`用户 [${I.username}] 创建成功!`,success:!0}),U(!1),L({tenantId:((q=i[0])==null?void 0:q.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),pe()}catch(E){B({text:E.message||"创建用户失败",success:!1})}finally{Q(!1)}},re=async _=>{if(_.preventDefault(),!(!J||!ie.trim())){X(!0);try{await le.resetPassword(J.id,ie.trim()),B({text:`用户 [${J.username}] 的密码已重置成功`,success:!0}),oe(null),fe("")}catch(q){B({text:q.message||"重置密码失败",success:!1})}finally{X(!1)}}},Ce=async _=>{const q=!_.isLocked,E=q?`确定要锁定账号 [${_.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${_.username}] 吗?`;if(window.confirm(E)){K(`lock_${_.id}`);try{await le.setUserLock(_.id,q),B({text:`用户 [${_.username}] 已成功${q?"锁定":"解锁"}`,success:!0}),pe()}catch(g){B({text:g.message||"操作失败",success:!1})}finally{K(null)}}},z=async _=>{if(_.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${_.username} (${_.fullName})] 吗?此操作不可逆!`)){K(`delete_${_.id}`);try{await le.deleteUser(_.id),B({text:`用户 [${_.username}] 已被删除`,success:!0}),pe()}catch(q){B({text:q.message||"删除用户失败",success:!1})}finally{K(null)}}},de=a.filter(_=>_.username.toLowerCase().includes(m.toLowerCase())||_.fullName.toLowerCase().includes(m.toLowerCase())||_.tenantName.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{f(!0),pe()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(Tt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{i.length>0&&!I.tenantId&&L(_=>({..._,tenantId:i[0].id})),U(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"新建用户"]})]})]}),$&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${$.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[$.success?n.jsx(At,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(mn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:$.text})]}),n.jsx("button",{onClick:()=>B(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Wr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:m,onChange:_=>y(_.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Zt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:p,onChange:_=>j(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部学校 (全网)"}),i.map(_=>n.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Br,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:S,onChange:_=>k(_.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部角色"}),n.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),n.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:de.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):de.map(_=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:_.fullName}),n.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:_.username})]}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:_.tenantName}),n.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:_.tenantId})]}),n.jsx("td",{className:"py-4 px-4",children:_.role==="SuperAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(sh,{className:"w-3 h-3"}),"超级管理员"]}):_.role==="SchoolAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[n.jsx(Zt,{className:"w-3 h-3"}),"校区管理员"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[n.jsx(Br,{className:"w-3 h-3"}),"授课老师"]})}),n.jsx("td",{className:"py-4 px-4",children:_.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[n.jsx(co,{className:"w-3 h-3"}),"已锁定封禁"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[n.jsx(At,{className:"w-3 h-3"}),"正常"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:_.lastLoginAt?new Date(_.lastLoginAt).toLocaleString():"尚未登录"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>oe(_),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[n.jsx(jt,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),_.role!=="SuperAdmin"&&n.jsxs("button",{onClick:()=>Ce(_),disabled:he===`lock_${_.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${_.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:_.isLocked?"解除账号锁定":"锁定账号",children:[_.isLocked?n.jsx(th,{className:"w-3 h-3"}):n.jsx(co,{className:"w-3 h-3"}),_.isLocked?"解锁":"锁定"]}),_.role!=="SuperAdmin"&&n.jsx("button",{onClick:()=>z(_),disabled:he===`delete_${_.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:n.jsx(Sa,{className:"w-3.5 h-3.5"})})]})})]},_.id))})]})})}),W&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),n.jsxs("form",{onSubmit:V,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),n.jsxs("select",{required:!0,value:I.tenantId,onChange:_=>L({...I,tenantId:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"-- 请选择学校 --"}),i.map(_=>n.jsxs("option",{value:_.id,children:[_.name," (",_.id,")"]},_.id))]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),n.jsxs("select",{value:I.role,onChange:_=>L({...I,role:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:I.username,onChange:_=>L({...I,username:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:I.fullName,onChange:_=>L({...I,fullName:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:I.password,onChange:_=>L({...I,password:_.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>U(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:Y,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:Y?"正在创建...":"确认开户"})]})]})]})}),J&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",J.username]}),n.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",J.tenantName,"] 的 [",J.fullName,"] 强行设置新密码。"]}),n.jsxs("form",{onSubmit:re,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:ie,onChange:_=>fe(_.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>{oe(null),fe("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:me,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:me?"重置中...":"确认重置"})]})]})]})})]})},jx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState([]),[m,y]=x.useState(!1),[p,j]=x.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[S,k]=x.useState(!1),[$,B]=x.useState(!1),[W,U]=x.useState(null),[I,L]=x.useState(null),[Y,Q]=x.useState(null),J=[{title:"消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速有序撤离至操场!",duration:60,shake:!0,voice:!0,icon:T0},{title:"恶劣天气避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁前往室外!",duration:45,shake:!0,voice:!0,icon:j0},{title:"临时紧急调度会议",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学教室内自习。",duration:30,shake:!1,voice:!0,icon:Us},{title:"作息调整离校通知",content:"因突发教学安排,今天下午放学时间临时调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:U0}],oe=async()=>{try{const z=await le.getTenants();l(z)}catch(z){console.error("Failed to load tenants",z)}finally{u(!1)}},ie=async()=>{y(!0);try{const z=await le.getAdminNotifications(15);f(z)}catch(z){console.error("Failed to load recent broadcasts",z)}finally{y(!1)}};x.useEffect(()=>{oe(),ie()},[]);const fe=z=>{j(de=>({...de,title:`⚠️ ${z.title}`,message:z.content,durationSeconds:z.duration,shake:z.shake,voice:z.voice}))},me=z=>{if(z.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}k(!0)};x.useEffect(()=>{if(!W)return;let z=!1,de;const _=Date.now(),q=async()=>{try{const E=await le.getBroadcastReceiptSummary(W);if(z)return;L(E),!E.completed&&Date.now()-_<6e4&&(de=window.setTimeout(q,2e3))}catch{!z&&Date.now()-_<6e4&&(de=window.setTimeout(q,3e3))}};return q(),()=>{z=!0,de&&clearTimeout(de)}},[W]);const X=async()=>{B(!0);try{const z=await le.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});z.broadcastId&&U(z.broadcastId),Q({dispatchedCount:z.dispatchedCount,targetSchools:z.targetSchools,message:z.message,success:!0,timestamp:new Date().toLocaleTimeString()}),k(!1),j(de=>({...de,message:""})),ie()}catch(z){Q({dispatchedCount:0,targetSchools:0,message:z.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),k(!1)}finally{B(!1)}},he=a.find(z=>z.id===p.tenantId),K=he?he.classroomCount:a.reduce((z,de)=>z+(de.classroomCount||0),0);he?he.deviceCount:a.reduce((z,de)=>z+(de.deviceCount||0),0);const pe=(I==null?void 0:I.targetDevices)??null,V=(I==null?void 0:I.displayed)??0,re=(I==null?void 0:I.pending)??null,Ce=I&&I.targetDevices>0?Math.min(100,Math.round(V/I.targetDevices*100)):0;return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:"全域应急广播通道",description:"全网最高优先调度通道,覆盖多校区所有教室大屏终端,支持全屏强置顶与语音播报",badge:n.jsx(ze,{label:"极高优先级",variant:"rose"})}),Y&&n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4 animate-in fade-in duration-150",children:[n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[Y.success?n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(At,{className:"w-5 h-5"})}):n.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:n.jsx(Fn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-sm font-semibold text-white",children:Y.success?"紧急广播指令已成功下发至目标教室大屏":"广播下发失败"}),n.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:Y.message})]})]}),n.jsx("button",{type:"button",onClick:()=>{Q(null),U(null),L(null)},className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(Un,{className:"w-4 h-4"})})]}),Y.success&&n.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[n.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[n.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),n.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${Ce}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),n.jsxs("span",{className:"text-xs font-bold text-white absolute",children:[Ce,"%"]})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-xs font-semibold text-white",children:"大屏显示达成率"}),n.jsx("div",{className:"text-[11px] text-slate-400 mt-0.5",children:I?`${V} / ${pe} 台大屏已完成现场弹窗`:`广播已调度下发至 ${Y.dispatchedCount||0} 个目标班级,正在等待终端回执...`})]})]}),n.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[n.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20 text-emerald-400",children:[n.jsx("div",{className:"font-bold text-sm",children:V}),n.jsx("div",{className:"text-[10px]",children:"已显示"})]}),n.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-300",children:[n.jsx("div",{className:"font-bold text-sm",children:re!==null?re:"—"}),n.jsx("div",{className:"text-[10px]",children:I?"等待回执":"等待统计"})]}),n.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-400",children:[n.jsx("div",{className:"font-bold text-sm",children:(I==null?void 0:I.failed)??"—"}),n.jsx("div",{className:"text-[10px]",children:"失败/离线"})]})]})]}),Y.success&&a.length>0&&n.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-800",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"目标校区下达详情"}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:a.map(z=>!p.tenantId||p.tenantId===z.id?n.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80 flex items-center justify-between text-xs",children:[n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-slate-200",children:z.name}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:[z.classroomCount," 间教室 · ",z.deviceCount," 台大屏"]})]}),n.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 font-medium",children:[n.jsx(Hs,{className:"w-3.5 h-3.5 text-blue-400"}),n.jsx("span",{children:"已调度下发"})]})]},z.id):null)})]})]}),n.jsxs("div",{className:"space-y-2.5",children:[n.jsx("label",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider block",children:"应急广播预设模板(点击快速填装)"}),n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:J.map((z,de)=>{const _=z.icon;return n.jsxs("button",{type:"button",onClick:()=>fe(z),className:"p-3.5 rounded-xl bg-slate-900 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 text-left transition-all group",children:[n.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-blue-400 mb-1",children:[n.jsx(_,{className:"w-4 h-4 text-blue-400 shrink-0"}),n.jsx("span",{children:z.title})]}),n.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2 leading-relaxed",children:z.content})]},de)})})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm",children:n.jsxs("form",{onSubmit:me,className:"space-y-4",children:[n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Zt,{className:"w-3.5 h-3.5 text-blue-400"}),"目标广播校区"]}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:["预计覆盖 ",K," 班级"]})]}),n.jsxs("select",{value:p.tenantId||"",onChange:z=>j({...p,tenantId:z.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",children:[n.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(z=>n.jsxs("option",{value:z.id,children:["仅该校: ",z.name," (",z.classroomCount," 班级, ",z.deviceCount," 大屏)"]},z.id))]})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[n.jsx(sh,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),n.jsx("input",{type:"text",required:!0,value:p.title,onChange:z=>j({...p,title:z.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容"}),n.jsx("textarea",{required:!0,rows:3,value:p.message,onChange:z=>j({...p,message:z.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white placeholder-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none leading-relaxed",placeholder:"请输入紧急通报具体事项..."})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{className:"flex items-center gap-4 text-xs",children:[n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[n.jsx("input",{type:"checkbox",checked:p.voice,onChange:z=>j({...p,voice:z.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx(ix,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{children:"TTS 语音朗读"})]}),n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[n.jsx("input",{type:"checkbox",checked:p.shake,onChange:z=>j({...p,shake:z.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx(Fr,{className:"w-3.5 h-3.5 text-rose-400"}),n.jsx("span",{children:"窗口视效抖动"})]}),n.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400",children:[n.jsx(Hr,{className:"w-3.5 h-3.5"}),n.jsxs("span",{children:["时长: ",p.durationSeconds,"s"]})]})]}),n.jsxs("button",{type:"submit",disabled:$||!p.message.trim(),className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center justify-center gap-2 disabled:opacity-40",children:[n.jsx(uo,{className:"w-4 h-4"}),n.jsx("span",{children:"下发紧急广播"})]})]})]})}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(xa,{className:"w-4 h-4 text-blue-400"}),"最近全网广播与呼叫调度记录"]}),n.jsx("button",{onClick:ie,disabled:m,className:"text-xs text-blue-400 hover:underline disabled:opacity-50",children:m?"刷新中...":"刷新"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs",children:[n.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),n.jsx("th",{className:"py-2.5 px-3",children:"类型"}),n.jsx("th",{className:"py-2.5 px-3",children:"目标范围"}),n.jsx("th",{className:"py-2.5 px-3",children:"通报内容"}),n.jsx("th",{className:"py-2.5 px-3 text-right",children:"状态"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:m?"正在加载历史记录...":"暂无调度记录"})}):d.slice(0,6).map(z=>n.jsxs("tr",{className:"hover:bg-slate-800/25",children:[n.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(z.createdAt).toLocaleTimeString()}),n.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:z.priority==="Urgent"?n.jsx(ze,{label:"紧急通报",variant:"rose",dot:!1}):n.jsx(ze,{label:"日常呼叫",variant:"slate",dot:!1})}),n.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:z.className||"全域广播"}),n.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:z.message}),n.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:z.status==="Cancelled"?n.jsx("span",{className:"text-slate-400",children:"已撤回"}):z.status==="Acknowledged"?n.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):z.status==="Delivered"?n.jsx("span",{className:"text-sky-400",children:"已送达"}):n.jsx("span",{className:"text-slate-400",children:"已发送"})})]},z.id))})]})})]}),S&&n.jsx(pn,{isOpen:!0,onClose:()=>k(!1),title:"全域应急调度二次确认",preventClose:$,children:n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300 text-xs leading-relaxed",children:"⚠️ 确认后,系统将强制穿透目标教室大屏正在进行的多媒体课件,以全屏高优先级弹窗展示并进行语音朗读。"}),n.jsxs("div",{className:"p-3 rounded-xl bg-slate-950 border border-slate-800 text-xs space-y-1.5",children:[n.jsxs("div",{className:"text-slate-400",children:["广播范围:",n.jsx("span",{className:"text-white font-semibold",children:p.tenantId?he==null?void 0:he.name:`全域覆盖 (${a.length} 所学校)`})]}),n.jsxs("div",{className:"text-slate-400",children:["广播标题:",n.jsx("span",{className:"text-white font-medium",children:p.title})]}),n.jsxs("div",{className:"text-slate-400",children:["广播正文:",n.jsx("span",{className:"text-slate-200",children:p.message})]})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[n.jsx("button",{type:"button",disabled:$,onClick:()=>k(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"放弃"}),n.jsx("button",{type:"button",disabled:$,onClick:X,className:"px-5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 flex items-center gap-2 disabled:opacity-50",children:$?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"下发中..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(uo,{className:"w-4 h-4"}),n.jsx("span",{children:"确认下发"})]})})]})]})})]})},Nx=()=>{const[a,l]=x.useState(null),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,y]=x.useState(null),[p,j]=x.useState("all"),S=async()=>{f(!0),y(null);try{const[L,Y]=await Promise.all([le.getSchoolOverview(),le.getSchoolDevices()]);l(L),u(Y)}catch(L){y((L==null?void 0:L.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};x.useEffect(()=>{S();const L=Mt.onDeviceStatusChanged(Q=>{u(J=>{const oe=Q.state===1||String(Q.state).toLowerCase()==="online",ie=J.map(me=>me.deviceId===Q.deviceId?{...me,isOnline:oe,lastHeartbeat:Q.lastHeartbeat,clientVersion:Q.agentVersion||me.clientVersion}:me),fe=ie.filter(me=>me.isOnline).length;return l(me=>me?{...me,onlineCount:fe}:null),ie})}),Y=Mt.onHealthReportReceived(Q=>{u(J=>J.map(oe=>oe.deviceId===Q.deviceId?{...oe,healthStatus:Q.overallStatus,lastHeartbeat:Q.timestamp||new Date().toISOString()}:oe))});return()=>{L(),Y()}},[]);const k=(a==null?void 0:a.deviceCount)??i.length,$=(a==null?void 0:a.onlineCount)??i.filter(L=>L.isOnline).length,B=Math.max(0,k-$),W=[{id:"all",label:"全部设备",count:i.length},{id:"online",label:"在线正常",count:i.filter(L=>L.isOnline).length},{id:"offline",label:"离线需关注",count:i.filter(L=>!L.isOnline).length}],I=i.filter(L=>p==="online"?L.isOnline:p==="offline"?!L.isOnline:!0);return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:a!=null&&a.tenantName?`${a.tenantName} · 本校管理后台`:"本校管理后台",description:"实时监控全校各班级多媒体大屏运行状态与科任教师账号",action:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs(be,{to:"/school-admin/classes",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[n.jsx(Mr,{className:"w-4 h-4 text-sky-400"}),"班级管理"]}),n.jsxs(be,{to:"/school-admin/codes",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(jt,{className:"w-4 h-4"}),"生成激活码"]})]})}),m&&n.jsxs("div",{className:"p-4 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:S,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(Tt,{className:"w-3.5 h-3.5"}),"重试"]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(ls,{title:"教学班级",value:d?"-":(a==null?void 0:a.classCount)??0,subtitle:`安装终端 ${k} 台`,icon:n.jsx(Mr,{className:"w-5 h-5 text-indigo-400"})}),n.jsx(ls,{title:"在线终端",value:d?"-":$,subtitle:"正常就绪待接收",icon:n.jsx(Fr,{className:"w-5 h-5 text-emerald-400"}),badge:n.jsx(ze,{label:"正常",variant:"emerald"})}),n.jsx(ls,{title:"离线终端",value:d?"-":B,subtitle:B>0?"建议排查电源或网络":"全校终端连通正常",icon:n.jsx(Fn,{className:`w-5 h-5 ${B>0?"text-amber-400":"text-slate-400"}`}),badge:B>0?n.jsx(ze,{label:"待排查",variant:"amber"}):n.jsx(ze,{label:"全部在线",variant:"slate"})}),n.jsx(ls,{title:"任课教师",value:d?"-":(a==null?void 0:a.teacherCount)??0,subtitle:"已授权控制台账号",icon:n.jsx(Us,{className:"w-5 h-5 text-sky-400"})})]}),B>0&&n.jsxs("div",{className:"p-4 rounded-xl bg-amber-500/10 border border-amber-500/20 text-amber-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx(Fn,{className:"w-4 h-4 text-amber-400 shrink-0"}),n.jsxs("span",{children:["检测到 ",n.jsxs("strong",{children:[B," 台"]})," 教室大屏当前处于离线状态,已为您自动置顶展示,方便排查。"]})]}),n.jsx(be,{to:"/school-admin/codes",className:"text-amber-400 hover:text-amber-300 font-medium underline underline-offset-4",children:"获取安装激活码"})]}),n.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Bs,{className:"w-4 h-4 text-blue-400"}),n.jsx("h2",{className:"text-sm font-semibold text-white",children:"大屏终端在线与健康状态"})]}),n.jsx(xo,{tabs:W,activeId:p,onChange:j})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"健康评估"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"客户端版本"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Tt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在获取大屏状态..."})]})}):I.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:p==="offline"?"全校大屏均在线运行良好":"暂无大屏数据"})}):I.map(L=>n.jsxs("tr",{className:"hover:bg-slate-800/40 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-semibold text-white",children:L.classroomName||"未分配班级"}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:L.deviceId}),n.jsx("td",{className:"py-3.5 px-4",children:L.isOnline?n.jsx(ze,{label:"在线",variant:"emerald"}):n.jsx(ze,{label:"离线",variant:"slate"})}),n.jsx("td",{className:"py-3.5 px-4",children:L.healthStatus==="Degraded"?n.jsx(ze,{label:"亚健康",variant:"amber"}):L.isOnline?n.jsx(ze,{label:"健康",variant:"emerald"}):n.jsx(ze,{label:"离线未检",variant:"slate"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:L.lastHeartbeat?new Date(L.lastHeartbeat).toLocaleTimeString():n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",L.clientVersion||"2.4.0"]})]},L.deviceId))})]})})]})]})},_x=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,y]=x.useState(""),[p,j]=x.useState(!1),[S,k]=x.useState(""),[$,B]=x.useState(""),[W,U]=x.useState(""),[I,L]=x.useState(""),[Y,Q]=x.useState(!1),[J,oe]=x.useState(null),[ie,fe]=x.useState(null),me=async()=>{try{const[V,re]=await Promise.all([le.getSchoolClasses(),le.getSchoolDevices().catch(()=>[])]);l(V),u(re)}catch(V){console.error("Failed to load class or device data",V)}finally{f(!1)}};x.useEffect(()=>{me()},[]);const X=async V=>{if(V.preventDefault(),!(!S||!$)){Q(!0);try{await le.createSchoolClass({id:S,displayName:$,grade:W,roomNumber:I}),j(!1),k(""),B(""),U(""),L(""),me()}catch(re){alert(re.message||"创建班级失败")}finally{Q(!1)}}},he=async V=>{fe(V.id);try{const re=await le.generateSchoolCode(V.id);oe({classId:V.id,className:V.displayName,code:re.code})}catch(re){alert(re.message||"生成激活码失败")}finally{fe(null)}},K=V=>i.find(re=>re.classroomId===V),pe=a.filter(V=>{if(!m.trim())return!0;const re=m.toLowerCase();return V.displayName.toLowerCase().includes(re)||V.id.toLowerCase().includes(re)||V.roomNumber&&V.roomNumber.toLowerCase().includes(re)});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:"教学班级管理",description:"维护本校班级档案,管理教室位置与大屏终端绑定状态",action:n.jsxs("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"新建教学班"]})}),n.jsxs("div",{className:"flex items-center justify-between gap-4",children:[n.jsx("div",{className:"w-72",children:n.jsx(Vr,{value:m,onChange:y,placeholder:"搜索班级名称或位置..."})}),n.jsxs("div",{className:"text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"font-semibold text-white",children:pe.length})," 个教学班"]})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"教室位置"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定大屏"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"大屏状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载班级数据..."})]})}):pe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:m?"未找到匹配的班级":"暂无教学班,点击右上角新建"})}):pe.map(V=>{const re=K(V.id);return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3.5 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:V.displayName}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:V.id})]}),n.jsx("td",{className:"py-3.5 px-4 text-slate-300",children:V.roomNumber||V.grade||n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-3.5 px-4",children:re?n.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-slate-200",children:[n.jsx(Bs,{className:"w-3.5 h-3.5 text-blue-400 shrink-0"}),n.jsx("span",{children:re.deviceId})]}):n.jsx("span",{className:"text-slate-500 text-xs",children:"未绑定大屏"})}),n.jsx("td",{className:"py-3.5 px-4",children:re?re.isOnline?n.jsx(ze,{label:"在线",variant:"emerald"}):n.jsx(ze,{label:"离线",variant:"slate"}):n.jsxs("button",{type:"button",onClick:()=>he(V),className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 border border-blue-500/20 transition-colors",children:[n.jsx(jt,{className:"w-3 h-3"}),n.jsx("span",{children:"立即绑定"})]})}),n.jsx("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:re!=null&&re.lastHeartbeat?new Date(re.lastHeartbeat).toLocaleTimeString():n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:n.jsx(ka,{items:[{label:"生成安装激活码",icon:n.jsx(jt,{className:"w-4 h-4 text-blue-400"}),onClick:()=>he(V)}]})})]},V.id)})})]})})}),J&&n.jsx(pn,{isOpen:!0,onClose:()=>oe(null),title:`大屏安装激活码 · ${J.className}`,children:n.jsxs("div",{className:"space-y-4 text-center py-2",children:[n.jsx("p",{className:"text-xs text-slate-400",children:"请在班级教室大屏运行客户端安装程序,并输入以下 8 位激活码完成绑定:"}),n.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex items-center justify-center gap-3",children:[n.jsx("span",{className:"font-mono text-2xl font-bold tracking-widest text-blue-400",children:J.code}),n.jsx(oh,{text:J.code,label:"复制"})]}),n.jsx("p",{className:"text-[11px] text-slate-500",children:"激活码 24 小时内有效,完成一次硬件绑定后将自动核销。"}),n.jsx("div",{className:"pt-2",children:n.jsx("button",{type:"button",onClick:()=>oe(null),className:"w-full py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-semibold transition-colors",children:"完成"})})]})}),p&&n.jsx(pn,{isOpen:!0,onClose:()=>j(!1),title:"新建教学班级",children:n.jsxs("form",{onSubmit:X,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级编号 (唯一识别码)"}),n.jsx("input",{type:"text",value:S,onChange:V=>k(V.target.value),placeholder:"如 cls_801 或 c_eight_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级显示名称"}),n.jsx("input",{type:"text",value:$,onChange:V=>B(V.target.value),placeholder:"如 八年级(1)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"年级 (可选)"}),n.jsx("input",{type:"text",value:W,onChange:V=>U(V.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教室位置 (可选)"}),n.jsx("input",{type:"text",value:I,onChange:V=>L(V.target.value),placeholder:"如 教学楼 301",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:Y,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:Y?"创建中...":"确认创建"})]})]})})]})},Sx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState(!0),[d,f]=x.useState("all"),[m,y]=x.useState(""),[p,j]=x.useState(!1),[S,k]=x.useState(""),[$,B]=x.useState(""),[W,U]=x.useState(""),[I,L]=x.useState(!1),[Y,Q]=x.useState(null),[J,oe]=x.useState(""),[ie,fe]=x.useState(!1),me=x.useRef(null),[X,he]=x.useState(null),[K,pe]=x.useState(!1),[V,re]=x.useState(null),Ce=(M,ae)=>{re({type:M,text:ae}),setTimeout(()=>{re(ye=>(ye==null?void 0:ye.text)===ae?null:ye)},4e3)},z=async()=>{try{const M=await le.getSchoolTeachers();l(M)}catch(M){Ce("error",(M==null?void 0:M.message)||"加载教师列表失败")}finally{u(!1)}};x.useEffect(()=>{z()},[]),x.useEffect(()=>{Y&&me.current&&setTimeout(()=>{var M;return(M=me.current)==null?void 0:M.focus()},100)},[Y]);const de=async M=>{if(M.preventDefault(),!(!S||!$||!W)){if($.length<8){alert("密码长度不能少于 8 位");return}L(!0);try{await le.createSchoolTeacher({username:S,password:$,fullName:W,role:"Teacher"}),j(!1),k(""),B(""),U(""),Ce("success",`教师账号 ${W} 开设成功`),z()}catch(ae){alert(ae.message||"创建教师账号失败")}finally{L(!1)}}},_=async M=>{if(M.preventDefault(),!(!Y||!J)){if(J.length<8){alert("根据系统安全基线,密码长度不能少于 8 位");return}fe(!0);try{await le.resetSchoolTeacherPassword(Y.id,J),Ce("success",`已成功将教师 [${Y.fullName}] 的密码重置`),Q(null),oe("")}catch(ae){alert(ae.message||"重置密码失败")}finally{fe(!1)}}},q=async()=>{if(!X)return;pe(!0);const M=!X.isLocked;try{await le.setSchoolTeacherLock(X.id,M),Ce("success",`已成功${M?"停用":"启用"}教师 [${X.fullName}] 账号`),he(null),z()}catch(ae){alert(ae.message||"操作失败")}finally{pe(!1)}},E=a.filter(M=>!M.isLocked).length,g=a.filter(M=>M.isLocked).length,P=[{id:"all",label:"全部教师",count:a.length},{id:"active",label:"正常使用",count:E},{id:"locked",label:"已停用",count:g}],se=a.filter(M=>{if(d==="active"&&M.isLocked||d==="locked"&&!M.isLocked)return!1;if(m.trim()){const ae=m.toLowerCase();return M.fullName.toLowerCase().includes(ae)||M.username.toLowerCase().includes(ae)}return!0});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:"教师账号管理",description:"管理本校任课教师账号登录凭证与权限状态",action:n.jsxs("button",{type:"button",onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"开设教师账号"]})}),V&&n.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${V.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[V.type==="success"?n.jsx(At,{className:"w-4 h-4 text-emerald-400 shrink-0"}):n.jsx(Fn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:V.text})]}),n.jsx("button",{onClick:()=>re(null),className:"text-slate-400 hover:text-white",children:n.jsx(Un,{className:"w-3.5 h-3.5"})})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsx(xo,{tabs:P,activeId:d,onChange:f}),n.jsx("div",{className:"w-full sm:w-64",children:n.jsx(Vr,{value:m,onChange:y,placeholder:"搜索教师姓名或登录名..."})})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"教师姓名"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"登录账号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"身份角色"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:i?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载教师列表..."})]})}):se.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:m?"未找到符合条件的教师":"暂无教师数据"})}):se.map(M=>n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3.5 px-4 font-semibold text-white flex items-center gap-2",children:[n.jsx(Br,{className:"w-4 h-4 text-emerald-400 shrink-0"}),n.jsx("span",{children:M.fullName})]}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:M.username}),n.jsx("td",{className:"py-3.5 px-4 text-xs",children:M.role==="SchoolAdmin"?n.jsx("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-400 border border-blue-500/20 text-xs",children:"学校管理员"}):n.jsx("span",{className:"px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700/60 text-xs",children:"任课教师"})}),n.jsx("td",{className:"py-3.5 px-4",children:M.isLocked?n.jsx(ze,{label:"已停用",variant:"rose"}):n.jsx(ze,{label:"正常",variant:"emerald"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:M.lastLoginAt?new Date(M.lastLoginAt).toLocaleString():n.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[n.jsx(Hr,{className:"w-3 h-3"}),"从未登录"]})}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:M.role==="Teacher"?n.jsx(ka,{items:[{label:"重置登录密码",icon:n.jsx(jt,{className:"w-4 h-4 text-blue-400"}),onClick:()=>{Q(M),oe("")}},{label:M.isLocked?"启用账号":"停用账号",icon:M.isLocked?n.jsx(th,{className:"w-4 h-4 text-emerald-400"}):n.jsx(co,{className:"w-4 h-4 text-rose-400"}),danger:!M.isLocked,onClick:()=>he(M)}]}):n.jsx("span",{className:"text-slate-600 text-xs",children:"-"})})]},M.id))})]})})}),Y&&n.jsx(pn,{isOpen:!0,onClose:()=>Q(null),title:`重置教师密码 · ${Y.fullName}`,children:n.jsxs("form",{onSubmit:_,className:"space-y-4",children:[n.jsx("p",{className:"text-xs text-slate-400",children:"重置密码将立即终止该教师当前的在线会话,下次登录必须使用新密码:"}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码(至少 8 位)"}),n.jsx("input",{ref:me,type:"password",value:J,onChange:M=>oe(M.target.value),placeholder:"请输入不少于 8 位的新密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>Q(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:ie||J.length<8,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:ie?"正在重置...":"确认重置密码"})]})]})}),X&&n.jsx(ih,{isOpen:!0,onClose:()=>he(null),onConfirm:q,loading:K,title:X.isLocked?"恢复教师账号权限?":"停用该教师账号?",targetName:X.fullName,description:X.isLocked?"启用后,该教师将可以正常登录教师工作台并向班级大屏发送呼叫通知。":"停用后,该教师所有活跃登录会话将立即注销,无法再向大屏发起任何呼叫。历史通知与审计记录不受影响。",confirmLabel:X.isLocked?"确认启用":"确认停用账号"}),p&&n.jsx(pn,{isOpen:!0,onClose:()=>j(!1),title:"开设任课教师账号",children:n.jsxs("form",{onSubmit:de,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教师真实姓名"}),n.jsx("input",{type:"text",value:W,onChange:M=>U(M.target.value),placeholder:"如 张老师、王建国",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",value:S,onChange:M=>k(M.target.value),placeholder:"建议使用手机号或拼音如 teacher_zhang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始密码(至少 8 位)"}),n.jsx("input",{type:"password",value:$,onChange:M=>B(M.target.value),placeholder:"设置该教师首次登录的初始密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:I,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:I?"开设中...":"确认开设"})]})]})})]})},kx=()=>{const[a,l]=x.useState([]),[i,u]=x.useState([]),[d,f]=x.useState(!0),[m,y]=x.useState(null),[p,j]=x.useState("all"),[S,k]=x.useState(""),[$,B]=x.useState(!1),[W,U]=x.useState(""),[I,L]=x.useState(!1),[Y,Q]=x.useState(null),J=async()=>{f(!0),y(null);try{const[K,pe]=await Promise.all([le.getSchoolCodes(),le.getSchoolClasses()]);l(K),u(pe),pe.length>0&&!W&&U(pe[0].id)}catch(K){y((K==null?void 0:K.message)||"加载本校激活码数据失败")}finally{f(!1)}};x.useEffect(()=>{J()},[]);const oe=async K=>{if(K.preventDefault(),!!W){L(!0),Q(null);try{await le.generateSchoolCode(W),B(!1),J()}catch(pe){Q((pe==null?void 0:pe.message)||"生成激活码失败")}finally{L(!1)}}},ie=a.filter(K=>!K.isUsed&&new Date(K.expiresAt).getTime()>Date.now()).length,fe=a.filter(K=>K.isUsed).length,me=a.filter(K=>!K.isUsed&&new Date(K.expiresAt).getTime()<=Date.now()).length,X=[{id:"all",label:"全部",count:a.length},{id:"pending",label:"待激活 (可用)",count:ie},{id:"used",label:"已绑定",count:fe},{id:"expired",label:"已过期",count:me}],he=a.filter(K=>{const pe=!K.isUsed&&new Date(K.expiresAt).getTime()<=Date.now();if(p==="pending"&&(K.isUsed||pe)||p==="used"&&!K.isUsed||p==="expired"&&!pe)return!1;if(S.trim()){const V=S.toLowerCase(),re=K.code.toLowerCase().includes(V),Ce=(K.classroomName||K.classroomId).toLowerCase().includes(V);if(!re&&!Ce)return!1}return!0});return n.jsxs("div",{className:"space-y-6",children:[n.jsx(hs,{title:"本校教室终端激活码",description:"生成与管理本校教室大屏安装所需的 8 位一次性硬件绑定激活码",action:n.jsxs("button",{type:"button",onClick:()=>{Q(null),B(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[n.jsx(us,{className:"w-4 h-4"}),"生成新激活码"]})}),m&&n.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:J,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(Tt,{className:"w-3.5 h-3.5"}),"重试"]})]}),n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsx(xo,{tabs:X,activeId:p,onChange:j}),n.jsx("div",{className:"w-full sm:w-64",children:n.jsx(Vr,{value:S,onChange:k,placeholder:"搜索激活码或班级..."})})]}),n.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"8位激活码"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定班级"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定设备 ID"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"有效期"}),n.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/60",children:d?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载激活码..."})]})}):he.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:S?"未找到符合条件的激活码":"暂无激活码,点击右上角生成"})}):he.map(K=>{const pe=!K.isUsed&&new Date(K.expiresAt).getTime()<=Date.now();return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-mono font-bold text-blue-400 text-sm",children:K.code}),n.jsxs("td",{className:"py-3.5 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:K.classroomName||K.classroomId}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:K.classroomId})]}),n.jsx("td",{className:"py-3.5 px-4",children:K.isUsed?n.jsx(ze,{label:"已绑定",variant:"slate"}):pe?n.jsx(ze,{label:"已过期",variant:"rose"}):n.jsx(ze,{label:"待激活",variant:"emerald"})}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:K.usedByDeviceId||n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:new Date(K.expiresAt).toLocaleDateString()}),n.jsx("td",{className:"py-3.5 px-4 text-right",children:n.jsx(oh,{text:K.code,label:"复制"})})]},K.code)})})]})})}),$&&n.jsx(pn,{isOpen:!0,onClose:()=>B(!1),title:"生成本校班级设备激活码",children:n.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[Y&&n.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:Y}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"选择目标班级"}),i.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无可分配班级,请先前往【班级管理】新建班级"}):n.jsx("select",{value:W,onChange:K=>U(K.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",required:!0,children:i.map(K=>n.jsxs("option",{value:K.id,children:[K.displayName," (",K.roomNumber||K.id,")"]},K.id))})]}),n.jsx("p",{className:"text-[11px] text-slate-500 leading-relaxed",children:"💡 激活码生成后有效期为 24 小时。在教室大屏安装客户端并成功绑定后,该激活码将自动核销。"}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>B(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:I||!W,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:I?"生成中...":"立即生成"})]})]})})]})};function ca(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const Cx=[],Ex=[{label:"到办公室",text:"请到教师办公室一趟。"},{label:"下楼集合",text:"请立即到楼下操场集合整队。"},{label:"家长来了",text:"校门口有家长找,请前往传达室。"},{label:"带作业本",text:"请收齐各科作业本送至办公室。"},{label:"课间回来",text:"预备铃已响,请迅速回教室内就坐。"},{label:"自习纪律",text:"请保持教室内安静自习,班干部负责维护纪律。"}],Tx=()=>{const{user:a}=qs(),[l,i]=x.useState([]),[u,d]=x.useState(""),[f,m]=x.useState(""),[y,p]=x.useState(""),[j,S]=x.useState(!1),[k,$]=x.useState(null),[B,W]=x.useState(!0),[U,I]=x.useState(!0),[L,Y]=x.useState(!1),[Q,J]=x.useState(15),[oe,ie]=x.useState(!1),[fe,me]=x.useState(!1),X=D=>!(a!=null&&a.tenantId)||!(a!=null&&a.userId)||!D?null:`classnotify:recentStudents:${a.tenantId}:${a.userId}:${D}`,[he,K]=x.useState(Cx);x.useEffect(()=>{if(!u)return;const D=X(u);if(!D){K([]);return}try{const ge=localStorage.getItem(D);K(ge?JSON.parse(ge):[])}catch{K([])}},[u,a==null?void 0:a.tenantId,a==null?void 0:a.userId]);const[pe,V]=x.useState([]),[re,Ce]=x.useState(50),[z,de]=x.useState(!1),[_,q]=x.useState(!0),[E,g]=x.useState(!0),[P,se]=x.useState(null),[M,ae]=x.useState("all"),[ye,Ie]=x.useState(""),[_e,Re]=x.useState(null),[et,gn]=x.useState(null),[Qs,Hn]=x.useState(!1),[fs,ms]=x.useState(null),[Wn,en]=x.useState(1),[tn,vn]=x.useState(null),[nn,sn]=x.useState(!1),ps=x.useRef(l);x.useEffect(()=>{ps.current=l},[l]);const Ks=async()=>{g(!0),se(null);try{const D=await le.getTeacherClasses();i(D),D.length>0&&!u&&d(D[0].id);const ge=await le.getTeacherHistory(void 0,re);V(ge.map(Be=>({...Be,status:ca(Be.status)}))),ge.length{const D=re+50;de(!0);try{const ge=await le.getTeacherHistory(void 0,D);V(ge.map(Be=>({...Be,status:ca(Be.status)}))),Ce(D),ge.length{Ks()},[]),x.useEffect(()=>{const D=Mt.onAckReceiptReceived(Ee=>{V(He=>He.map(Qe=>{if(Qe.id===Ee.messageId){const ft=ca(Ee.status);return{...Qe,status:ft,confirmedAt:Ee.timestamp||Qe.confirmedAt||new Date().toISOString()}}return Qe}))}),ge=Mt.onNewNotificationBroadcast(Ee=>{V(He=>{if(He.some(mt=>mt.id===Ee.id))return He;const Qe=ps.current.find(mt=>mt.id===Ee.classId);return[{id:Ee.id,tenantId:Ee.tenantId,classId:Ee.classId,className:(Qe==null?void 0:Qe.displayName)||Ee.classId,senderName:"教师",message:Ee.message,priority:Ee.type===2?"Urgent":"Normal",createdAt:Ee.createdAt,status:"Sent"},...He]})}),Be=typeof Mt.onNotificationCancelled=="function"?Mt.onNotificationCancelled(Ee=>{V(He=>He.map(Qe=>Qe.id===Ee?{...Qe,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Qe))}):()=>{};return()=>{typeof D=="function"&&D(),typeof ge=="function"&&ge(),typeof Be=="function"&&Be()}},[]);const Qr=D=>{if(j&&y.trim().length>0&&!window.confirm("当前输入框已有手写内容,确定使用模版覆盖吗?"))return;const ge=f.trim();p(ge?`${ge},${D.text}`:D.text),S(!1)},Kr=D=>{m(D),!j||!y.trim()?(p(`${D},请到教师办公室一趟。`),S(!1)):y.includes(D)||p(`${D},${y}`)},Js=async D=>{if(D.preventDefault(),!(!u||!y.trim())){ie(!0),$(null);try{const ge=l.find(ft=>ft.id===u),Be=f.trim()?`🔔 老师呼叫: ${f.trim()}`:`📢 ${(ge==null?void 0:ge.displayName)||"班级"}通知`,Ee=await le.sendNotification({classId:u,studentName:f.trim()||void 0,title:Be,message:y.trim(),type:L?2:0,voice:B,shake:U,durationSeconds:Q}),He=f.trim();He&&u&&K(ft=>{const mt=[He,...ft.filter(Nt=>Nt!==He)].slice(0,8);try{const Nt=X(u);Nt&&localStorage.setItem(Nt,JSON.stringify(mt))}catch{}return mt});const Qe=y.trim();p(""),m(""),S(!1),$(null),Ee!=null&&Ee.messageId&&V(ft=>ft.some(Nt=>Nt.id===Ee.messageId)?ft:[{id:Ee.messageId,tenantId:"",classId:u,className:(ge==null?void 0:ge.displayName)||u,senderName:"教师",message:Qe,priority:L?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...ft])}catch(ge){$((ge==null?void 0:ge.message)||"呼叫发送失败,请检查网络或稍后重试")}finally{ie(!1)}}},xs=async()=>{if(tn){sn(!0);try{await le.cancelNotification(tn.id),V(D=>D.map(ge=>ge.id===tn.id?{...ge,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:ge)),vn(null)}catch(D){alert(D.message||"提前关闭通知失败")}finally{sn(!1)}}},Jr=async(D,ge,Be,Ee)=>{Re({notificationId:D,deviceId:ge,className:Be,capturedAt:Ee}),Hn(!0),ms(null),gn(null),en(1);try{const He=await le.getVisualReceiptBlob(D,ge),Qe=URL.createObjectURL(He);gn(Qe)}catch(He){ms((He==null?void 0:He.message)||"获取视觉核验图像失败")}finally{Hn(!1)}},Vn=()=>{et&&URL.revokeObjectURL(et),gn(null),Re(null),ms(null),en(1)},rn=pe.filter(D=>{if(M!=="all"&&D.classId!==M)return!1;if(ye.trim()){const ge=ye.toLowerCase(),Be=D.message.toLowerCase().includes(ge),Ee=D.className.toLowerCase().includes(ge);if(!Be&&!Ee)return!1}return!0}),go=l.slice(0,4),Xs=l.slice(4);return n.jsxs("div",{className:"space-y-5",children:[n.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-slate-800/80",children:n.jsxs("div",{children:[n.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-white flex items-center gap-2.5",children:"教师呼叫工作台"}),n.jsx("p",{className:"text-xs sm:text-sm text-slate-400 mt-1",children:"秒级定向呼叫教室大屏,支持 TTS 朗读、视觉核验与实时送达回执"})]})}),P&&n.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:P})]}),n.jsxs("button",{onClick:Ks,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(Tt,{className:"w-3.5 h-3.5"}),"重试"]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[n.jsxs("div",{className:"lg:col-span-5 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-5",children:[n.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800/70",children:[n.jsx("h2",{className:"text-sm font-semibold text-slate-200",children:"快速发送呼叫"}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"3秒极速触达"})]}),n.jsxs("form",{onSubmit:Js,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),l.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-2.5 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无关联班级,请联系管理员分配"}):n.jsxs("div",{className:"space-y-2",children:[n.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:go.map(D=>{const ge=u===D.id;return n.jsx("button",{type:"button",onClick:()=>d(D.id),className:`px-3 py-2 rounded-xl text-left text-xs font-medium border transition-all flex items-center justify-between ${ge?"bg-blue-600/20 border-blue-500/60 text-white shadow-sm":"bg-slate-950/70 border-slate-800 text-slate-300 hover:bg-slate-800 hover:text-white"}`,children:n.jsx("span",{className:"truncate",children:D.displayName})},D.id)})}),Xs.length>0&&n.jsxs("div",{className:"relative",children:[n.jsxs("select",{value:u,onChange:D=>d(D.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-slate-300 focus:outline-none focus:border-blue-500 appearance-none pr-8 cursor-pointer",children:[n.jsx("option",{value:"",disabled:!0,children:"选择其他班级..."}),Xs.map(D=>n.jsxs("option",{value:D.id,children:[D.displayName," (",D.roomNumber||D.id,")"]},D.id))]}),n.jsx(Ld,{className:"w-3.5 h-3.5 text-slate-500 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsxs("label",{className:"text-xs font-medium text-slate-300 flex items-center gap-1",children:[n.jsx(lh,{className:"w-3.5 h-3.5 text-slate-400"}),"呼叫对象(学生姓名)"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"可选,留空则为全班"})]}),he.length>0&&n.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:he.slice(0,6).map(D=>n.jsx("button",{type:"button",onClick:()=>Kr(D),className:`px-2 py-0.5 rounded-lg text-xs transition-colors ${f===D?"bg-blue-600 text-white font-medium":"bg-slate-950 text-slate-400 hover:text-slate-200 hover:bg-slate-800 border border-slate-800"}`,children:D},D))}),n.jsx("input",{type:"text",value:f,onChange:D=>m(D.target.value),placeholder:"点击上方学生姓名或直接输入...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1",children:[n.jsx(rh,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷通知短语"]}),n.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:Ex.map(D=>n.jsx("button",{type:"button",onClick:()=>Qr(D),className:"px-2.5 py-1.5 rounded-xl bg-slate-950 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-all truncate text-center font-medium",title:D.text,children:D.label},D.label))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"通知内容"}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[y.length,"/200"]})]}),n.jsx("textarea",{rows:3,value:y,onChange:D=>{p(D.target.value.slice(0,200)),S(!0)},placeholder:"点击上方模板快速生成,或直接输入通知内容...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none",required:!0}),k&&n.jsxs("div",{className:"mt-2 p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(mn,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:k})]}),n.jsx("button",{type:"button",onClick:()=>$(null),className:"text-rose-400 hover:text-white p-0.5",children:n.jsx(Un,{className:"w-3.5 h-3.5"})})]})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80",children:[n.jsxs("button",{type:"button",onClick:()=>me(!fe),className:"w-full flex items-center justify-between text-xs text-slate-400 hover:text-slate-200 transition-colors py-1",children:[n.jsxs("span",{className:"flex items-center gap-1.5 font-medium",children:[fe?n.jsx(Ld,{className:"w-3.5 h-3.5 text-slate-400"}):n.jsx(x0,{className:"w-3.5 h-3.5 text-slate-400"}),"播报与显示设置"]}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[B?"语音开启":"静音"," · ",U?"震屏":"无震"," · ",Q,"秒"]})]}),fe&&n.jsxs("div",{className:"mt-3 p-3 rounded-xl bg-slate-950 border border-slate-800/80 space-y-3 animate-in fade-in duration-100",children:[n.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[n.jsx("input",{type:"checkbox",checked:B,onChange:D=>W(D.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx("span",{className:"text-slate-300",children:"TTS 语音朗读"})]}),n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[n.jsx("input",{type:"checkbox",checked:U,onChange:D=>I(D.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),n.jsx("span",{className:"text-slate-300",children:"窗口抖动震颤"})]})]}),n.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-300 pt-1",children:[n.jsx("span",{children:"停留时长"}),n.jsx("div",{className:"flex items-center gap-1",children:[10,15,30].map(D=>n.jsxs("button",{type:"button",onClick:()=>J(D),className:`px-2.5 py-0.5 rounded-lg text-xs font-mono transition-colors ${Q===D?"bg-blue-600 text-white font-semibold":"bg-slate-900 text-slate-400 hover:text-white border border-slate-800"}`,children:[D,"s"]},D))})]}),n.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:[n.jsx("input",{type:"checkbox",checked:L,onChange:D=>Y(D.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600"}),n.jsx("span",{className:"font-semibold",children:"红色紧急通知(全屏优先展示)"})]})]})]}),n.jsx("button",{type:"submit",disabled:oe||!u||!y.trim(),className:"w-full py-3 rounded-xl bg-blue-600 hover:bg-blue-500 active:bg-blue-700 text-white font-semibold text-sm shadow-md shadow-blue-600/20 flex items-center justify-center gap-2 transition-all disabled:opacity-40 disabled:cursor-not-allowed",children:oe?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在投递至教室大屏..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(uo,{className:"w-4 h-4"}),n.jsx("span",{children:"立即发送呼叫"})]})})]})]}),n.jsxs("div",{className:"lg:col-span-7 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-slate-800/70",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Hs,{className:"w-4 h-4 text-emerald-400"}),n.jsx("h2",{className:"text-sm font-semibold text-white",children:"回执动态"}),n.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",rn.length,")"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto max-w-[200px] sm:max-w-none",children:[n.jsx("button",{type:"button",onClick:()=>ae("all"),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors ${M==="all"?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:"全部"}),l.slice(0,3).map(D=>n.jsx("button",{type:"button",onClick:()=>ae(D.id),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors whitespace-nowrap ${M===D.id?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:D.displayName},D.id))]}),n.jsx("div",{className:"w-36",children:n.jsx(Vr,{value:ye,onChange:Ie,placeholder:"搜索动态...",className:"text-xs"})})]})]}),n.jsxs("div",{className:"space-y-3 max-h-[calc(100vh-250px)] overflow-y-auto pr-1",children:[E&&pe.length===0?n.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[n.jsx(Gt,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),n.jsx("span",{children:"正在加载回执记录..."})]}):rn.length===0?n.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:ye||M!=="all"?"未找到符合条件的通知记录":"暂无呼叫记录,左侧选择班级即可下发"}):rn.map(D=>{var Be;const ge=(Be=D.receipts)==null?void 0:Be.find(Ee=>Ee.visualReceiptState==="Available");return n.jsxs("div",{className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800/80 hover:border-slate-700/80 transition-all space-y-2.5",children:[n.jsxs("div",{className:"flex items-center justify-between text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2 font-medium text-slate-200",children:[n.jsx("span",{className:"font-semibold text-white",children:D.className}),D.priority==="Urgent"&&n.jsx(ze,{label:"紧急",variant:"rose",dot:!1,className:"py-0 px-1.5 text-[10px]"})]}),n.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(D.createdAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-xs text-slate-300 leading-relaxed bg-slate-900/60 p-2.5 rounded-lg border border-slate-800/60",children:D.message}),n.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between flex-wrap gap-2 text-xs",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[D.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400 font-medium text-xs",children:[n.jsx(At,{className:"w-3.5 h-3.5 text-emerald-400"}),"学生已点击确认"]}),D.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-sky-400 font-medium text-xs",children:[n.jsx(ao,{className:"w-3.5 h-3.5 text-sky-400"}),"已在大屏展示"]}),D.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-400 text-xs",children:[n.jsx(Hr,{className:"w-3.5 h-3.5 text-amber-400"}),"云端投递中..."]}),D.status==="Cancelled"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-slate-400 text-xs",children:[n.jsx(ma,{className:"w-3.5 h-3.5"}),"已撤回关闭"]}),D.status==="Timeout"&&n.jsx("span",{className:"text-slate-500 text-xs",children:"超时自动收起"}),D.status==="Failed"&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-rose-400 text-xs",children:[n.jsx(Fn,{className:"w-3.5 h-3.5"}),"投递失败"]}),ge&&n.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400/90 text-[11px] font-medium ml-1",children:[n.jsx(ho,{className:"w-3.5 h-3.5 text-emerald-400"}),"视觉核验:已完成"]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[ge&&n.jsxs("button",{type:"button",onClick:()=>Jr(D.id,ge.deviceId,D.className,ge.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 text-xs font-medium border border-blue-500/20 transition-colors",children:[n.jsx(C0,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"查看大屏实际展示"})]}),(D.status==="Sent"||D.status==="Delivered")&&!D.isCancelled&&n.jsxs("button",{type:"button",onClick:()=>vn(D),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-rose-500/10 text-slate-300 hover:text-rose-400 text-xs font-medium border border-slate-700/60 hover:border-rose-500/30 transition-colors",children:[n.jsx(Un,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"提前关闭"})]})]})]})]},D.id)}),_&&n.jsx("div",{className:"pt-3 text-center",children:n.jsx("button",{type:"button",onClick:qr,disabled:z,className:"px-4 py-2 rounded-xl bg-slate-950 hover:bg-slate-800 text-slate-300 hover:text-white text-xs font-medium border border-slate-800 transition-colors inline-flex items-center gap-2",children:z?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-3.5 h-3.5 animate-spin text-blue-400"}),n.jsx("span",{children:"正在拉取更早历史..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Tt,{className:"w-3.5 h-3.5 text-slate-400"}),n.jsx("span",{children:"加载更多历史回执 (+50)"})]})})})]})]})]}),_e&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"w-full max-w-3xl bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[n.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(ho,{className:"w-5 h-5 text-emerald-400"}),n.jsxs("h3",{className:"font-semibold text-white text-base",children:[_e.className," · 通知视觉核验"]})]}),n.jsx("button",{type:"button",onClick:Vn,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(Un,{className:"w-5 h-5"})})]}),n.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[Qs&&n.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[n.jsx(Gt,{className:"w-8 h-8 animate-spin text-blue-400"}),n.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),fs&&n.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[n.jsx(mn,{className:"w-8 h-8 text-rose-400"}),n.jsx("span",{children:fs})]}),et&&!Qs&&n.jsxs("div",{className:"flex flex-col items-center w-full",children:[n.jsx("div",{className:"overflow-auto max-h-[58vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:n.jsx("img",{src:et,alt:"教室大屏实际展示画面",style:{transform:`scale(${Wn})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[52vh]"})}),n.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[n.jsx("button",{type:"button",onClick:()=>en(D=>Math.max(.5,+(D-.25).toFixed(2))),disabled:Wn<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:n.jsx(hx,{className:"w-4 h-4"})}),n.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(Wn*100),"%"]}),n.jsx("button",{type:"button",onClick:()=>en(D=>Math.min(3,+(D+.25).toFixed(2))),disabled:Wn>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:n.jsx(ux,{className:"w-4 h-4"})}),n.jsx("button",{type:"button",onClick:()=>en(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),n.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[n.jsx("span",{children:_e.capturedAt?`捕获时间: ${new Date(_e.capturedAt).toLocaleString()}`:""}),n.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),tn&&n.jsx(pn,{isOpen:!0,onClose:()=>vn(null),title:"提前关闭并撤回通知?",children:n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"bg-slate-950 p-3 rounded-xl border border-slate-800 text-xs text-slate-300",children:[n.jsxs("div",{className:"text-slate-400 text-[11px] mb-1",children:["班级:",n.jsx("span",{className:"text-white font-medium",children:tn.className})]}),n.jsx("p",{className:"line-clamp-3",children:tn.message})]}),n.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300/90 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏下发终止指令,",n.jsx("strong",{children:"停止语音播报并收起弹窗"}),"。"]}),n.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[n.jsx("button",{type:"button",disabled:nn,onClick:()=>vn(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"button",disabled:nn,onClick:xs,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center gap-1.5 disabled:opacity-50",children:nn?n.jsxs(n.Fragment,{children:[n.jsx(Gt,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在撤回..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(ma,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},Ix=()=>{const{user:a,isLoading:l}=qs();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?n.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[n.jsx(mx,{}),n.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:n.jsx(Jd,{})})]}):n.jsx(Yt,{to:"/login",replace:!0})},Px=()=>{const{user:a,isLoading:l}=qs();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?n.jsx(Yt,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?n.jsx(Yt,{to:"/school-admin",replace:!0}):n.jsx(Yt,{to:"/teacher",replace:!0}):n.jsx(Yt,{to:"/login",replace:!0})},Rx=()=>n.jsxs(ip,{children:[n.jsx(Je,{path:"/login",element:n.jsx(px,{})}),n.jsx(Je,{path:"/",element:n.jsx(Px,{})}),n.jsxs(Je,{element:n.jsx(Ix,{}),children:[n.jsxs(Je,{element:n.jsx(aa,{allowedRoles:["SuperAdmin"]}),children:[n.jsx(Je,{path:"/admin",element:n.jsx(xx,{})}),n.jsx(Je,{path:"/admin/tenants",element:n.jsx(wx,{})}),n.jsx(Je,{path:"/admin/users",element:n.jsx(bx,{})}),n.jsx(Je,{path:"/admin/devices",element:n.jsx(gx,{})}),n.jsx(Je,{path:"/admin/broadcast",element:n.jsx(jx,{})}),n.jsx(Je,{path:"/admin/codes",element:n.jsx(vx,{})}),n.jsx(Je,{path:"/admin/history",element:n.jsx(yx,{})})]}),n.jsxs(Je,{element:n.jsx(aa,{allowedRoles:["SchoolAdmin"]}),children:[n.jsx(Je,{path:"/school-admin",element:n.jsx(Nx,{})}),n.jsx(Je,{path:"/school-admin/classes",element:n.jsx(_x,{})}),n.jsx(Je,{path:"/school-admin/teachers",element:n.jsx(Sx,{})}),n.jsx(Je,{path:"/school-admin/codes",element:n.jsx(kx,{})})]}),n.jsx(Je,{element:n.jsx(aa,{allowedRoles:["Teacher"]}),children:n.jsx(Je,{path:"/teacher",element:n.jsx(Tx,{})})})]}),n.jsx(Je,{path:"*",element:n.jsx(Yt,{to:"/",replace:!0})})]}),Lx=()=>n.jsx(l0,{children:n.jsx(pp,{children:n.jsx(Rx,{})})});pm.createRoot(document.getElementById("root")).render(n.jsx(Md.StrictMode,{children:n.jsx(Lx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-CafB9-BO.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3{left:.75rem}.left-3\.5{left:.875rem}.right-0{right:0}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-2\.5{top:.625rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-full{height:100%}.max-h-\[52vh\]{max-height:52vh}.max-h-\[58vh\]{max-height:58vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[calc\(100vh-250px\)\]{max-height:calc(100vh - 250px)}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.divide-slate-800\/60>:not([hidden])~:not([hidden]){border-color:#1e293b99}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-blue-500\/20{border-color:#3b82f633}.border-blue-500\/60{border-color:#3b82f699}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/50{border-color:#33415580}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/70{border-color:#1e293bb3}.border-slate-800\/80{border-color:#1e293bcc}.border-transparent{border-color:transparent}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-blue-600\/20{background-color:#2563eb33}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-800\/60{background-color:#1e293b99}.bg-slate-800\/80{background-color:#1e293bcc}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/80{color:#fbbf24cc}.text-amber-400\/90{color:#fbbf24e6}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/90{color:#34d399e6}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-600\/20{--tw-shadow-color: rgb(37 99 235 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/25{--tw-shadow-color: rgb(79 70 229 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/20{--tw-shadow-color: rgb(225 29 72 / .2);--tw-shadow: var(--tw-shadow-colored)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-blue-500\/40:hover{border-color:#3b82f666}.hover\:border-rose-500\/30:hover{border-color:#f43f5e4d}.hover\:border-rose-500\/40:hover{border-color:#f43f5e66}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:border-slate-700\/60:hover{border-color:#33415599}.hover\:border-slate-700\/80:hover{border-color:#334155cc}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600\/20:hover{background-color:#2563eb33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-600\/20:hover{background-color:#4f46e533}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-700\/80:hover{background-color:#334155cc}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500\/50:focus{border-color:#6366f180}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/30:focus{--tw-ring-color: rgb(99 102 241 / .3)}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:w-64{width:16rem}.sm\:max-w-none{max-width:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-CE0K_TwQ.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3\.5{left:.875rem}.right-3{right:.75rem}.top-0{top:0}.top-3{top:.75rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.max-h-\[580px\]{max-height:580px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-indigo-500\/50{border-color:#6366f180}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/80{border-color:#1e293bcc}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/70{background-color:#000000b3}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-600\/10{background-color:#0284c71a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-900\/80{background-color:#0f172acc}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/50{background-color:#02061780}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.to-violet-600{--tw-gradient-to: #7c3aed var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/90{color:#fbbf24e6}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/80{color:#34d399cc}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.accent-indigo-500{accent-color:#6366f1}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/10{--tw-shadow-color: rgb(79 70 229 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/25{--tw-shadow-color: rgb(79 70 229 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/30{--tw-shadow-color: rgb(225 29 72 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-sky-600\/25{--tw-shadow-color: rgb(2 132 199 / .25);--tw-shadow: var(--tw-shadow-colored)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-amber-500\/50:hover{border-color:#f59e0b80}.hover\:border-emerald-500\/50:hover{border-color:#10b98180}.hover\:border-indigo-500\/50:hover{border-color:#6366f180}.hover\:border-rose-500\/50:hover{border-color:#f43f5e80}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-sky-500\/50:hover{border-color:#0ea5e980}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-600\/20:hover{background-color:#4f46e533}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-sky-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.hover\:bg-sky-600\/20:hover{background-color:#0284c733}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-800\/50:hover{background-color:#1e293b80}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-indigo-500:hover{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:to-violet-500:hover{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-sky-300:hover{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.focus\:ring-rose-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity, 1))}.focus\:ring-sky-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 165 233 / var(--tw-ring-opacity, 1))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media(min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-CLUQgLev.js ================================================================================ var Vf=Object.defineProperty;var Qf=(a,l,o)=>l in a?Vf(a,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[l]=o;var xt=(a,l,o)=>Qf(a,typeof l!="symbol"?l+"":l,o);function qf(a,l){for(var o=0;ou[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=o(d);fetch(d.href,f)}})();function Sd(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var To={exports:{}},rr={},Io={exports:{}},ue={};/** * @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 Zu;function Kf(){if(Zu)return ue;Zu=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),b=Symbol.iterator;function $(N){return N===null||typeof N!="object"?null:(N=b&&N[b]||N["@@iterator"],typeof N=="function"?N:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,U={};function I(N,D,re){this.props=N,this.context=D,this.refs=U,this.updater=re||T}I.prototype.isReactComponent={},I.prototype.setState=function(N,D){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,D,"setState")},I.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function W(){}W.prototype=I.prototype;function H(N,D,re){this.props=N,this.context=D,this.refs=U,this.updater=re||T}var Y=H.prototype=new W;Y.constructor=H,B(Y,I.prototype),Y.isPureReactComponent=!0;var te=Array.isArray,F=Object.prototype.hasOwnProperty,se={current:null},je={key:!0,ref:!0,__self:!0,__source:!0};function Ne(N,D,re){var oe,fe={},ve=null,Ce=null;if(D!=null)for(oe in D.ref!==void 0&&(Ce=D.ref),D.key!==void 0&&(ve=""+D.key),D)F.call(D,oe)&&!je.hasOwnProperty(oe)&&(fe[oe]=D[oe]);var be=arguments.length-2;if(be===1)fe.children=re;else if(1>>1,D=S[N];if(0>>1;Nd(fe,P))ved(Ce,fe)?(S[N]=Ce,S[ve]=P,N=ve):(S[N]=fe,S[oe]=P,N=oe);else if(ved(Ce,P))S[N]=Ce,S[ve]=P,N=ve;else break e}}return Q}function d(S,Q){var P=S.sortIndex-Q.sortIndex;return P!==0?P:S.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();a.unstable_now=function(){return m.now()-v}}var p=[],j=[],C=1,b=null,$=3,T=!1,B=!1,U=!1,I=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(S){for(var Q=o(j);Q!==null;){if(Q.callback===null)u(j);else if(Q.startTime<=S)u(j),Q.sortIndex=Q.expirationTime,l(p,Q);else break;Q=o(j)}}function te(S){if(U=!1,Y(S),!B)if(o(p)!==null)B=!0,we(F);else{var Q=o(j);Q!==null&&he(te,Q.startTime-S)}}function F(S,Q){B=!1,U&&(U=!1,W(Ne),Ne=-1),T=!0;var P=$;try{for(Y(Q),b=o(p);b!==null&&(!(b.expirationTime>Q)||S&&!He());){var N=b.callback;if(typeof N=="function"){b.callback=null,$=b.priorityLevel;var D=N(b.expirationTime<=Q);Q=a.unstable_now(),typeof D=="function"?b.callback=D:b===o(p)&&u(p),Y(Q)}else u(p);b=o(p)}if(b!==null)var re=!0;else{var oe=o(j);oe!==null&&he(te,oe.startTime-Q),re=!1}return re}finally{b=null,$=P,T=!1}}var se=!1,je=null,Ne=-1,L=5,de=-1;function He(){return!(a.unstable_now()-deS||125N?(S.sortIndex=P,l(j,S),o(p)===null&&S===o(j)&&(U?(W(Ne),Ne=-1):U=!0,he(te,P-N))):(S.sortIndex=D,l(p,S),B||T||(B=!0,we(F))),S},a.unstable_shouldYield=He,a.unstable_wrapCallback=function(S){var Q=$;return function(){var P=$;$=Q;try{return S.apply(this,arguments)}finally{$=P}}}})(Do)),Do}var rd;function Zf(){return rd||(rd=1,Lo.exports=Yf()),Lo.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 ld;function em(){if(ld)return ut;ld=1;var a=Vo(),l=Zf();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,C={},b={};function $(e){return p.call(b,e)?!0:p.call(C,e)?!1:j.test(e)?b[e]=!0:(C[e]=!0,!1)}function T(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 B(e,t,n,r){if(t===null||typeof t>"u"||T(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 U(e,t,n,r,i,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new U(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new U(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new U(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new U(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){I[e]=new U(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new U(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new U(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new U(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new U(e,5,!1,e.toLowerCase(),null,!1,!1)});var W=/[\-:]([a-z])/g;function H(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(W,H);I[t]=new U(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(W,H);I[t]=new U(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(W,H);I[t]=new U(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new U(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new U("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new U(e,1,!1,e.toLowerCase(),null,!0,!0)});function Y(e,t,n,r){var i=I.hasOwnProperty(t)?I[t]:null;(i!==null?i.type!==0:r||!(2x||i[h]!==c[x]){var y=` `+i[h].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=h&&0<=x);break}}}finally{re=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function fe(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=oe(e.type,!1),e;case 11:return e=oe(e.type.render,!1),e;case 1:return e=oe(e.type,!0),e;default:return""}}function ve(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 je:return"Fragment";case se:return"Portal";case L:return"Profiler";case Ne:return"StrictMode";case ce:return"Suspense";case me:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case He:return(e.displayName||"Context")+".Consumer";case de:return(e._context.displayName||"Context")+".Provider";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function Ce(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 ve(t);case 8:return t===Ne?"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 be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dt(e){var t=Ie(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 i=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=dt(e))}function la(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ie(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 $l(e,t){var n=t.checked;return P({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ia(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=be(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 oa(e,t){t=t.checked,t!=null&&Y(e,"checked",t,!1)}function Al(e,t){oa(e,t);var n=be(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")?zl(e,t.type,n):t.hasOwnProperty("defaultValue")&&zl(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function aa(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 zl(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ys=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var js={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Kd=["Webkit","ms","Moz","O"];Object.keys(js).forEach(function(e){Kd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),js[t]=js[e]})});function ma(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||js.hasOwnProperty(e)&&js[e]?(""+t).trim():t+"px"}function pa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ma(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Xd=P({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fl(e,t){if(t){if(Xd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Bl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hl=null;function Wl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Hn=null,Wn=null;function xa(e){if(e=Hs(e)){if(typeof Vl!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Fr(t),Vl(e.stateNode,e.type,t))}}function ga(e){Hn?Wn?Wn.push(e):Wn=[e]:Hn=e}function va(){if(Hn){var e=Hn,t=Wn;if(Wn=Hn=null,xa(e),t)for(e=0;e>>=0,e===0?32:31-(ih(e)/oh|0)|0}var _r=64,br=4194304;function Ss(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,c=e.pingedLanes,h=n&268435455;if(h!==0){var x=h&~i;x!==0?r=Ss(x):(c&=h,c!==0&&(r=Ss(c)))}else h=n&~i,h!==0?r=Ss(h):c!==0&&(r=Ss(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,c=t&-t,i>=c||i===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ks(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=n}function dh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ds),Qa=" ",qa=!1;function Ka(e,t){switch(e){case"keyup":return Oh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qn=!1;function Fh(e,t){switch(e){case"compositionend":return Xa(t);case"keypress":return t.which!==32?null:(qa=!0,Qa);case"textInput":return e=t.data,e===Qa&&qa?null:e;default:return null}}function Bh(e,t){if(qn)return e==="compositionend"||!ci&&Ka(e,t)?(e=Ua(),Tr=si=nn=null,qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nc(n)}}function rc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lc(){for(var e=window,t=gr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gr(e.document)}return t}function hi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Gh(e){var t=lc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rc(n.ownerDocument.documentElement,n)){if(r!==null&&hi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,c=Math.min(r.start,i);r=r.end===void 0?c:Math.min(r.end,i),!e.extend&&c>r&&(i=r,r=c,c=i),i=sc(n,c);var h=sc(n,r);i&&h&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Kn=null,fi=null,zs=null,mi=!1;function ic(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mi||Kn==null||Kn!==gr(r)||(r=Kn,"selectionStart"in r&&hi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zs&&As(zs,r)||(zs=r,r=zr(fi,"onSelect"),0Zn||(e.current=ki[Zn],ki[Zn]=null,Zn--)}function Ee(e,t){Zn++,ki[Zn]=e.current,e.current=t}var on={},Ye=ln(on),lt=ln(!1),_n=on;function es(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},c;for(c in n)i[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function it(e){return e=e.childContextTypes,e!=null}function Br(){Te(lt),Te(Ye)}function jc(e,t,n){if(Ye.current!==on)throw Error(o(168));Ee(Ye,t),Ee(lt,n)}function Nc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(o(108,Ce(e)||"Unknown",i));return P({},n,r)}function Hr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,_n=Ye.current,Ee(Ye,e),Ee(lt,lt.current),!0}function _c(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Nc(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,Te(lt),Te(Ye),Ee(Ye,e)):Te(lt),Ee(lt,n)}var Wt=null,Wr=!1,Ci=!1;function bc(e){Wt===null?Wt=[e]:Wt.push(e)}function uf(e){Wr=!0,bc(e)}function an(){if(!Ci&&Wt!==null){Ci=!0;var e=0,t=Se;try{var n=Wt;for(Se=1;e>=h,i-=h,Vt=1<<32-kt(t)+i|n<ne?(Xe=ee,ee=null):Xe=ee.sibling;var ye=M(_,ee,k[ne],O);if(ye===null){ee===null&&(ee=Xe);break}e&&ee&&ye.alternate===null&&t(_,ee),w=c(ye,w,ne),Z===null?G=ye:Z.sibling=ye,Z=ye,ee=Xe}if(ne===k.length)return n(_,ee),Re&&Sn(_,ne),G;if(ee===null){for(;nene?(Xe=ee,ee=null):Xe=ee.sibling;var gn=M(_,ee,ye.value,O);if(gn===null){ee===null&&(ee=Xe);break}e&&ee&&gn.alternate===null&&t(_,ee),w=c(gn,w,ne),Z===null?G=gn:Z.sibling=gn,Z=gn,ee=Xe}if(ye.done)return n(_,ee),Re&&Sn(_,ne),G;if(ee===null){for(;!ye.done;ne++,ye=k.next())ye=z(_,ye.value,O),ye!==null&&(w=c(ye,w,ne),Z===null?G=ye:Z.sibling=ye,Z=ye);return Re&&Sn(_,ne),G}for(ee=r(_,ee);!ye.done;ne++,ye=k.next())ye=V(ee,_,ne,ye.value,O),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?ne:ye.key),w=c(ye,w,ne),Z===null?G=ye:Z.sibling=ye,Z=ye);return e&&ee.forEach(function(Wf){return t(_,Wf)}),Re&&Sn(_,ne),G}function ze(_,w,k,O){if(typeof k=="object"&&k!==null&&k.type===je&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case F:e:{for(var G=k.key,Z=w;Z!==null;){if(Z.key===G){if(G=k.type,G===je){if(Z.tag===7){n(_,Z.sibling),w=i(Z,k.props.children),w.return=_,_=w;break e}}else if(Z.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===we&&Tc(G)===Z.type){n(_,Z.sibling),w=i(Z,k.props),w.ref=Ws(_,Z,k),w.return=_,_=w;break e}n(_,Z);break}else t(_,Z);Z=Z.sibling}k.type===je?(w=Ln(k.props.children,_.mode,O,k.key),w.return=_,_=w):(O=vl(k.type,k.key,k.props,null,_.mode,O),O.ref=Ws(_,w,k),O.return=_,_=O)}return h(_);case se:e:{for(Z=k.key;w!==null;){if(w.key===Z)if(w.tag===4&&w.stateNode.containerInfo===k.containerInfo&&w.stateNode.implementation===k.implementation){n(_,w.sibling),w=i(w,k.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=So(k,_.mode,O),w.return=_,_=w}return h(_);case we:return Z=k._init,ze(_,w,Z(k._payload),O)}if(ys(k))return X(_,w,k,O);if(Q(k))return J(_,w,k,O);Kr(_,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,w!==null&&w.tag===6?(n(_,w.sibling),w=i(w,k),w.return=_,_=w):(n(_,w),w=bo(k,_.mode,O),w.return=_,_=w),h(_)):n(_,w)}return ze}var rs=Ic(!0),Rc=Ic(!1),Xr=ln(null),Jr=null,ls=null,Li=null;function Di(){Li=ls=Jr=null}function Mi(e){var t=Xr.current;Te(Xr),e._currentValue=t}function $i(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function is(e,t){Jr=e,Li=ls=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ot=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(Li!==e)if(e={context:e,memoizedValue:t,next:null},ls===null){if(Jr===null)throw Error(o(308));ls=e,Jr.dependencies={lanes:0,firstContext:e}}else ls=ls.next=e;return t}var kn=null;function Ai(e){kn===null?kn=[e]:kn.push(e)}function Lc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ai(t)):(n.next=i.next,i.next=n),t.interleaved=n,qt(e,r)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ge&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,qt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ai(r)):(t.next=i.next,i.next=t),r.interleaved=t,qt(e,n)}function Gr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}function Mc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var h={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};c===null?i=c=h:c=c.next=h,n=n.next}while(n!==null);c===null?i=c=t:c=c.next=t}else i=c=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yr(e,t,n,r){var i=e.updateQueue;cn=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var y=x,E=y.next;y.next=null,h===null?c=E:h.next=E,h=y;var A=e.alternate;A!==null&&(A=A.updateQueue,x=A.lastBaseUpdate,x!==h&&(x===null?A.firstBaseUpdate=E:x.next=E,A.lastBaseUpdate=y))}if(c!==null){var z=i.baseState;h=0,A=E=y=null,x=c;do{var M=x.lane,V=x.eventTime;if((r&M)===M){A!==null&&(A=A.next={eventTime:V,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var X=e,J=x;switch(M=t,V=n,J.tag){case 1:if(X=J.payload,typeof X=="function"){z=X.call(V,z,M);break e}z=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=J.payload,M=typeof X=="function"?X.call(V,z,M):X,M==null)break e;z=P({},z,M);break e;case 2:cn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,M=i.effects,M===null?i.effects=[x]:M.push(x))}else V={eventTime:V,lane:M,tag:x.tag,payload:x.payload,callback:x.callback,next:null},A===null?(E=A=V,y=z):A=A.next=V,h|=M;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;M=x,x=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);if(A===null&&(y=z),i.baseState=y,i.firstBaseUpdate=E,i.lastBaseUpdate=A,t=i.shared.interleaved,t!==null){i=t;do h|=i.lane,i=i.next;while(i!==t)}else c===null&&(i.shared.lanes=0);Pn|=h,e.lanes=h,e.memoizedState=z}}function $c(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Hi.transition;Hi.transition={};try{e(!1),t()}finally{Se=n,Hi.transition=r}}function tu(){return _t().memoizedState}function mf(e,t,n){var r=mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nu(e))su(t,n);else if(n=Lc(e,t,n,r),n!==null){var i=rt();Rt(n,e,r,i),ru(n,t,r)}}function pf(e,t,n){var r=mn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nu(e))su(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,n);if(i.hasEagerState=!0,i.eagerState=x,Ct(x,h)){var y=t.interleaved;y===null?(i.next=i,Ai(t)):(i.next=y.next,y.next=i),t.interleaved=i;return}}catch{}finally{}n=Lc(e,t,i,r),n!==null&&(i=rt(),Rt(n,e,r,i),ru(n,t,r))}}function nu(e){var t=e.alternate;return e===De||t!==null&&t===De}function su(e,t){Ks=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ru(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}var rl={readContext:Nt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},xf={readContext:Nt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Jc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mf.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Vc,useDebugValue:Ji,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Vc(!1),t=e[0];return e=ff.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=At();if(Re){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ke===null)throw Error(o(349));(En&30)!==0||Uc(r,t,n)}i.memoizedState=n;var c={value:n,getSnapshot:t};return i.queue=c,qc(Bc.bind(null,r,c,e),[e]),r.flags|=2048,Gs(9,Fc.bind(null,r,c,n,t),void 0,null),n},useId:function(){var e=At(),t=Ke.identifierPrefix;if(Re){var n=Qt,r=Vt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(n,{is:r.is}):(e=h.createElement(n),n==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,n),e[Mt]=t,e[Bs]=r,bu(e,t,!1,!1),t.stateNode=e;e:{switch(h=Bl(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),i=r;break;case"iframe":case"object":case"embed":Pe("load",e),i=r;break;case"video":case"audio":for(i=0;ids&&(t.flags|=128,r=!0,Ys(c,!1),t.lanes=4194304)}else{if(!r)if(e=Zr(h),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ys(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Re)return et(t),null}else 2*Ae()-c.renderingStartTime>ds&&n!==1073741824&&(t.flags|=128,r=!0,Ys(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(n=c.last,n!==null?n.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ae(),t.sibling=null,n=Le.current,Ee(Le,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return jo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(pt&1073741824)!==0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function bf(e,t){switch(Pi(t),t.tag){case 1:return it(t.type)&&Br(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),Te(lt),Te(Ye),Bi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ui(t),null;case 13:if(Te(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Le),null;case 4:return os(),null;case 10:return Mi(t.type._context),null;case 22:case 23:return jo(),null;case 24:return null;default:return null}}var al=!1,tt=!1,Sf=typeof WeakSet=="function"?WeakSet:Set,K=null;function cs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function ao(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Cu=!1;function kf(e,t){if(wi=Er,e=lc(),hi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var h=0,x=-1,y=-1,E=0,A=0,z=e,M=null;t:for(;;){for(var V;z!==n||i!==0&&z.nodeType!==3||(x=h+i),z!==c||r!==0&&z.nodeType!==3||(y=h+r),z.nodeType===3&&(h+=z.nodeValue.length),(V=z.firstChild)!==null;)M=z,z=V;for(;;){if(z===e)break t;if(M===n&&++E===i&&(x=h),M===c&&++A===r&&(y=h),(V=z.nextSibling)!==null)break;z=M,M=z.parentNode}z=V}n=x===-1||y===-1?null:{start:x,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(ji={focusedElem:e,selectionRange:n},Er=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var X=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var J=X.memoizedProps,ze=X.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?J:Pt(t.type,J),ze);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(O){$e(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return X=Cu,Cu=!1,X}function Zs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var c=i.destroy;i.destroy=void 0,c!==void 0&&ao(t,n,c)}i=i.next}while(i!==r)}}function cl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function co(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Eu(e){var t=e.alternate;t!==null&&(e.alternate=null,Eu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Bs],delete t[Si],delete t[af],delete t[cf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pu(e){return e.tag===5||e.tag===3||e.tag===4}function Tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ur));else if(r!==4&&(e=e.child,e!==null))for(uo(e,t,n),e=e.sibling;e!==null;)uo(e,t,n),e=e.sibling}function ho(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ho(e,t,n),e=e.sibling;e!==null;)ho(e,t,n),e=e.sibling}var Je=null,Tt=!1;function dn(e,t,n){for(n=n.child;n!==null;)Iu(e,t,n),n=n.sibling}function Iu(e,t,n){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Nr,n)}catch{}switch(n.tag){case 5:tt||cs(n,t);case 6:var r=Je,i=Tt;Je=null,dn(e,t,n),Je=r,Tt=i,Je!==null&&(Tt?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(Tt?(e=Je,n=n.stateNode,e.nodeType===8?bi(e.parentNode,n):e.nodeType===1&&bi(e,n),Is(e)):bi(Je,n.stateNode));break;case 4:r=Je,i=Tt,Je=n.stateNode.containerInfo,Tt=!0,dn(e,t,n),Je=r,Tt=i;break;case 0:case 11:case 14:case 15:if(!tt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var c=i,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&ao(n,t,h),i=i.next}while(i!==r)}dn(e,t,n);break;case 1:if(!tt&&(cs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(x){$e(n,t,x)}dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,dn(e,t,n),tt=r):dn(e,t,n);break;default:dn(e,t,n)}}function Ru(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sf),t.forEach(function(r){var i=Mf.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=h),r&=~c}if(r=i,r=Ae()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ef(r/1960))-r,10e?16:e,fn===null)var r=!1;else{if(e=fn,fn=null,ml=0,(ge&6)!==0)throw Error(o(331));var i=ge;for(ge|=4,K=e.current;K!==null;){var c=K,h=c.child;if((K.flags&16)!==0){var x=c.deletions;if(x!==null){for(var y=0;yAe()-po?In(e,0):mo|=n),ct(e,t)}function Vu(e,t){t===0&&((e.mode&1)===0?t=1:(t=br,br<<=1,(br&130023424)===0&&(br=4194304)));var n=rt();e=qt(e,t),e!==null&&(ks(e,t,n),ct(e,n))}function Df(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vu(e,n)}function Mf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Vu(e,n)}var Qu;Qu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ot=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ot=!1,Nf(e,t,n);ot=(e.flags&131072)!==0}else ot=!1,Re&&(t.flags&1048576)!==0&&Sc(t,Qr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ol(e,t),e=t.pendingProps;var i=es(t,Ye.current);is(t,n),i=Vi(null,t,r,e,i,n);var c=Qi();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(r)?(c=!0,Hr(t)):c=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zi(t),i.updater=ll,t.stateNode=i,i._reactInternals=t,Yi(t,r,e,n),t=no(null,t,r,!0,c,n)):(t.tag=0,Re&&c&&Ei(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ol(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Af(r),e=Pt(r,e),i){case 0:t=to(null,t,r,e,n);break e;case 1:t=vu(null,t,r,e,n);break e;case 11:t=fu(null,t,r,e,n);break e;case 14:t=mu(null,t,r,Pt(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),to(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),vu(e,t,r,i,n);case 3:e:{if(yu(t),e===null)throw Error(o(387));r=t.pendingProps,c=t.memoizedState,i=c.element,Dc(e,t),Yr(t,r,null,n);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){i=as(Error(o(423)),t),t=wu(e,t,r,n,i);break e}else if(r!==i){i=as(Error(o(424)),t),t=wu(e,t,r,n,i);break e}else for(mt=rn(t.stateNode.containerInfo.firstChild),ft=t,Re=!0,Et=null,n=Rc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ss(),r===i){t=Xt(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return Ac(t),e===null&&Ii(t),r=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,h=i.children,Ni(r,i)?h=null:c!==null&&Ni(r,c)&&(t.flags|=32),gu(e,t),st(e,t,h,n),t.child;case 6:return e===null&&Ii(t),null;case 13:return ju(e,t,n);case 4:return Oi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rs(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),fu(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,c=t.memoizedProps,h=i.value,Ee(Xr,r._currentValue),r._currentValue=h,c!==null)if(Ct(c.value,h)){if(c.children===i.children&&!lt.current){t=Xt(e,t,n);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var x=c.dependencies;if(x!==null){h=c.child;for(var y=x.firstContext;y!==null;){if(y.context===r){if(c.tag===1){y=Kt(-1,n&-n),y.tag=2;var E=c.updateQueue;if(E!==null){E=E.shared;var A=E.pending;A===null?y.next=y:(y.next=A.next,A.next=y),E.pending=y}}c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),$i(c.return,n,t),x.lanes|=n;break}y=y.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(o(341));h.lanes|=n,x=h.alternate,x!==null&&(x.lanes|=n),$i(h,n,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,is(t,n),i=Nt(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Pt(r,t.pendingProps),i=Pt(r.type,i),mu(e,t,r,i,n);case 15:return pu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Pt(r,i),ol(e,t),t.tag=1,it(r)?(e=!0,Hr(t)):e=!1,is(t,n),iu(t,r,i),Yi(t,r,i,n),no(null,t,r,!0,e,n);case 19:return _u(e,t,n);case 22:return xu(e,t,n)}throw Error(o(156,t.tag))};function qu(e,t){return ka(e,t)}function $f(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,r){return new $f(e,t,n,r)}function _o(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Af(e){if(typeof e=="function")return _o(e)?1:0;if(e!=null){if(e=e.$$typeof,e===q)return 11;if(e===_e)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vl(e,t,n,r,i,c){var h=2;if(r=e,typeof e=="function")_o(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case je:return Ln(n.children,i,c,t);case Ne:h=8,i|=8;break;case L:return e=St(12,n,t,i|2),e.elementType=L,e.lanes=c,e;case ce:return e=St(13,n,t,i),e.elementType=ce,e.lanes=c,e;case me:return e=St(19,n,t,i),e.elementType=me,e.lanes=c,e;case he:return yl(n,i,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:h=10;break e;case He:h=9;break e;case q:h=11;break e;case _e:h=14;break e;case we:h=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=St(h,n,t,i),t.elementType=e,t.type=r,t.lanes=c,t}function Ln(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function yl(e,t,n,r){return e=St(22,e,r,t),e.elementType=he,e.lanes=n,e.stateNode={isHidden:!1},e}function bo(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function So(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zf(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ko(e,t,n,r,i,c,h,x,y){return e=new zf(e,t,n,x,y),t===1?(t=1,c===!0&&(t|=8)):t=0,c=St(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(c),e}function Of(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Ro.exports=em(),Ro.exports}var od;function tm(){if(od)return kl;od=1;var a=kd();return kl.createRoot=a.createRoot,kl.hydrateRoot=a.hydrateRoot,kl}var nm=tm();const sm=Sd(nm);kd();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function or(){return or=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Cd(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function lm(){return Math.random().toString(36).substr(2,8)}function cd(a,l){return{usr:a.state,key:a.key,idx:l}}function zo(a,l,o,u){return o===void 0&&(o=null),or({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?xs(l):l,{state:o,key:l&&l.key||u||lm()})}function El(a){let{pathname:l="/",search:o="",hash:u=""}=a;return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function xs(a){let l={};if(a){let o=a.indexOf("#");o>=0&&(l.hash=a.substr(o),a=a.substr(0,o));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function im(a,l,o,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,v=vn.Pop,p=null,j=C();j==null&&(j=0,m.replaceState(or({},m.state,{idx:j}),""));function C(){return(m.state||{idx:null}).idx}function b(){v=vn.Pop;let I=C(),W=I==null?null:I-j;j=I,p&&p({action:v,location:U.location,delta:W})}function $(I,W){v=vn.Push;let H=zo(U.location,I,W);j=C()+1;let Y=cd(H,j),te=U.createHref(H);try{m.pushState(Y,"",te)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;d.location.assign(te)}f&&p&&p({action:v,location:U.location,delta:1})}function T(I,W){v=vn.Replace;let H=zo(U.location,I,W);j=C();let Y=cd(H,j),te=U.createHref(H);m.replaceState(Y,"",te),f&&p&&p({action:v,location:U.location,delta:0})}function B(I){let W=d.location.origin!=="null"?d.location.origin:d.location.href,H=typeof I=="string"?I:El(I);return H=H.replace(/ $/,"%20"),Oe(W,"No window.location.(origin|href) available to create URL for href: "+H),new URL(H,W)}let U={get action(){return v},get location(){return a(d,m)},listen(I){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(ad,b),p=I,()=>{d.removeEventListener(ad,b),p=null}},createHref(I){return l(d,I)},createURL:B,encodeLocation(I){let W=B(I);return{pathname:W.pathname,search:W.search,hash:W.hash}},push:$,replace:T,go(I){return m.go(I)}};return U}var ud;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(ud||(ud={}));function om(a,l,o){return o===void 0&&(o="/"),am(a,l,o)}function am(a,l,o,u){let d=typeof l=="string"?xs(l):l,f=qo(d.pathname||"/",o);if(f==null)return null;let m=Ed(a);cm(m);let v=null,p=jm(f);for(let j=0;v==null&&j{let p={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(Oe(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=yn([u,p.relativePath]),C=o.concat(p);f.children&&f.children.length>0&&(Oe(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),Ed(f.children,l,C,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:xm(j,f.index),routesMeta:C})};return a.forEach((f,m)=>{var v;if(f.path===""||!((v=f.path)!=null&&v.includes("?")))d(f,m);else for(let p of Pd(f.path))d(f,m,p)}),l}function Pd(a){let l=a.split("/");if(l.length===0)return[];let[o,...u]=l,d=o.endsWith("?"),f=o.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Pd(u.join("/")),v=[];return v.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&v.push(...m),v.map(p=>a.startsWith("/")&&p===""?"/":p)}function cm(a){a.sort((l,o)=>l.score!==o.score?o.score-l.score:gm(l.routesMeta.map(u=>u.childrenIndex),o.routesMeta.map(u=>u.childrenIndex)))}const um=/^:[\w-]+$/,dm=3,hm=2,fm=1,mm=10,pm=-2,dd=a=>a==="*";function xm(a,l){let o=a.split("/"),u=o.length;return o.some(dd)&&(u+=pm),l&&(u+=hm),o.filter(d=>!dd(d)).reduce((d,f)=>d+(um.test(f)?dm:f===""?fm:mm),u)}function gm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function vm(a,l,o){let{routesMeta:u}=a,d={},f="/",m=[];for(let v=0;v{let{paramName:$,isOptional:T}=C;if($==="*"){let U=v[b]||"";m=f.slice(0,f.length-U.length).replace(/(.)\/+$/,"$1")}const B=v[b];return T&&!B?j[$]=void 0:j[$]=(B||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function wm(a,l,o){l===void 0&&(l=!1),o===void 0&&(o=!0),Cd(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,v,p)=>(u.push({paramName:v,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function jm(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Cd(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function qo(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,u=a.charAt(o);return u&&u!=="/"?null:a.slice(o)||"/"}function Nm(a,l){l===void 0&&(l="/");let{pathname:o,search:u="",hash:d=""}=typeof a=="string"?xs(a):a,f;return o?(o=Td(o),o.startsWith("/")?f=hd(o.substring(1),"/"):f=hd(o,l)):f=l,{pathname:f,search:Sm(u),hash:km(d)}}function hd(a,l){let o=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function Mo(a,l,o,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function _m(a){return a.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function Ko(a,l){let o=_m(a);return l?o.map((u,d)=>d===o.length-1?u.pathname:u.pathnameBase):o.map(u=>u.pathnameBase)}function Xo(a,l,o,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=xs(a):(d=or({},a),Oe(!d.pathname||!d.pathname.includes("?"),Mo("?","pathname","search",d)),Oe(!d.pathname||!d.pathname.includes("#"),Mo("#","pathname","hash",d)),Oe(!d.search||!d.search.includes("#"),Mo("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,v;if(m==null)v=o;else{let b=l.length-1;if(!u&&m.startsWith("..")){let $=m.split("/");for(;$[0]==="..";)$.shift(),b-=1;d.pathname=$.join("/")}v=b>=0?l[b]:"/"}let p=Nm(d,v),j=m&&m!=="/"&&m.endsWith("/"),C=(f||m===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(j||C)&&(p.pathname+="/"),p}const Td=a=>a.replace(/\/\/+/g,"/"),yn=a=>Td(a.join("/")),bm=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Sm=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,km=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function Cm(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const Id=["post","put","patch","delete"];new Set(Id);const Em=["get",...Id];new Set(Em);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ar(){return ar=Object.assign?Object.assign.bind():function(a){for(var l=1;l{v.current=!0}),g.useCallback(function(j,C){if(C===void 0&&(C={}),!v.current)return;if(typeof j=="number"){u.go(j);return}let b=Xo(j,JSON.parse(m),f,C.relative==="path");a==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:yn([l,b.pathname])),(C.replace?u.replace:u.push)(b,C.state,C)},[l,u,m,f,a])}const Rm=g.createContext(null);function Lm(a){let l=g.useContext(Gt).outlet;return l&&g.createElement(Rm.Provider,{value:a},l)}function Dd(a,l){let{relative:o}=l===void 0?{}:l,{future:u}=g.useContext(wn),{matches:d}=g.useContext(Gt),{pathname:f}=Un(),m=JSON.stringify(Ko(d,u.v7_relativeSplatPath));return g.useMemo(()=>Xo(a,JSON.parse(m),f,o==="path"),[a,m,f,o])}function Dm(a,l){return Mm(a,l)}function Mm(a,l,o,u){gs()||Oe(!1);let{navigator:d}=g.useContext(wn),{matches:f}=g.useContext(Gt),m=f[f.length-1],v=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=Un(),C;if(l){var b;let I=typeof l=="string"?xs(l):l;p==="/"||(b=I.pathname)!=null&&b.startsWith(p)||Oe(!1),C=I}else C=j;let $=C.pathname||"/",T=$;if(p!=="/"){let I=p.replace(/^\//,"").split("/");T="/"+$.replace(/^\//,"").split("/").slice(I.length).join("/")}let B=om(a,{pathname:T}),U=Um(B&&B.map(I=>Object.assign({},I,{params:Object.assign({},v,I.params),pathname:yn([p,d.encodeLocation?d.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?p:yn([p,d.encodeLocation?d.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),f,o,u);return l&&U?g.createElement(Ll.Provider,{value:{location:ar({pathname:"/",search:"",hash:"",state:null,key:"default"},C),navigationType:vn.Pop}},U):U}function $m(){let a=Wm(),l=Cm(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},l),o?g.createElement("pre",{style:d},o):null,null)}const Am=g.createElement($m,null);class zm extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){console.error("React Router caught the following error during render",l,o)}render(){return this.state.error!==void 0?g.createElement(Gt.Provider,{value:this.props.routeContext},g.createElement(Rd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Om(a){let{routeContext:l,match:o,children:u}=a,d=g.useContext(Jo);return d&&d.static&&d.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=o.route.id),g.createElement(Gt.Provider,{value:l},u)}function Um(a,l,o,u){var d;if(l===void 0&&(l=[]),o===void 0&&(o=null),u===void 0&&(u=null),a==null){var f;if(!o)return null;if(o.errors)a=o.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let m=a,v=(d=o)==null?void 0:d.errors;if(v!=null){let C=m.findIndex(b=>b.route.id&&(v==null?void 0:v[b.route.id])!==void 0);C>=0||Oe(!1),m=m.slice(0,Math.min(m.length,C+1))}let p=!1,j=-1;if(o&&u&&u.v7_partialHydration)for(let C=0;C=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((C,b,$)=>{let T,B=!1,U=null,I=null;o&&(T=v&&b.route.id?v[b.route.id]:void 0,U=b.route.errorElement||Am,p&&(j<0&&$===0?(Qm("route-fallback"),B=!0,I=null):j===$&&(B=!0,I=b.route.hydrateFallbackElement||null)));let W=l.concat(m.slice(0,$+1)),H=()=>{let Y;return T?Y=U:B?Y=I:b.route.Component?Y=g.createElement(b.route.Component,null):b.route.element?Y=b.route.element:Y=C,g.createElement(Om,{match:b,routeContext:{outlet:C,matches:W,isDataRoute:o!=null},children:Y})};return o&&(b.route.ErrorBoundary||b.route.errorElement||$===0)?g.createElement(zm,{location:o.location,revalidation:o.revalidation,component:U,error:T,children:H(),routeContext:{outlet:null,matches:W,isDataRoute:!0}}):H()},null)}var Md=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(Md||{}),$d=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})($d||{});function Fm(a){let l=g.useContext(Jo);return l||Oe(!1),l}function Bm(a){let l=g.useContext(Pm);return l||Oe(!1),l}function Hm(a){let l=g.useContext(Gt);return l||Oe(!1),l}function Ad(a){let l=Hm(),o=l.matches[l.matches.length-1];return o.route.id||Oe(!1),o.route.id}function Wm(){var a;let l=g.useContext(Rd),o=Bm(),u=Ad();return l!==void 0?l:(a=o.errors)==null?void 0:a[u]}function Vm(){let{router:a}=Fm(Md.UseNavigateStable),l=Ad($d.UseNavigateStable),o=g.useRef(!1);return Ld(()=>{o.current=!0}),g.useCallback(function(d,f){f===void 0&&(f={}),o.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,ar({fromRouteId:l},f)))},[a,l])}const fd={};function Qm(a,l,o){fd[a]||(fd[a]=!0)}function qm(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Ot(a){let{to:l,replace:o,state:u,relative:d}=a;gs()||Oe(!1);let{future:f,static:m}=g.useContext(wn),{matches:v}=g.useContext(Gt),{pathname:p}=Un(),j=Dl(),C=Xo(l,Ko(v,f.v7_relativeSplatPath),p,d==="path"),b=JSON.stringify(C);return g.useEffect(()=>j(JSON.parse(b),{replace:o,state:u,relative:d}),[j,b,d,o,u]),null}function zd(a){return Lm(a.context)}function Fe(a){Oe(!1)}function Km(a){let{basename:l="/",children:o=null,location:u,navigationType:d=vn.Pop,navigator:f,static:m=!1,future:v}=a;gs()&&Oe(!1);let p=l.replace(/^\/*/,"/"),j=g.useMemo(()=>({basename:p,navigator:f,static:m,future:ar({v7_relativeSplatPath:!1},v)}),[p,v,f,m]);typeof u=="string"&&(u=xs(u));let{pathname:C="/",search:b="",hash:$="",state:T=null,key:B="default"}=u,U=g.useMemo(()=>{let I=qo(C,p);return I==null?null:{location:{pathname:I,search:b,hash:$,state:T,key:B},navigationType:d}},[p,C,b,$,T,B,d]);return U==null?null:g.createElement(wn.Provider,{value:j},g.createElement(Ll.Provider,{children:o,value:U}))}function Xm(a){let{children:l,location:o}=a;return Dm(Oo(l),o)}new Promise(()=>{});function Oo(a,l){l===void 0&&(l=[]);let o=[];return g.Children.forEach(a,(u,d)=>{if(!g.isValidElement(u))return;let f=[...l,d];if(u.type===g.Fragment){o.push.apply(o,Oo(u.props.children,f));return}u.type!==Fe&&Oe(!1),!u.props.index||!u.props.children||Oe(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=Oo(u.props.children,f)),o.push(m)}),o}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Uo(){return Uo=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[o];return l.concat(Array.isArray(u)?u.map(d=>[o,d]):[[o,u]])},[]))}function Zm(a,l){let o=Fo(a);return l&&l.forEach((u,d)=>{o.has(d)||l.getAll(d).forEach(f=>{o.append(d,f)})}),o}const ep=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],tp="6";try{window.__reactRouterVersion=tp}catch{}const np="startTransition",md=Gf[np];function sp(a){let{basename:l,children:o,future:u,window:d}=a,f=g.useRef();f.current==null&&(f.current=rm({window:d,v5Compat:!0}));let m=f.current,[v,p]=g.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},C=g.useCallback(b=>{j&&md?md(()=>p(b)):p(b)},[p,j]);return g.useLayoutEffect(()=>m.listen(C),[m,C]),g.useEffect(()=>qm(u),[u]),g.createElement(Km,{basename:l,children:o,location:v.location,navigationType:v.action,navigator:m,future:u})}const rp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pe=g.forwardRef(function(l,o){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:v,target:p,to:j,preventScrollReset:C,viewTransition:b}=l,$=Jm(l,ep),{basename:T}=g.useContext(wn),B,U=!1;if(typeof j=="string"&&lp.test(j)&&(B=j,rp))try{let Y=new URL(window.location.href),te=j.startsWith("//")?new URL(Y.protocol+j):new URL(j),F=qo(te.pathname,T);te.origin===Y.origin&&F!=null?j=F+te.search+te.hash:U=!0}catch{}let I=Tm(j,{relative:d}),W=ip(j,{replace:m,state:v,target:p,preventScrollReset:C,relative:d,viewTransition:b});function H(Y){u&&u(Y),Y.defaultPrevented||W(Y)}return g.createElement("a",Uo({},$,{href:B||I,onClick:U||f?u:H,ref:o,target:p}))});var pd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(pd||(pd={}));var xd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(xd||(xd={}));function ip(a,l){let{target:o,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:v}=l===void 0?{}:l,p=Dl(),j=Un(),C=Dd(a,{relative:m});return g.useCallback(b=>{if(Ym(b,o)){b.preventDefault();let $=u!==void 0?u:El(j)===El(C);p(a,{replace:$,state:d,preventScrollReset:f,relative:m,viewTransition:v})}},[j,p,C,u,d,o,a,f,m,v])}function op(a){let l=g.useRef(Fo(a)),o=g.useRef(!1),u=Un(),d=g.useMemo(()=>Zm(u.search,o.current?null:l.current),[u.search]),f=Dl(),m=g.useCallback((v,p)=>{const j=Fo(typeof v=="function"?v(d):v);o.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class ap{constructor(){xt(this,"listeners",new Set);xt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(o=>{try{o(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const ms=new ap,cp="/api";function cr(){return localStorage.getItem("classnotify_token")}function up(a){localStorage.setItem("classnotify_token",a)}function lr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function xe(a,l={}){const o=cr(),u={"Content-Type":"application/json",...l.headers};o&&(u.Authorization=`Bearer ${o}`);const d=await fetch(`${cp}${a}`,{...l,headers:u});if(d.status===401)throw lr(),ms.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const ae={login:(a,l)=>xe("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>xe("/auth/me"),getAdminMetrics:()=>xe("/admin/metrics"),getTenants:()=>xe("/admin/tenants"),getAllDevices:()=>xe("/admin/devices"),sendDeviceCommand:(a,l,o)=>xe(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:o})}),getAdminActivationCodes:()=>xe("/admin/activation-codes"),getAdminClasses:a=>xe(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>xe(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>xe(`/admin/notifications?limit=${a}`),createTenant:a=>xe("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>xe(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const o=new URLSearchParams;a&&o.append("tenantId",a),l&&o.append("role",l);const u=o.toString();return xe(`/admin/users${u?`?${u}`:""}`)},createUser:a=>xe("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>xe(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>xe(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>xe(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>xe(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>xe(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>xe(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>xe("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getSystemHealth:()=>xe("/admin/system/health"),getAuditLogs:(a=100)=>xe(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>xe("/school-admin/overview"),getSchoolClasses:()=>xe("/school-admin/classes"),createSchoolClass:a=>xe("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>xe("/school-admin/teachers"),createSchoolTeacher:a=>xe("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),getSchoolDevices:()=>xe("/school-admin/devices"),getSchoolCodes:()=>xe("/school-admin/activation-codes"),generateSchoolCode:a=>xe(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>xe("/notification/classes"),sendNotification:a=>xe("/notification/send",{method:"POST",body:JSON.stringify(a)}),getTeacherHistory:(a,l=50)=>xe(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`)};class Dn extends Error{constructor(l,o){const u=new.target.prototype;super(`${l}: Status code '${o}'`),this.statusCode=o,this.__proto__=u}}class Go extends Error{constructor(l="A timeout occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class Lt extends Error{constructor(l="An abort occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class dp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="UnsupportedTransportError",this.__proto__=u}}class hp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="DisabledTransportError",this.__proto__=u}}class fp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="FailedToStartTransportError",this.__proto__=u}}class gd extends Error{constructor(l){const o=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=o}}class mp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.innerErrors=o,this.__proto__=u}}class Od{constructor(l,o,u){this.statusCode=l,this.statusText=o,this.content=u}}class Ml{get(l,o){return this.send({...o,method:"GET",url:l})}post(l,o){return this.send({...o,method:"POST",url:l})}delete(l,o){return this.send({...o,method:"DELETE",url:l})}getCookieString(l){return""}}var R;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(R||(R={}));class ur{constructor(){}log(l,o){}}ur.instance=new ur;const pp="8.0.29";class Be{static isRequired(l,o){if(l==null)throw new Error(`The '${o}' argument is required.`)}static isNotEmpty(l,o){if(!l||l.match(/^\s*$/))throw new Error(`The '${o}' argument should not be empty.`)}static isIn(l,o,u){if(!(l in o))throw new Error(`Unknown ${u} value: ${l}.`)}}class Me{static get isBrowser(){return!Me.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Me.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Me.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function dr(a,l){let o="";return An(a)?(o=`Binary data of length ${a.byteLength}`,l&&(o+=`. Content: '${xp(a)}'`)):typeof a=="string"&&(o=`String data of length ${a.length}`,l&&(o+=`. Content: '${a}'`)),o}function xp(a){const l=new Uint8Array(a);let o="";return l.forEach(u=>{const d=u<16?"0":"";o+=`0x${d}${u.toString(16)} `}),o.substr(0,o.length-1)}function An(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Ud(a,l,o,u,d,f){const m={},[v,p]=ps();m[v]=p,a.log(R.Trace,`(${l} transport) sending data. ${dr(d,f.logMessageContent)}.`);const j=An(d)?"arraybuffer":"text",C=await o.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(R.Trace,`(${l} transport) request complete. Response status: ${C.statusCode}.`)}function gp(a){return a===void 0?new Pl(R.Information):a===null?ur.instance:a.log!==void 0?a:new Pl(a)}class vp{constructor(l,o){this._subject=l,this._observer=o}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(o=>{})}}class Pl{constructor(l){this._minLevel=l,this.out=console}log(l,o){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${R[l]}: ${o}`;switch(l){case R.Critical:case R.Error:this.out.error(u);break;case R.Warning:this.out.warn(u);break;case R.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function ps(){let a="X-SignalR-User-Agent";return Me.isNode&&(a="User-Agent"),[a,yp(pp,wp(),Np(),jp())]}function yp(a,l,o,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${o}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function wp(){if(Me.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function jp(){if(Me.isNode)return process.versions.node}function Np(){return Me.isNode?"NodeJS":"Browser"}function $o(a){return a.stack?a.stack:a.message?a.message:`${a}`}function _p(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class bp extends Ml{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||Me.isNode){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(o("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=o("node-fetch"):this._fetchType=fetch,this._fetchType=o("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(_p());if(typeof AbortController>"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=o("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new Lt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const o=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{o.abort(),u=new Lt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{o.abort(),this._logger.log(R.Warning,"Timeout from HTTP request."),u=new Go},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},An(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:o.signal})}catch(p){throw u||(this._logger.log(R.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await vd(f,"text");throw new Dn(p||f.statusText,f.status)}const v=await vd(f,l.responseType);return new Od(f.status,f.statusText,v)}getCookieString(l){let o="";return Me.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>o=d.join("; ")),o}}function vd(a,l){let o;switch(l){case"arraybuffer":o=a.arrayBuffer();break;case"text":o=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:o=a.text();break}return o}class Sp extends Ml{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Lt):l.method?l.url?new Promise((o,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(An(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new Lt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?o(new Od(d.status,d.statusText,d.response||d.responseText)):u(new Dn(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(R.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new Dn(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(R.Warning,"Timeout from HTTP request."),u(new Go)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class kp extends Ml{constructor(l){if(super(),typeof fetch<"u"||Me.isNode)this._httpClient=new bp(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Sp(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Lt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class gt{static write(l){return`${l}${gt.RecordSeparator}`}static parse(l){if(l[l.length-1]!==gt.RecordSeparator)throw new Error("Message is incomplete.");const o=l.split(gt.RecordSeparator);return o.pop(),o}}gt.RecordSeparatorCode=30;gt.RecordSeparator=String.fromCharCode(gt.RecordSeparatorCode);class Cp{writeHandshakeRequest(l){return gt.write(JSON.stringify(l))}parseHandshakeResponse(l){let o,u;if(An(l)){const v=new Uint8Array(l),p=v.indexOf(gt.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=String.fromCharCode.apply(null,Array.prototype.slice.call(v.slice(0,j))),u=v.byteLength>j?v.slice(j).buffer:null}else{const v=l,p=v.indexOf(gt.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=v.substring(0,j),u=v.length>j?v.substring(j):null}const d=gt.parse(o),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var le;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(le||(le={}));class Ep{constructor(){this.observers=[]}next(l){for(const o of this.observers)o.next(l)}error(l){for(const o of this.observers)o.error&&o.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new vp(this,l)}}class Pp{constructor(l,o,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=o,this._bufferSize=u}async _send(l){const o=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};An(o)?this._bufferedByteCount+=o.byteLength:this._bufferedByteCount+=o.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,v)=>{d=m,f=v})),this._messages.push(new Tp(o,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(o)}catch{this._disconnected()}await u}_ack(l){let o=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:le.Sequence,sequenceId:l}));const o=this._messages;for(const u of o)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const o of this._messages)o._rejector(l)}_isInvocationMessage(l){switch(l.type){case le.Invocation:case le.StreamItem:case le.Completion:case le.StreamInvocation:case le.CancelInvocation:return!0;case le.Close:case le.Sequence:case le.Ping:case le.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:le.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Tp{constructor(l,o,u,d){this._message=l,this._id=o,this._resolver=u,this._rejector=d}}const Ip=30*1e3,Rp=15*1e3,Lp=1e5;var ke;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(ke||(ke={}));class Yo{static create(l,o,u,d,f,m,v){return new Yo(l,o,u,d,f,m,v)}constructor(l,o,u,d,f,m,v){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(R.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Be.isRequired(l,"connection"),Be.isRequired(o,"logger"),Be.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Ip,this.keepAliveIntervalInMilliseconds=m??Rp,this._statefulReconnectBufferSize=v??Lp,this._logger=o,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Cp,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ke.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:le.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==ke.Disconnected&&this._connectionState!==ke.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==ke.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=ke.Connecting,this._logger.log(R.Debug,"Starting HubConnection.");try{await this._startInternal(),Me.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=ke.Connected,this._connectionStarted=!0,this._logger.log(R.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=ke.Disconnected,this._logger.log(R.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((o,u)=>{this._handshakeResolver=o,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let o=this._protocol.version;this.connection.features.reconnect||(o=1);const u={protocol:this._protocol.name,version:o};if(this._logger.log(R.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(R.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Pp(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(o){throw this._logger.log(R.Debug,`Hub handshake failed with error '${o}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(o),o}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===ke.Disconnected)return this._logger.log(R.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===ke.Disconnecting)return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const o=this._connectionState;return this._connectionState=ke.Disconnecting,this._logger.log(R.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(R.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(o===ke.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new Lt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createStreamInvocation(l,o,d);let m;const v=new Ep;return v.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){v.error(j);return}else p&&(p.type===le.Completion?p.error?v.error(new Error(p.error)):v.complete():v.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{v.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),v}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._sendWithProtocol(this._createInvocation(l,o,!0,d));return this._launchStreams(u,f),f}invoke(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createInvocation(l,o,!1,d);return new Promise((v,p)=>{this._callbacks[f.invocationId]=(C,b)=>{if(b){p(b);return}else C&&(C.type===le.Completion?C.error?p(new Error(C.error)):v(C.result):p(new Error(`Unexpected message type: ${C.type}`)))};const j=this._sendWithProtocol(f).catch(C=>{p(C),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,o){!l||!o||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(o)===-1&&this._methods[l].push(o))}off(l,o){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(o){const d=u.indexOf(o);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const o=this._protocol.parseMessages(l,this._logger);for(const u of o)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case le.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(R.Error,`Invoke client method threw error: ${$o(d)}`)});break;case le.StreamItem:case le.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===le.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(R.Error,`Stream callback threw error: ${$o(f)}`)}}break}case le.Ping:break;case le.Close:{this._logger.log(R.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case le.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case le.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(R.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let o,u;try{[u,o]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(R.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(o.error){const d="Server returned handshake error: "+o.error;this._logger.log(R.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(R.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===ke.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const o=l.target.toLowerCase(),u=this._methods[o];if(!u){this._logger.log(R.Warning,`No client method with the name '${o}' found.`),l.invocationId&&(this._logger.log(R.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,v,p;for(const j of d)try{const C=m;m=await j.apply(this,l.arguments),f&&m&&C&&(this._logger.log(R.Error,`Multiple results provided for '${o}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),v=void 0}catch(C){v=C,this._logger.log(R.Error,`A callback for the method '${o}' threw error '${C}'.`)}p?await this._sendWithProtocol(p):f?(v?p=this._createCompletionMessage(l.invocationId,`${v}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(R.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(R.Error,`Result given for '${o}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(R.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new Lt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ke.Disconnecting?this._completeClose(l):this._connectionState===ke.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===ke.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=ke.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),Me.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(o=>o.apply(this,[l]))}catch(o){this._logger.log(R.Error,`An onclose callback called with error '${l}' threw error '${o}'.`)}}}async _reconnect(l){const o=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(R.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=ke.Reconnecting,l?this._logger.log(R.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(R.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(R.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==ke.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(R.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==ke.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=ke.Connected,this._logger.log(R.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(R.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(R.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==ke.Reconnecting){this._logger.log(R.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===ke.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-o,d)}}this._logger.log(R.Information,`Reconnect retries have been exhausted after ${Date.now()-o} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,o,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:o,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(R.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${o}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const o=this._callbacks;this._callbacks={},Object.keys(o).forEach(u=>{const d=o[u];try{d(null,l)}catch(f){this._logger.log(R.Error,`Stream 'error' callback called with '${l}' threw error: ${$o(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,o,u,d){if(u)return d.length!==0?{arguments:o,streamIds:d,target:l,type:le.Invocation}:{arguments:o,target:l,type:le.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:o,invocationId:f.toString(),streamIds:d,target:l,type:le.Invocation}:{arguments:o,invocationId:f.toString(),target:l,type:le.Invocation}}}_launchStreams(l,o){if(l.length!==0){o||(o=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{o=o.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const o=[],u=[];for(let d=0;d0)&&(o=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return o&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[Mn.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[Mn.Authorization]&&delete l.headers[Mn.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Qe;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Qe||(Qe={}));var nt;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(nt||(nt={}));let $p=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class wd{get pollAborted(){return this._pollAbort.aborted}constructor(l,o,u){this._httpClient=l,this._logger=o,this._pollAbort=new $p,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,o){if(Be.isRequired(l,"url"),Be.isRequired(o,"transferFormat"),Be.isIn(o,nt,"transferFormat"),this._url=l,this._logger.log(R.Trace,"(LongPolling transport) Connecting."),o===nt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=ps(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};o===nt.Binary&&(m.responseType="arraybuffer");const v=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${v}.`);const p=await this._httpClient.get(v,m);p.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new Dn(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,o){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,o);d.statusCode===204?(this._logger.log(R.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new Dn(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(R.Trace,`(LongPolling transport) data received. ${dr(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof Go?this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(R.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(R.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Ud(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(R.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(R.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[o,u]=ps();l[o]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof Dn&&(f.statusCode===404?this._logger.log(R.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(R.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(R.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(R.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(R.Trace,l),this.onclose(this._closeError)}}}class Ap{constructor(l,o,u,d){this._httpClient=l,this._accessToken=o,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,o){return Be.isRequired(l,"url"),Be.isRequired(o,"transferFormat"),Be.isIn(o,nt,"transferFormat"),this._logger.log(R.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(o!==nt.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(Me.isBrowser||Me.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const v=this._httpClient.getCookieString(l),p={};p.Cookie=v;const[j,C]=ps();p[j]=C,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=v=>{if(this.onreceive)try{this._logger.log(R.Trace,`(SSE transport) data received. ${dr(v.data,this._options.logMessageContent)}.`),this.onreceive(v.data)}catch(p){this._close(p);return}},m.onerror=v=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(R.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(v){d(v);return}})}async send(l){return this._eventSource?Ud(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class zp{constructor(l,o,u,d,f,m){this._logger=u,this._accessTokenFactory=o,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,o){Be.isRequired(l,"url"),Be.isRequired(o,"transferFormat"),Be.isIn(o,nt,"transferFormat"),this._logger.log(R.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const v=this._httpClient.getCookieString(l);let p=!1;if(Me.isNode||Me.isReactNative){const j={},[C,b]=ps();j[C]=b,u&&(j[Mn.Authorization]=`Bearer ${u}`),v&&(j[Mn.Cookie]=v),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),o===nt.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(R.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let C=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?C=j.error:C="There was an error with the transport",this._logger.log(R.Information,`(WebSockets transport) ${C}.`)},m.onmessage=j=>{if(this._logger.log(R.Trace,`(WebSockets transport) data received. ${dr(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(C){this._close(C);return}},m.onclose=j=>{if(p)this._close(j);else{let C=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?C=j.error:C="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(C))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(R.Trace,`(WebSockets transport) sending data. ${dr(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(R.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const jd=100;class Op{constructor(l,o={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Be.isRequired(l,"url"),this._logger=gp(o.logger),this.baseUrl=this._resolveUrl(l),o=o||{},o.logMessageContent=o.logMessageContent===void 0?!1:o.logMessageContent,typeof o.withCredentials=="boolean"||o.withCredentials===void 0)o.withCredentials=o.withCredentials===void 0?!0:o.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");o.timeout=o.timeout===void 0?100*1e3:o.timeout;let u=null,d=null;if(Me.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!Me.isNode&&typeof WebSocket<"u"&&!o.WebSocket?o.WebSocket=WebSocket:Me.isNode&&!o.WebSocket&&u&&(o.WebSocket=u),!Me.isNode&&typeof EventSource<"u"&&!o.EventSource?o.EventSource=EventSource:Me.isNode&&!o.EventSource&&typeof d<"u"&&(o.EventSource=d),this._httpClient=new Mp(o.httpClient||new kp(this._logger),o.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=o,this.onreceive=null,this.onclose=null}async start(l){if(l=l||nt.Binary,Be.isIn(l,nt,"transferFormat"),this._logger.log(R.Debug,`Starting connection with transfer format '${nt[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const o="Failed to start the HttpConnection before stop() was called.";return this._logger.log(R.Error,o),await this._stopPromise,Promise.reject(new Lt(o))}else if(this._connectionState!=="Connected"){const o="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(R.Error,o),Promise.reject(new Lt(o))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Zo(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(o=>{this._stopPromiseResolver=o}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(o){this._logger.log(R.Error,`HttpConnection.transport.stop() threw error '${o}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(R.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let o=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Qe.WebSockets)this.transport=this._constructTransport(Qe.WebSockets),await this._startTransport(o,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(o),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Lt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(o=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new mp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Qe.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new zp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Qe.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ap(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Qe.LongPolling:return new wd(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,o){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,o),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,o)}_resolveTransportOrError(l,o,u,d){const f=Qe[l.transport];if(f==null)return this._logger.log(R.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Up(o,f))if(l.transferFormats.map(v=>nt[v]).indexOf(u)>=0){if(f===Qe.WebSockets&&!this._options.WebSocket||f===Qe.ServerSentEvents&&!this._options.EventSource)return this._logger.log(R.Debug,`Skipping transport '${Qe[f]}' because it is not supported in your environment.'`),new dp(`'${Qe[f]}' is not supported in your environment.`,f);this._logger.log(R.Debug,`Selecting transport '${Qe[f]}'.`);try{return this.features.reconnect=f===Qe.WebSockets?d:void 0,this._constructTransport(f)}catch(v){return v}}else return this._logger.log(R.Debug,`Skipping transport '${Qe[f]}' because it does not support the requested transfer format '${nt[u]}'.`),new Error(`'${Qe[f]}' does not support ${nt[u]}.`);else return this._logger.log(R.Debug,`Skipping transport '${Qe[f]}' because it was disabled by the client.`),new hp(`'${Qe[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(R.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(R.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(R.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(R.Error,`Connection disconnected with error '${l}'.`):this._logger.log(R.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(o=>{this._logger.log(R.Error,`TransportSendQueue.stop() threw error '${o}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(o){this._logger.log(R.Error,`HttpConnection.onclose(${l}) threw error '${o}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!Me.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const o=window.document.createElement("a");return o.href=l,this._logger.log(R.Information,`Normalizing '${l}' to '${o.href}'.`),o.href}_resolveNegotiateUrl(l){const o=new URL(l);o.pathname.endsWith("/")?o.pathname+="negotiate":o.pathname+="/negotiate";const u=new URLSearchParams(o.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),o.search=u.toString(),o.toString()}}function Up(a,l){return!a||(l&a)!==0}class Zo{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new Cl,this._transportResult=new Cl,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new Cl),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Cl;const l=this._transportResult;this._transportResult=void 0;const o=typeof this._buffer[0]=="string"?this._buffer.join(""):Zo._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(o),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const o=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(o);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class Cl{constructor(){this.promise=new Promise((l,o)=>[this._resolver,this._rejecter]=[l,o])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Fp="json";class Bp{constructor(){this.name=Fp,this.version=2,this.transferFormat=nt.Text}parseMessages(l,o){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];o===null&&(o=ur.instance);const u=gt.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case le.Invocation:this._isInvocationMessage(m);break;case le.StreamItem:this._isStreamItemMessage(m);break;case le.Completion:this._isCompletionMessage(m);break;case le.Ping:break;case le.Close:break;case le.Ack:this._isAckMessage(m);break;case le.Sequence:this._isSequenceMessage(m);break;default:o.log(R.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return gt.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,o){if(typeof l!="string"||l==="")throw new Error(o)}}const Hp={trace:R.Trace,debug:R.Debug,info:R.Information,information:R.Information,warn:R.Warning,warning:R.Warning,error:R.Error,critical:R.Critical,none:R.None};function Wp(a){const l=Hp[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class Vp{configureLogging(l){if(Be.isRequired(l,"logging"),Qp(l))this.logger=l;else if(typeof l=="string"){const o=Wp(l);this.logger=new Pl(o)}else this.logger=new Pl(l);return this}withUrl(l,o){return Be.isRequired(l,"url"),Be.isNotEmpty(l,"url"),this.url=l,typeof o=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...o}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:o},this}withHubProtocol(l){return Be.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new yd(l):this.reconnectPolicy=l:this.reconnectPolicy=new yd,this}withServerTimeout(l){return Be.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return Be.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const o=new Op(this.url,l);return Yo.create(o,this.logger||ur.instance,this.protocol||new Bp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function Qp(a){return a.log!==void 0}class qp{constructor(){xt(this,"connection",null);xt(this,"state","Disconnected");xt(this,"startPromise",null);xt(this,"permanentRetryTimer",null);xt(this,"isAuthenticated",!1);xt(this,"stateListeners",new Set);xt(this,"ackListeners",new Set);xt(this,"deviceStatusListeners",new Set);xt(this,"healthReportListeners",new Set);xt(this,"notificationListeners",new Set);ms.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(o=>o(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}async start(){var o,u;if(!cr()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((o=this.connection)==null?void 0:o.state)===ke.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===ke.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===ke.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new Vp().withUrl("/hubs/teacher",{accessTokenFactory:()=>cr()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(R.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(o=>o(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(o=>o(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(o=>o(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(o=>o(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===ke.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const Ut=new qp,Fd=g.createContext(void 0),Kp=({children:a})=>{const[l,o]=g.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=g.useState(cr()),[f,m]=g.useState(!0);g.useEffect(()=>{const j=ms.subscribe(()=>{Ut.stop(),lr(),d(null),o(null)});return()=>j()},[]),g.useEffect(()=>{(async()=>{var b,$;if(cr())try{const T=await ae.getMe();o(T),localStorage.setItem("classnotify_user",JSON.stringify(T)),ms.reset(),Ut.start()}catch(T){((b=T==null?void 0:T.message)!=null&&b.includes("未授权")||($=T==null?void 0:T.message)!=null&&$.includes("401"))&&(lr(),d(null),o(null))}else lr(),o(null),d(null);m(!1)})()},[]);const v=async(j,C)=>{const b=await ae.login(j,C);if(!b.success||!b.token||!b.role)throw new Error(b.errorMessage||"登录失败");up(b.token),d(b.token);const $={userId:b.userId||"",name:b.fullName||j,role:b.role,tenantId:b.tenantId||""};return o($),localStorage.setItem("classnotify_user",JSON.stringify($)),ms.reset(),Ut.start(),b.role},p=()=>{Ut.stop(),lr(),d(null),o(null),ms.reset()};return s.jsx(Fd.Provider,{value:{user:l,token:u,login:v,logout:p,isLoading:f},children:a})},mr=()=>{const a=g.useContext(Fd);if(!a)throw new Error("useAuth must be used within an AuthProvider");return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xp=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bd=(...a)=>a.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Jp={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gp=g.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...v},p)=>g.createElement("svg",{ref:p,...Jp,width:l,height:l,stroke:a,strokeWidth:u?Number(o)*24/Number(l):o,className:Bd("lucide",d),...v},[...m.map(([j,C])=>g.createElement(j,C)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ie=(a,l)=>{const o=g.forwardRef(({className:u,...d},f)=>g.createElement(Gp,{ref:f,iconNode:l,className:Bd(`lucide-${Xp(a)}`,u),...d}));return o.displayName=`${a}`,o};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yp=[["path",{d:"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"}]],ea=ie("Activity",Yp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],fs=ie("ArrowRight",Zp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Tl=ie("Bell",e0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Ft=ie("Building2",t0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const n0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Il=ie("Check",n0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=[["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"}]],Fn=ie("CircleAlert",s0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bt=ie("CircleCheck",r0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],i0=ie("CircleX",l0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],vs=ie("Clock",o0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],c0=ie("CloudRain",a0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Bo=ie("Copy",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const d0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],h0=ie("Flame",d0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],hr=ie("GraduationCap",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const m0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Nd=ie("History",m0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],vt=ie("KeyRound",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const x0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],ir=ie("Layers",x0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Hd=ie("LoaderCircle",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],y0=ie("LockOpen",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ho=ie("Lock",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],N0=ie("LogOut",j0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],b0=ie("Megaphone",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],k0=ie("Menu",S0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const C0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],zn=ie("Monitor",C0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],Wd=ie("PenLine",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],On=ie("Plus",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T0=[["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"}]],fr=ie("Radio",T0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],yt=ie("RefreshCw",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],L0=ie("RotateCcw",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],_d=ie("School",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const M0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],pr=ie("Search",M0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["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"}]],Rl=ie("Send",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ta=ie("ShieldAlert",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],na=ie("ShieldCheck",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],U0=ie("Shield",O0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Vd=ie("Sparkles",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const B0=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],sa=ie("Trash2",B0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const H0=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wo=ie("TriangleAlert",H0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Qd=ie("User",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],$n=ie("Users",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]],q0=ie("Vibrate",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],qd=ie("Volume2",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const X0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],J0=ie("X",X0),ra=()=>{const[a,l]=g.useState(Ut.getState());return g.useEffect(()=>Ut.onStateChange(l),[]),a==="Connected"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"云端已连接"]}):a==="Reconnecting"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-ping"}),"正在重连"]}):a==="Connecting"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-sky-400 animate-pulse"}),"正在连接..."]}):s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"连接断开"]})},G0=()=>{const{user:a,logout:l}=mr(),o=Un(),[u,d]=g.useState(!1);if(g.useEffect(()=>{d(!1)},[o.pathname]),!a)return null;const f=m=>o.pathname===m;return s.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"flex items-center justify-between h-16",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs(pe,{to:"/",className:"flex items-center space-x-2.5",children:[s.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:s.jsx(Tl,{className:"w-5 h-5 text-white"})}),s.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),s.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(na,{className:"w-3.5 h-3.5 text-amber-400"}),s.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(_d,{className:"w-3.5 h-3.5 text-sky-400"}),s.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&s.jsxs(s.Fragment,{children:[s.jsx(hr,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]}),s.jsx("div",{className:"hidden sm:block",children:s.jsx(ra,{})})]}),s.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsxs(pe,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(ir,{className:"w-4 h-4"}),"总览"]}),s.jsxs(pe,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Ft,{className:"w-4 h-4"}),"学校租户"]}),s.jsxs(pe,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx($n,{className:"w-4 h-4"}),"用户中枢"]}),s.jsxs(pe,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(zn,{className:"w-4 h-4"}),"设备集控"]}),s.jsxs(pe,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[s.jsx(fr,{className:"w-4 h-4"}),"应急广播"]}),s.jsxs(pe,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[s.jsx(vt,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),s.jsxs(pe,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Nd,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsxs(pe,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(_d,{className:"w-4 h-4"}),"学校概览"]}),s.jsxs(pe,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(ir,{className:"w-4 h-4"}),"班级管理"]}),s.jsxs(pe,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx($n,{className:"w-4 h-4"}),"教师账号"]}),s.jsxs(pe,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[s.jsx(vt,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&s.jsxs(pe,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Tl,{className:"w-4 h-4"}),"呼叫与回执"]})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),s.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),s.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:s.jsx(N0,{className:"w-4 h-4"})}),s.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?s.jsx(J0,{className:"w-5 h-5"}):s.jsx(k0,{className:"w-5 h-5"})})]})]}),u&&s.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(pe,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ir,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),s.jsx(pe,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[s.jsx(vt,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),s.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),s.jsx(pe,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ft,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),s.jsx(pe,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx($n,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),s.jsx(pe,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(zn,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),s.jsx(pe,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(fr,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),s.jsx(pe,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Nd,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(pe,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),s.jsx(pe,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),s.jsx(pe,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),s.jsx(pe,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&s.jsx(pe,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},Ao=({allowedRoles:a,children:l})=>{const{user:o,isLoading:u}=mr();return u?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):o?a.includes(o.role)?l?s.jsx(s.Fragment,{children:l}):s.jsx(zd,{}):o.role==="SuperAdmin"?s.jsx(Ot,{to:"/admin",replace:!0}):o.role==="SchoolAdmin"?s.jsx(Ot,{to:"/school-admin",replace:!0}):s.jsx(Ot,{to:"/teacher",replace:!0}):s.jsx(Ot,{to:"/login",replace:!0})},Y0=()=>{const[a,l]=g.useState(""),[o,u]=g.useState(""),[d,f]=g.useState(null),[m,v]=g.useState(!1),{login:p}=mr(),j=Dl(),C=async(b=a,$=o)=>{f(null),v(!0);try{const T=await p(b,$);j(T==="SuperAdmin"?"/admin":T==="SchoolAdmin"?"/school-admin":"/teacher")}catch(T){f(T.message||"登录失败,请检查账号密码")}finally{v(!1)}};return s.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[s.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),s.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),s.jsx("div",{className:"w-full max-w-md relative z-10",children:s.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:s.jsx(Tl,{className:"w-8 h-8 text-white"})}),s.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&s.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),s.jsxs("form",{onSubmit:b=>{b.preventDefault(),C()},className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),s.jsxs("div",{className:"relative",children:[s.jsx(Qd,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),s.jsx("input",{type:"text",value:a,onChange:b=>l(b.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),s.jsxs("div",{className:"relative",children:[s.jsx(Ho,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),s.jsx("input",{type:"password",value:o,onChange:b=>u(b.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),s.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?s.jsxs(s.Fragment,{children:[s.jsx(Hd,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"正在验证身份..."})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"登 录"}),s.jsx(fs,{className:"w-4 h-4"})]})})]})]})})]})},Z0=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState([]),[m,v]=g.useState(null),[p,j]=g.useState([]),[C,b]=g.useState(!0),$=async()=>{try{const[T,B,U,I,W]=await Promise.all([ae.getAdminMetrics(),ae.getTenants(),ae.getAdminNotifications(6),ae.getSystemHealth().catch(()=>null),ae.getAuditLogs(6).catch(()=>[])]);l(T),u(B),f(U),I&&v(I),W&&j(W)}catch(T){console.error("Failed to load admin dashboard data",T)}finally{b(!1)}};return g.useEffect(()=>{$();const T=setInterval($,1e4);return()=>clearInterval(T)},[]),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域云控超管总览"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时管控多校区实体、网格化终端生命周期、底层微内核与紧急调度通道"})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 self-start sm:self-auto",children:[s.jsxs(pe,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold shadow-md shadow-amber-500/20 active:scale-95 transition-all",children:[s.jsx(vt,{className:"w-4 h-4"}),"生成设备激活码"]}),s.jsxs("div",{className:"flex items-center gap-2.5 px-3.5 py-2 rounded-xl bg-slate-900/80 border border-slate-800 text-xs",children:[m!=null&&m.databaseConnected?s.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),s.jsxs("span",{className:"font-medium",children:["PostgreSQL 正常 (",m.databaseLatencyMs.toFixed(1),"ms)"]})]}):s.jsxs("div",{className:"flex items-center gap-2 text-rose-400",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500"}),s.jsx("span",{className:"font-medium",children:"数据库异常断开"})]}),s.jsx("span",{className:"text-slate-600",children:"|"}),s.jsxs("div",{className:"text-slate-400",children:[s.jsx("span",{children:"在线屏: "}),s.jsx("span",{className:"text-white font-mono",children:(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0})]}),s.jsx("span",{className:"text-slate-600",children:"|"}),s.jsx("div",{className:"text-slate-400 font-mono text-[11px]",children:s.jsxs("span",{children:["运行: ",(m==null?void 0:m.uptime)||"99.98%"]})})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"入驻学校 / 租户"}),s.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:s.jsx(Ft,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.totalTenants)??0}),s.jsx("span",{className:"text-xs text-slate-400",children:"所校区"})]})]}),s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"总设备数量"}),s.jsx("div",{className:"w-8 h-8 rounded-lg bg-sky-500/10 text-sky-400 flex items-center justify-center",children:s.jsx(zn,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.totalDevices)??0}),s.jsx("span",{className:"text-xs text-slate-400",children:"台教室终端"})]})]}),s.jsxs("div",{className:"glass-panel p-5 border-slate-800 relative overflow-hidden",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"在线设备 (实时连通)"}),s.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:s.jsx(ea,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[s.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),C?"-":(a==null?void 0:a.onlineDevices)??0]}),s.jsxs("span",{className:"text-xs text-slate-400",children:["/ 离线 ",C?"-":(a==null?void 0:a.offlineDevices)??0]})]})]}),s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"今日呼叫通知"}),s.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 text-amber-400 flex items-center justify-center",children:s.jsx(Tl,{className:"w-4 h-4"})})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.todayNotifications)??0}),s.jsx("span",{className:"text-xs text-slate-400",children:"次下发"})]})]})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"核心管控中枢入口"}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4",children:[s.jsxs(pe,{to:"/admin/tenants",className:"glass-panel p-4 border-slate-800 hover:border-indigo-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:s.jsx(Ft,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-indigo-400",children:"学校租户"}),s.jsx("div",{className:"text-xs text-slate-400",children:"入驻、变更与冻结"})]})]}),s.jsx(fs,{className:"w-4 h-4 text-slate-500 group-hover:text-indigo-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(pe,{to:"/admin/users",className:"glass-panel p-4 border-slate-800 hover:border-sky-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-sky-500/10 text-sky-400 flex items-center justify-center",children:s.jsx($n,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-sky-400",children:"用户中枢"}),s.jsx("div",{className:"text-xs text-slate-400",children:"跨校开户、改密与封禁"})]})]}),s.jsx(fs,{className:"w-4 h-4 text-slate-500 group-hover:text-sky-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(pe,{to:"/admin/devices",className:"glass-panel p-4 border-slate-800 hover:border-emerald-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:s.jsx(zn,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-emerald-400",children:"设备集控"}),s.jsx("div",{className:"text-xs text-slate-400",children:"心跳、远程指令与清退"})]})]}),s.jsx(fs,{className:"w-4 h-4 text-slate-500 group-hover:text-emerald-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(pe,{to:"/admin/codes",className:"glass-panel p-4 border-slate-800 hover:border-amber-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group relative overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:s.jsx(vt,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-sm font-semibold text-white group-hover:text-amber-400 flex items-center gap-1.5",children:["激活码大盘",s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-amber-500/20 text-amber-300 font-normal",children:"快速生成"})]}),s.jsx("div",{className:"text-xs text-slate-400",children:"生成、绑定与废除"})]})]}),s.jsx(fs,{className:"w-4 h-4 text-slate-500 group-hover:text-amber-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(pe,{to:"/admin/broadcast",className:"glass-panel p-4 border-slate-800 hover:border-rose-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:s.jsx(fr,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),s.jsx("div",{className:"text-xs text-slate-400",children:"全域群发与强置顶"})]})]}),s.jsx(fs,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs("div",{className:"lg:col-span-2 glass-panel p-6 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[s.jsx(Ft,{className:"w-4 h-4 text-indigo-400"}),"各校区终端在线统计"]}),s.jsx(pe,{to:"/admin/tenants",className:"text-xs text-indigo-400 hover:underline",children:"管理学校 →"})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"pb-3 font-medium",children:"学校名称"}),s.jsx("th",{className:"pb-3 font-medium",children:"班级数"}),s.jsx("th",{className:"pb-3 font-medium",children:"设备数"}),s.jsx("th",{className:"pb-3 font-medium",children:"在线状态"}),s.jsx("th",{className:"pb-3 font-medium text-right",children:"在线率"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o.map(T=>{const B=T.deviceCount>0?Math.round(T.onlineCount/T.deviceCount*100):0;return s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsxs("td",{className:"py-3 font-medium text-white flex items-center gap-2",children:[s.jsx("span",{children:T.name}),s.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",T.id,")"]})]}),s.jsx("td",{className:"py-3 text-slate-300",children:T.classroomCount}),s.jsx("td",{className:"py-3 text-slate-300",children:T.deviceCount}),s.jsx("td",{className:"py-3",children:s.jsxs("span",{className:"text-xs text-slate-300",children:[T.onlineCount," / ",T.deviceCount," 在线"]})}),s.jsx("td",{className:"py-3 text-right",children:s.jsxs("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${B>=80?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/30":B>0?"bg-amber-500/10 text-amber-400 border border-amber-500/30":"bg-slate-800 text-slate-400"}`,children:[B,"%"]})})]},T.id)})})]})})]}),s.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[s.jsx(na,{className:"w-4 h-4 text-amber-400"}),"管理员关键操作审计"]}),s.jsx("span",{className:"text-xs text-slate-500",children:"不可篡改"})]}),s.jsx("div",{className:"space-y-3",children:p.length===0?s.jsx("div",{className:"text-center py-8 text-xs text-slate-500",children:"暂无审计记录"}):p.map(T=>s.jsxs("div",{className:"glass-card p-3 text-xs space-y-1",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-semibold text-indigo-300 font-mono",children:T.action}),s.jsx("span",{className:"text-[10px] text-slate-500",children:new Date(T.occurredAt).toLocaleTimeString()})]}),s.jsx("div",{className:"text-slate-300 text-[11px] line-clamp-1",children:T.details||T.targetId}),s.jsxs("div",{className:"flex items-center justify-between text-slate-500 text-[10px]",children:[s.jsxs("span",{children:["操作者: ",T.actorUsername]}),s.jsx("span",{className:"font-mono",children:T.targetType})]})]},T.id))})]})]})]})},ex=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,v]=g.useState(null),[p,j]=g.useState(null),[C,b]=g.useState(null),[$,T]=g.useState(""),[B,U]=g.useState(""),[I,W]=g.useState(!1),H=async()=>{try{const L=await ae.getAllDevices();l(L)}catch(L){console.error("Failed to load devices",L)}finally{u(!1)}};g.useEffect(()=>{H();const L=setInterval(H,5e3);return()=>clearInterval(L)},[]);const Y=async(L,de,He)=>{j(`${L}_${de}`),v(null);try{const q=await ae.sendDeviceCommand(L,de,He);v({deviceId:L,message:q.message,success:!0}),H()}catch(q){v({deviceId:L,message:q.message||"远程指令下发失败",success:!1})}finally{j(null)}},te=L=>{b(L),T(L.hostname||""),U(L.classroomId||"")},F=async L=>{if(L.preventDefault(),!!C){W(!0);try{await ae.updateDevice(C.deviceId,{hostname:$.trim()||void 0,classroomId:B.trim()||void 0}),v({deviceId:C.deviceId,message:"设备信息更新成功",success:!0}),b(null),H()}catch(de){v({deviceId:C.deviceId,message:de.message||"更新设备失败",success:!1})}finally{W(!1)}}},se=async L=>{if(window.confirm(`高危操作确认:确定要注销并清退设备 [${L.deviceId} (${L.hostname||L.classroomName})] 吗? 清退后该设备将无法接入,需重新生成激活码绑定!`)){j(`decommission_${L.deviceId}`);try{await ae.decommissionDevice(L.deviceId),v({deviceId:L.deviceId,message:"设备已成功清退并注销",success:!0}),H()}catch(de){v({deviceId:L.deviceId,message:de.message||"清退设备失败",success:!1})}finally{j(null)}}},je=L=>{if(!L)return"从无心跳";const de=Math.floor((Date.now()-new Date(L).getTime())/1e3);return de<10?"刚刚 (几秒前)":de<60?`${de} 秒前`:de<3600?`${Math.floor(de/60)} 分钟前`:`${Math.floor(de/3600)} 小时前`},Ne=a.filter(L=>L.tenantName.toLowerCase().includes(d.toLowerCase())||L.classroomName.toLowerCase().includes(d.toLowerCase())||L.deviceId.toLowerCase().includes(d.toLowerCase())||L.hostname&&L.hostname.toLowerCase().includes(d.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备集控中心"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时监控教室终端健康心跳与服务状态,支持在线秒级下发或离线指令入队补发、元数据变更与清退"})]}),s.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[s.jsxs("button",{onClick:()=>{u(!0),H()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(yt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新状态"]}),s.jsxs(pe,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-600/25 transition-all",children:[s.jsx(vt,{className:"w-3.5 h-3.5 text-amber-300"}),"生成新设备激活码"]})]})]}),m&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between transition-all ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?s.jsx(Bt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(Fn,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsxs("span",{children:["[设备 ",m.deviceId,"] ",m.message]})]}),s.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(pr,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:d,onChange:L=>f(L.target.value),placeholder:"按学校、班级、设备编号或计算机名过滤...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&s.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校 / 班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"设备编号 / 主机名"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"运行状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"心跳与 IP"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"版本"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"运维指令与管理"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:Ne.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在同步设备状态...":"暂无匹配的设备"})}):Ne.map(L=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:L.classroomName}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:L.tenantName})]}),s.jsxs("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:[s.jsx("div",{children:L.deviceId}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[s.jsx(zn,{className:"w-3 h-3 text-slate-500"}),s.jsx("span",{children:L.hostname||"Classroom-PC"})]})]}),s.jsx("td",{className:"py-4 px-4",children:L.isOnline?s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),s.jsx("span",{children:"在线 (实时连通)"})]}):s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-400",title:"指令将入队,上线时自动补发",children:[s.jsx(vs,{className:"w-3 h-3 text-amber-500"}),s.jsx("span",{children:"离线 (支持离线入队)"})]})}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[s.jsx("div",{children:je(L.lastHeartbeat)}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:L.remoteIp||"127.0.0.1"})]}),s.jsx("td",{className:"py-4 px-4 text-xs",children:s.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono",children:["v",L.clientVersion||"2.1.0"]})}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[s.jsxs("button",{onClick:()=>Y(L.deviceId,"self_check"),disabled:p===`${L.deviceId}_self_check`,className:"px-2 py-1 rounded-lg bg-indigo-600/10 hover:bg-indigo-600/20 border border-indigo-500/30 text-indigo-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发远程自检指令 (若离线将入队补发)",children:[s.jsx(ea,{className:"w-3 h-3"}),"自检"]}),s.jsxs("button",{onClick:()=>Y(L.deviceId,"restart_client"),disabled:p===`${L.deviceId}_restart_client`,className:"px-2 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"远程重启前台 WPF Client 弹窗进程",children:[s.jsx(L0,{className:"w-3 h-3"}),"重启"]}),s.jsxs("button",{onClick:()=>Y(L.deviceId,"refresh_config"),disabled:p===`${L.deviceId}_refresh_config`,className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发配置刷新指令",children:[s.jsx(yt,{className:"w-3 h-3"}),"刷新"]}),s.jsx("button",{onClick:()=>te(L),className:"p-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 transition-colors",title:"重命名或调整班级绑定",children:s.jsx(Wd,{className:"w-3.5 h-3.5"})}),s.jsx("button",{onClick:()=>se(L),disabled:p===`decommission_${L.deviceId}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"清退并注销设备",children:s.jsx(sa,{className:"w-3.5 h-3.5"})})]})})]},L.deviceId))})]})})}),C&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"调整设备元数据"}),s.jsxs("p",{className:"text-xs text-slate-400",children:["设备唯一识别码: ",s.jsx("span",{className:"font-mono text-indigo-400",children:C.deviceId})]}),s.jsxs("form",{onSubmit:F,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"计算机名 / 主机标识 (Hostname)"}),s.jsx("input",{type:"text",value:$,onChange:L=>T(L.target.value),placeholder:"例如: LAB-BUILDING-201-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"所属班级编号 (Classroom ID)"}),s.jsx("input",{type:"text",value:B,onChange:L=>U(L.target.value),placeholder:"例如: cls_801",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>b(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:I,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:I?"保存中...":"确认保存"})]})]})]})})]})},tx=()=>{const[a]=op(),[l,o]=g.useState([]),[u,d]=g.useState([]),[f,m]=g.useState(!0),[v,p]=g.useState(null),[j,C]=g.useState(""),[b,$]=g.useState(""),[T,B]=g.useState(!1),[U,I]=g.useState(""),[W,H]=g.useState([]),[Y,te]=g.useState(!1),[F,se]=g.useState(""),[je,Ne]=g.useState(!1),[L,de]=g.useState(""),[He,q]=g.useState(!1),[ce,me]=g.useState(null),_e=async()=>{try{const[P,N]=await Promise.all([ae.getAdminActivationCodes(),ae.getTenants()]);o(P),d(N),N.length>0&&!U&&I(N[0].id)}catch(P){console.error("Failed to load activation codes",P)}finally{m(!1)}};g.useEffect(()=>{_e()},[]),g.useEffect(()=>{const P=a.get("tenantId"),N=a.get("openGenerate")==="true";P&&($(P),I(P),N&&B(!0))},[a]),g.useEffect(()=>{U&&(te(!0),ae.getAdminClasses(U).then(P=>{H(P),P.length>0?(se(P[0].id),Ne(!1)):(se(""),Ne(!0))}).catch(P=>{console.warn("Could not load classes for tenant:",U,P),H([]),Ne(!0)}).finally(()=>te(!1)))},[U]);const we=P=>{navigator.clipboard.writeText(P),p(P),setTimeout(()=>p(null),2e3)},he=async P=>{P.preventDefault();const N=je?L.trim():F.trim();if(!U||!N){alert("请选择学校及目标班级");return}q(!0);try{const D=await ae.generateAdminCode(U,N),re=u.find(fe=>fe.id===U),oe=W.find(fe=>fe.id===N);me({code:D.code,schoolName:(re==null?void 0:re.name)||U,className:(oe==null?void 0:oe.displayName)||N}),B(!1),de(""),_e()}catch(D){alert(D.message||"生成激活码失败")}finally{q(!1)}},S=async P=>{if(window.confirm(`确定要废弃/删除激活码 [${P}] 吗?废弃后将无法用于设备初始化绑定。`))try{await ae.deleteActivationCode(P),_e()}catch(N){alert(N.message||"删除激活码失败")}},Q=l.filter(P=>{const N=!b||P.tenantId===b,D=P.code.toLowerCase().includes(j.toLowerCase())||P.classroomName.toLowerCase().includes(j.toLowerCase())||P.tenantName.toLowerCase().includes(j.toLowerCase());return N&&D});return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:s.jsx(vt,{className:"w-4 h-4"})}),s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{m(!0),_e()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(yt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>{me(null),B(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[s.jsx(On,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),ce&&s.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:s.jsx(Vd,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),s.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",s.jsx("span",{className:"font-medium text-white",children:ce.schoolName})," / ",s.jsx("span",{className:"font-medium text-white",children:ce.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:ce.code}),s.jsx("button",{onClick:()=>we(ce.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:v===ce.code?s.jsxs(s.Fragment,{children:[s.jsx(Il,{className:"w-3.5 h-3.5"}),"已复制"]}):s.jsxs(s.Fragment,{children:[s.jsx(Bo,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[s.jsx(pr,{className:"w-4 h-4 text-slate-400 shrink-0"}),s.jsx("input",{type:"text",value:j,onChange:P=>C(P.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(Ft,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:b,onChange:P=>$(P.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(P=>s.jsxs("option",{value:P.id,children:[P.name," (",P.id,")"]},P.id))]})]}),s.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",s.jsx("span",{className:"text-white font-medium",children:Q.length})," 个激活码"]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:Q.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[s.jsx(vt,{className:"w-8 h-8 text-slate-600"}),s.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),s.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),s.jsxs("button",{onClick:()=>B(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[s.jsx(On,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):Q.map(P=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{children:P.code}),s.jsx("button",{onClick:()=>we(P.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:v===P.code?s.jsx(Il,{className:"w-3.5 h-3.5 text-emerald-400"}):s.jsx(Bo,{className:"w-3.5 h-3.5"})})]})}),s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-medium text-white",children:P.classroomName}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:P.tenantName})]}),s.jsx("td",{className:"py-4 px-4",children:P.isUsed?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[s.jsx(Bt,{className:"w-3 h-3"}),"已激活绑定"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[s.jsx(vs,{className:"w-3 h-3"}),"等待激活"]})}),s.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:P.usedByDeviceId?s.jsx("span",{className:"text-slate-200",children:P.usedByDeviceId}):s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(P.expiresAt).toLocaleDateString()," ",new Date(P.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>we(P.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:v===P.code?"已复制":"复制"}),s.jsx("button",{onClick:()=>S(P.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:s.jsx(sa,{className:"w-3.5 h-3.5"})})]})})]},P.code))})]})})}),T&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[s.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[s.jsx(vt,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),s.jsxs("form",{onSubmit:he,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),s.jsx("select",{value:U,onChange:P=>I(P.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(P=>s.jsxs("option",{value:P.id,children:[P.name," (",P.id,") ",P.isActive?"":"[已冻结]"]},P.id))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),s.jsx("button",{type:"button",onClick:()=>Ne(!je),className:"text-[11px] text-amber-400 hover:underline",children:je?"从班级列表选择":"手动输入班级ID"})]}),Y?s.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[s.jsx(yt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):je?s.jsx("input",{type:"text",value:L,onChange:P=>de(P.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):W.length>0?s.jsx("select",{value:F,onChange:P=>se(P.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:W.map(P=>s.jsxs("option",{value:P.id,children:[P.displayName," (",P.id,")"]},P.id))}):s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[s.jsx(Fn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),s.jsx("input",{type:"text",value:L,onChange:P=>de(P.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),s.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[s.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),s.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),s.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>B(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),s.jsx("button",{type:"submit",disabled:He,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:He?"生成中...":"立即生成激活码"})]})]})]})})]})},nx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),m=async()=>{try{const p=await ae.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};g.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const v=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),s.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[s.jsx(yt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新审计"]})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(pr,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:v.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在加载审计数据...":"暂无呼叫历史记录"})}):v.map(p=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:p.className}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),s.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[s.jsx("div",{className:"font-medium text-sm",children:p.message}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),s.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),s.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[s.jsx(Bt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[s.jsx(Rl,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[s.jsx(vs,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&s.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),s.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?s.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):s.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},sx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,v]=g.useState(null),[p,j]=g.useState(!1),[C,b]=g.useState({id:"",name:""}),[$,T]=g.useState(!1),[B,U]=g.useState(null),[I,W]=g.useState({name:"",isActive:!0}),[H,Y]=g.useState(!1),te=async()=>{try{const L=await ae.getTenants();l(L)}catch(L){console.error("Failed to load tenants",L)}finally{u(!1)}};g.useEffect(()=>{te()},[]);const F=async L=>{if(L.preventDefault(),!(!C.id.trim()||!C.name.trim())){T(!0);try{await ae.createTenant({id:C.id.trim(),name:C.name.trim()}),v({text:`学校 [${C.name}] 创建成功!`,success:!0}),j(!1),b({id:"",name:""}),te()}catch(de){v({text:de.message||"创建学校失败",success:!1})}finally{T(!1)}}},se=L=>{U(L),W({name:L.name,isActive:L.isActive})},je=async L=>{if(L.preventDefault(),!(!B||!I.name.trim())){Y(!0);try{await ae.updateTenant(B.id,{name:I.name.trim(),isActive:I.isActive}),v({text:`学校 [${I.name}] 配置已更新`,success:!0}),U(null),te()}catch(de){v({text:de.message||"更新学校配置失败",success:!1})}finally{Y(!1)}}},Ne=a.filter(L=>L.name.toLowerCase().includes(d.toLowerCase())||L.id.toLowerCase().includes(d.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{u(!0),te()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(yt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[s.jsx(On,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?s.jsx(Bt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(Fn,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:m.text})]}),s.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(pr,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:d,onChange:L=>f(L.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&s.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:Ne.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在读取租户列表...":"暂无匹配的学校租户"})}):Ne.map(L=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:s.jsx(Ft,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:L.name}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:L.id})]})]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[s.jsx(hr,{className:"w-3.5 h-3.5 text-indigo-400"}),s.jsxs("span",{children:[L.classroomCount," 个班级"]})]})}),s.jsx("td",{className:"py-4 px-4 text-xs",children:s.jsxs("div",{className:"inline-flex items-center gap-2",children:[s.jsxs("span",{className:"font-semibold text-emerald-400",children:[L.onlineCount," 在线"]}),s.jsx("span",{className:"text-slate-500",children:"/"}),s.jsxs("span",{className:"text-slate-400",children:[L.deviceCount," 总屏"]})]})}),s.jsx("td",{className:"py-4 px-4",children:L.isActive?s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[s.jsx(Bt,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"正常运营"})]}):s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[s.jsx(i0,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"已停用冻结"})]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(L.createdAt).toLocaleDateString()}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsxs(pe,{to:`/admin/codes?tenantId=${L.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[s.jsx(vt,{className:"w-3.5 h-3.5"}),"生成激活码"]}),s.jsxs("button",{onClick:()=>se(L),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[s.jsx(Wd,{className:"w-3 h-3"}),"编辑配置"]})]})})]},L.id))})]})})}),p&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),s.jsxs("form",{onSubmit:F,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:C.id,onChange:L=>b({...C,id:L.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:C.name,onChange:L=>b({...C,name:L.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:$,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:$?"正在创建...":"确认接入"})]})]})]})}),B&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",B.id]}),s.jsxs("form",{onSubmit:je,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),s.jsx("input",{type:"text",required:!0,value:I.name,onChange:L=>W({...I,name:L.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),s.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[s.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!0,onChange:()=>W({...I,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),s.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),s.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!1,onChange:()=>W({...I,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),s.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>U(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:H,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:H?"保存中...":"保存更改"})]})]})]})})]})},rx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,v]=g.useState(""),[p,j]=g.useState(""),[C,b]=g.useState(""),[$,T]=g.useState(null),[B,U]=g.useState(!1),[I,W]=g.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[H,Y]=g.useState(!1),[te,F]=g.useState(null),[se,je]=g.useState(""),[Ne,L]=g.useState(!1),[de,He]=g.useState(null),q=async()=>{try{const[S,Q]=await Promise.all([ae.getUsers(p||void 0,C||void 0),ae.getTenants()]);l(S),u(Q)}catch(S){console.error("Failed to load user management data",S)}finally{f(!1)}};g.useEffect(()=>{q()},[p,C]);const ce=async S=>{var Q;if(S.preventDefault(),!I.tenantId||!I.username||!I.password||!I.fullName){T({text:"请填写所有必填字段",success:!1});return}Y(!0);try{await ae.createUser(I),T({text:`用户 [${I.username}] 创建成功!`,success:!0}),U(!1),W({tenantId:((Q=o[0])==null?void 0:Q.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),q()}catch(P){T({text:P.message||"创建用户失败",success:!1})}finally{Y(!1)}},me=async S=>{if(S.preventDefault(),!(!te||!se.trim())){L(!0);try{await ae.resetPassword(te.id,se.trim()),T({text:`用户 [${te.username}] 的密码已重置成功`,success:!0}),F(null),je("")}catch(Q){T({text:Q.message||"重置密码失败",success:!1})}finally{L(!1)}}},_e=async S=>{const Q=!S.isLocked,P=Q?`确定要锁定账号 [${S.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${S.username}] 吗?`;if(window.confirm(P)){He(`lock_${S.id}`);try{await ae.setUserLock(S.id,Q),T({text:`用户 [${S.username}] 已成功${Q?"锁定":"解锁"}`,success:!0}),q()}catch(N){T({text:N.message||"操作失败",success:!1})}finally{He(null)}}},we=async S=>{if(S.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${S.username} (${S.fullName})] 吗?此操作不可逆!`)){He(`delete_${S.id}`);try{await ae.deleteUser(S.id),T({text:`用户 [${S.username}] 已被删除`,success:!0}),q()}catch(Q){T({text:Q.message||"删除用户失败",success:!1})}finally{He(null)}}},he=a.filter(S=>S.username.toLowerCase().includes(m.toLowerCase())||S.fullName.toLowerCase().includes(m.toLowerCase())||S.tenantName.toLowerCase().includes(m.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{f(!0),q()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(yt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>{o.length>0&&!I.tenantId&&W(S=>({...S,tenantId:o[0].id})),U(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[s.jsx(On,{className:"w-4 h-4"}),"新建用户"]})]})]}),$&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${$.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[$.success?s.jsx(Bt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(Fn,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:$.text})]}),s.jsx("button",{onClick:()=>T(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[s.jsx(pr,{className:"w-4 h-4 text-slate-400 shrink-0"}),s.jsx("input",{type:"text",value:m,onChange:S=>v(S.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(Ft,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:p,onChange:S=>j(S.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"全部学校 (全网)"}),o.map(S=>s.jsxs("option",{value:S.id,children:[S.name," (",S.id,")"]},S.id))]})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(hr,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:C,onChange:S=>b(S.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"全部角色"}),s.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),s.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),s.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:he.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):he.map(S=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:S.fullName}),s.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:S.username})]}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[s.jsx("div",{children:S.tenantName}),s.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:S.tenantId})]}),s.jsx("td",{className:"py-4 px-4",children:S.role==="SuperAdmin"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[s.jsx(ta,{className:"w-3 h-3"}),"超级管理员"]}):S.role==="SchoolAdmin"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[s.jsx(Ft,{className:"w-3 h-3"}),"校区管理员"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[s.jsx(hr,{className:"w-3 h-3"}),"授课老师"]})}),s.jsx("td",{className:"py-4 px-4",children:S.isLocked?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[s.jsx(Ho,{className:"w-3 h-3"}),"已锁定封禁"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[s.jsx(Bt,{className:"w-3 h-3"}),"正常"]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:S.lastLoginAt?new Date(S.lastLoginAt).toLocaleString():"尚未登录"}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[s.jsxs("button",{onClick:()=>F(S),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[s.jsx(vt,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),S.role!=="SuperAdmin"&&s.jsxs("button",{onClick:()=>_e(S),disabled:de===`lock_${S.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${S.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:S.isLocked?"解除账号锁定":"锁定账号",children:[S.isLocked?s.jsx(y0,{className:"w-3 h-3"}):s.jsx(Ho,{className:"w-3 h-3"}),S.isLocked?"解锁":"锁定"]}),S.role!=="SuperAdmin"&&s.jsx("button",{onClick:()=>we(S),disabled:de===`delete_${S.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:s.jsx(sa,{className:"w-3.5 h-3.5"})})]})})]},S.id))})]})})}),B&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),s.jsxs("form",{onSubmit:ce,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),s.jsxs("select",{required:!0,value:I.tenantId,onChange:S=>W({...I,tenantId:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"-- 请选择学校 --"}),o.map(S=>s.jsxs("option",{value:S.id,children:[S.name," (",S.id,")"]},S.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),s.jsxs("select",{value:I.role,onChange:S=>W({...I,role:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),s.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:I.username,onChange:S=>W({...I,username:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:I.fullName,onChange:S=>W({...I,fullName:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),s.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:I.password,onChange:S=>W({...I,password:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>U(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:H,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:H?"正在创建...":"确认开户"})]})]})]})}),te&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",te.username]}),s.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",te.tenantName,"] 的 [",te.fullName,"] 强行设置新密码。"]}),s.jsxs("form",{onSubmit:me,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),s.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:se,onChange:S=>je(S.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>{F(null),je("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:Ne,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:Ne?"重置中...":"确认重置"})]})]})]})})]})},lx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,v]=g.useState(null),[p,j]=g.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),C=[{title:"⚠️ 消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速、有序撤离至操场,不要慌乱!",duration:60,shake:!0,voice:!0,icon:h0},{title:"⛈️ 恶劣雷雨大风避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁学生前往走廊与室外活动!",duration:45,shake:!0,voice:!0,icon:c0},{title:"📢 临时紧急集合通知",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学保持教室内安静自习。",duration:30,shake:!1,voice:!0,icon:$n},{title:"🔔 全校临时作息调整",content:"因突发教学安排,今天下午放学时间调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:b0}];g.useEffect(()=>{(async()=>{try{const B=await ae.getTenants();l(B)}catch(B){console.error("Failed to load tenants",B)}finally{u(!1)}})()},[]);const b=T=>{j(B=>({...B,title:T.title,message:T.content,durationSeconds:T.duration,shake:T.shake,voice:T.voice}))},$=async T=>{var I;if(T.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}const B=p.tenantId?`指定学校 [${((I=a.find(W=>W.id===p.tenantId))==null?void 0:I.name)||p.tenantId}]`:"全网所有学校与所有教室大屏 (全域群发)";if(window.confirm(`⚠️ 极高优先级应急调度确认: 目标受众: ${B} 标题: ${p.title} 时长: ${p.durationSeconds} 秒 语音播报: ${p.voice?"是":"否"} 强震颤: ${p.shake?"是":"否"} 此指令将穿透静音模式并以最高置顶层级在所有终端大屏弹出!确定立即下发吗?`)){f(!0),v(null);try{const W=await ae.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});v({dispatchedCount:W.dispatchedCount,targetSchools:W.targetSchools,message:W.message,success:!0}),j(H=>({...H,message:""}))}catch(W){v({dispatchedCount:0,targetSchools:0,message:W.message||"应急广播下发失败",success:!1})}finally{f(!1)}}};return s.jsxs("div",{className:"space-y-6",children:[s.jsx("div",{children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"p-2 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:s.jsx(fr,{className:"w-5 h-5 animate-pulse"})}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域紧急应急广播"}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"超级管理员最高优先调度通道,覆盖全网多校区所有教室大屏终端,支持强置顶、TTS 语音播报与视效抖动"})]})]})}),m&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?s.jsx(Bt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(Wo,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:m.message})]}),s.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{children:[s.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"应急广播预设模板 (点击快速填装)"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:C.map((T,B)=>{const U=T.icon;return s.jsxs("button",{type:"button",onClick:()=>b(T),className:"glass-panel p-3.5 border-slate-800 text-left hover:border-indigo-500/50 hover:bg-slate-800/40 transition-all group",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-indigo-400 mb-1",children:[s.jsx(U,{className:"w-4 h-4 text-indigo-400"}),s.jsx("span",{children:T.title})]}),s.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2",children:T.content})]},B)})})]}),s.jsx("div",{className:"glass-panel p-6 border-slate-800",children:s.jsxs("form",{onSubmit:$,className:"space-y-5",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[s.jsx(Ft,{className:"w-3.5 h-3.5 text-indigo-400"}),"目标广播范围"]}),s.jsxs("select",{value:p.tenantId||"",onChange:T=>j({...p,tenantId:T.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(T=>s.jsxs("option",{value:T.id,children:["仅该校: ",T.name," (",T.classroomCount," 班级, ",T.deviceCount," 大屏)"]},T.id))]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[s.jsx(ta,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),s.jsx("input",{type:"text",required:!0,value:p.title,onChange:T=>j({...p,title:T.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容 (将同步在所有大屏全屏高显并由 Windows TTS 朗读)"}),s.jsx("textarea",{required:!0,rows:4,value:p.message,onChange:T=>j({...p,message:T.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500 font-sans",placeholder:"请输入紧急通报具体事项,语言力求简明扼要..."})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2 border-t border-slate-800",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[s.jsx(vs,{className:"w-3.5 h-3.5 text-indigo-400"}),"展示持续时长: ",p.durationSeconds," 秒"]}),s.jsx("input",{type:"range",min:10,max:300,step:5,value:p.durationSeconds,onChange:T=>j({...p,durationSeconds:parseInt(T.target.value,10)}),className:"w-full accent-indigo-500 cursor-pointer"}),s.jsxs("div",{className:"flex justify-between text-[11px] text-slate-500 mt-1",children:[s.jsx("span",{children:"10秒"}),s.jsx("span",{children:"60秒"}),s.jsx("span",{children:"5分钟"})]})]}),s.jsx("div",{className:"flex items-center",children:s.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[s.jsx("input",{type:"checkbox",checked:p.voice,onChange:T=>j({...p,voice:T.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[s.jsx(qd,{className:"w-3.5 h-3.5 text-emerald-400"}),"TTS 语音朗读"]}),s.jsx("div",{className:"text-[11px] text-slate-500",children:"大屏端通过系统扬声器朗读"})]})]})}),s.jsx("div",{className:"flex items-center",children:s.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[s.jsx("input",{type:"checkbox",checked:p.shake,onChange:T=>j({...p,shake:T.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[s.jsx(q0,{className:"w-3.5 h-3.5 text-rose-400"}),"窗口视效震颤"]}),s.jsx("div",{className:"text-[11px] text-slate-500",children:"高频强抖动提醒上课师生"})]})]})})]}),s.jsx("div",{className:"pt-2 flex justify-end",children:s.jsxs("button",{type:"submit",disabled:d,className:"flex items-center gap-2 px-6 py-3 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-sm font-semibold shadow-xl shadow-rose-600/30 transition-all disabled:opacity-50",children:[s.jsx(Rl,{className:`w-4 h-4 ${d?"animate-bounce":""}`}),d?"正在全网调度广播中...":"立即下发全域紧急广播"]})})]})})]})},ix=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,v]=g.useState(null),p=async()=>{f(!0),v(null);try{const[j,C]=await Promise.all([ae.getSchoolOverview(),ae.getSchoolDevices()]);l(j),u(C)}catch(j){v((j==null?void 0:j.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};return g.useEffect(()=>{p();const j=Ut.onDeviceStatusChanged(b=>{u($=>{const T=b.state===1||String(b.state).toLowerCase()==="online",B=$.map(I=>I.deviceId===b.deviceId?{...I,isOnline:T,lastHeartbeat:b.lastHeartbeat,clientVersion:b.agentVersion||I.clientVersion}:I),U=B.filter(I=>I.isOnline).length;return l(I=>I?{...I,onlineCount:U}:null),B})}),C=Ut.onHealthReportReceived(b=>{u($=>$.map(T=>T.deviceId===b.deviceId?{...T,healthStatus:b.overallStatus,lastHeartbeat:b.timestamp||new Date().toISOString()}:T))});return()=>{j(),C()}},[]),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:(a==null?void 0:a.tenantName)||"本校管理后台"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"管理本校班级配置、多媒体教室设备绑定与科任教师账号"})]}),s.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:s.jsx(ra,{})})]}),m&&s.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Fn,{className:"w-4 h-4 text-rose-400"}),s.jsx("span",{children:m})]}),s.jsxs("button",{onClick:p,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(yt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"已建班级"}),s.jsx(ir,{className:"w-4 h-4 text-sky-400"})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.classCount)??0}),s.jsx("span",{className:"text-xs text-slate-400",children:"个教学班"})]})]}),s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教室终端"}),s.jsx(zn,{className:"w-4 h-4 text-indigo-400"})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.deviceCount)??0}),s.jsx("span",{className:"text-xs text-slate-400",children:"台已安装"})]})]}),s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"实时在线"}),s.jsx(ea,{className:"w-4 h-4 text-emerald-400"})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[s.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),d?"-":(a==null?void 0:a.onlineCount)??0]}),s.jsxs("span",{className:"text-xs text-slate-400",children:["/ 总 ",d?"-":(a==null?void 0:a.deviceCount)??0]})]})]}),s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教师账号"}),s.jsx($n,{className:"w-4 h-4 text-amber-400"})]}),s.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[s.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.teacherCount)??0}),s.jsx("span",{className:"text-xs text-slate-400",children:"位老师"})]})]})]}),s.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[s.jsx(zn,{className:"w-4 h-4 text-sky-400"}),"本校各教室设备状态与健康体检"]}),s.jsx(pe,{to:"/school-admin/classes",className:"text-xs text-sky-400 hover:text-sky-300 font-medium flex items-center gap-1",children:"班级管理"})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"健康状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最后心跳"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"版本"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-400",children:s.jsxs("div",{className:"inline-flex items-center gap-2",children:[s.jsx(yt,{className:"w-4 h-4 animate-spin text-sky-400"}),s.jsx("span",{children:"正在同步设备列表..."})]})})}):o.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-500",children:"暂无已绑定的教室设备,请前往【本校激活码】生成激活码并在教室电脑安装"})}):o.map(j=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-3.5 px-4 font-medium text-white",children:j.classroomName}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:j.deviceId}),s.jsx("td",{className:"py-3.5 px-4",children:j.isOnline?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"在线"]}):s.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线"})}),s.jsx("td",{className:"py-3.5 px-4",children:j.healthStatus==="Degraded"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[s.jsx(ta,{className:"w-3 h-3 text-amber-400"}),"亚健康"]}):j.healthStatus==="Healthy"||j.isOnline&&!j.healthStatus?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[s.jsx(na,{className:"w-3 h-3 text-emerald-400"}),"健康"]}):s.jsx("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线未检"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400",children:j.lastHeartbeat?new Date(j.lastHeartbeat).toLocaleTimeString():"无"}),s.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",j.clientVersion||"2.1.0"]})]},j.deviceId))})]})})]})]})},ox=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,v]=g.useState(""),[p,j]=g.useState(""),[C,b]=g.useState(""),[$,T]=g.useState(""),[B,U]=g.useState(!1),[I,W]=g.useState(null),H=async()=>{try{const F=await ae.getSchoolClasses();l(F)}catch(F){console.error("Failed to load classes",F)}finally{u(!1)}};g.useEffect(()=>{H()},[]);const Y=async F=>{if(F.preventDefault(),!(!m||!p)){U(!0);try{await ae.createSchoolClass({id:m,displayName:p,grade:C,roomNumber:$}),f(!1),v(""),j(""),b(""),T(""),H()}catch(se){alert(se.message||"创建班级失败")}finally{U(!1)}}},te=async F=>{try{const se=await ae.generateSchoolCode(F);W({classId:F,code:se.code})}catch(se){alert(se.message||"生成激活码失败")}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校班级管理"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"维护学校全部教学班级,并为各班级生成设备激活码"})]}),s.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[s.jsx(On,{className:"w-4 h-4"}),"新建教学班"]})]}),I&&s.jsxs("div",{className:"p-4 rounded-xl bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsxs("span",{className:"font-semibold",children:["【",I.classId,"】激活码已生成:"]}),s.jsx("span",{className:"font-mono text-base font-bold text-white ml-2 bg-slate-900 px-2 py-1 rounded",children:I.code}),s.jsx("span",{className:"text-xs text-emerald-400/80 ml-3",children:"(请在教室电脑运行 ClassNotifySetup.exe 输入该激活码完成绑定)"})]}),s.jsx("button",{onClick:()=>{navigator.clipboard.writeText(I.code),alert("激活码已复制!")},className:"px-3 py-1 rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium",children:"复制激活码"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级名称"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级编号 (ClassId)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"年级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教室位置"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:a.map(F=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4 font-semibold text-white",children:F.displayName}),s.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:F.id}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:F.grade||"-"}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:F.roomNumber||"-"}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("button",{onClick:()=>te(F.id),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-sky-600/10 hover:bg-sky-600/20 border border-sky-500/30 text-sky-400 text-xs font-medium transition-colors",children:[s.jsx(vt,{className:"w-3.5 h-3.5"}),"生成安装激活码"]})})]},F.id))})]})})}),d&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[s.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[s.jsx(ir,{className:"w-5 h-5 text-sky-400"}),"新建教学班级"]}),s.jsxs("form",{onSubmit:Y,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级编号 (唯一识别码)"}),s.jsx("input",{type:"text",value:m,onChange:F=>v(F.target.value),placeholder:"如 cls_803 或 cls_grade7_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级显示名称"}),s.jsx("input",{type:"text",value:p,onChange:F=>j(F.target.value),placeholder:"如 八年级(3)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"年级 (可选)"}),s.jsx("input",{type:"text",value:C,onChange:F=>b(F.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教室位置 (可选)"}),s.jsx("input",{type:"text",value:$,onChange:F=>T(F.target.value),placeholder:"如 教学楼 303",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),s.jsx("button",{type:"submit",disabled:B,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:B?"创建中...":"确认创建"})]})]})]})})]})},ax=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,v]=g.useState(""),[p,j]=g.useState(""),[C,b]=g.useState(""),[$,T]=g.useState("Teacher"),[B,U]=g.useState(!1),I=async()=>{try{const H=await ae.getSchoolTeachers();l(H)}catch(H){console.error("Failed to load teachers",H)}finally{u(!1)}};g.useEffect(()=>{I()},[]);const W=async H=>{if(H.preventDefault(),!(!m||!p||!C)){U(!0);try{await ae.createSchoolTeacher({username:m,password:p,fullName:C,role:$}),f(!1),v(""),j(""),b(""),I()}catch(Y){alert(Y.message||"创建教师账号失败")}finally{U(!1)}}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教师账号管理"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"为科任教师开设 ClassNotify 网页控制台与后续 Android 移动端登录权限"})]}),s.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[s.jsx(On,{className:"w-4 h-4"}),"开设教师账号"]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教师姓名"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"登录账号 (Username)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号权限角色"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"状态"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:a.map(H=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4 font-semibold text-white flex items-center gap-2",children:[H.role==="SchoolAdmin"?s.jsx(U0,{className:"w-4 h-4 text-sky-400"}):s.jsx(hr,{className:"w-4 h-4 text-emerald-400"}),s.jsx("span",{children:H.fullName})]}),s.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:H.username}),s.jsx("td",{className:"py-4 px-4 text-xs",children:H.role==="SchoolAdmin"?s.jsx("span",{className:"px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/30",children:"学校管理员"}):s.jsx("span",{className:"px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:"任课教师"})}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsx("span",{className:"text-xs text-emerald-400 font-medium",children:"正常可用"})})]},H.id))})]})})}),d&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[s.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[s.jsx($n,{className:"w-5 h-5 text-sky-400"}),"开设新账号"]}),s.jsxs("form",{onSubmit:W,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教师真实姓名"}),s.jsx("input",{type:"text",value:C,onChange:H=>b(H.target.value),placeholder:"如 王老师 / 李明",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),s.jsx("input",{type:"text",value:m,onChange:H=>v(H.target.value),placeholder:"如 teacher_wang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录初始密码"}),s.jsx("input",{type:"password",value:p,onChange:H=>j(H.target.value),placeholder:"••••••••",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"角色权限"}),s.jsxs("select",{value:$,onChange:H=>T(H.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",children:[s.jsx("option",{value:"Teacher",children:"普通科任教师 (仅呼叫与回执)"}),s.jsx("option",{value:"SchoolAdmin",children:"学校管理员 (可管理班级与账号)"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),s.jsx("button",{type:"submit",disabled:B,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:B?"开设计算中...":"确认开通"})]})]})]})})]})},cx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,v]=g.useState(null),[p,j]=g.useState(null),[C,b]=g.useState(!1),[$,T]=g.useState(""),[B,U]=g.useState(!1),[I,W]=g.useState(null),H=async()=>{f(!0),v(null);try{const[F,se]=await Promise.all([ae.getSchoolCodes(),ae.getSchoolClasses()]);l(F),u(se),se.length>0&&!$&&T(se[0].id)}catch(F){v((F==null?void 0:F.message)||"加载本校激活码数据失败")}finally{f(!1)}};g.useEffect(()=>{H()},[]);const Y=F=>{navigator.clipboard.writeText(F),j(F),setTimeout(()=>j(null),2e3)},te=async F=>{if(F.preventDefault(),!!$){U(!0),W(null);try{await ae.generateSchoolCode($),b(!1),H()}catch(se){W((se==null?void 0:se.message)||"生成激活码失败")}finally{U(!1)}}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教室终端激活码"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理本校教室电脑安装所需的 8 位一次性硬件绑定激活码"})]}),s.jsxs("button",{onClick:()=>{W(null),b(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[s.jsx(On,{className:"w-4 h-4"}),"生成新激活码"]})]}),m&&s.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Fn,{className:"w-4 h-4 text-rose-400"}),s.jsx("span",{children:m})]}),s.jsxs("button",{onClick:H,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(yt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-400",children:s.jsxs("div",{className:"inline-flex items-center gap-2",children:[s.jsx(yt,{className:"w-4 h-4 animate-spin text-sky-400"}),s.jsx("span",{children:"正在加载本校激活码..."})]})})}):a.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-500",children:"本校暂无生成的激活码,请点击右上角生成"})}):a.map(F=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4 font-mono font-bold text-sky-400 text-base flex items-center gap-2",children:[s.jsx("span",{children:F.code}),s.jsx("button",{onClick:()=>Y(F.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:p===F.code?s.jsx(Il,{className:"w-3.5 h-3.5 text-emerald-400"}):s.jsx(Bo,{className:"w-3.5 h-3.5"})})]}),s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-medium text-white",children:F.classroomName||F.classroomId}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:F.classroomId})]}),s.jsx("td",{className:"py-4 px-4",children:F.isUsed?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:[s.jsx(Bt,{className:"w-3.5 h-3.5 text-slate-500"}),"已激活使用"]}):s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"待激活 (可用)"]})}),s.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:F.usedByDeviceId?s.jsx("span",{className:"text-slate-200",children:F.usedByDeviceId}):s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(vs,{className:"w-3.5 h-3.5 text-slate-500"}),s.jsxs("span",{children:[new Date(F.expiresAt).toLocaleDateString()," 到期"]})]})}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsx("button",{onClick:()=>Y(F.code),className:"text-xs text-slate-400 hover:text-white underline underline-offset-4",children:p===F.code?"已复制":"复制用于安装"})})]},F.code))})]})})}),C&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[s.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[s.jsx(vt,{className:"w-5 h-5 text-sky-400"}),"生成本校班级设备激活码"]}),I&&s.jsx("div",{className:"mb-4 p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs",children:I}),s.jsxs("form",{onSubmit:te,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),o.length===0?s.jsx("div",{className:"text-xs text-amber-400 p-2 bg-amber-500/10 rounded-lg border border-amber-500/30",children:"本校暂无班级,请先前往“班级管理”创建班级。"}):s.jsx("select",{value:$,onChange:F=>T(F.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0,children:o.map(F=>s.jsxs("option",{value:F.id,children:[F.displayName," (",F.id,")"]},F.id))})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),s.jsx("button",{type:"submit",disabled:B||o.length===0,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:B?"生成中...":"立即生成"})]})]})]})})]})};function bd(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const ux=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(""),[d,f]=g.useState(""),[m,v]=g.useState(""),[p,j]=g.useState(!0),[C,b]=g.useState(!0),[$,T]=g.useState(!1),[B,U]=g.useState(15),[I,W]=g.useState(!1),[H,Y]=g.useState([]),[te,F]=g.useState(!0),[se,je]=g.useState(null),Ne=Qo.useRef(a);g.useEffect(()=>{Ne.current=a},[a]);const L=["请带各科作业本到办公室","马上到操场集合整队","课代表请到教研室领试卷","午休时间请教室内保持安静","请班长负责维护自习纪律","放学后值日生留下来打扫卫生"],de=async()=>{F(!0),je(null);try{const q=await ae.getTeacherClasses();l(q),q.length>0&&!o&&u(q[0].id);const ce=await ae.getTeacherHistory(void 0,20);Y(ce.map(me=>({...me,status:bd(me.status)})))}catch(q){je((q==null?void 0:q.message)||"加载班级或历史记录失败")}finally{F(!1)}};g.useEffect(()=>{de()},[]),g.useEffect(()=>{const q=Ut.onAckReceiptReceived(me=>{Y(_e=>_e.map(we=>{if(we.id===me.messageId){const he=bd(me.status);return{...we,status:he,confirmedAt:me.timestamp||we.confirmedAt||new Date().toISOString()}}return we}))}),ce=Ut.onNewNotificationBroadcast(me=>{Y(_e=>{if(_e.some(S=>S.id===me.id))return _e;const we=Ne.current.find(S=>S.id===me.classId);return[{id:me.id,tenantId:me.tenantId,classId:me.classId,className:(we==null?void 0:we.displayName)||me.classId,senderName:"教师",message:me.message,priority:me.type===2?"Urgent":"Normal",createdAt:me.createdAt,status:"Sent"},..._e]})});return()=>{q(),ce()}},[]);const He=async q=>{if(q.preventDefault(),!(!o||!m.trim())){W(!0);try{const ce=a.find(he=>he.id===o),me=d.trim()?`🔔 老师呼叫: ${d.trim()}`:`📢 ${(ce==null?void 0:ce.displayName)||"班级"}通知`,_e=await ae.sendNotification({classId:o,studentName:d.trim()||void 0,title:me,message:m.trim(),type:$?2:0,voice:p,shake:C,durationSeconds:B}),we=m.trim();v(""),f(""),_e!=null&&_e.messageId&&Y(he=>he.some(Q=>Q.id===_e.messageId)?he:[{id:_e.messageId,tenantId:"",classId:o,className:(ce==null?void 0:ce.displayName)||o,senderName:"教师",message:we,priority:$?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...he])}catch(ce){alert(ce.message||"呼叫发送失败")}finally{W(!1)}}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"教师呼叫工作台"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"向指定教室大屏下发即时点呼与通知,支持语音朗读(TTS)与学生回执确认"})]}),s.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:s.jsx(ra,{})})]}),se&&s.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[s.jsx(Fn,{className:"w-4 h-4 text-rose-400"}),s.jsx("span",{children:se})]}),s.jsxs("button",{onClick:de,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(yt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[s.jsx("div",{className:"lg:col-span-7 space-y-5",children:s.jsx("div",{className:"glass-panel p-6 border-slate-800",children:s.jsxs("form",{onSubmit:He,className:"space-y-5",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-2",children:"目标授课班级"}),a.length===0?s.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/30",children:"未查询到可用班级,请联系学校管理员添加班级"}):s.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:a.map(q=>{const ce=o===q.id;return s.jsxs("button",{type:"button",onClick:()=>u(q.id),className:`p-3 rounded-xl border text-left transition-all relative ${ce?"bg-indigo-600/20 border-indigo-500/50 text-white shadow-lg shadow-indigo-600/10":"bg-slate-900/60 border-slate-800 text-slate-400 hover:text-slate-200 hover:bg-slate-800/50"}`,children:[s.jsx("div",{className:"font-semibold text-sm truncate",children:q.displayName}),s.jsx("div",{className:"text-[11px] text-slate-500 truncate mt-0.5",children:q.roomNumber||q.id}),ce&&s.jsx(Il,{className:"w-4 h-4 text-indigo-400 absolute top-3 right-3"})]},q.id)})})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(Qd,{className:"w-3.5 h-3.5 text-slate-400"}),"指定学生姓名(可选,点呼场景使用)"]}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"留空则为全班广播"})]}),s.jsx("input",{type:"text",value:d,onChange:q=>f(q.target.value),placeholder:"如:张三、李四(支持单人或多人)",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[s.jsx("span",{children:"呼叫通知内容"}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:[m.length,"/200 字"]})]}),s.jsx("textarea",{rows:4,value:m,onChange:q=>v(q.target.value.slice(0,200)),placeholder:"请输入需要大屏弹窗展示并朗读的内容...",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600",required:!0})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[s.jsx(Vd,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷点呼短语推荐"]}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:L.map((q,ce)=>s.jsx("button",{type:"button",onClick:()=>v(q),className:"px-2.5 py-1 rounded-lg bg-slate-900 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-colors",children:q},ce))})]}),s.jsxs("div",{className:"pt-2 border-t border-slate-800/80 grid grid-cols-1 sm:grid-cols-3 gap-3",children:[s.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[s.jsx("input",{type:"checkbox",checked:p,onChange:q=>j(q.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),s.jsxs("div",{className:"text-xs",children:[s.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[s.jsx(qd,{className:"w-3.5 h-3.5 text-indigo-400"}),"TTS 语音朗读"]}),s.jsx("span",{className:"text-[10px] text-slate-500",children:"教室音响朗读2遍"})]})]}),s.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[s.jsx("input",{type:"checkbox",checked:C,onChange:q=>b(q.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),s.jsxs("div",{className:"text-xs",children:[s.jsx("span",{className:"font-medium text-slate-200 block",children:"窗口抖动震颤"}),s.jsx("span",{className:"text-[10px] text-slate-500",children:"强制吸引注意力"})]})]}),s.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[s.jsx("input",{type:"checkbox",checked:$,onChange:q=>T(q.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600 focus:ring-rose-500"}),s.jsxs("div",{className:"text-xs",children:[s.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[s.jsx(Wo,{className:"w-3.5 h-3.5 text-rose-400"}),"紧急通知"]}),s.jsx("span",{className:"text-[10px] text-slate-500",children:"红色全屏强提醒"})]})]})]}),s.jsx("button",{type:"submit",disabled:I||!o||!m.trim(),className:"w-full py-3.5 rounded-xl bg-gradient-to-r from-indigo-600 to-violet-600 hover:from-indigo-500 hover:to-violet-500 text-white font-semibold text-sm shadow-lg shadow-indigo-600/25 flex items-center justify-center gap-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:I?s.jsxs(s.Fragment,{children:[s.jsx(Hd,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"正在秒级投递至教室大屏..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(Rl,{className:"w-4 h-4"}),s.jsx("span",{children:"立即下发到教室大屏"})]})})]})})}),s.jsx("div",{className:"lg:col-span-5 space-y-4",children:s.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[s.jsx(fr,{className:"w-4 h-4 text-emerald-400"}),"实时回执动态 (ACK)"]}),s.jsx("span",{className:"text-xs text-slate-500",children:"SignalR 实时推送"})]}),s.jsx("div",{className:"space-y-3 max-h-[580px] overflow-y-auto pr-1",children:te&&H.length===0?s.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[s.jsx(yt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-indigo-400"}),s.jsx("span",{children:"正在加载历史动态..."})]}):H.length===0?s.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:"暂无发送记录,在左侧选择班级即可下发第一条呼叫"}):H.map(q=>s.jsxs("div",{className:"glass-card p-4 space-y-2.5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-semibold text-sm text-white",children:q.className}),s.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(q.createdAt).toLocaleTimeString()})]}),s.jsx("div",{className:"text-xs text-slate-300 bg-slate-950/50 p-2.5 rounded-lg border border-slate-800/80",children:q.message}),s.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between text-xs",children:[s.jsx("span",{className:"text-slate-400 text-[11px]",children:"回执阶段:"}),q.status==="Acknowledged"&&s.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[s.jsx(Bt,{className:"w-4 h-4 text-emerald-400"}),s.jsxs("span",{children:["学生已点击确认 (",q.confirmedAt?new Date(q.confirmedAt).toLocaleTimeString():"刚刚",")"]})]}),q.status==="Delivered"&&s.jsxs("div",{className:"inline-flex items-center gap-1.5 text-sky-400 font-medium",children:[s.jsx(Rl,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"教室大屏已接收"})]}),q.status==="Sent"&&s.jsxs("div",{className:"inline-flex items-center gap-1.5 text-amber-400",children:[s.jsx(vs,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"云端投递中..."})]}),q.status==="Timeout"&&s.jsx("div",{className:"text-slate-400 text-xs",children:s.jsx("span",{children:"超时已自动关闭"})}),q.status==="Failed"&&s.jsxs("div",{className:"inline-flex items-center gap-1.5 text-rose-400 font-medium",children:[s.jsx(Wo,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"投递失败"})]})]})]},q.id))})]})})]})]})},dx=()=>{const{user:a,isLoading:l}=mr();return l?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?s.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[s.jsx(G0,{}),s.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:s.jsx(zd,{})})]}):s.jsx(Ot,{to:"/login",replace:!0})},hx=()=>{const{user:a,isLoading:l}=mr();return l?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?s.jsx(Ot,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?s.jsx(Ot,{to:"/school-admin",replace:!0}):s.jsx(Ot,{to:"/teacher",replace:!0}):s.jsx(Ot,{to:"/login",replace:!0})},fx=()=>s.jsxs(Xm,{children:[s.jsx(Fe,{path:"/login",element:s.jsx(Y0,{})}),s.jsx(Fe,{path:"/",element:s.jsx(hx,{})}),s.jsxs(Fe,{element:s.jsx(dx,{}),children:[s.jsxs(Fe,{element:s.jsx(Ao,{allowedRoles:["SuperAdmin"]}),children:[s.jsx(Fe,{path:"/admin",element:s.jsx(Z0,{})}),s.jsx(Fe,{path:"/admin/tenants",element:s.jsx(sx,{})}),s.jsx(Fe,{path:"/admin/users",element:s.jsx(rx,{})}),s.jsx(Fe,{path:"/admin/devices",element:s.jsx(ex,{})}),s.jsx(Fe,{path:"/admin/broadcast",element:s.jsx(lx,{})}),s.jsx(Fe,{path:"/admin/codes",element:s.jsx(tx,{})}),s.jsx(Fe,{path:"/admin/history",element:s.jsx(nx,{})})]}),s.jsxs(Fe,{element:s.jsx(Ao,{allowedRoles:["SchoolAdmin"]}),children:[s.jsx(Fe,{path:"/school-admin",element:s.jsx(ix,{})}),s.jsx(Fe,{path:"/school-admin/classes",element:s.jsx(ox,{})}),s.jsx(Fe,{path:"/school-admin/teachers",element:s.jsx(ax,{})}),s.jsx(Fe,{path:"/school-admin/codes",element:s.jsx(cx,{})})]}),s.jsx(Fe,{element:s.jsx(Ao,{allowedRoles:["Teacher"]}),children:s.jsx(Fe,{path:"/teacher",element:s.jsx(ux,{})})})]}),s.jsx(Fe,{path:"*",element:s.jsx(Ot,{to:"/",replace:!0})})]}),mx=()=>s.jsx(Kp,{children:s.jsx(sp,{children:s.jsx(fx,{})})});sm.createRoot(document.getElementById("root")).render(s.jsx(Qo.StrictMode,{children:s.jsx(mx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-Cw4C71zT.js ================================================================================ var Jf=Object.defineProperty;var Xf=(a,l,o)=>l in a?Jf(a,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[l]=o;var xt=(a,l,o)=>Xf(a,typeof l!="symbol"?l+"":l,o);function Gf(a,l){for(var o=0;ou[d]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(d){if(d.ep)return;d.ep=!0;const f=o(d);fetch(d.href,f)}})();function Td(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oo={exports:{}},pr={},Uo={exports:{}},me={};/** * @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 rd;function Yf(){if(rd)return me;rd=1;var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),S=Symbol.iterator;function $(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,F={};function I(N,L,ie){this.props=N,this.context=L,this.refs=F,this.updater=ie||D}I.prototype.isReactComponent={},I.prototype.setState=function(N,L){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,L,"setState")},I.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function q(){}q.prototype=I.prototype;function G(N,L,ie){this.props=N,this.context=L,this.refs=F,this.updater=ie||D}var Z=G.prototype=new q;Z.constructor=G,H(Z,I.prototype),Z.isPureReactComponent=!0;var te=Array.isArray,O=Object.prototype.hasOwnProperty,K={current:null},fe={key:!0,ref:!0,__self:!0,__source:!0};function pe(N,L,ie){var ce,he={},ve=null,ke=null;if(L!=null)for(ce in L.ref!==void 0&&(ke=L.ref),L.key!==void 0&&(ve=""+L.key),L)O.call(L,ce)&&!fe.hasOwnProperty(ce)&&(he[ce]=L[ce]);var Ne=arguments.length-2;if(Ne===1)he.children=ie;else if(1>>1,L=k[N];if(0>>1;Nd(he,T))ved(ke,he)?(k[N]=ke,k[ve]=T,N=ve):(k[N]=he,k[ce]=T,N=ce);else if(ved(ke,T))k[N]=ke,k[ve]=T,N=ve;else break e}}return W}function d(k,W){var T=k.sortIndex-W.sortIndex;return T!==0?T:k.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var p=[],j=[],C=1,S=null,$=3,D=!1,H=!1,F=!1,I=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Z(k){for(var W=o(j);W!==null;){if(W.callback===null)u(j);else if(W.startTime<=k)u(j),W.sortIndex=W.expirationTime,l(p,W);else break;W=o(j)}}function te(k){if(F=!1,Z(k),!H)if(o(p)!==null)H=!0,Te(O);else{var W=o(j);W!==null&&V(te,W.startTime-k)}}function O(k,W){H=!1,F&&(F=!1,q(pe),pe=-1),D=!0;var T=$;try{for(Z(W),S=o(p);S!==null&&(!(S.expirationTime>W)||k&&!Ee());){var N=S.callback;if(typeof N=="function"){S.callback=null,$=S.priorityLevel;var L=N(S.expirationTime<=W);W=a.unstable_now(),typeof L=="function"?S.callback=L:S===o(p)&&u(p),Z(W)}else u(p);S=o(p)}if(S!==null)var ie=!0;else{var ce=o(j);ce!==null&&V(te,ce.startTime-W),ie=!1}return ie}finally{S=null,$=T,D=!1}}var K=!1,fe=null,pe=-1,b=5,ne=-1;function Ee(){return!(a.unstable_now()-nek||125N?(k.sortIndex=T,l(j,k),o(p)===null&&k===o(j)&&(F?(q(pe),pe=-1):F=!0,V(te,T-N))):(k.sortIndex=L,l(p,k),H||D||(H=!0,Te(O))),k},a.unstable_shouldYield=Ee,a.unstable_wrapCallback=function(k){var W=$;return function(){var T=$;$=W;try{return k.apply(this,arguments)}finally{$=T}}}})(Ho)),Ho}var cd;function sm(){return cd||(cd=1,Bo.exports=nm()),Bo.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 ud;function rm(){if(ud)return gt;ud=1;var a=ta(),l=sm();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,j=/^[: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]*$/,C={},S={};function $(e){return p.call(S,e)?!0:p.call(C,e)?!1:j.test(e)?S[e]=!0:(C[e]=!0,!1)}function D(e,t,s,r){if(s!==null&&s.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:s!==null?!s.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H(e,t,s,r){if(t===null||typeof t>"u"||D(e,t,s,r))return!0;if(r)return!1;if(s!==null)switch(s.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 F(e,t,s,r,i,c,h){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=h}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new F(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){I[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function G(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(q,G);I[t]=new F(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(q,G);I[t]=new F(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(q,G);I[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z(e,t,s,r){var i=I.hasOwnProperty(t)?I[t]:null;(i!==null?i.type!==0:r||!(2x||i[h]!==c[x]){var v=` `+i[h].replace(" at new "," at ");return e.displayName&&v.includes("")&&(v=v.replace("",e.displayName)),v}while(1<=h&&0<=x);break}}}finally{ie=!1,Error.prepareStackTrace=s}return(e=e?e.displayName||e.name:"")?L(e):""}function he(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return""}}function ve(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 fe:return"Fragment";case K:return"Portal";case b:return"Profiler";case pe:return"StrictMode";case _e:return"Suspense";case Ue:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ee:return(e.displayName||"Context")+".Consumer";case ne:return(e._context.displayName||"Context")+".Provider";case je:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $e:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}function ke(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 ve(t);case 8:return t===pe?"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 Ne(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function de(e){var t=U(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var i=s.get,c=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){r=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return r},setValue:function(h){r=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ot(e){e._valueTracker||(e._valueTracker=de(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),e=r,e!==s?(t.setValue(e),!0):!1}function We(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 Le(e,t){var s=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??e._wrapperState.initialChecked})}function Jn(e,t){var s=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;s=Ne(t.value!=null?t.value:s),e._wrapperState={initialChecked:r,initialValue:s,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function nn(e,t){t=t.checked,t!=null&&Z(e,"checked",t,!1)}function Ql(e,t){nn(e,t);var s=Ne(t.value),r=t.type;if(s!=null)r==="number"?(s===0&&e.value===""||e.value!=s)&&(e.value=""+s):e.value!==""+s&&(e.value=""+s);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,s):t.hasOwnProperty("defaultValue")&&ql(e,t.type,Ne(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,s){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,s||t===e.value||(e.value=t),e.defaultValue=t}s=e.name,s!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,s!==""&&(e.name=s)}function ql(e,t,s){(t!=="number"||We(e.ownerDocument)!==e)&&(s==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+s&&(e.defaultValue=""+s))}var Ps=Array.isArray;function Xn(e,t,s,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Er.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Is(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Rs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yd=["Webkit","ms","Moz","O"];Object.keys(Rs).forEach(function(e){Yd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rs[t]=Rs[e]})});function ya(e,t,s){return t==null||typeof t=="boolean"||t===""?"":s||typeof t!="number"||t===0||Rs.hasOwnProperty(e)&&Rs[e]?(""+t).trim():t+"px"}function wa(e,t){e=e.style;for(var s in t)if(t.hasOwnProperty(s)){var r=s.indexOf("--")===0,i=ya(s,t[s],r);s==="float"&&(s="cssFloat"),r?e.setProperty(s,i):e[s]=i}}var Zd=T({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xl(e,t){if(t){if(Zd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Gl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yl=null;function Zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,Gn=null,Yn=null;function ja(e){if(e=er(e)){if(typeof ei!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Gr(t),ei(e.stateNode,e.type,t))}}function Na(e){Gn?Yn?Yn.push(e):Yn=[e]:Gn=e}function ba(){if(Gn){var e=Gn,t=Yn;if(Yn=Gn=null,ja(e),t)for(e=0;e>>=0,e===0?32:31-(uh(e)/dh|0)|0}var Lr=64,Dr=4194304;function Ms(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $r(e,t){var s=e.pendingLanes;if(s===0)return 0;var r=0,i=e.suspendedLanes,c=e.pingedLanes,h=s&268435455;if(h!==0){var x=h&~i;x!==0?r=Ms(x):(c&=h,c!==0&&(r=Ms(c)))}else h=s&~i,h!==0?r=Ms(h):c!==0&&(r=Ms(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,c=t&-t,i>=c||i===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=s&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0s;s++)t.push(e);return t}function As(e,t,s){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=s}function ph(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Vs),Ga=" ",Ya=!1;function Za(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ec(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ts=!1;function Vh(e,t){switch(e){case"compositionend":return ec(t);case"keypress":return t.which!==32?null:(Ya=!0,Ga);case"textInput":return e=t.data,e===Ga&&Ya?null:e;default:return null}}function Qh(e,t){if(ts)return e==="compositionend"||!vi&&Za(e,t)?(e=Va(),Ur=hi=an=null,ts=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:s,offset:t-e};e=r}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=oc(s)}}function cc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uc(){for(var e=window,t=We();t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=We(e.document)}return t}function ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tf(e){var t=uc(),s=e.focusedElem,r=e.selectionRange;if(t!==s&&s&&s.ownerDocument&&cc(s.ownerDocument.documentElement,s)){if(r!==null&&ji(s)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in s)s.selectionStart=t,s.selectionEnd=Math.min(e,s.value.length);else if(e=(t=s.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=s.textContent.length,c=Math.min(r.start,i);r=r.end===void 0?c:Math.min(r.end,i),!e.extend&&c>r&&(i=r,r=c,c=i),i=ac(s,c);var h=ac(s,r);i&&h&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==h.node||e.focusOffset!==h.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(h.node,h.offset)):(t.setEnd(h.node,h.offset),e.addRange(t)))}}for(t=[],e=s;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,ns=null,Ni=null,Js=null,bi=!1;function dc(e,t,s){var r=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;bi||ns==null||ns!==We(r)||(r=ns,"selectionStart"in r&&ji(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Js&&Ks(Js,r)||(Js=r,r=Kr(Ni,"onSelect"),0os||(e.current=$i[os],$i[os]=null,os--)}function Pe(e,t){os++,$i[os]=e.current,e.current=t}var hn={},nt=dn(hn),dt=dn(!1),Pn=hn;function as(e,t){var s=e.type.contextTypes;if(!s)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},c;for(c in s)i[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function Yr(){Re(dt),Re(nt)}function Sc(e,t,s){if(nt.current!==hn)throw Error(o(168));Pe(nt,t),Pe(dt,s)}function Cc(e,t,s){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return s;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(o(108,ke(e)||"Unknown",i));return T({},s,r)}function Zr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Pn=nt.current,Pe(nt,e),Pe(dt,dt.current),!0}function Ec(e,t,s){var r=e.stateNode;if(!r)throw Error(o(169));s?(e=Cc(e,t,Pn),r.__reactInternalMemoizedMergedChildContext=e,Re(dt),Re(nt),Pe(nt,e)):Re(dt),Pe(dt,s)}var Kt=null,el=!1,Mi=!1;function Tc(e){Kt===null?Kt=[e]:Kt.push(e)}function mf(e){el=!0,Tc(e)}function fn(){if(!Mi&&Kt!==null){Mi=!0;var e=0,t=Se;try{var s=Kt;for(Se=1;e>=h,i-=h,Jt=1<<32-It(t)+i|s<le?(Ze=re,re=null):Ze=re.sibling;var we=M(_,re,E[le],B);if(we===null){re===null&&(re=Ze);break}e&&re&&we.alternate===null&&t(_,re),w=c(we,w,le),se===null?ee=we:se.sibling=we,se=we,re=Ze}if(le===E.length)return s(_,re),De&&Rn(_,le),ee;if(re===null){for(;lele?(Ze=re,re=null):Ze=re.sibling;var Nn=M(_,re,we.value,B);if(Nn===null){re===null&&(re=Ze);break}e&&re&&Nn.alternate===null&&t(_,re),w=c(Nn,w,le),se===null?ee=Nn:se.sibling=Nn,se=Nn,re=Ze}if(we.done)return s(_,re),De&&Rn(_,le),ee;if(re===null){for(;!we.done;le++,we=E.next())we=z(_,we.value,B),we!==null&&(w=c(we,w,le),se===null?ee=we:se.sibling=we,se=we);return De&&Rn(_,le),ee}for(re=r(_,re);!we.done;le++,we=E.next())we=Q(re,_,le,we.value,B),we!==null&&(e&&we.alternate!==null&&re.delete(we.key===null?le:we.key),w=c(we,w,le),se===null?ee=we:se.sibling=we,se=we);return e&&re.forEach(function(Kf){return t(_,Kf)}),De&&Rn(_,le),ee}function Be(_,w,E,B){if(typeof E=="object"&&E!==null&&E.type===fe&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case O:e:{for(var ee=E.key,se=w;se!==null;){if(se.key===ee){if(ee=E.type,ee===fe){if(se.tag===7){s(_,se.sibling),w=i(se,E.props.children),w.return=_,_=w;break e}}else if(se.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Te&&$c(ee)===se.type){s(_,se.sibling),w=i(se,E.props),w.ref=tr(_,se,E),w.return=_,_=w;break e}s(_,se);break}else t(_,se);se=se.sibling}E.type===fe?(w=Un(E.props.children,_.mode,B,E.key),w.return=_,_=w):(B=El(E.type,E.key,E.props,null,_.mode,B),B.ref=tr(_,w,E),B.return=_,_=B)}return h(_);case K:e:{for(se=E.key;w!==null;){if(w.key===se)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){s(_,w.sibling),w=i(w,E.children||[]),w.return=_,_=w;break e}else{s(_,w);break}else t(_,w);w=w.sibling}w=Do(E,_.mode,B),w.return=_,_=w}return h(_);case Te:return se=E._init,Be(_,w,se(E._payload),B)}if(Ps(E))return X(_,w,E,B);if(W(E))return Y(_,w,E,B);rl(_,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,w!==null&&w.tag===6?(s(_,w.sibling),w=i(w,E),w.return=_,_=w):(s(_,w),w=Lo(E,_.mode,B),w.return=_,_=w),h(_)):s(_,w)}return Be}var hs=Mc(!0),Ac=Mc(!1),ll=dn(null),il=null,fs=null,Bi=null;function Hi(){Bi=fs=il=null}function Wi(e){var t=ll.current;Re(ll),e._currentValue=t}function Vi(e,t,s){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===s)break;e=e.return}}function ms(e,t){il=e,Bi=fs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ft=!0),e.firstContext=null)}function St(e){var t=e._currentValue;if(Bi!==e)if(e={context:e,memoizedValue:t,next:null},fs===null){if(il===null)throw Error(o(308));fs=e,il.dependencies={lanes:0,firstContext:e}}else fs=fs.next=e;return t}var Ln=null;function Qi(e){Ln===null?Ln=[e]:Ln.push(e)}function zc(e,t,s,r){var i=t.interleaved;return i===null?(s.next=s,Qi(t)):(s.next=i.next,i.next=s),t.interleaved=s,Gt(e,r)}function Gt(e,t){e.lanes|=t;var s=e.alternate;for(s!==null&&(s.lanes|=t),s=e,e=e.return;e!==null;)e.childLanes|=t,s=e.alternate,s!==null&&(s.childLanes|=t),s=e,e=e.return;return s.tag===3?s.stateNode:null}var mn=!1;function qi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,s){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ye&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Gt(e,s)}return i=r.interleaved,i===null?(t.next=t,Qi(r)):(t.next=i.next,i.next=t),r.interleaved=t,Gt(e,s)}function ol(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,oi(e,s)}}function Uc(e,t){var s=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,s===r)){var i=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var h={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};c===null?i=c=h:c=c.next=h,s=s.next}while(s!==null);c===null?i=c=t:c=c.next=t}else i=c=t;s={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}function al(e,t,s,r){var i=e.updateQueue;mn=!1;var c=i.firstBaseUpdate,h=i.lastBaseUpdate,x=i.shared.pending;if(x!==null){i.shared.pending=null;var v=x,P=v.next;v.next=null,h===null?c=P:h.next=P,h=v;var A=e.alternate;A!==null&&(A=A.updateQueue,x=A.lastBaseUpdate,x!==h&&(x===null?A.firstBaseUpdate=P:x.next=P,A.lastBaseUpdate=v))}if(c!==null){var z=i.baseState;h=0,A=P=v=null,x=c;do{var M=x.lane,Q=x.eventTime;if((r&M)===M){A!==null&&(A=A.next={eventTime:Q,lane:0,tag:x.tag,payload:x.payload,callback:x.callback,next:null});e:{var X=e,Y=x;switch(M=t,Q=s,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){z=X.call(Q,z,M);break e}z=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,M=typeof X=="function"?X.call(Q,z,M):X,M==null)break e;z=T({},z,M);break e;case 2:mn=!0}}x.callback!==null&&x.lane!==0&&(e.flags|=64,M=i.effects,M===null?i.effects=[x]:M.push(x))}else Q={eventTime:Q,lane:M,tag:x.tag,payload:x.payload,callback:x.callback,next:null},A===null?(P=A=Q,v=z):A=A.next=Q,h|=M;if(x=x.next,x===null){if(x=i.shared.pending,x===null)break;M=x,x=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);if(A===null&&(v=z),i.baseState=v,i.firstBaseUpdate=P,i.lastBaseUpdate=A,t=i.shared.interleaved,t!==null){i=t;do h|=i.lane,i=i.next;while(i!==t)}else c===null&&(i.shared.lanes=0);Mn|=h,e.lanes=h,e.memoizedState=z}}function Fc(e,t,s){if(e=t.effects,t.effects=null,e!==null)for(t=0;ts?s:4,e(!0);var r=Yi.transition;Yi.transition={};try{e(!1),t()}finally{Se=s,Yi.transition=r}}function iu(){return Ct().memoizedState}function vf(e,t,s){var r=yn(e);if(s={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null},ou(e))au(t,s);else if(s=zc(e,t,s,r),s!==null){var i=ct();At(s,e,r,i),cu(s,t,r)}}function yf(e,t,s){var r=yn(e),i={lane:r,action:s,hasEagerState:!1,eagerState:null,next:null};if(ou(e))au(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,x=c(h,s);if(i.hasEagerState=!0,i.eagerState=x,Rt(x,h)){var v=t.interleaved;v===null?(i.next=i,Qi(t)):(i.next=v.next,v.next=i),t.interleaved=i;return}}catch{}finally{}s=zc(e,t,i,r),s!==null&&(i=ct(),At(s,e,r,i),cu(s,t,r))}}function ou(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function au(e,t){lr=dl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function cu(e,t,s){if((s&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,s|=r,t.lanes=s,oi(e,s)}}var ml={readContext:St,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},wf={readContext:St,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Yc,useImperativeHandle:function(e,t,s){return s=s!=null?s.concat([e]):null,hl(4194308,4,tu.bind(null,t,e),s)},useLayoutEffect:function(e,t){return hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return hl(4,2,e,t)},useMemo:function(e,t){var s=Ht();return t=t===void 0?null:t,e=e(),s.memoizedState=[e,t],e},useReducer:function(e,t,s){var r=Ht();return t=s!==void 0?s(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vf.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Xc,useDebugValue:lo,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Xc(!1),t=e[0];return e=gf.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,s){var r=Ae,i=Ht();if(De){if(s===void 0)throw Error(o(407));s=s()}else{if(s=t(),Ye===null)throw Error(o(349));($n&30)!==0||Vc(r,t,s)}i.memoizedState=s;var c={value:s,getSnapshot:t};return i.queue=c,Yc(qc.bind(null,r,c,e),[e]),r.flags|=2048,ar(9,Qc.bind(null,r,c,s,t),void 0,null),s},useId:function(){var e=Ht(),t=Ye.identifierPrefix;if(De){var s=Xt,r=Jt;s=(r&~(1<<32-It(r)-1)).toString(32)+s,t=":"+t+"R"+s,s=ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=h.createElement(s,{is:r.is}):(e=h.createElement(s),s==="select"&&(h=e,r.multiple?h.multiple=!0:r.size&&(h.size=r.size))):e=h.createElementNS(e,s),e[Ft]=t,e[Zs]=r,Tu(e,t,!1,!1),t.stateNode=e;e:{switch(h=Gl(s,r),s){case"dialog":Ie("cancel",e),Ie("close",e),i=r;break;case"iframe":case"object":case"embed":Ie("load",e),i=r;break;case"video":case"audio":for(i=0;iys&&(t.flags|=128,r=!0,cr(c,!1),t.lanes=4194304)}else{if(!r)if(e=cl(h),e!==null){if(t.flags|=128,r=!0,s=e.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),cr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!De)return rt(t),null}else 2*Fe()-c.renderingStartTime>ys&&s!==1073741824&&(t.flags|=128,r=!0,cr(c,!1),t.lanes=4194304);c.isBackwards?(h.sibling=t.child,t.child=h):(s=c.last,s!==null?s.sibling=h:t.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Fe(),t.sibling=null,s=Me.current,Pe(Me,r?s&1|2:s&1),t):(rt(t),null);case 22:case 23:return Po(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(jt&1073741824)!==0&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Ef(e,t){switch(zi(t),t.tag){case 1:return ht(t.type)&&Yr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ps(),Re(dt),Re(nt),Gi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ji(t),null;case 13:if(Re(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Me),null;case 4:return ps(),null;case 10:return Wi(t.type._context),null;case 22:case 23:return Po(),null;case 24:return null;default:return null}}var vl=!1,lt=!1,Tf=typeof WeakSet=="function"?WeakSet:Set,J=null;function gs(e,t){var s=e.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(r){Oe(e,t,r)}else s.current=null}function vo(e,t,s){try{s()}catch(r){Oe(e,t,r)}}var Ru=!1;function Pf(e,t){if(Ti=zr,e=uc(),ji(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var r=s.getSelection&&s.getSelection();if(r&&r.rangeCount!==0){s=r.anchorNode;var i=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,x=-1,v=-1,P=0,A=0,z=e,M=null;t:for(;;){for(var Q;z!==s||i!==0&&z.nodeType!==3||(x=h+i),z!==c||r!==0&&z.nodeType!==3||(v=h+r),z.nodeType===3&&(h+=z.nodeValue.length),(Q=z.firstChild)!==null;)M=z,z=Q;for(;;){if(z===e)break t;if(M===s&&++P===i&&(x=h),M===c&&++A===r&&(v=h),(Q=z.nextSibling)!==null)break;z=M,M=z.parentNode}z=Q}s=x===-1||v===-1?null:{start:x,end:v}}else s=null}s=s||{start:0,end:0}}else s=null;for(Pi={focusedElem:e,selectionRange:s},zr=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var X=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Be=X.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Dt(t.type,Y),Be);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(B){Oe(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return X=Ru,Ru=!1,X}function ur(e,t,s){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var c=i.destroy;i.destroy=void 0,c!==void 0&&vo(t,s,c)}i=i.next}while(i!==r)}}function yl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var s=t=t.next;do{if((s.tag&e)===e){var r=s.create;s.destroy=r()}s=s.next}while(s!==t)}}function yo(e){var t=e.ref;if(t!==null){var s=e.stateNode;switch(e.tag){case 5:e=s;break;default:e=s}typeof t=="function"?t(e):t.current=e}}function Lu(e){var t=e.alternate;t!==null&&(e.alternate=null,Lu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[Zs],delete t[Di],delete t[hf],delete t[ff])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Du(e){return e.tag===5||e.tag===3||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Du(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wo(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.nodeType===8?s.parentNode.insertBefore(e,t):s.insertBefore(e,t):(s.nodeType===8?(t=s.parentNode,t.insertBefore(e,s)):(t=s,t.appendChild(e)),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Xr));else if(r!==4&&(e=e.child,e!==null))for(wo(e,t,s),e=e.sibling;e!==null;)wo(e,t,s),e=e.sibling}function jo(e,t,s){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jo(e,t,s),e=e.sibling;e!==null;)jo(e,t,s),e=e.sibling}var et=null,$t=!1;function xn(e,t,s){for(s=s.child;s!==null;)Mu(e,t,s),s=s.sibling}function Mu(e,t,s){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Rr,s)}catch{}switch(s.tag){case 5:lt||gs(s,t);case 6:var r=et,i=$t;et=null,xn(e,t,s),et=r,$t=i,et!==null&&($t?(e=et,s=s.stateNode,e.nodeType===8?e.parentNode.removeChild(s):e.removeChild(s)):et.removeChild(s.stateNode));break;case 18:et!==null&&($t?(e=et,s=s.stateNode,e.nodeType===8?Li(e.parentNode,s):e.nodeType===1&&Li(e,s),Bs(e)):Li(et,s.stateNode));break;case 4:r=et,i=$t,et=s.stateNode.containerInfo,$t=!0,xn(e,t,s),et=r,$t=i;break;case 0:case 11:case 14:case 15:if(!lt&&(r=s.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var c=i,h=c.destroy;c=c.tag,h!==void 0&&((c&2)!==0||(c&4)!==0)&&vo(s,t,h),i=i.next}while(i!==r)}xn(e,t,s);break;case 1:if(!lt&&(gs(s,t),r=s.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=s.memoizedProps,r.state=s.memoizedState,r.componentWillUnmount()}catch(x){Oe(s,t,x)}xn(e,t,s);break;case 21:xn(e,t,s);break;case 22:s.mode&1?(lt=(r=lt)||s.memoizedState!==null,xn(e,t,s),lt=r):xn(e,t,s);break;default:xn(e,t,s)}}function Au(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new Tf),t.forEach(function(r){var i=Of.bind(null,e,r);s.has(r)||(s.add(r),r.then(i,i))})}}function Mt(e,t){var s=t.deletions;if(s!==null)for(var r=0;ri&&(i=h),r&=~c}if(r=i,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rf(r/1960))-r,10e?16:e,vn===null)var r=!1;else{if(e=vn,vn=null,_l=0,(ye&6)!==0)throw Error(o(331));var i=ye;for(ye|=4,J=e.current;J!==null;){var c=J,h=c.child;if((J.flags&16)!==0){var x=c.deletions;if(x!==null){for(var v=0;vFe()-_o?zn(e,0):bo|=s),pt(e,t)}function Xu(e,t){t===0&&((e.mode&1)===0?t=1:(t=Dr,Dr<<=1,(Dr&130023424)===0&&(Dr=4194304)));var s=ct();e=Gt(e,t),e!==null&&(As(e,t,s),pt(e,s))}function zf(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Xu(e,s)}function Of(e,t){var s=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(s=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}r!==null&&r.delete(t),Xu(e,s)}var Gu;Gu=function(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)ft=!0;else{if((e.lanes&s)===0&&(t.flags&128)===0)return ft=!1,Sf(e,t,s);ft=(e.flags&131072)!==0}else ft=!1,De&&(t.flags&1048576)!==0&&Pc(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gl(e,t),e=t.pendingProps;var i=as(t,nt.current);ms(t,s),i=eo(null,t,r,e,i,s);var c=to();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(c=!0,Zr(t)):c=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qi(t),i.updater=pl,t.stateNode=i,i._reactInternals=t,oo(t,r,e,s),t=ho(null,t,r,!0,c,s)):(t.tag=0,De&&c&&Ai(t),at(null,t,i,s),t=t.child),t;case 16:r=t.elementType;e:{switch(gl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ff(r),e=Dt(r,e),i){case 0:t=uo(null,t,r,e,s);break e;case 1:t=bu(null,t,r,e,s);break e;case 11:t=vu(null,t,r,e,s);break e;case 14:t=yu(null,t,r,Dt(r.type,e),s);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),uo(e,t,r,i,s);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),bu(e,t,r,i,s);case 3:e:{if(_u(t),e===null)throw Error(o(387));r=t.pendingProps,c=t.memoizedState,i=c.element,Oc(e,t),al(t,r,null,s);var h=t.memoizedState;if(r=h.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){i=xs(Error(o(423)),t),t=ku(e,t,r,s,i);break e}else if(r!==i){i=xs(Error(o(424)),t),t=ku(e,t,r,s,i);break e}else for(wt=un(t.stateNode.containerInfo.firstChild),yt=t,De=!0,Lt=null,s=Ac(t,null,r,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ds(),r===i){t=Zt(e,t,s);break e}at(e,t,r,s)}t=t.child}return t;case 5:return Bc(t),e===null&&Ui(t),r=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,h=i.children,Ii(r,i)?h=null:c!==null&&Ii(r,c)&&(t.flags|=32),Nu(e,t),at(e,t,h,s),t.child;case 6:return e===null&&Ui(t),null;case 13:return Su(e,t,s);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hs(t,null,r,s):at(e,t,r,s),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),vu(e,t,r,i,s);case 7:return at(e,t,t.pendingProps,s),t.child;case 8:return at(e,t,t.pendingProps.children,s),t.child;case 12:return at(e,t,t.pendingProps.children,s),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,c=t.memoizedProps,h=i.value,Pe(ll,r._currentValue),r._currentValue=h,c!==null)if(Rt(c.value,h)){if(c.children===i.children&&!dt.current){t=Zt(e,t,s);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var x=c.dependencies;if(x!==null){h=c.child;for(var v=x.firstContext;v!==null;){if(v.context===r){if(c.tag===1){v=Yt(-1,s&-s),v.tag=2;var P=c.updateQueue;if(P!==null){P=P.shared;var A=P.pending;A===null?v.next=v:(v.next=A.next,A.next=v),P.pending=v}}c.lanes|=s,v=c.alternate,v!==null&&(v.lanes|=s),Vi(c.return,s,t),x.lanes|=s;break}v=v.next}}else if(c.tag===10)h=c.type===t.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(o(341));h.lanes|=s,x=h.alternate,x!==null&&(x.lanes|=s),Vi(h,s,t),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}at(e,t,i.children,s),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ms(t,s),i=St(i),r=r(i),t.flags|=1,at(e,t,r,s),t.child;case 14:return r=t.type,i=Dt(r,t.pendingProps),i=Dt(r.type,i),yu(e,t,r,i,s);case 15:return wu(e,t,t.type,t.pendingProps,s);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Dt(r,i),gl(e,t),t.tag=1,ht(r)?(e=!0,Zr(t)):e=!1,ms(t,s),du(t,r,i),oo(t,r,i,s),ho(null,t,r,!0,e,s);case 19:return Eu(e,t,s);case 22:return ju(e,t,s)}throw Error(o(156,t.tag))};function Yu(e,t){return Ia(e,t)}function Uf(e,t,s,r){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(e,t,s,r){return new Uf(e,t,s,r)}function Ro(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ff(e){if(typeof e=="function")return Ro(e)?1:0;if(e!=null){if(e=e.$$typeof,e===je)return 11;if(e===$e)return 14}return 2}function jn(e,t){var s=e.alternate;return s===null?(s=Tt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&14680064,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s}function El(e,t,s,r,i,c){var h=2;if(r=e,typeof e=="function")Ro(e)&&(h=1);else if(typeof e=="string")h=5;else e:switch(e){case fe:return Un(s.children,i,c,t);case pe:h=8,i|=8;break;case b:return e=Tt(12,s,t,i|2),e.elementType=b,e.lanes=c,e;case _e:return e=Tt(13,s,t,i),e.elementType=_e,e.lanes=c,e;case Ue:return e=Tt(19,s,t,i),e.elementType=Ue,e.lanes=c,e;case V:return Tl(s,i,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:h=10;break e;case Ee:h=9;break e;case je:h=11;break e;case $e:h=14;break e;case Te:h=16,r=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Tt(h,s,t,i),t.elementType=e,t.type=r,t.lanes=c,t}function Un(e,t,s,r){return e=Tt(7,e,r,t),e.lanes=s,e}function Tl(e,t,s,r){return e=Tt(22,e,r,t),e.elementType=V,e.lanes=s,e.stateNode={isHidden:!1},e}function Lo(e,t,s){return e=Tt(6,e,null,t),e.lanes=s,e}function Do(e,t,s){return t=Tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bf(e,t,s,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ii(0),this.expirationTimes=ii(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $o(e,t,s,r,i,c,h,x,v){return e=new Bf(e,t,s,x,v),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Tt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},qi(c),e}function Hf(e,t,s){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Fo.exports=rm(),Fo.exports}var hd;function lm(){if(hd)return Ml;hd=1;var a=Pd();return Ml.createRoot=a.createRoot,Ml.hydrateRoot=a.hydrateRoot,Ml}var im=lm();const om=Td(im);Pd();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function vr(){return vr=Object.assign?Object.assign.bind():function(a){for(var l=1;l"u")throw new Error(l)}function Id(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function cm(){return Math.random().toString(36).substr(2,8)}function md(a,l){return{usr:a.state,key:a.key,idx:l}}function qo(a,l,o,u){return o===void 0&&(o=null),vr({pathname:typeof a=="string"?a:a.pathname,search:"",hash:""},typeof l=="string"?Es(l):l,{state:o,key:l&&l.key||u||cm()})}function zl(a){let{pathname:l="/",search:o="",hash:u=""}=a;return o&&o!=="?"&&(l+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function Es(a){let l={};if(a){let o=a.indexOf("#");o>=0&&(l.hash=a.substr(o),a=a.substr(0,o));let u=a.indexOf("?");u>=0&&(l.search=a.substr(u),a=a.substr(0,u)),a&&(l.pathname=a)}return l}function um(a,l,o,u){u===void 0&&(u={});let{window:d=document.defaultView,v5Compat:f=!1}=u,m=d.history,y=bn.Pop,p=null,j=C();j==null&&(j=0,m.replaceState(vr({},m.state,{idx:j}),""));function C(){return(m.state||{idx:null}).idx}function S(){y=bn.Pop;let I=C(),q=I==null?null:I-j;j=I,p&&p({action:y,location:F.location,delta:q})}function $(I,q){y=bn.Push;let G=qo(F.location,I,q);j=C()+1;let Z=md(G,j),te=F.createHref(G);try{m.pushState(Z,"",te)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;d.location.assign(te)}f&&p&&p({action:y,location:F.location,delta:1})}function D(I,q){y=bn.Replace;let G=qo(F.location,I,q);j=C();let Z=md(G,j),te=F.createHref(G);m.replaceState(Z,"",te),f&&p&&p({action:y,location:F.location,delta:0})}function H(I){let q=d.location.origin!=="null"?d.location.origin:d.location.href,G=typeof I=="string"?I:zl(I);return G=G.replace(/ $/,"%20"),He(q,"No window.location.(origin|href) available to create URL for href: "+G),new URL(G,q)}let F={get action(){return y},get location(){return a(d,m)},listen(I){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(fd,S),p=I,()=>{d.removeEventListener(fd,S),p=null}},createHref(I){return l(d,I)},createURL:H,encodeLocation(I){let q=H(I);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:$,replace:D,go(I){return m.go(I)}};return F}var pd;(function(a){a.data="data",a.deferred="deferred",a.redirect="redirect",a.error="error"})(pd||(pd={}));function dm(a,l,o){return o===void 0&&(o="/"),hm(a,l,o)}function hm(a,l,o,u){let d=typeof l=="string"?Es(l):l,f=sa(d.pathname||"/",o);if(f==null)return null;let m=Rd(a);fm(m);let y=null,p=km(f);for(let j=0;y==null&&j{let p={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};p.relativePath.startsWith("/")&&(He(p.relativePath.startsWith(u),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+u+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(u.length));let j=_n([u,p.relativePath]),C=o.concat(p);f.children&&f.children.length>0&&(He(f.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+j+'".')),Rd(f.children,l,C,j)),!(f.path==null&&!f.index)&&l.push({path:j,score:wm(j,f.index),routesMeta:C})};return a.forEach((f,m)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,m);else for(let p of Ld(f.path))d(f,m,p)}),l}function Ld(a){let l=a.split("/");if(l.length===0)return[];let[o,...u]=l,d=o.endsWith("?"),f=o.replace(/\?$/,"");if(u.length===0)return d?[f,""]:[f];let m=Ld(u.join("/")),y=[];return y.push(...m.map(p=>p===""?f:[f,p].join("/"))),d&&y.push(...m),y.map(p=>a.startsWith("/")&&p===""?"/":p)}function fm(a){a.sort((l,o)=>l.score!==o.score?o.score-l.score:jm(l.routesMeta.map(u=>u.childrenIndex),o.routesMeta.map(u=>u.childrenIndex)))}const mm=/^:[\w-]+$/,pm=3,xm=2,gm=1,vm=10,ym=-2,xd=a=>a==="*";function wm(a,l){let o=a.split("/"),u=o.length;return o.some(xd)&&(u+=ym),l&&(u+=xm),o.filter(d=>!xd(d)).reduce((d,f)=>d+(mm.test(f)?pm:f===""?gm:vm),u)}function jm(a,l){return a.length===l.length&&a.slice(0,-1).every((u,d)=>u===l[d])?a[a.length-1]-l[l.length-1]:0}function Nm(a,l,o){let{routesMeta:u}=a,d={},f="/",m=[];for(let y=0;y{let{paramName:$,isOptional:D}=C;if($==="*"){let F=y[S]||"";m=f.slice(0,f.length-F.length).replace(/(.)\/+$/,"$1")}const H=y[S];return D&&!H?j[$]=void 0:j[$]=(H||"").replace(/%2F/g,"/"),j},{}),pathname:f,pathnameBase:m,pattern:a}}function _m(a,l,o){l===void 0&&(l=!1),o===void 0&&(o=!0),Id(a==="*"||!a.endsWith("*")||a.endsWith("/*"),'Route path "'+a+'" will be treated as if it were '+('"'+a.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+a.replace(/\*$/,"/*")+'".'));let u=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,p)=>(u.push({paramName:y,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return a.endsWith("*")?(u.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function km(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Id(!1,'The URL path "'+a+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),a}}function sa(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,u=a.charAt(o);return u&&u!=="/"?null:a.slice(o)||"/"}function Sm(a,l){l===void 0&&(l="/");let{pathname:o,search:u="",hash:d=""}=typeof a=="string"?Es(a):a,f;return o?(o=Dd(o),o.startsWith("/")?f=gd(o.substring(1),"/"):f=gd(o,l)):f=l,{pathname:f,search:Tm(u),hash:Pm(d)}}function gd(a,l){let o=l.replace(/\/+$/,"").split("/");return a.split("/").forEach(d=>{d===".."?o.length>1&&o.pop():d!=="."&&o.push(d)}),o.length>1?o.join("/"):"/"}function Wo(a,l,o,u){return"Cannot include a '"+a+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(u)+"]. Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Cm(a){return a.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function ra(a,l){let o=Cm(a);return l?o.map((u,d)=>d===o.length-1?u.pathname:u.pathnameBase):o.map(u=>u.pathnameBase)}function la(a,l,o,u){u===void 0&&(u=!1);let d;typeof a=="string"?d=Es(a):(d=vr({},a),He(!d.pathname||!d.pathname.includes("?"),Wo("?","pathname","search",d)),He(!d.pathname||!d.pathname.includes("#"),Wo("#","pathname","hash",d)),He(!d.search||!d.search.includes("#"),Wo("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,y;if(m==null)y=o;else{let S=l.length-1;if(!u&&m.startsWith("..")){let $=m.split("/");for(;$[0]==="..";)$.shift(),S-=1;d.pathname=$.join("/")}y=S>=0?l[S]:"/"}let p=Sm(d,y),j=m&&m!=="/"&&m.endsWith("/"),C=(f||m===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(j||C)&&(p.pathname+="/"),p}const Dd=a=>a.replace(/\/\/+/g,"/"),_n=a=>Dd(a.join("/")),Em=a=>a.replace(/\/+$/,"").replace(/^\/*/,"/"),Tm=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Pm=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a;function Im(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}const $d=["post","put","patch","delete"];new Set($d);const Rm=["get",...$d];new Set(Rm);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function yr(){return yr=Object.assign?Object.assign.bind():function(a){for(var l=1;l{y.current=!0}),g.useCallback(function(j,C){if(C===void 0&&(C={}),!y.current)return;if(typeof j=="number"){u.go(j);return}let S=la(j,JSON.parse(m),f,C.relative==="path");a==null&&l!=="/"&&(S.pathname=S.pathname==="/"?l:_n([l,S.pathname])),(C.replace?u.replace:u.push)(S,C.state,C)},[l,u,m,f,a])}const Mm=g.createContext(null);function Am(a){let l=g.useContext(tn).outlet;return l&&g.createElement(Mm.Provider,{value:a},l)}function zd(a,l){let{relative:o}=l===void 0?{}:l,{future:u}=g.useContext(Cn),{matches:d}=g.useContext(tn),{pathname:f}=qn(),m=JSON.stringify(ra(d,u.v7_relativeSplatPath));return g.useMemo(()=>la(a,JSON.parse(m),f,o==="path"),[a,m,f,o])}function zm(a,l){return Om(a,l)}function Om(a,l,o,u){Ts()||He(!1);let{navigator:d}=g.useContext(Cn),{matches:f}=g.useContext(tn),m=f[f.length-1],y=m?m.params:{};m&&m.pathname;let p=m?m.pathnameBase:"/";m&&m.route;let j=qn(),C;if(l){var S;let I=typeof l=="string"?Es(l):l;p==="/"||(S=I.pathname)!=null&&S.startsWith(p)||He(!1),C=I}else C=j;let $=C.pathname||"/",D=$;if(p!=="/"){let I=p.replace(/^\//,"").split("/");D="/"+$.replace(/^\//,"").split("/").slice(I.length).join("/")}let H=dm(a,{pathname:D}),F=Wm(H&&H.map(I=>Object.assign({},I,{params:Object.assign({},y,I.params),pathname:_n([p,d.encodeLocation?d.encodeLocation(I.pathname).pathname:I.pathname]),pathnameBase:I.pathnameBase==="/"?p:_n([p,d.encodeLocation?d.encodeLocation(I.pathnameBase).pathname:I.pathnameBase])})),f,o,u);return l&&F?g.createElement(Hl.Provider,{value:{location:yr({pathname:"/",search:"",hash:"",state:null,key:"default"},C),navigationType:bn.Pop}},F):F}function Um(){let a=Km(),l=Im(a)?a.status+" "+a.statusText:a instanceof Error?a.message:JSON.stringify(a),o=a instanceof Error?a.stack:null,d={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},l),o?g.createElement("pre",{style:d},o):null,null)}const Fm=g.createElement(Um,null);class Bm extends g.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,o){return o.location!==l.location||o.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:o.error,location:o.location,revalidation:l.revalidation||o.revalidation}}componentDidCatch(l,o){console.error("React Router caught the following error during render",l,o)}render(){return this.state.error!==void 0?g.createElement(tn.Provider,{value:this.props.routeContext},g.createElement(Md.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Hm(a){let{routeContext:l,match:o,children:u}=a,d=g.useContext(ia);return d&&d.static&&d.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(d.staticContext._deepestRenderedBoundaryId=o.route.id),g.createElement(tn.Provider,{value:l},u)}function Wm(a,l,o,u){var d;if(l===void 0&&(l=[]),o===void 0&&(o=null),u===void 0&&(u=null),a==null){var f;if(!o)return null;if(o.errors)a=o.matches;else if((f=u)!=null&&f.v7_partialHydration&&l.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let m=a,y=(d=o)==null?void 0:d.errors;if(y!=null){let C=m.findIndex(S=>S.route.id&&(y==null?void 0:y[S.route.id])!==void 0);C>=0||He(!1),m=m.slice(0,Math.min(m.length,C+1))}let p=!1,j=-1;if(o&&u&&u.v7_partialHydration)for(let C=0;C=0?m=m.slice(0,j+1):m=[m[0]];break}}}return m.reduceRight((C,S,$)=>{let D,H=!1,F=null,I=null;o&&(D=y&&S.route.id?y[S.route.id]:void 0,F=S.route.errorElement||Fm,p&&(j<0&&$===0?(Xm("route-fallback"),H=!0,I=null):j===$&&(H=!0,I=S.route.hydrateFallbackElement||null)));let q=l.concat(m.slice(0,$+1)),G=()=>{let Z;return D?Z=F:H?Z=I:S.route.Component?Z=g.createElement(S.route.Component,null):S.route.element?Z=S.route.element:Z=C,g.createElement(Hm,{match:S,routeContext:{outlet:C,matches:q,isDataRoute:o!=null},children:Z})};return o&&(S.route.ErrorBoundary||S.route.errorElement||$===0)?g.createElement(Bm,{location:o.location,revalidation:o.revalidation,component:F,error:D,children:G(),routeContext:{outlet:null,matches:q,isDataRoute:!0}}):G()},null)}var Od=(function(a){return a.UseBlocker="useBlocker",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a})(Od||{}),Ud=(function(a){return a.UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a})(Ud||{});function Vm(a){let l=g.useContext(ia);return l||He(!1),l}function Qm(a){let l=g.useContext(Lm);return l||He(!1),l}function qm(a){let l=g.useContext(tn);return l||He(!1),l}function Fd(a){let l=qm(),o=l.matches[l.matches.length-1];return o.route.id||He(!1),o.route.id}function Km(){var a;let l=g.useContext(Md),o=Qm(),u=Fd();return l!==void 0?l:(a=o.errors)==null?void 0:a[u]}function Jm(){let{router:a}=Vm(Od.UseNavigateStable),l=Fd(Ud.UseNavigateStable),o=g.useRef(!1);return Ad(()=>{o.current=!0}),g.useCallback(function(d,f){f===void 0&&(f={}),o.current&&(typeof d=="number"?a.navigate(d):a.navigate(d,yr({fromRouteId:l},f)))},[a,l])}const vd={};function Xm(a,l,o){vd[a]||(vd[a]=!0)}function Gm(a,l){a==null||a.v7_startTransition,a==null||a.v7_relativeSplatPath}function Vt(a){let{to:l,replace:o,state:u,relative:d}=a;Ts()||He(!1);let{future:f,static:m}=g.useContext(Cn),{matches:y}=g.useContext(tn),{pathname:p}=qn(),j=Wl(),C=la(l,ra(y,f.v7_relativeSplatPath),p,d==="path"),S=JSON.stringify(C);return g.useEffect(()=>j(JSON.parse(S),{replace:o,state:u,relative:d}),[j,S,d,o,u]),null}function Bd(a){return Am(a.context)}function Qe(a){He(!1)}function Ym(a){let{basename:l="/",children:o=null,location:u,navigationType:d=bn.Pop,navigator:f,static:m=!1,future:y}=a;Ts()&&He(!1);let p=l.replace(/^\/*/,"/"),j=g.useMemo(()=>({basename:p,navigator:f,static:m,future:yr({v7_relativeSplatPath:!1},y)}),[p,y,f,m]);typeof u=="string"&&(u=Es(u));let{pathname:C="/",search:S="",hash:$="",state:D=null,key:H="default"}=u,F=g.useMemo(()=>{let I=sa(C,p);return I==null?null:{location:{pathname:I,search:S,hash:$,state:D,key:H},navigationType:d}},[p,C,S,$,D,H,d]);return F==null?null:g.createElement(Cn.Provider,{value:j},g.createElement(Hl.Provider,{children:o,value:F}))}function Zm(a){let{children:l,location:o}=a;return zm(Ko(l),o)}new Promise(()=>{});function Ko(a,l){l===void 0&&(l=[]);let o=[];return g.Children.forEach(a,(u,d)=>{if(!g.isValidElement(u))return;let f=[...l,d];if(u.type===g.Fragment){o.push.apply(o,Ko(u.props.children,f));return}u.type!==Qe&&He(!1),!u.props.index||!u.props.children||He(!1);let m={id:u.props.id||f.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,loader:u.props.loader,action:u.props.action,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=Ko(u.props.children,f)),o.push(m)}),o}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Jo(){return Jo=Object.assign?Object.assign.bind():function(a){for(var l=1;l{let u=a[o];return l.concat(Array.isArray(u)?u.map(d=>[o,d]):[[o,u]])},[]))}function sp(a,l){let o=Xo(a);return l&&l.forEach((u,d)=>{o.has(d)||l.getAll(d).forEach(f=>{o.append(d,f)})}),o}const rp=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lp="6";try{window.__reactRouterVersion=lp}catch{}const ip="startTransition",yd=tm[ip];function op(a){let{basename:l,children:o,future:u,window:d}=a,f=g.useRef();f.current==null&&(f.current=am({window:d,v5Compat:!0}));let m=f.current,[y,p]=g.useState({action:m.action,location:m.location}),{v7_startTransition:j}=u||{},C=g.useCallback(S=>{j&&yd?yd(()=>p(S)):p(S)},[p,j]);return g.useLayoutEffect(()=>m.listen(C),[m,C]),g.useEffect(()=>Gm(u),[u]),g.createElement(Ym,{basename:l,children:o,location:y.location,navigationType:y.action,navigator:m,future:u})}const ap=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ge=g.forwardRef(function(l,o){let{onClick:u,relative:d,reloadDocument:f,replace:m,state:y,target:p,to:j,preventScrollReset:C,viewTransition:S}=l,$=ep(l,rp),{basename:D}=g.useContext(Cn),H,F=!1;if(typeof j=="string"&&cp.test(j)&&(H=j,ap))try{let Z=new URL(window.location.href),te=j.startsWith("//")?new URL(Z.protocol+j):new URL(j),O=sa(te.pathname,D);te.origin===Z.origin&&O!=null?j=O+te.search+te.hash:F=!0}catch{}let I=Dm(j,{relative:d}),q=up(j,{replace:m,state:y,target:p,preventScrollReset:C,relative:d,viewTransition:S});function G(Z){u&&u(Z),Z.defaultPrevented||q(Z)}return g.createElement("a",Jo({},$,{href:H||I,onClick:F||f?u:G,ref:o,target:p}))});var wd;(function(a){a.UseScrollRestoration="useScrollRestoration",a.UseSubmit="useSubmit",a.UseSubmitFetcher="useSubmitFetcher",a.UseFetcher="useFetcher",a.useViewTransitionState="useViewTransitionState"})(wd||(wd={}));var jd;(function(a){a.UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration"})(jd||(jd={}));function up(a,l){let{target:o,replace:u,state:d,preventScrollReset:f,relative:m,viewTransition:y}=l===void 0?{}:l,p=Wl(),j=qn(),C=zd(a,{relative:m});return g.useCallback(S=>{if(np(S,o)){S.preventDefault();let $=u!==void 0?u:zl(j)===zl(C);p(a,{replace:$,state:d,preventScrollReset:f,relative:m,viewTransition:y})}},[j,p,C,u,d,o,a,f,m,y])}function dp(a){let l=g.useRef(Xo(a)),o=g.useRef(!1),u=qn(),d=g.useMemo(()=>sp(u.search,o.current?null:l.current),[u.search]),f=Wl(),m=g.useCallback((y,p)=>{const j=Xo(typeof y=="function"?y(d):y);o.current=!0,f("?"+j,p)},[f,d]);return[d,m]}class hp{constructor(){xt(this,"listeners",new Set);xt(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(o=>{try{o(l)}catch(u){console.error("Error in session expired listener",u)}}))}reset(){this.isTerminated=!1}}const Ns=new hp,Hd="/api";function Ss(){return localStorage.getItem("classnotify_token")}function fp(a){localStorage.setItem("classnotify_token",a)}function xr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}async function xe(a,l={}){const o=Ss(),u={"Content-Type":"application/json",...l.headers};o&&(u.Authorization=`Bearer ${o}`);const d=await fetch(`${Hd}${a}`,{...l,headers:u});if(d.status===401)throw xr(),Ns.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!d.ok){let f=`请求失败 (${d.status})`;try{const m=await d.json();f=m.message||m.errorMessage||f}catch{}throw new Error(f)}return d.json()}const oe={login:(a,l)=>xe("/auth/login",{method:"POST",body:JSON.stringify({username:a,password:l})}),getMe:()=>xe("/auth/me"),getAdminMetrics:()=>xe("/admin/metrics"),getTenants:()=>xe("/admin/tenants"),getAllDevices:()=>xe("/admin/devices"),sendDeviceCommand:(a,l,o)=>xe(`/admin/devices/${a}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:o})}),getAdminActivationCodes:()=>xe("/admin/activation-codes"),getAdminClasses:a=>xe(`/admin/classes?tenantId=${encodeURIComponent(a)}`),generateAdminCode:(a,l)=>xe(`/admin/activation-codes?tenantId=${encodeURIComponent(a)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(a=50)=>xe(`/admin/notifications?limit=${a}`),createTenant:a=>xe("/admin/tenants",{method:"POST",body:JSON.stringify(a)}),updateTenant:(a,l)=>xe(`/admin/tenants/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(a,l)=>{const o=new URLSearchParams;a&&o.append("tenantId",a),l&&o.append("role",l);const u=o.toString();return xe(`/admin/users${u?`?${u}`:""}`)},createUser:a=>xe("/admin/users",{method:"POST",body:JSON.stringify(a)}),resetPassword:(a,l)=>xe(`/admin/users/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(a,l)=>xe(`/admin/users/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:a=>xe(`/admin/users/${encodeURIComponent(a)}`,{method:"DELETE"}),updateDevice:(a,l)=>xe(`/admin/devices/${encodeURIComponent(a)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:a=>xe(`/admin/devices/${encodeURIComponent(a)}/decommission`,{method:"POST"}),deleteActivationCode:a=>xe(`/admin/activation-codes/${encodeURIComponent(a)}`,{method:"DELETE"}),sendEmergencyBroadcast:a=>xe("/admin/broadcasts",{method:"POST",body:JSON.stringify(a)}),getSystemHealth:()=>xe("/admin/system/health"),getAuditLogs:(a=100)=>xe(`/admin/audit-logs?limit=${a}`),getSchoolOverview:()=>xe("/school-admin/overview"),getSchoolClasses:()=>xe("/school-admin/classes"),createSchoolClass:a=>xe("/school-admin/classes",{method:"POST",body:JSON.stringify(a)}),getSchoolTeachers:()=>xe("/school-admin/teachers"),createSchoolTeacher:a=>xe("/school-admin/teachers",{method:"POST",body:JSON.stringify(a)}),resetSchoolTeacherPassword:(a,l)=>xe(`/school-admin/teachers/${encodeURIComponent(a)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(a,l)=>xe(`/school-admin/teachers/${encodeURIComponent(a)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>xe("/school-admin/devices"),getSchoolCodes:()=>xe("/school-admin/activation-codes"),generateSchoolCode:a=>xe(`/school-admin/activation-codes?classId=${encodeURIComponent(a)}`,{method:"POST"}),getTeacherClasses:()=>xe("/notification/classes"),sendNotification:a=>xe("/notification/send",{method:"POST",body:JSON.stringify(a)}),cancelNotification:a=>xe(`/notifications/${encodeURIComponent(a)}/cancel`,{method:"POST"}),getTeacherHistory:(a,l=50)=>xe(`/notification/history?${a?`classId=${encodeURIComponent(a)}&`:""}limit=${l}`),getVisualReceiptBlob:async(a,l)=>{const o=Ss(),u=await fetch(`${Hd}/notifications/${encodeURIComponent(a)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:o?{Authorization:`Bearer ${o}`}:{}});if(u.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(u.status===404)throw new Error("未找到该通知的视觉回执");if(!u.ok)throw new Error(`获取视觉回执失败 (${u.status})`);return u.blob()}};class Fn extends Error{constructor(l,o){const u=new.target.prototype;super(`${l}: Status code '${o}'`),this.statusCode=o,this.__proto__=u}}class oa extends Error{constructor(l="A timeout occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class zt extends Error{constructor(l="An abort occurred."){const o=new.target.prototype;super(l),this.__proto__=o}}class mp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="UnsupportedTransportError",this.__proto__=u}}class pp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="DisabledTransportError",this.__proto__=u}}class xp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.transport=o,this.errorType="FailedToStartTransportError",this.__proto__=u}}class Nd extends Error{constructor(l){const o=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=o}}class gp extends Error{constructor(l,o){const u=new.target.prototype;super(l),this.innerErrors=o,this.__proto__=u}}class Wd{constructor(l,o,u){this.statusCode=l,this.statusText=o,this.content=u}}class Vl{get(l,o){return this.send({...o,method:"GET",url:l})}post(l,o){return this.send({...o,method:"POST",url:l})}delete(l,o){return this.send({...o,method:"DELETE",url:l})}getCookieString(l){return""}}var R;(function(a){a[a.Trace=0]="Trace",a[a.Debug=1]="Debug",a[a.Information=2]="Information",a[a.Warning=3]="Warning",a[a.Error=4]="Error",a[a.Critical=5]="Critical",a[a.None=6]="None"})(R||(R={}));class wr{constructor(){}log(l,o){}}wr.instance=new wr;const vp="8.0.29";class qe{static isRequired(l,o){if(l==null)throw new Error(`The '${o}' argument is required.`)}static isNotEmpty(l,o){if(!l||l.match(/^\s*$/))throw new Error(`The '${o}' argument should not be empty.`)}static isIn(l,o,u){if(!(l in o))throw new Error(`Unknown ${u} value: ${l}.`)}}class ze{static get isBrowser(){return!ze.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!ze.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!ze.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function jr(a,l){let o="";return Wn(a)?(o=`Binary data of length ${a.byteLength}`,l&&(o+=`. Content: '${yp(a)}'`)):typeof a=="string"&&(o=`String data of length ${a.length}`,l&&(o+=`. Content: '${a}'`)),o}function yp(a){const l=new Uint8Array(a);let o="";return l.forEach(u=>{const d=u<16?"0":"";o+=`0x${d}${u.toString(16)} `}),o.substr(0,o.length-1)}function Wn(a){return a&&typeof ArrayBuffer<"u"&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}async function Vd(a,l,o,u,d,f){const m={},[y,p]=Cs();m[y]=p,a.log(R.Trace,`(${l} transport) sending data. ${jr(d,f.logMessageContent)}.`);const j=Wn(d)?"arraybuffer":"text",C=await o.post(u,{content:d,headers:{...m,...f.headers},responseType:j,timeout:f.timeout,withCredentials:f.withCredentials});a.log(R.Trace,`(${l} transport) request complete. Response status: ${C.statusCode}.`)}function wp(a){return a===void 0?new Ol(R.Information):a===null?wr.instance:a.log!==void 0?a:new Ol(a)}class jp{constructor(l,o){this._subject=l,this._observer=o}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(o=>{})}}class Ol{constructor(l){this._minLevel=l,this.out=console}log(l,o){if(l>=this._minLevel){const u=`[${new Date().toISOString()}] ${R[l]}: ${o}`;switch(l){case R.Critical:case R.Error:this.out.error(u);break;case R.Warning:this.out.warn(u);break;case R.Information:this.out.info(u);break;default:this.out.log(u);break}}}}function Cs(){let a="X-SignalR-User-Agent";return ze.isNode&&(a="User-Agent"),[a,Np(vp,bp(),kp(),_p())]}function Np(a,l,o,u){let d="Microsoft SignalR/";const f=a.split(".");return d+=`${f[0]}.${f[1]}`,d+=` (${a}; `,l&&l!==""?d+=`${l}; `:d+="Unknown OS; ",d+=`${o}`,u?d+=`; ${u}`:d+="; Unknown Runtime Version",d+=")",d}function bp(){if(ze.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function _p(){if(ze.isNode)return process.versions.node}function kp(){return ze.isNode?"NodeJS":"Browser"}function Vo(a){return a.stack?a.stack:a.message?a.message:`${a}`}function Sp(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class Cp extends Vl{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||ze.isNode){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(o("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=o("node-fetch"):this._fetchType=fetch,this._fetchType=o("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Sp());if(typeof AbortController>"u"){const o=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=o("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new zt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const o=new this._abortControllerType;let u;l.abortSignal&&(l.abortSignal.onabort=()=>{o.abort(),u=new zt});let d=null;if(l.timeout){const p=l.timeout;d=setTimeout(()=>{o.abort(),this._logger.log(R.Warning,"Timeout from HTTP request."),u=new oa},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},Wn(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let f;try{f=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:o.signal})}catch(p){throw u||(this._logger.log(R.Warning,`Error from HTTP request. ${p}.`),p)}finally{d&&clearTimeout(d),l.abortSignal&&(l.abortSignal.onabort=null)}if(!f.ok){const p=await bd(f,"text");throw new Fn(p||f.statusText,f.status)}const y=await bd(f,l.responseType);return new Wd(f.status,f.statusText,y)}getCookieString(l){let o="";return ze.isNode&&this._jar&&this._jar.getCookies(l,(u,d)=>o=d.join("; ")),o}}function bd(a,l){let o;switch(l){case"arraybuffer":o=a.arrayBuffer();break;case"text":o=a.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:o=a.text();break}return o}class Ep extends Vl{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new zt):l.method?l.url?new Promise((o,u)=>{const d=new XMLHttpRequest;d.open(l.method,l.url,!0),d.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,d.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(Wn(l.content)?d.setRequestHeader("Content-Type","application/octet-stream"):d.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const f=l.headers;f&&Object.keys(f).forEach(m=>{d.setRequestHeader(m,f[m])}),l.responseType&&(d.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{d.abort(),u(new zt)}),l.timeout&&(d.timeout=l.timeout),d.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),d.status>=200&&d.status<300?o(new Wd(d.status,d.statusText,d.response||d.responseText)):u(new Fn(d.response||d.responseText||d.statusText,d.status))},d.onerror=()=>{this._logger.log(R.Warning,`Error from HTTP request. ${d.status}: ${d.statusText}.`),u(new Fn(d.statusText,d.status))},d.ontimeout=()=>{this._logger.log(R.Warning,"Timeout from HTTP request."),u(new oa)},d.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Tp extends Vl{constructor(l){if(super(),typeof fetch<"u"||ze.isNode)this._httpClient=new Cp(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Ep(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new zt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class Nt{static write(l){return`${l}${Nt.RecordSeparator}`}static parse(l){if(l[l.length-1]!==Nt.RecordSeparator)throw new Error("Message is incomplete.");const o=l.split(Nt.RecordSeparator);return o.pop(),o}}Nt.RecordSeparatorCode=30;Nt.RecordSeparator=String.fromCharCode(Nt.RecordSeparatorCode);class Pp{writeHandshakeRequest(l){return Nt.write(JSON.stringify(l))}parseHandshakeResponse(l){let o,u;if(Wn(l)){const y=new Uint8Array(l),p=y.indexOf(Nt.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=String.fromCharCode.apply(null,Array.prototype.slice.call(y.slice(0,j))),u=y.byteLength>j?y.slice(j).buffer:null}else{const y=l,p=y.indexOf(Nt.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const j=p+1;o=y.substring(0,j),u=y.length>j?y.substring(j):null}const d=Nt.parse(o),f=JSON.parse(d[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[u,f]}}var ue;(function(a){a[a.Invocation=1]="Invocation",a[a.StreamItem=2]="StreamItem",a[a.Completion=3]="Completion",a[a.StreamInvocation=4]="StreamInvocation",a[a.CancelInvocation=5]="CancelInvocation",a[a.Ping=6]="Ping",a[a.Close=7]="Close",a[a.Ack=8]="Ack",a[a.Sequence=9]="Sequence"})(ue||(ue={}));class Ip{constructor(){this.observers=[]}next(l){for(const o of this.observers)o.next(l)}error(l){for(const o of this.observers)o.error&&o.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new jp(this,l)}}class Rp{constructor(l,o,u){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=o,this._bufferSize=u}async _send(l){const o=this._protocol.writeMessage(l);let u=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let d=()=>{},f=()=>{};Wn(o)?this._bufferedByteCount+=o.byteLength:this._bufferedByteCount+=o.length,this._bufferedByteCount>=this._bufferSize&&(u=new Promise((m,y)=>{d=m,f=y})),this._messages.push(new Lp(o,this._totalMessageCount,d,f))}try{this._reconnectInProgress||await this._connection.send(o)}catch{this._disconnected()}await u}_ack(l){let o=-1;for(let u=0;uthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:ue.Sequence,sequenceId:l}));const o=this._messages;for(const u of o)await this._connection.send(u._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const o of this._messages)o._rejector(l)}_isInvocationMessage(l){switch(l.type){case ue.Invocation:case ue.StreamItem:case ue.Completion:case ue.StreamInvocation:case ue.CancelInvocation:return!0;case ue.Close:case ue.Sequence:case ue.Ping:case ue.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:ue.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Lp{constructor(l,o,u,d){this._message=l,this._id=o,this._resolver=u,this._rejector=d}}const Dp=30*1e3,$p=15*1e3,Mp=1e5;var Ce;(function(a){a.Disconnected="Disconnected",a.Connecting="Connecting",a.Connected="Connected",a.Disconnecting="Disconnecting",a.Reconnecting="Reconnecting"})(Ce||(Ce={}));class aa{static create(l,o,u,d,f,m,y){return new aa(l,o,u,d,f,m,y)}constructor(l,o,u,d,f,m,y){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(R.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},qe.isRequired(l,"connection"),qe.isRequired(o,"logger"),qe.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=f??Dp,this.keepAliveIntervalInMilliseconds=m??$p,this._statefulReconnectBufferSize=y??Mp,this._logger=o,this._protocol=u,this.connection=l,this._reconnectPolicy=d,this._handshakeProtocol=new Pp,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ce.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:ue.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==Ce.Disconnected&&this._connectionState!==Ce.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Ce.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Ce.Connecting,this._logger.log(R.Debug,"Starting HubConnection.");try{await this._startInternal(),ze.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Ce.Connected,this._connectionStarted=!0,this._logger.log(R.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=Ce.Disconnected,this._logger.log(R.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((o,u)=>{this._handshakeResolver=o,this._handshakeRejecter=u});await this.connection.start(this._protocol.transferFormat);try{let o=this._protocol.version;this.connection.features.reconnect||(o=1);const u={protocol:this._protocol.name,version:o};if(this._logger.log(R.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(u)),this._logger.log(R.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Rp(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(o){throw this._logger.log(R.Debug,`Hub handshake failed with error '${o}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(o),o}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===Ce.Disconnected)return this._logger.log(R.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Ce.Disconnecting)return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const o=this._connectionState;return this._connectionState=Ce.Disconnecting,this._logger.log(R.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(R.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(o===Ce.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new zt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createStreamInvocation(l,o,d);let m;const y=new Ip;return y.cancelCallback=()=>{const p=this._createCancelInvocation(f.invocationId);return delete this._callbacks[f.invocationId],m.then(()=>this._sendWithProtocol(p))},this._callbacks[f.invocationId]=(p,j)=>{if(j){y.error(j);return}else p&&(p.type===ue.Completion?p.error?y.error(new Error(p.error)):y.complete():y.next(p.item))},m=this._sendWithProtocol(f).catch(p=>{y.error(p),delete this._callbacks[f.invocationId]}),this._launchStreams(u,m),y}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._sendWithProtocol(this._createInvocation(l,o,!0,d));return this._launchStreams(u,f),f}invoke(l,...o){const[u,d]=this._replaceStreamingParams(o),f=this._createInvocation(l,o,!1,d);return new Promise((y,p)=>{this._callbacks[f.invocationId]=(C,S)=>{if(S){p(S);return}else C&&(C.type===ue.Completion?C.error?p(new Error(C.error)):y(C.result):p(new Error(`Unexpected message type: ${C.type}`)))};const j=this._sendWithProtocol(f).catch(C=>{p(C),delete this._callbacks[f.invocationId]});this._launchStreams(u,j)})}on(l,o){!l||!o||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(o)===-1&&this._methods[l].push(o))}off(l,o){if(!l)return;l=l.toLowerCase();const u=this._methods[l];if(u)if(o){const d=u.indexOf(o);d!==-1&&(u.splice(d,1),u.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const o=this._protocol.parseMessages(l,this._logger);for(const u of o)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(u)))switch(u.type){case ue.Invocation:this._invokeClientMethod(u).catch(d=>{this._logger.log(R.Error,`Invoke client method threw error: ${Vo(d)}`)});break;case ue.StreamItem:case ue.Completion:{const d=this._callbacks[u.invocationId];if(d){u.type===ue.Completion&&delete this._callbacks[u.invocationId];try{d(u)}catch(f){this._logger.log(R.Error,`Stream callback threw error: ${Vo(f)}`)}}break}case ue.Ping:break;case ue.Close:{this._logger.log(R.Information,"Close message received from server.");const d=u.error?new Error("Server returned an error on close: "+u.error):void 0;u.allowReconnect===!0?this.connection.stop(d):this._stopPromise=this._stopInternal(d);break}case ue.Ack:this._messageBuffer&&this._messageBuffer._ack(u);break;case ue.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(u);break;default:this._logger.log(R.Warning,`Invalid message type: ${u.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let o,u;try{[u,o]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(d){const f="Error parsing handshake response: "+d;this._logger.log(R.Error,f);const m=new Error(f);throw this._handshakeRejecter(m),m}if(o.error){const d="Server returned handshake error: "+o.error;this._logger.log(R.Error,d);const f=new Error(d);throw this._handshakeRejecter(f),f}else this._logger.log(R.Debug,"Server handshake complete.");return this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Ce.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const o=l.target.toLowerCase(),u=this._methods[o];if(!u){this._logger.log(R.Warning,`No client method with the name '${o}' found.`),l.invocationId&&(this._logger.log(R.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const d=u.slice(),f=!!l.invocationId;let m,y,p;for(const j of d)try{const C=m;m=await j.apply(this,l.arguments),f&&m&&C&&(this._logger.log(R.Error,`Multiple results provided for '${o}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),y=void 0}catch(C){y=C,this._logger.log(R.Error,`A callback for the method '${o}' threw error '${C}'.`)}p?await this._sendWithProtocol(p):f?(y?p=this._createCompletionMessage(l.invocationId,`${y}`,null):m!==void 0?p=this._createCompletionMessage(l.invocationId,null,m):(this._logger.log(R.Warning,`No result given for '${o}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):m&&this._logger.log(R.Error,`Result given for '${o}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log(R.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new zt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ce.Disconnecting?this._completeClose(l):this._connectionState===Ce.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===Ce.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=Ce.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),ze.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(o=>o.apply(this,[l]))}catch(o){this._logger.log(R.Error,`An onclose callback called with error '${l}' threw error '${o}'.`)}}}async _reconnect(l){const o=Date.now();let u=0,d=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),f=this._getNextRetryDelay(u++,0,d);if(f===null){this._logger.log(R.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=Ce.Reconnecting,l?this._logger.log(R.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log(R.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(m=>m.apply(this,[l]))}catch(m){this._logger.log(R.Error,`An onreconnecting callback called with error '${l}' threw error '${m}'.`)}if(this._connectionState!==Ce.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;f!==null;){if(this._logger.log(R.Information,`Reconnect attempt number ${u} will start in ${f} ms.`),await new Promise(m=>{this._reconnectDelayHandle=setTimeout(m,f)}),this._reconnectDelayHandle=void 0,this._connectionState!==Ce.Reconnecting){this._logger.log(R.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Ce.Connected,this._logger.log(R.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(m=>m.apply(this,[this.connection.connectionId]))}catch(m){this._logger.log(R.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${m}'.`)}return}catch(m){if(this._logger.log(R.Information,`Reconnect attempt failed because of error '${m}'.`),this._connectionState!==Ce.Reconnecting){this._logger.log(R.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Ce.Disconnecting&&this._completeClose();return}d=m instanceof Error?m:new Error(m.toString()),f=this._getNextRetryDelay(u++,Date.now()-o,d)}}this._logger.log(R.Information,`Reconnect retries have been exhausted after ${Date.now()-o} ms and ${u} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,o,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:o,previousRetryCount:l,retryReason:u})}catch(d){return this._logger.log(R.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${o}) threw error '${d}'.`),null}}_cancelCallbacksWithError(l){const o=this._callbacks;this._callbacks={},Object.keys(o).forEach(u=>{const d=o[u];try{d(null,l)}catch(f){this._logger.log(R.Error,`Stream 'error' callback called with '${l}' threw error: ${Vo(f)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,o,u,d){if(u)return d.length!==0?{arguments:o,streamIds:d,target:l,type:ue.Invocation}:{arguments:o,target:l,type:ue.Invocation};{const f=this._invocationId;return this._invocationId++,d.length!==0?{arguments:o,invocationId:f.toString(),streamIds:d,target:l,type:ue.Invocation}:{arguments:o,invocationId:f.toString(),target:l,type:ue.Invocation}}}_launchStreams(l,o){if(l.length!==0){o||(o=Promise.resolve());for(const u in l)l[u].subscribe({complete:()=>{o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:d=>{let f;d instanceof Error?f=d.message:d&&d.toString?f=d.toString():f="Unknown error",o=o.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,f)))},next:d=>{o=o.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,d)))}})}}_replaceStreamingParams(l){const o=[],u=[];for(let d=0;d0)&&(o=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const u=await this._innerClient.send(l);return o&&u.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):u}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[Bn.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[Bn.Authorization]&&delete l.headers[Bn.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var Xe;(function(a){a[a.None=0]="None",a[a.WebSockets=1]="WebSockets",a[a.ServerSentEvents=2]="ServerSentEvents",a[a.LongPolling=4]="LongPolling"})(Xe||(Xe={}));var it;(function(a){a[a.Text=1]="Text",a[a.Binary=2]="Binary"})(it||(it={}));let Op=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class kd{get pollAborted(){return this._pollAbort.aborted}constructor(l,o,u){this._httpClient=l,this._logger=o,this._pollAbort=new Op,this._options=u,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,o){if(qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._url=l,this._logger.log(R.Trace,"(LongPolling transport) Connecting."),o===it.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[u,d]=Cs(),f={[u]:d,...this._options.headers},m={abortSignal:this._pollAbort.signal,headers:f,timeout:1e5,withCredentials:this._options.withCredentials};o===it.Binary&&(m.responseType="arraybuffer");const y=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${y}.`);const p=await this._httpClient.get(y,m);p.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new Fn(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,m)}async _poll(l,o){try{for(;this._running;)try{const u=`${l}&_=${Date.now()}`;this._logger.log(R.Trace,`(LongPolling transport) polling: ${u}.`);const d=await this._httpClient.get(u,o);d.statusCode===204?(this._logger.log(R.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):d.statusCode!==200?(this._logger.log(R.Error,`(LongPolling transport) Unexpected response code: ${d.statusCode}.`),this._closeError=new Fn(d.statusText||"",d.statusCode),this._running=!1):d.content?(this._logger.log(R.Trace,`(LongPolling transport) data received. ${jr(d.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(d.content)):this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(u){this._running?u instanceof oa?this._logger.log(R.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=u,this._running=!1):this._logger.log(R.Trace,`(LongPolling transport) Poll errored after shutdown: ${u.message}`)}}finally{this._logger.log(R.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?Vd(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(R.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(R.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[o,u]=Cs();l[o]=u;const d={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let f;try{await this._httpClient.delete(this._url,d)}catch(m){f=m}f?f instanceof Fn&&(f.statusCode===404?this._logger.log(R.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log(R.Trace,`(LongPolling transport) Error sending a DELETE request: ${f}`)):this._logger.log(R.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log(R.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log(R.Trace,l),this.onclose(this._closeError)}}}class Up{constructor(l,o,u,d){this._httpClient=l,this._accessToken=o,this._logger=u,this._options=d,this.onreceive=null,this.onclose=null}async connect(l,o){return qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._logger.log(R.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((u,d)=>{let f=!1;if(o!==it.Text){d(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let m;if(ze.isBrowser||ze.isWebWorker)m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const y=this._httpClient.getCookieString(l),p={};p.Cookie=y;const[j,C]=Cs();p[j]=C,m=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{m.onmessage=y=>{if(this.onreceive)try{this._logger.log(R.Trace,`(SSE transport) data received. ${jr(y.data,this._options.logMessageContent)}.`),this.onreceive(y.data)}catch(p){this._close(p);return}},m.onerror=y=>{f?this._close():d(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},m.onopen=()=>{this._logger.log(R.Information,`SSE connected to ${this._url}`),this._eventSource=m,f=!0,u()}}catch(y){d(y);return}})}async send(l){return this._eventSource?Vd(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Fp{constructor(l,o,u,d,f,m){this._logger=u,this._accessTokenFactory=o,this._logMessageContent=d,this._webSocketConstructor=f,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=m}async connect(l,o){qe.isRequired(l,"url"),qe.isRequired(o,"transferFormat"),qe.isIn(o,it,"transferFormat"),this._logger.log(R.Trace,"(WebSockets transport) Connecting.");let u;return this._accessTokenFactory&&(u=await this._accessTokenFactory()),new Promise((d,f)=>{l=l.replace(/^http/,"ws");let m;const y=this._httpClient.getCookieString(l);let p=!1;if(ze.isNode||ze.isReactNative){const j={},[C,S]=Cs();j[C]=S,u&&(j[Bn.Authorization]=`Bearer ${u}`),y&&(j[Bn.Cookie]=y),m=new this._webSocketConstructor(l,void 0,{headers:{...j,...this._headers}})}else u&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(u)}`);m||(m=new this._webSocketConstructor(l)),o===it.Binary&&(m.binaryType="arraybuffer"),m.onopen=j=>{this._logger.log(R.Information,`WebSocket connected to ${l}.`),this._webSocket=m,p=!0,d()},m.onerror=j=>{let C=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?C=j.error:C="There was an error with the transport",this._logger.log(R.Information,`(WebSockets transport) ${C}.`)},m.onmessage=j=>{if(this._logger.log(R.Trace,`(WebSockets transport) data received. ${jr(j.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(j.data)}catch(C){this._close(C);return}},m.onclose=j=>{if(p)this._close(j);else{let C=null;typeof ErrorEvent<"u"&&j instanceof ErrorEvent?C=j.error:C="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",f(new Error(C))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(R.Trace,`(WebSockets transport) sending data. ${jr(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(R.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Sd=100;class Bp{constructor(l,o={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,qe.isRequired(l,"url"),this._logger=wp(o.logger),this.baseUrl=this._resolveUrl(l),o=o||{},o.logMessageContent=o.logMessageContent===void 0?!1:o.logMessageContent,typeof o.withCredentials=="boolean"||o.withCredentials===void 0)o.withCredentials=o.withCredentials===void 0?!0:o.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");o.timeout=o.timeout===void 0?100*1e3:o.timeout;let u=null,d=null;if(ze.isNode&&typeof require<"u"){const f=typeof __webpack_require__=="function"?__non_webpack_require__:require;u=f("ws"),d=f("eventsource")}!ze.isNode&&typeof WebSocket<"u"&&!o.WebSocket?o.WebSocket=WebSocket:ze.isNode&&!o.WebSocket&&u&&(o.WebSocket=u),!ze.isNode&&typeof EventSource<"u"&&!o.EventSource?o.EventSource=EventSource:ze.isNode&&!o.EventSource&&typeof d<"u"&&(o.EventSource=d),this._httpClient=new zp(o.httpClient||new Tp(this._logger),o.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=o,this.onreceive=null,this.onclose=null}async start(l){if(l=l||it.Binary,qe.isIn(l,it,"transferFormat"),this._logger.log(R.Debug,`Starting connection with transfer format '${it[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const o="Failed to start the HttpConnection before stop() was called.";return this._logger.log(R.Error,o),await this._stopPromise,Promise.reject(new zt(o))}else if(this._connectionState!=="Connected"){const o="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(R.Error,o),Promise.reject(new zt(o))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new ca(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log(R.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(o=>{this._stopPromiseResolver=o}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(o){this._logger.log(R.Error,`HttpConnection.transport.stop() threw error '${o}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(R.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let o=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===Xe.WebSockets)this.transport=this._constructTransport(Xe.WebSockets),await this._startTransport(o,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let u=null,d=0;do{if(u=await this._getNegotiationResponse(o),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new zt("The connection was stopped during negotiation.");if(u.error)throw new Error(u.error);if(u.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(u.url&&(o=u.url),u.accessToken){const f=u.accessToken;this._accessTokenFactory=()=>f,this._httpClient._accessToken=f,this._httpClient._accessTokenFactory=void 0}d++}while(u.url&&d0?Promise.reject(new gp(`Unable to connect to the server with any of the available transports. ${m.join(" ")}`,m)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case Xe.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Fp(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case Xe.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Up(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case Xe.LongPolling:return new kd(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,o){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async u=>{let d=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,o),await this.features.resend()}catch{d=!0}else{this._stopConnection(u);return}d&&this._stopConnection(u)}:this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(l,o)}_resolveTransportOrError(l,o,u,d){const f=Xe[l.transport];if(f==null)return this._logger.log(R.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(Hp(o,f))if(l.transferFormats.map(y=>it[y]).indexOf(u)>=0){if(f===Xe.WebSockets&&!this._options.WebSocket||f===Xe.ServerSentEvents&&!this._options.EventSource)return this._logger.log(R.Debug,`Skipping transport '${Xe[f]}' because it is not supported in your environment.'`),new mp(`'${Xe[f]}' is not supported in your environment.`,f);this._logger.log(R.Debug,`Selecting transport '${Xe[f]}'.`);try{return this.features.reconnect=f===Xe.WebSockets?d:void 0,this._constructTransport(f)}catch(y){return y}}else return this._logger.log(R.Debug,`Skipping transport '${Xe[f]}' because it does not support the requested transfer format '${it[u]}'.`),new Error(`'${Xe[f]}' does not support ${it[u]}.`);else return this._logger.log(R.Debug,`Skipping transport '${Xe[f]}' because it was disabled by the client.`),new pp(`'${Xe[f]}' is disabled by the client.`,f)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log(R.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log(R.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log(R.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log(R.Error,`Connection disconnected with error '${l}'.`):this._logger.log(R.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(o=>{this._logger.log(R.Error,`TransportSendQueue.stop() threw error '${o}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(o){this._logger.log(R.Error,`HttpConnection.onclose(${l}) threw error '${o}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!ze.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const o=window.document.createElement("a");return o.href=l,this._logger.log(R.Information,`Normalizing '${l}' to '${o.href}'.`),o.href}_resolveNegotiateUrl(l){const o=new URL(l);o.pathname.endsWith("/")?o.pathname+="negotiate":o.pathname+="/negotiate";const u=new URLSearchParams(o.searchParams);return u.has("negotiateVersion")||u.append("negotiateVersion",this._negotiateVersion.toString()),u.has("useStatefulReconnect")?u.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&u.append("useStatefulReconnect","true"),o.search=u.toString(),o.toString()}}function Hp(a,l){return!a||(l&a)!==0}class ca{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new Al,this._transportResult=new Al,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new Al),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new Al;const l=this._transportResult;this._transportResult=void 0;const o=typeof this._buffer[0]=="string"?this._buffer.join(""):ca._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(o),l.resolve()}catch(u){l.reject(u)}}}static _concatBuffers(l){const o=l.map(f=>f.byteLength).reduce((f,m)=>f+m),u=new Uint8Array(o);let d=0;for(const f of l)u.set(new Uint8Array(f),d),d+=f.byteLength;return u.buffer}}class Al{constructor(){this.promise=new Promise((l,o)=>[this._resolver,this._rejecter]=[l,o])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const Wp="json";class Vp{constructor(){this.name=Wp,this.version=2,this.transferFormat=it.Text}parseMessages(l,o){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];o===null&&(o=wr.instance);const u=Nt.parse(l),d=[];for(const f of u){const m=JSON.parse(f);if(typeof m.type!="number")throw new Error("Invalid payload.");switch(m.type){case ue.Invocation:this._isInvocationMessage(m);break;case ue.StreamItem:this._isStreamItemMessage(m);break;case ue.Completion:this._isCompletionMessage(m);break;case ue.Ping:break;case ue.Close:break;case ue.Ack:this._isAckMessage(m);break;case ue.Sequence:this._isSequenceMessage(m);break;default:o.log(R.Information,"Unknown message type '"+m.type+"' ignored.");continue}d.push(m)}return d}writeMessage(l){return Nt.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,o){if(typeof l!="string"||l==="")throw new Error(o)}}const Qp={trace:R.Trace,debug:R.Debug,info:R.Information,information:R.Information,warn:R.Warning,warning:R.Warning,error:R.Error,critical:R.Critical,none:R.None};function qp(a){const l=Qp[a.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${a}`)}class Kp{configureLogging(l){if(qe.isRequired(l,"logging"),Jp(l))this.logger=l;else if(typeof l=="string"){const o=qp(l);this.logger=new Ol(o)}else this.logger=new Ol(l);return this}withUrl(l,o){return qe.isRequired(l,"url"),qe.isNotEmpty(l,"url"),this.url=l,typeof o=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...o}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:o},this}withHubProtocol(l){return qe.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new _d(l):this.reconnectPolicy=l:this.reconnectPolicy=new _d,this}withServerTimeout(l){return qe.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return qe.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const o=new Bp(this.url,l);return aa.create(o,this.logger||wr.instance,this.protocol||new Vp,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function Jp(a){return a.log!==void 0}class Xp{constructor(){xt(this,"connection",null);xt(this,"state","Disconnected");xt(this,"startPromise",null);xt(this,"permanentRetryTimer",null);xt(this,"isAuthenticated",!1);xt(this,"stateListeners",new Set);xt(this,"ackListeners",new Set);xt(this,"deviceStatusListeners",new Set);xt(this,"healthReportListeners",new Set);xt(this,"notificationListeners",new Set);xt(this,"cancelledListeners",new Set);Ns.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(o=>o(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var o,u;if(!Ss()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((o=this.connection)==null?void 0:o.state)===Ce.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((u=this.connection)==null?void 0:u.state)===Ce.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===Ce.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(d){console.warn("SignalR start failed:",d),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new Kp().withUrl("/hubs/teacher",{accessTokenFactory:()=>Ss()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging(R.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(o=>o(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(o=>o(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(o=>o(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(o=>o(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(o=>o(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===Ce.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const Ot=new Xp,Qd=g.createContext(void 0),Gp=({children:a})=>{const[l,o]=g.useState(()=>{try{const j=localStorage.getItem("classnotify_user");return j?JSON.parse(j):null}catch{return null}}),[u,d]=g.useState(Ss()),[f,m]=g.useState(!0);g.useEffect(()=>{const j=Ns.subscribe(()=>{Ot.stop(),xr(),d(null),o(null)});return()=>j()},[]),g.useEffect(()=>{(async()=>{var S,$;if(Ss())try{const D=await oe.getMe();o(D),localStorage.setItem("classnotify_user",JSON.stringify(D)),Ns.reset(),Ot.start()}catch(D){((S=D==null?void 0:D.message)!=null&&S.includes("未授权")||($=D==null?void 0:D.message)!=null&&$.includes("401"))&&(xr(),d(null),o(null))}else xr(),o(null),d(null);m(!1)})()},[]);const y=async(j,C)=>{const S=await oe.login(j,C);if(!S.success||!S.token||!S.role)throw new Error(S.errorMessage||"登录失败");fp(S.token),d(S.token);const $={userId:S.userId||"",name:S.fullName||j,role:S.role,tenantId:S.tenantId||""};return o($),localStorage.setItem("classnotify_user",JSON.stringify($)),Ns.reset(),Ot.start(),S.role},p=()=>{Ot.stop(),xr(),d(null),o(null),Ns.reset()};return n.jsx(Qd.Provider,{value:{user:l,token:u,login:y,logout:p,isLoading:f},children:a})},Sr=()=>{const a=g.useContext(Qd);if(!a)throw new Error("useAuth must be used within an AuthProvider");return a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yp=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qd=(...a)=>a.filter((l,o,u)=>!!l&&l.trim()!==""&&u.indexOf(l)===o).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Zp={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const e0=g.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:o=2,absoluteStrokeWidth:u,className:d="",children:f,iconNode:m,...y},p)=>g.createElement("svg",{ref:p,...Zp,width:l,height:l,stroke:a,strokeWidth:u?Number(o)*24/Number(l):o,className:qd("lucide",d),...y},[...m.map(([j,C])=>g.createElement(j,C)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.475.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=(a,l)=>{const o=g.forwardRef(({className:u,...d},f)=>g.createElement(e0,{ref:f,iconNode:l,className:qd(`lucide-${Yp(a)}`,u),...d}));return o.displayName=`${a}`,o};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const t0=[["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"}]],ua=ae("Activity",t0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const n0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],js=ae("ArrowRight",n0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const s0=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Ul=ae("Bell",s0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const r0=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Qt=ae("Building2",r0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const l0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fl=ae("Check",l0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i0=[["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"}]],Sn=ae("CircleAlert",i0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const o0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pt=ae("CircleCheck",o0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const a0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Go=ae("CircleX",a0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const c0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Kn=ae("Clock",c0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const u0=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],d0=ae("CloudRain",u0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const h0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Yo=ae("Copy",h0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const f0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],m0=ae("Eye",f0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const p0=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],x0=ae("Flame",p0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const g0=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Nr=ae("GraduationCap",g0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Zo=ae("History",v0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const y0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],ut=ae("KeyRound",y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const w0=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],gr=ae("Layers",w0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const j0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kn=ae("LoaderCircle",j0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const N0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],ea=ae("LockOpen",N0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const b0=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],bs=ae("Lock",b0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],k0=ae("LogOut",_0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const S0=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],C0=ae("Megaphone",S0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const E0=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],T0=ae("Menu",E0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const P0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Vn=ae("Monitor",P0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const I0=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],Kd=ae("PenLine",I0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const R0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qn=ae("Plus",R0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L0=[["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"}]],br=ae("Radio",L0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const D0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],bt=ae("RefreshCw",D0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],M0=ae("RotateCcw",$0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const A0=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Cd=ae("School",A0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const z0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Cr=ae("Search",z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const O0=[["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"}]],_r=ae("Send",O0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const U0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Bl=ae("ShieldAlert",U0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const F0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_s=ae("ShieldCheck",F0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const B0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],H0=ae("Shield",B0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const W0=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Jd=ae("Sparkles",W0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const V0=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],da=ae("Trash2",V0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ks=ae("TriangleAlert",Q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q0=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Xd=ae("User",q0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const K0=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Hn=ae("Users",K0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J0=[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]],X0=ae("Vibrate",J0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G0=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Gd=ae("Volume2",G0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Y0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kr=ae("X",Y0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Z0=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ex=ae("ZoomIn",Z0);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],nx=ae("ZoomOut",tx),ha=()=>{const[a,l]=g.useState(Ot.getState());return g.useEffect(()=>Ot.onStateChange(l),[]),a==="Connected"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"云端已连接"]}):a==="Reconnecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400 animate-ping"}),"正在重连"]}):a==="Connecting"?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-sky-400 animate-pulse"}),"正在连接..."]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"连接断开"]})},sx=()=>{const{user:a,logout:l}=Sr(),o=qn(),[u,d]=g.useState(!1);if(g.useEffect(()=>{d(!1)},[o.pathname]),!a)return null;const f=m=>o.pathname===m;return n.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:n.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[n.jsxs("div",{className:"flex items-center justify-between h-16",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs(ge,{to:"/",className:"flex items-center space-x-2.5",children:[n.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:n.jsx(Ul,{className:"w-5 h-5 text-white"})}),n.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),n.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(_s,{className:"w-3.5 h-3.5 text-amber-400"}),n.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(Cd,{className:"w-3.5 h-3.5 text-sky-400"}),n.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),a.role==="Teacher"&&n.jsxs(n.Fragment,{children:[n.jsx(Nr,{className:"w-3.5 h-3.5 text-emerald-400"}),n.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]}),n.jsx("div",{className:"hidden sm:block",children:n.jsx(ha,{})})]}),n.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(ge,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(gr,{className:"w-4 h-4"}),"总览"]}),n.jsxs(ge,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Qt,{className:"w-4 h-4"}),"学校租户"]}),n.jsxs(ge,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Hn,{className:"w-4 h-4"}),"用户中枢"]}),n.jsxs(ge,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Vn,{className:"w-4 h-4"}),"设备集控"]}),n.jsxs(ge,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[n.jsx(br,{className:"w-4 h-4"}),"应急广播"]}),n.jsxs(ge,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),n.jsxs(ge,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Zo,{className:"w-4 h-4"}),"审计"]})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsxs(ge,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Cd,{className:"w-4 h-4"}),"学校概览"]}),n.jsxs(ge,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(gr,{className:"w-4 h-4"}),"班级管理"]}),n.jsxs(ge,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Hn,{className:"w-4 h-4"}),"教师账号"]}),n.jsxs(ge,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${f("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),a.role==="Teacher"&&n.jsxs(ge,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${f("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[n.jsx(Ul,{className:"w-4 h-4"}),"呼叫与回执"]})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200",children:a.name}),n.jsx("span",{className:"text-xs text-slate-500",children:a.tenantId==="global"?"全平台":a.tenantId})]}),n.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:n.jsx(k0,{className:"w-4 h-4"})}),n.jsx("button",{onClick:()=>d(!u),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:u?n.jsx(kr,{className:"w-5 h-5"}):n.jsx(T0,{className:"w-5 h-5"})})]})]}),u&&n.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[a.role==="SuperAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ge,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(gr,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),n.jsx(ge,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[n.jsx(ut,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),n.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),n.jsx(ge,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Qt,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),n.jsx(ge,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Hn,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),n.jsx(ge,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Vn,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),n.jsx(ge,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(br,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),n.jsx(ge,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Zo,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),a.role==="SchoolAdmin"&&n.jsxs(n.Fragment,{children:[n.jsx(ge,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),n.jsx(ge,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),n.jsx(ge,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),n.jsx(ge,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),a.role==="Teacher"&&n.jsx(ge,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${f("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},Qo=({allowedRoles:a,children:l})=>{const{user:o,isLoading:u}=Sr();return u?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):o?a.includes(o.role)?l?n.jsx(n.Fragment,{children:l}):n.jsx(Bd,{}):o.role==="SuperAdmin"?n.jsx(Vt,{to:"/admin",replace:!0}):o.role==="SchoolAdmin"?n.jsx(Vt,{to:"/school-admin",replace:!0}):n.jsx(Vt,{to:"/teacher",replace:!0}):n.jsx(Vt,{to:"/login",replace:!0})},rx=()=>{const[a,l]=g.useState(""),[o,u]=g.useState(""),[d,f]=g.useState(null),[m,y]=g.useState(!1),{login:p}=Sr(),j=Wl(),C=async(S=a,$=o)=>{f(null),y(!0);try{const D=await p(S,$);j(D==="SuperAdmin"?"/admin":D==="SchoolAdmin"?"/school-admin":"/teacher")}catch(D){f(D.message||"登录失败,请检查账号密码")}finally{y(!1)}};return n.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[n.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),n.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),n.jsx("div",{className:"w-full max-w-md relative z-10",children:n.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[n.jsxs("div",{className:"text-center mb-8",children:[n.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:n.jsx(Ul,{className:"w-8 h-8 text-white"})}),n.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),d&&n.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),d]}),n.jsxs("form",{onSubmit:S=>{S.preventDefault(),C()},className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsxs("div",{className:"relative",children:[n.jsx(Xd,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"text",value:a,onChange:S=>l(S.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),n.jsxs("div",{className:"relative",children:[n.jsx(bs,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),n.jsx("input",{type:"password",value:o,onChange:S=>u(S.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),n.jsx("button",{type:"submit",disabled:m,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:m?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在验证身份..."})]}):n.jsxs(n.Fragment,{children:[n.jsx("span",{children:"登 录"}),n.jsx(js,{className:"w-4 h-4"})]})})]})]})})]})},lx=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState([]),[m,y]=g.useState(null),[p,j]=g.useState([]),[C,S]=g.useState(!0),$=async()=>{try{const[D,H,F,I,q]=await Promise.all([oe.getAdminMetrics(),oe.getTenants(),oe.getAdminNotifications(6),oe.getSystemHealth().catch(()=>null),oe.getAuditLogs(6).catch(()=>[])]);l(D),u(H),f(F),I&&y(I),q&&j(q)}catch(D){console.error("Failed to load admin dashboard data",D)}finally{S(!1)}};return g.useEffect(()=>{$();const D=setInterval($,1e4);return()=>clearInterval(D)},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域云控超管总览"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时管控多校区实体、网格化终端生命周期、底层微内核与紧急调度通道"})]}),n.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 self-start sm:self-auto",children:[n.jsxs(ge,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold shadow-md shadow-amber-500/20 active:scale-95 transition-all",children:[n.jsx(ut,{className:"w-4 h-4"}),"生成设备激活码"]}),n.jsxs("div",{className:"flex items-center gap-2.5 px-3.5 py-2 rounded-xl bg-slate-900/80 border border-slate-800 text-xs",children:[m!=null&&m.databaseConnected?n.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),n.jsxs("span",{className:"font-medium",children:["PostgreSQL 正常 (",m.databaseLatencyMs.toFixed(1),"ms)"]})]}):n.jsxs("div",{className:"flex items-center gap-2 text-rose-400",children:[n.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500"}),n.jsx("span",{className:"font-medium",children:"数据库异常断开"})]}),n.jsx("span",{className:"text-slate-600",children:"|"}),n.jsxs("div",{className:"text-slate-400",children:[n.jsx("span",{children:"在线屏: "}),n.jsx("span",{className:"text-white font-mono",children:(m==null?void 0:m.onlineDevices)??(a==null?void 0:a.onlineDevices)??0})]}),n.jsx("span",{className:"text-slate-600",children:"|"}),n.jsx("div",{className:"text-slate-400 font-mono text-[11px]",children:n.jsxs("span",{children:["运行: ",(m==null?void 0:m.uptime)||"99.98%"]})})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"入驻学校 / 租户"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:n.jsx(Qt,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.totalTenants)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"所校区"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"总设备数量"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-sky-500/10 text-sky-400 flex items-center justify-center",children:n.jsx(Vn,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.totalDevices)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"台教室终端"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800 relative overflow-hidden",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"在线设备 (实时连通)"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(ua,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),C?"-":(a==null?void 0:a.onlineDevices)??0]}),n.jsxs("span",{className:"text-xs text-slate-400",children:["/ 离线 ",C?"-":(a==null?void 0:a.offlineDevices)??0]})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"今日呼叫通知"}),n.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500/10 text-amber-400 flex items-center justify-center",children:n.jsx(Ul,{className:"w-4 h-4"})})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:C?"-":(a==null?void 0:a.todayNotifications)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"次下发"})]})]})]}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"核心管控中枢入口"}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5 gap-4",children:[n.jsxs(ge,{to:"/admin/tenants",className:"glass-panel p-4 border-slate-800 hover:border-indigo-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 text-indigo-400 flex items-center justify-center",children:n.jsx(Qt,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-indigo-400",children:"学校租户"}),n.jsx("div",{className:"text-xs text-slate-400",children:"入驻、变更与冻结"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-indigo-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/users",className:"glass-panel p-4 border-slate-800 hover:border-sky-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-sky-500/10 text-sky-400 flex items-center justify-center",children:n.jsx(Hn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-sky-400",children:"用户中枢"}),n.jsx("div",{className:"text-xs text-slate-400",children:"跨校开户、改密与封禁"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-sky-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/devices",className:"glass-panel p-4 border-slate-800 hover:border-emerald-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:n.jsx(Vn,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-emerald-400",children:"设备集控"}),n.jsx("div",{className:"text-xs text-slate-400",children:"心跳、远程指令与清退"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-emerald-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/codes",className:"glass-panel p-4 border-slate-800 hover:border-amber-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group relative overflow-hidden",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(ut,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-sm font-semibold text-white group-hover:text-amber-400 flex items-center gap-1.5",children:["激活码大盘",n.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-amber-500/20 text-amber-300 font-normal",children:"快速生成"})]}),n.jsx("div",{className:"text-xs text-slate-400",children:"生成、绑定与废除"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-amber-400 transition-transform group-hover:translate-x-1"})]}),n.jsxs(ge,{to:"/admin/broadcast",className:"glass-panel p-4 border-slate-800 hover:border-rose-500/50 hover:bg-slate-800/30 transition-all flex items-center justify-between group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:n.jsx(br,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),n.jsx("div",{className:"text-xs text-slate-400",children:"全域群发与强置顶"})]})]}),n.jsx(js,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n.jsxs("div",{className:"lg:col-span-2 glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(Qt,{className:"w-4 h-4 text-indigo-400"}),"各校区终端在线统计"]}),n.jsx(ge,{to:"/admin/tenants",className:"text-xs text-indigo-400 hover:underline",children:"管理学校 →"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"pb-3 font-medium",children:"学校名称"}),n.jsx("th",{className:"pb-3 font-medium",children:"班级数"}),n.jsx("th",{className:"pb-3 font-medium",children:"设备数"}),n.jsx("th",{className:"pb-3 font-medium",children:"在线状态"}),n.jsx("th",{className:"pb-3 font-medium text-right",children:"在线率"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o.map(D=>{const H=D.deviceCount>0?Math.round(D.onlineCount/D.deviceCount*100):0;return n.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[n.jsxs("td",{className:"py-3 font-medium text-white flex items-center gap-2",children:[n.jsx("span",{children:D.name}),n.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",D.id,")"]})]}),n.jsx("td",{className:"py-3 text-slate-300",children:D.classroomCount}),n.jsx("td",{className:"py-3 text-slate-300",children:D.deviceCount}),n.jsx("td",{className:"py-3",children:n.jsxs("span",{className:"text-xs text-slate-300",children:[D.onlineCount," / ",D.deviceCount," 在线"]})}),n.jsx("td",{className:"py-3 text-right",children:n.jsxs("span",{className:`text-xs px-2 py-0.5 rounded-full font-medium ${H>=80?"bg-emerald-500/10 text-emerald-400 border border-emerald-500/30":H>0?"bg-amber-500/10 text-amber-400 border border-amber-500/30":"bg-slate-800 text-slate-400"}`,children:[H,"%"]})})]},D.id)})})]})})]}),n.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(_s,{className:"w-4 h-4 text-amber-400"}),"管理员关键操作审计"]}),n.jsx("span",{className:"text-xs text-slate-500",children:"不可篡改"})]}),n.jsx("div",{className:"space-y-3",children:p.length===0?n.jsx("div",{className:"text-center py-8 text-xs text-slate-500",children:"暂无审计记录"}):p.map(D=>n.jsxs("div",{className:"glass-card p-3 text-xs space-y-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"font-semibold text-indigo-300 font-mono",children:D.action}),n.jsx("span",{className:"text-[10px] text-slate-500",children:new Date(D.occurredAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-slate-300 text-[11px] line-clamp-1",children:D.details||D.targetId}),n.jsxs("div",{className:"flex items-center justify-between text-slate-500 text-[10px]",children:[n.jsxs("span",{children:["操作者: ",D.actorUsername]}),n.jsx("span",{className:"font-mono",children:D.targetType})]})]},D.id))})]})]})]})},ix=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,y]=g.useState(null),[p,j]=g.useState(null),[C,S]=g.useState(null),[$,D]=g.useState(""),[H,F]=g.useState(""),[I,q]=g.useState(!1),G=async()=>{try{const b=await oe.getAllDevices();l(b)}catch(b){console.error("Failed to load devices",b)}finally{u(!1)}};g.useEffect(()=>{G();const b=setInterval(G,5e3);return()=>clearInterval(b)},[]);const Z=async(b,ne,Ee)=>{j(`${b}_${ne}`),y(null);try{const je=await oe.sendDeviceCommand(b,ne,Ee);y({deviceId:b,message:je.message,success:!0}),G()}catch(je){y({deviceId:b,message:je.message||"远程指令下发失败",success:!1})}finally{j(null)}},te=b=>{S(b),D(b.hostname||""),F(b.classroomId||"")},O=async b=>{if(b.preventDefault(),!!C){q(!0);try{await oe.updateDevice(C.deviceId,{hostname:$.trim()||void 0,classroomId:H.trim()||void 0}),y({deviceId:C.deviceId,message:"设备信息更新成功",success:!0}),S(null),G()}catch(ne){y({deviceId:C.deviceId,message:ne.message||"更新设备失败",success:!1})}finally{q(!1)}}},K=async b=>{if(window.confirm(`高危操作确认:确定要注销并清退设备 [${b.deviceId} (${b.hostname||b.classroomName})] 吗? 清退后该设备将无法接入,需重新生成激活码绑定!`)){j(`decommission_${b.deviceId}`);try{await oe.decommissionDevice(b.deviceId),y({deviceId:b.deviceId,message:"设备已成功清退并注销",success:!0}),G()}catch(ne){y({deviceId:b.deviceId,message:ne.message||"清退设备失败",success:!1})}finally{j(null)}}},fe=b=>{if(!b)return"从无心跳";const ne=Math.floor((Date.now()-new Date(b).getTime())/1e3);return ne<10?"刚刚 (几秒前)":ne<60?`${ne} 秒前`:ne<3600?`${Math.floor(ne/60)} 分钟前`:`${Math.floor(ne/3600)} 小时前`},pe=a.filter(b=>b.tenantName.toLowerCase().includes(d.toLowerCase())||b.classroomName.toLowerCase().includes(d.toLowerCase())||b.deviceId.toLowerCase().includes(d.toLowerCase())||b.hostname&&b.hostname.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备集控中心"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"实时监控教室终端健康心跳与服务状态,支持在线秒级下发或离线指令入队补发、元数据变更与清退"})]}),n.jsxs("div",{className:"flex items-center gap-2 self-start sm:self-auto",children:[n.jsxs("button",{onClick:()=>{u(!0),G()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新状态"]}),n.jsxs(ge,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-600/25 transition-all",children:[n.jsx(ut,{className:"w-3.5 h-3.5 text-amber-300"}),"生成新设备激活码"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between transition-all ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsxs("span",{children:["[设备 ",m.deviceId,"] ",m.message]})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:b=>f(b.target.value),placeholder:"按学校、班级、设备编号或计算机名过滤...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"设备编号 / 主机名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"运行状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"心跳与 IP"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"版本"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"运维指令与管理"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:pe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在同步设备状态...":"暂无匹配的设备"})}):pe.map(b=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:b.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:b.tenantName})]}),n.jsxs("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:[n.jsx("div",{children:b.deviceId}),n.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[n.jsx(Vn,{className:"w-3 h-3 text-slate-500"}),n.jsx("span",{children:b.hostname||"Classroom-PC"})]})]}),n.jsx("td",{className:"py-4 px-4",children:b.isOnline?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),n.jsx("span",{children:"在线 (实时连通)"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-400",title:"指令将入队,上线时自动补发",children:[n.jsx(Kn,{className:"w-3 h-3 text-amber-500"}),n.jsx("span",{children:"离线 (支持离线入队)"})]})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:fe(b.lastHeartbeat)}),n.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:b.remoteIp||"127.0.0.1"})]}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono",children:["v",b.clientVersion||"2.1.0"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>Z(b.deviceId,"self_check"),disabled:p===`${b.deviceId}_self_check`,className:"px-2 py-1 rounded-lg bg-indigo-600/10 hover:bg-indigo-600/20 border border-indigo-500/30 text-indigo-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发远程自检指令 (若离线将入队补发)",children:[n.jsx(ua,{className:"w-3 h-3"}),"自检"]}),n.jsxs("button",{onClick:()=>Z(b.deviceId,"restart_client"),disabled:p===`${b.deviceId}_restart_client`,className:"px-2 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-400 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"远程重启前台 WPF Client 弹窗进程",children:[n.jsx(M0,{className:"w-3 h-3"}),"重启"]}),n.jsxs("button",{onClick:()=>Z(b.deviceId,"refresh_config"),disabled:p===`${b.deviceId}_refresh_config`,className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 text-xs font-medium transition-colors disabled:opacity-40 flex items-center gap-1",title:"下发配置刷新指令",children:[n.jsx(bt,{className:"w-3 h-3"}),"刷新"]}),n.jsx("button",{onClick:()=>te(b),className:"p-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-300 transition-colors",title:"重命名或调整班级绑定",children:n.jsx(Kd,{className:"w-3.5 h-3.5"})}),n.jsx("button",{onClick:()=>K(b),disabled:p===`decommission_${b.deviceId}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"清退并注销设备",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},b.deviceId))})]})})}),C&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"调整设备元数据"}),n.jsxs("p",{className:"text-xs text-slate-400",children:["设备唯一识别码: ",n.jsx("span",{className:"font-mono text-indigo-400",children:C.deviceId})]}),n.jsxs("form",{onSubmit:O,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"计算机名 / 主机标识 (Hostname)"}),n.jsx("input",{type:"text",value:$,onChange:b=>D(b.target.value),placeholder:"例如: LAB-BUILDING-201-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"所属班级编号 (Classroom ID)"}),n.jsx("input",{type:"text",value:H,onChange:b=>F(b.target.value),placeholder:"例如: cls_801",className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>S(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:I,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:I?"保存中...":"确认保存"})]})]})]})})]})},ox=()=>{const[a]=dp(),[l,o]=g.useState([]),[u,d]=g.useState([]),[f,m]=g.useState(!0),[y,p]=g.useState(null),[j,C]=g.useState(""),[S,$]=g.useState(""),[D,H]=g.useState(!1),[F,I]=g.useState(""),[q,G]=g.useState([]),[Z,te]=g.useState(!1),[O,K]=g.useState(""),[fe,pe]=g.useState(!1),[b,ne]=g.useState(""),[Ee,je]=g.useState(!1),[_e,Ue]=g.useState(null),$e=async()=>{try{const[T,N]=await Promise.all([oe.getAdminActivationCodes(),oe.getTenants()]);o(T),d(N),N.length>0&&!F&&I(N[0].id)}catch(T){console.error("Failed to load activation codes",T)}finally{m(!1)}};g.useEffect(()=>{$e()},[]),g.useEffect(()=>{const T=a.get("tenantId"),N=a.get("openGenerate")==="true";T&&($(T),I(T),N&&H(!0))},[a]),g.useEffect(()=>{F&&(te(!0),oe.getAdminClasses(F).then(T=>{G(T),T.length>0?(K(T[0].id),pe(!1)):(K(""),pe(!0))}).catch(T=>{console.warn("Could not load classes for tenant:",F,T),G([]),pe(!0)}).finally(()=>te(!1)))},[F]);const Te=T=>{navigator.clipboard.writeText(T),p(T),setTimeout(()=>p(null),2e3)},V=async T=>{T.preventDefault();const N=fe?b.trim():O.trim();if(!F||!N){alert("请选择学校及目标班级");return}je(!0);try{const L=await oe.generateAdminCode(F,N),ie=u.find(he=>he.id===F),ce=q.find(he=>he.id===N);Ue({code:L.code,schoolName:(ie==null?void 0:ie.name)||F,className:(ce==null?void 0:ce.displayName)||N}),H(!1),ne(""),$e()}catch(L){alert(L.message||"生成激活码失败")}finally{je(!1)}},k=async T=>{if(window.confirm(`确定要废弃/删除激活码 [${T}] 吗?废弃后将无法用于设备初始化绑定。`))try{await oe.deleteActivationCode(T),$e()}catch(N){alert(N.message||"删除激活码失败")}},W=l.filter(T=>{const N=!S||T.tenantId===S,L=T.code.toLowerCase().includes(j.toLowerCase())||T.classroomName.toLowerCase().includes(j.toLowerCase())||T.tenantName.toLowerCase().includes(j.toLowerCase());return N&&L});return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:n.jsx(ut,{className:"w-4 h-4"})}),n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{m(!0),$e()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${f?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{Ue(null),H(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[n.jsx(Qn,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),_e&&n.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[n.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:n.jsx(Jd,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),n.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",n.jsx("span",{className:"font-medium text-white",children:_e.schoolName})," / ",n.jsx("span",{className:"font-medium text-white",children:_e.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:_e.code}),n.jsx("button",{onClick:()=>Te(_e.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:y===_e.code?n.jsxs(n.Fragment,{children:[n.jsx(Fl,{className:"w-3.5 h-3.5"}),"已复制"]}):n.jsxs(n.Fragment,{children:[n.jsx(Yo,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:j,onChange:T=>C(T.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Qt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:S,onChange:T=>$(T.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsxs("option",{value:"",children:["全部学校 (",u.length,")"]}),u.map(T=>n.jsxs("option",{value:T.id,children:[T.name," (",T.id,")"]},T.id))]})]}),n.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",n.jsx("span",{className:"text-white font-medium",children:W.length})," 个激活码"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:W.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:n.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[n.jsx(ut,{className:"w-8 h-8 text-slate-600"}),n.jsx("div",{className:"text-sm font-medium",children:f?"正在读取激活码...":"暂无匹配的激活码"}),n.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),n.jsxs("button",{onClick:()=>H(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[n.jsx(Qn,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):W.map(T=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{children:T.code}),n.jsx("button",{onClick:()=>Te(T.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:y===T.code?n.jsx(Fl,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(Yo,{className:"w-3.5 h-3.5"})})]})}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:T.classroomName}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:T.tenantName})]}),n.jsx("td",{className:"py-4 px-4",children:T.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[n.jsx(Pt,{className:"w-3 h-3"}),"已激活绑定"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[n.jsx(Kn,{className:"w-3 h-3"}),"等待激活"]})}),n.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:T.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:T.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(T.expiresAt).toLocaleDateString()," ",new Date(T.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsx("button",{onClick:()=>Te(T.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:y===T.code?"已复制":"复制"}),n.jsx("button",{onClick:()=>k(T.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},T.code))})]})})}),D&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(ut,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),n.jsxs("form",{onSubmit:V,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),n.jsx("select",{value:F,onChange:T=>I(T.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:u.map(T=>n.jsxs("option",{value:T.id,children:[T.name," (",T.id,") ",T.isActive?"":"[已冻结]"]},T.id))})]}),n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),n.jsx("button",{type:"button",onClick:()=>pe(!fe),className:"text-[11px] text-amber-400 hover:underline",children:fe?"从班级列表选择":"手动输入班级ID"})]}),Z?n.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[n.jsx(bt,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):fe?n.jsx("input",{type:"text",value:b,onChange:T=>ne(T.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):q.length>0?n.jsx("select",{value:O,onChange:T=>K(T.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:q.map(T=>n.jsxs("option",{value:T.id,children:[T.displayName," (",T.id,")"]},T.id))}):n.jsxs("div",{className:"space-y-2",children:[n.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[n.jsx(Sn,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),n.jsx("input",{type:"text",value:b,onChange:T=>ne(T.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),n.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[n.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),n.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),n.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>H(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:Ee,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:Ee?"生成中...":"立即生成激活码"})]})]})]})})]})},ax=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),m=async()=>{try{const p=await oe.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{u(!1)}};g.useEffect(()=>{m();const p=setInterval(m,8e3);return()=>clearInterval(p)},[]);const y=a.filter(p=>p.className.toLowerCase().includes(d.toLowerCase())||p.senderName.toLowerCase().includes(d.toLowerCase())||p.message.toLowerCase().includes(d.toLowerCase())||p.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),n.jsxs("button",{onClick:()=>{u(!0),m()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新审计"]})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:p=>f(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:y.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在加载审计数据...":"暂无呼叫历史记录"})}):y.map(p=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:p.className}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),n.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[n.jsx("div",{className:"font-medium text-sm",children:p.message}),n.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),n.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),n.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Pt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[n.jsx(_r,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Kn,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),n.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?n.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):n.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},cx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(""),[m,y]=g.useState(null),[p,j]=g.useState(!1),[C,S]=g.useState({id:"",name:""}),[$,D]=g.useState(!1),[H,F]=g.useState(null),[I,q]=g.useState({name:"",isActive:!0}),[G,Z]=g.useState(!1),te=async()=>{try{const b=await oe.getTenants();l(b)}catch(b){console.error("Failed to load tenants",b)}finally{u(!1)}};g.useEffect(()=>{te()},[]);const O=async b=>{if(b.preventDefault(),!(!C.id.trim()||!C.name.trim())){D(!0);try{await oe.createTenant({id:C.id.trim(),name:C.name.trim()}),y({text:`学校 [${C.name}] 创建成功!`,success:!0}),j(!1),S({id:"",name:""}),te()}catch(ne){y({text:ne.message||"创建学校失败",success:!1})}finally{D(!1)}}},K=b=>{F(b),q({name:b.name,isActive:b.isActive})},fe=async b=>{if(b.preventDefault(),!(!H||!I.name.trim())){Z(!0);try{await oe.updateTenant(H.id,{name:I.name.trim(),isActive:I.isActive}),y({text:`学校 [${I.name}] 配置已更新`,success:!0}),F(null),te()}catch(ne){y({text:ne.message||"更新学校配置失败",success:!1})}finally{Z(!1)}}},pe=a.filter(b=>b.name.toLowerCase().includes(d.toLowerCase())||b.id.toLowerCase().includes(d.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{u(!0),te()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${o?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建学校"]})]})]}),m&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${m.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[m.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:m.text})]}),n.jsx("button",{onClick:()=>y(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400"}),n.jsx("input",{type:"text",value:d,onChange:b=>f(b.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),d&&n.jsx("button",{onClick:()=>f(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:pe.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:o?"正在读取租户列表...":"暂无匹配的学校租户"})}):pe.map(b=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4",children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:n.jsx(Qt,{className:"w-4 h-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:"font-semibold text-white",children:b.name}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:b.id})]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[n.jsx(Nr,{className:"w-3.5 h-3.5 text-indigo-400"}),n.jsxs("span",{children:[b.classroomCount," 个班级"]})]})}),n.jsx("td",{className:"py-4 px-4 text-xs",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("span",{className:"font-semibold text-emerald-400",children:[b.onlineCount," 在线"]}),n.jsx("span",{className:"text-slate-500",children:"/"}),n.jsxs("span",{className:"text-slate-400",children:[b.deviceCount," 总屏"]})]})}),n.jsx("td",{className:"py-4 px-4",children:b.isActive?n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[n.jsx(Pt,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"正常运营"})]}):n.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(Go,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"已停用冻结"})]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(b.createdAt).toLocaleDateString()}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsxs(ge,{to:`/admin/codes?tenantId=${b.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),"生成激活码"]}),n.jsxs("button",{onClick:()=>K(b),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[n.jsx(Kd,{className:"w-3 h-3"}),"编辑配置"]})]})})]},b.id))})]})})}),p&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),n.jsxs("form",{onSubmit:O,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:C.id,onChange:b=>S({...C,id:b.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:C.name,onChange:b=>S({...C,name:b.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>j(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:$,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:$?"正在创建...":"确认接入"})]})]})]})}),H&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",H.id]}),n.jsxs("form",{onSubmit:fe,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),n.jsx("input",{type:"text",required:!0,value:I.name,onChange:b=>q({...I,name:b.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),n.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!0,onChange:()=>q({...I,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),n.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[n.jsx("input",{type:"radio",name:"isActive",checked:I.isActive===!1,onChange:()=>q({...I,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),n.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>F(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:G,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:G?"保存中...":"保存更改"})]})]})]})})]})},ux=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(""),[p,j]=g.useState(""),[C,S]=g.useState(""),[$,D]=g.useState(null),[H,F]=g.useState(!1),[I,q]=g.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[G,Z]=g.useState(!1),[te,O]=g.useState(null),[K,fe]=g.useState(""),[pe,b]=g.useState(!1),[ne,Ee]=g.useState(null),je=async()=>{try{const[k,W]=await Promise.all([oe.getUsers(p||void 0,C||void 0),oe.getTenants()]);l(k),u(W)}catch(k){console.error("Failed to load user management data",k)}finally{f(!1)}};g.useEffect(()=>{je()},[p,C]);const _e=async k=>{var W;if(k.preventDefault(),!I.tenantId||!I.username||!I.password||!I.fullName){D({text:"请填写所有必填字段",success:!1});return}Z(!0);try{await oe.createUser(I),D({text:`用户 [${I.username}] 创建成功!`,success:!0}),F(!1),q({tenantId:((W=o[0])==null?void 0:W.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),je()}catch(T){D({text:T.message||"创建用户失败",success:!1})}finally{Z(!1)}},Ue=async k=>{if(k.preventDefault(),!(!te||!K.trim())){b(!0);try{await oe.resetPassword(te.id,K.trim()),D({text:`用户 [${te.username}] 的密码已重置成功`,success:!0}),O(null),fe("")}catch(W){D({text:W.message||"重置密码失败",success:!1})}finally{b(!1)}}},$e=async k=>{const W=!k.isLocked,T=W?`确定要锁定账号 [${k.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${k.username}] 吗?`;if(window.confirm(T)){Ee(`lock_${k.id}`);try{await oe.setUserLock(k.id,W),D({text:`用户 [${k.username}] 已成功${W?"锁定":"解锁"}`,success:!0}),je()}catch(N){D({text:N.message||"操作失败",success:!1})}finally{Ee(null)}}},Te=async k=>{if(k.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${k.username} (${k.fullName})] 吗?此操作不可逆!`)){Ee(`delete_${k.id}`);try{await oe.deleteUser(k.id),D({text:`用户 [${k.username}] 已被删除`,success:!0}),je()}catch(W){D({text:W.message||"删除用户失败",success:!1})}finally{Ee(null)}}},V=a.filter(k=>k.username.toLowerCase().includes(m.toLowerCase())||k.fullName.toLowerCase().includes(m.toLowerCase())||k.tenantName.toLowerCase().includes(m.toLowerCase()));return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsxs("button",{onClick:()=>{f(!0),je()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[n.jsx(bt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),n.jsxs("button",{onClick:()=>{o.length>0&&!I.tenantId&&q(k=>({...k,tenantId:o[0].id})),F(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建用户"]})]})]}),$&&n.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${$.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[$.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):n.jsx(Sn,{className:"w-5 h-5 text-rose-400 shrink-0"}),n.jsx("span",{children:$.text})]}),n.jsx("button",{onClick:()=>D(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),n.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[n.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[n.jsx(Cr,{className:"w-4 h-4 text-slate-400 shrink-0"}),n.jsx("input",{type:"text",value:m,onChange:k=>y(k.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Qt,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:p,onChange:k=>j(k.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部学校 (全网)"}),o.map(k=>n.jsxs("option",{value:k.id,children:[k.name," (",k.id,")"]},k.id))]})]}),n.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[n.jsx(Nr,{className:"w-4 h-4 text-slate-400"}),n.jsxs("select",{value:C,onChange:k=>S(k.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"全部角色"}),n.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),n.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:V.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:d?"正在同步用户中枢...":"暂无匹配的用户"})}):V.map(k=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-semibold text-white",children:k.fullName}),n.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:k.username})]}),n.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[n.jsx("div",{children:k.tenantName}),n.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:k.tenantId})]}),n.jsx("td",{className:"py-4 px-4",children:k.role==="SuperAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[n.jsx(Bl,{className:"w-3 h-3"}),"超级管理员"]}):k.role==="SchoolAdmin"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[n.jsx(Qt,{className:"w-3 h-3"}),"校区管理员"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[n.jsx(Nr,{className:"w-3 h-3"}),"授课老师"]})}),n.jsx("td",{className:"py-4 px-4",children:k.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[n.jsx(bs,{className:"w-3 h-3"}),"已锁定封禁"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[n.jsx(Pt,{className:"w-3 h-3"}),"正常"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:k.lastLoginAt?new Date(k.lastLoginAt).toLocaleString():"尚未登录"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[n.jsxs("button",{onClick:()=>O(k),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[n.jsx(ut,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),k.role!=="SuperAdmin"&&n.jsxs("button",{onClick:()=>$e(k),disabled:ne===`lock_${k.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${k.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:k.isLocked?"解除账号锁定":"锁定账号",children:[k.isLocked?n.jsx(ea,{className:"w-3 h-3"}):n.jsx(bs,{className:"w-3 h-3"}),k.isLocked?"解锁":"锁定"]}),k.role!=="SuperAdmin"&&n.jsx("button",{onClick:()=>Te(k),disabled:ne===`delete_${k.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:n.jsx(da,{className:"w-3.5 h-3.5"})})]})})]},k.id))})]})})}),H&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),n.jsxs("form",{onSubmit:_e,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),n.jsxs("select",{required:!0,value:I.tenantId,onChange:k=>q({...I,tenantId:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"-- 请选择学校 --"}),o.map(k=>n.jsxs("option",{value:k.id,children:[k.name," (",k.id,")"]},k.id))]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),n.jsxs("select",{value:I.role,onChange:k=>q({...I,role:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),n.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:I.username,onChange:k=>q({...I,username:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),n.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:I.fullName,onChange:k=>q({...I,fullName:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:I.password,onChange:k=>q({...I,password:k.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>F(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:G,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:G?"正在创建...":"确认开户"})]})]})]})}),te&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[n.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",te.username]}),n.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",te.tenantName,"] 的 [",te.fullName,"] 强行设置新密码。"]}),n.jsxs("form",{onSubmit:Ue,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),n.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:K,onChange:k=>fe(k.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[n.jsx("button",{type:"button",onClick:()=>{O(null),fe("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"submit",disabled:pe,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:pe?"重置中...":"确认重置"})]})]})]})})]})},dx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState([]),[m,y]=g.useState(!1),[p,j]=g.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[C,S]=g.useState(!1),[$,D]=g.useState(!1),[H,F]=g.useState(null),I=[{title:"⚠️ 消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速、有序撤离至操场,不要慌乱!",duration:60,shake:!0,voice:!0,icon:x0},{title:"⛈️ 恶劣雷雨大风避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁学生前往走廊与室外活动!",duration:45,shake:!0,voice:!0,icon:d0},{title:"📢 临时紧急集合通知",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学保持教室内安静自习。",duration:30,shake:!1,voice:!0,icon:Hn},{title:"🔔 全校临时作息调整",content:"因突发教学安排,今天下午放学时间调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:C0}],q=async()=>{try{const b=await oe.getTenants();l(b)}catch(b){console.error("Failed to load tenants",b)}finally{u(!1)}},G=async()=>{y(!0);try{const b=await oe.getAdminNotifications(15);f(b)}catch(b){console.error("Failed to load recent broadcasts",b)}finally{y(!1)}};g.useEffect(()=>{q(),G()},[]);const Z=b=>{j(ne=>({...ne,title:b.title,message:b.content,durationSeconds:b.duration,shake:b.shake,voice:b.voice}))},te=b=>{if(b.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}S(!0)},O=async()=>{D(!0);try{const b=await oe.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});F({dispatchedCount:b.dispatchedCount,targetSchools:b.targetSchools,message:b.message,success:!0,timestamp:new Date().toLocaleTimeString()}),S(!1),j(ne=>({...ne,message:""})),G()}catch(b){F({dispatchedCount:0,targetSchools:0,message:b.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),S(!1)}finally{D(!1)}},K=a.find(b=>b.id===p.tenantId),fe=K?K.classroomCount:a.reduce((b,ne)=>b+(ne.classroomCount||0),0),pe=K?K.deviceCount:a.reduce((b,ne)=>b+(ne.deviceCount||0),0);return n.jsxs("div",{className:"space-y-6",children:[n.jsx("div",{children:n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:n.jsx(br,{className:"w-5 h-5 animate-pulse"})}),n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全域紧急应急广播"}),n.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"超级管理员最高优先调度通道,覆盖全网多校区所有教室大屏终端,支持强置顶、TTS 语音播报与视效抖动"})]})]})}),H&&n.jsx("div",{className:`p-5 rounded-xl border transition-all animate-in fade-in slide-in-from-top-2 ${H.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:n.jsxs("div",{className:"flex items-start justify-between",children:[n.jsxs("div",{className:"flex items-start gap-3",children:[H.success?n.jsx(Pt,{className:"w-5 h-5 text-emerald-400 shrink-0 mt-0.5"}):n.jsx(ks,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),n.jsxs("div",{children:[n.jsx("h3",{className:"font-semibold text-sm",children:H.success?"全域紧急广播指令已成功下发":"广播下发遇到异常"}),n.jsx("p",{className:"text-xs text-slate-300 mt-1",children:H.message}),H.success&&n.jsxs("div",{className:"flex flex-wrap gap-4 mt-3 text-xs",children:[n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-200",children:["目标学校: ",n.jsx("strong",{className:"text-white",children:H.targetSchools})," 所"]}),n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-200",children:["投递教室班级: ",n.jsx("strong",{className:"text-emerald-400",children:H.dispatchedCount})," 间"]}),n.jsxs("span",{className:"px-2.5 py-1 rounded bg-black/30 border border-slate-700/60 text-slate-400 font-mono",children:["下发时间: ",H.timestamp]})]})]})]}),n.jsx("button",{onClick:()=>F(null),className:"text-slate-400 hover:text-white p-1 rounded-lg hover:bg-slate-800 transition-colors",children:n.jsx(kr,{className:"w-4 h-4"})})]})}),n.jsxs("div",{children:[n.jsx("h2",{className:"text-xs uppercase text-slate-400 font-semibold tracking-wider mb-3",children:"应急广播预设模板 (点击快速填装)"}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3",children:I.map((b,ne)=>{const Ee=b.icon;return n.jsxs("button",{type:"button",onClick:()=>Z(b),className:"glass-panel p-3.5 border-slate-800 text-left hover:border-indigo-500/50 hover:bg-slate-800/40 transition-all group",children:[n.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-indigo-400 mb-1",children:[n.jsx(Ee,{className:"w-4 h-4 text-indigo-400"}),n.jsx("span",{children:b.title})]}),n.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2",children:b.content})]},ne)})})]}),n.jsx("div",{className:"glass-panel p-6 border-slate-800",children:n.jsxs("form",{onSubmit:te,className:"space-y-5",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Qt,{className:"w-3.5 h-3.5 text-indigo-400"}),"目标广播范围"]}),n.jsxs("span",{className:"text-[11px] text-slate-400 font-normal",children:["预计覆盖 ",fe," 班级 / ",pe," 大屏"]})]}),n.jsxs("select",{value:p.tenantId||"",onChange:b=>j({...p,tenantId:b.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[n.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),a.map(b=>n.jsxs("option",{value:b.id,children:["仅该校: ",b.name," (",b.classroomCount," 班级, ",b.deviceCount," 大屏)"]},b.id))]})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[n.jsx(Bl,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),n.jsx("input",{type:"text",required:!0,value:p.title,onChange:b=>j({...p,title:b.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容 (将同步在所有大屏全屏高显并由 Windows TTS 朗读)"}),n.jsx("textarea",{required:!0,rows:4,value:p.message,onChange:b=>j({...p,message:b.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-900/80 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500 font-sans",placeholder:"请输入紧急通报具体事项,语言力求简明扼要..."})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2 border-t border-slate-800",children:[n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[n.jsx(Kn,{className:"w-3.5 h-3.5 text-indigo-400"}),"展示持续时长: ",p.durationSeconds," 秒"]}),n.jsx("input",{type:"range",min:10,max:300,step:5,value:p.durationSeconds,onChange:b=>j({...p,durationSeconds:parseInt(b.target.value,10)}),className:"w-full accent-indigo-500 cursor-pointer"}),n.jsxs("div",{className:"flex justify-between text-[11px] text-slate-500 mt-1",children:[n.jsx("span",{children:"10秒"}),n.jsx("span",{children:"60秒"}),n.jsx("span",{children:"5分钟"})]})]}),n.jsx("div",{className:"flex items-center",children:n.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[n.jsx("input",{type:"checkbox",checked:p.voice,onChange:b=>j({...p,voice:b.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[n.jsx(Gd,{className:"w-3.5 h-3.5 text-emerald-400"}),"TTS 语音朗读"]}),n.jsx("div",{className:"text-[11px] text-slate-500",children:"大屏端通过系统扬声器朗读"})]})]})}),n.jsx("div",{className:"flex items-center",children:n.jsxs("label",{className:"flex items-center gap-3 cursor-pointer p-3 rounded-xl bg-slate-900/60 border border-slate-800 hover:border-slate-700 w-full",children:[n.jsx("input",{type:"checkbox",checked:p.shake,onChange:b=>j({...p,shake:b.target.checked}),className:"w-4 h-4 rounded accent-indigo-500"}),n.jsxs("div",{children:[n.jsxs("div",{className:"text-xs font-semibold text-white flex items-center gap-1.5",children:[n.jsx(X0,{className:"w-3.5 h-3.5 text-rose-400"}),"窗口视效震颤"]}),n.jsx("div",{className:"text-[11px] text-slate-500",children:"高频强抖动提醒上课师生"})]})]})})]}),n.jsx("div",{className:"pt-2 flex justify-end",children:n.jsxs("button",{type:"submit",disabled:$||!p.message.trim(),className:"flex items-center gap-2 px-6 py-3 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-sm font-semibold shadow-xl shadow-rose-600/30 transition-all disabled:opacity-50",children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"下发全域紧急广播..."})]})})]})}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[n.jsx(Zo,{className:"w-4 h-4 text-indigo-400"}),"最近全网广播与呼叫调度记录"]}),n.jsx("button",{onClick:G,disabled:m,className:"text-xs text-indigo-400 hover:text-indigo-300 disabled:opacity-50",children:m?"刷新中...":"刷新记录"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-xs",children:[n.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),n.jsx("th",{className:"py-2.5 px-3",children:"调度类型"}),n.jsx("th",{className:"py-2.5 px-3",children:"目标班级/范围"}),n.jsx("th",{className:"py-2.5 px-3",children:"通知内容"}),n.jsx("th",{className:"py-2.5 px-3 text-right",children:"投递状态"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:m?"正在加载历史记录...":"暂无最近调度记录"})}):d.slice(0,8).map(b=>n.jsxs("tr",{className:"hover:bg-slate-800/20",children:[n.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(b.createdAt).toLocaleTimeString()}),n.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:b.priority==="Urgent"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-rose-500/10 text-rose-400 border border-rose-500/20 font-medium",children:[n.jsx(ks,{className:"w-3 h-3"}),"紧急通报"]}):n.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/20",children:"日常呼叫"})}),n.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:b.className||"全域广播"}),n.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:b.message}),n.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:b.status==="Cancelled"?n.jsx("span",{className:"text-slate-400",children:"已撤回关闭"}):b.status==="Acknowledged"?n.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):b.status==="Delivered"?n.jsx("span",{className:"text-sky-400",children:"大屏已接收"}):n.jsx("span",{className:"text-slate-400",children:"已发送"})})]},b.id))})]})})]}),C&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-lg w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-400",children:n.jsx(Bl,{className:"w-6 h-6 animate-pulse"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"全域极高优先级应急调度二次核验"}),n.jsx("p",{className:"text-xs text-rose-400/90 font-medium mt-0.5",children:"请谨慎操作:此指令将强制穿透终端并在全网大屏置顶展示"})]})]}),n.jsxs("div",{className:"space-y-3 mb-5",children:[n.jsxs("div",{className:"bg-slate-950/70 p-3.5 rounded-xl border border-slate-800/80 space-y-2 text-xs",children:[n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"目标受众范围:"}),n.jsx("span",{className:"text-white font-semibold",children:p.tenantId?`${(K==null?void 0:K.name)||p.tenantId} (${fe} 班级)`:`全域所有学校 (${a.length} 所学校, 约 ${fe} 班级)`})]}),n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"广播标题:"}),n.jsx("span",{className:"text-white font-medium",children:p.title})]}),n.jsxs("div",{className:"flex justify-between items-center text-slate-400",children:[n.jsx("span",{children:"展示时长与视效:"}),n.jsxs("span",{className:"text-slate-200",children:[p.durationSeconds," 秒 · ",p.voice?"TTS 语音":"无声音"," · ",p.shake?"视效抖动":"无抖动"]})]})]}),n.jsxs("div",{className:"bg-slate-950/70 p-3 rounded-xl border border-slate-800/80 text-xs",children:[n.jsx("span",{className:"text-slate-500 text-[11px] block mb-1",children:"播报正文内容:"}),n.jsx("p",{className:"text-slate-200 font-sans leading-relaxed",children:p.message})]}),n.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-[11px] text-rose-300/90 leading-relaxed",children:"⚠️ 确认后,云端将在毫秒内将此通报广播下发至所选教室大屏。终端如果处于上课或展示课件状态,也将直接浮现全屏红框强提醒!"})]}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:$,onClick:()=>S(!1),className:"px-4 py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"放弃下发"}),n.jsx("button",{type:"button",disabled:$,onClick:O,className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-lg shadow-rose-600/30 transition-all flex items-center gap-2 disabled:opacity-50",children:$?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在全域调度广播..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"确认立即全网广播"})]})})]})]})})]})},hx=()=>{const[a,l]=g.useState(null),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(null),p=async()=>{f(!0),y(null);try{const[j,C]=await Promise.all([oe.getSchoolOverview(),oe.getSchoolDevices()]);l(j),u(C)}catch(j){y((j==null?void 0:j.message)||"加载学校总览与设备数据失败")}finally{f(!1)}};return g.useEffect(()=>{p();const j=Ot.onDeviceStatusChanged(S=>{u($=>{const D=S.state===1||String(S.state).toLowerCase()==="online",H=$.map(I=>I.deviceId===S.deviceId?{...I,isOnline:D,lastHeartbeat:S.lastHeartbeat,clientVersion:S.agentVersion||I.clientVersion}:I),F=H.filter(I=>I.isOnline).length;return l(I=>I?{...I,onlineCount:F}:null),H})}),C=Ot.onHealthReportReceived(S=>{u($=>$.map(D=>D.deviceId===S.deviceId?{...D,healthStatus:S.overallStatus,lastHeartbeat:S.timestamp||new Date().toISOString()}:D))});return()=>{j(),C()}},[]),n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:(a==null?void 0:a.tenantName)||"本校管理后台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"管理本校班级配置、多媒体教室设备绑定与科任教师账号"})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:n.jsx(ha,{})})]}),m&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:p,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"已建班级"}),n.jsx(gr,{className:"w-4 h-4 text-sky-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.classCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"个教学班"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教室终端"}),n.jsx(Vn,{className:"w-4 h-4 text-indigo-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.deviceCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"台已安装"})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"实时在线"}),n.jsx(ua,{className:"w-4 h-4 text-emerald-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsxs("span",{className:"text-3xl font-bold text-emerald-400 tracking-tight flex items-center gap-2",children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 animate-ping inline-block"}),d?"-":(a==null?void 0:a.onlineCount)??0]}),n.jsxs("span",{className:"text-xs text-slate-400",children:["/ 总 ",d?"-":(a==null?void 0:a.deviceCount)??0]})]})]}),n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs font-medium text-slate-400",children:"教师账号"}),n.jsx(Hn,{className:"w-4 h-4 text-amber-400"})]}),n.jsxs("div",{className:"mt-3 flex items-baseline gap-2",children:[n.jsx("span",{className:"text-3xl font-bold text-white tracking-tight",children:d?"-":(a==null?void 0:a.teacherCount)??0}),n.jsx("span",{className:"text-xs text-slate-400",children:"位老师"})]})]})]}),n.jsxs("div",{className:"glass-panel p-6 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(Vn,{className:"w-4 h-4 text-sky-400"}),"本校各教室设备状态与健康体检"]}),n.jsx(ge,{to:"/school-admin/classes",className:"text-xs text-sky-400 hover:text-sky-300 font-medium flex items-center gap-1",children:"班级管理"})]}),n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"健康状态"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"最后心跳"}),n.jsx("th",{className:"py-3 px-4 font-medium",children:"版本"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-400",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin text-sky-400"}),n.jsx("span",{children:"正在同步设备列表..."})]})})}):o.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"text-center py-8 text-xs text-slate-500",children:"暂无已绑定的教室设备,请前往【本校激活码】生成激活码并在教室电脑安装"})}):o.map(j=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-3.5 px-4 font-medium text-white",children:j.classroomName}),n.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:j.deviceId}),n.jsx("td",{className:"py-3.5 px-4",children:j.isOnline?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"在线"]}):n.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线"})}),n.jsx("td",{className:"py-3.5 px-4",children:j.healthStatus==="Degraded"?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[n.jsx(Bl,{className:"w-3 h-3 text-amber-400"}),"亚健康"]}):j.healthStatus==="Healthy"||j.isOnline&&!j.healthStatus?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx(_s,{className:"w-3 h-3 text-emerald-400"}),"健康"]}):n.jsx("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"离线未检"})}),n.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400",children:j.lastHeartbeat?new Date(j.lastHeartbeat).toLocaleTimeString():"无"}),n.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",j.clientVersion||"2.1.0"]})]},j.deviceId))})]})})]})]})},fx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,y]=g.useState(""),[p,j]=g.useState(""),[C,S]=g.useState(""),[$,D]=g.useState(""),[H,F]=g.useState(!1),[I,q]=g.useState(null),G=async()=>{try{const O=await oe.getSchoolClasses();l(O)}catch(O){console.error("Failed to load classes",O)}finally{u(!1)}};g.useEffect(()=>{G()},[]);const Z=async O=>{if(O.preventDefault(),!(!m||!p)){F(!0);try{await oe.createSchoolClass({id:m,displayName:p,grade:C,roomNumber:$}),f(!1),y(""),j(""),S(""),D(""),G()}catch(K){alert(K.message||"创建班级失败")}finally{F(!1)}}},te=async O=>{try{const K=await oe.generateSchoolCode(O);q({classId:O,code:K.code})}catch(K){alert(K.message||"生成激活码失败")}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校班级管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"维护学校全部教学班级,并为各班级生成设备激活码"})]}),n.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"新建教学班"]})]}),I&&n.jsxs("div",{className:"p-4 rounded-xl bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsxs("span",{className:"font-semibold",children:["【",I.classId,"】激活码已生成:"]}),n.jsx("span",{className:"font-mono text-base font-bold text-white ml-2 bg-slate-900 px-2 py-1 rounded",children:I.code}),n.jsx("span",{className:"text-xs text-emerald-400/80 ml-3",children:"(请在教室电脑运行 ClassNotifySetup.exe 输入该激活码完成绑定)"})]}),n.jsx("button",{onClick:()=>{navigator.clipboard.writeText(I.code),alert("激活码已复制!")},className:"px-3 py-1 rounded-lg bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium",children:"复制激活码"})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级名称"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级编号 (ClassId)"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"年级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教室位置"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:a.map(O=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsx("td",{className:"py-4 px-4 font-semibold text-white",children:O.displayName}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:O.id}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:O.grade||"-"}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:O.roomNumber||"-"}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("button",{onClick:()=>te(O.id),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-sky-600/10 hover:bg-sky-600/20 border border-sky-500/30 text-sky-400 text-xs font-medium transition-colors",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),"生成安装激活码"]})})]},O.id))})]})})}),d&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(gr,{className:"w-5 h-5 text-sky-400"}),"新建教学班级"]}),n.jsxs("form",{onSubmit:Z,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级编号 (唯一识别码)"}),n.jsx("input",{type:"text",value:m,onChange:O=>y(O.target.value),placeholder:"如 cls_803 或 cls_grade7_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"班级显示名称"}),n.jsx("input",{type:"text",value:p,onChange:O=>j(O.target.value),placeholder:"如 八年级(3)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"年级 (可选)"}),n.jsx("input",{type:"text",value:C,onChange:O=>S(O.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教室位置 (可选)"}),n.jsx("input",{type:"text",value:$,onChange:O=>D(O.target.value),placeholder:"如 教学楼 303",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:H,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:H?"创建中...":"确认创建"})]})]})]})})]})},mx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(!0),[d,f]=g.useState(!1),[m,y]=g.useState(""),[p,j]=g.useState(""),[C,S]=g.useState(""),[$,D]=g.useState("Teacher"),[H,F]=g.useState(!1),[I,q]=g.useState(null),[G,Z]=g.useState(""),[te,O]=g.useState(!1),[K,fe]=g.useState(null),[pe,b]=g.useState(!1),[ne,Ee]=g.useState(null),je=(V,k)=>{Ee({type:V,text:k}),setTimeout(()=>{Ee(W=>(W==null?void 0:W.text)===k?null:W)},4e3)},_e=async()=>{try{const V=await oe.getSchoolTeachers();l(V)}catch(V){je("error",(V==null?void 0:V.message)||"加载教师列表失败")}finally{u(!1)}};g.useEffect(()=>{_e()},[]);const Ue=async V=>{if(V.preventDefault(),!(!m||!p||!C)){F(!0);try{await oe.createSchoolTeacher({username:m,password:p,fullName:C,role:$}),f(!1),y(""),j(""),S(""),je("success",`教师账号 ${C} 开设成功`),_e()}catch(k){alert(k.message||"创建教师账号失败")}finally{F(!1)}}},$e=async V=>{if(V.preventDefault(),!(!I||!G)){if(G.length<6){alert("新密码长度不能少于 6 位");return}O(!0);try{await oe.resetSchoolTeacherPassword(I.id,G),je("success",`已成功将教师 [${I.fullName}] 的密码重置`),q(null),Z("")}catch(k){alert(k.message||"重置密码失败")}finally{O(!1)}}},Te=async()=>{if(!K)return;b(!0);const V=!K.isLocked;try{await oe.setSchoolTeacherLock(K.id,V),je("success",`已成功${V?"停用":"启用"}教师 [${K.fullName}] 账号`),fe(null),_e()}catch(k){alert(k.message||"操作失败")}finally{b(!1)}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教师账号管理"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"为科任教师开设 ClassNotify 网页控制台与后续 Android 移动端登录权限"})]}),n.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"开设教师账号"]})]}),ne&&n.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${ne.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[ne.type==="success"?n.jsx(Pt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):n.jsx(ks,{className:"w-4 h-4 text-rose-400 shrink-0"}),n.jsx("span",{children:ne.text})]}),n.jsx("button",{onClick:()=>Ee(null),className:"text-slate-400 hover:text-white",children:n.jsx(kr,{className:"w-3.5 h-3.5"})})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"教师姓名"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"登录账号"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"权限角色"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:o?n.jsx("tr",{children:n.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[n.jsx(kn,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-sky-400"}),n.jsx("span",{children:"正在加载教师列表..."})]})}):a.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:"暂未开设任何教师账号,请点击右上角按钮添加"})}):a.map(V=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4 font-semibold text-white flex items-center gap-2",children:[V.role==="SchoolAdmin"?n.jsx(H0,{className:"w-4 h-4 text-sky-400"}):n.jsx(Nr,{className:"w-4 h-4 text-emerald-400"}),n.jsx("span",{children:V.fullName})]}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-300",children:V.username}),n.jsx("td",{className:"py-4 px-4 text-xs",children:V.role==="SchoolAdmin"?n.jsx("span",{className:"px-2 py-0.5 rounded bg-sky-500/10 text-sky-400 border border-sky-500/30",children:"学校管理员"}):n.jsx("span",{className:"px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:"任课教师"})}),n.jsx("td",{className:"py-4 px-4",children:V.isLocked?n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-rose-500/10 text-rose-400 border border-rose-500/30 text-xs font-medium",children:[n.jsx(bs,{className:"w-3 h-3"}),"已停用"]}):n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-emerald-500/10 text-emerald-400 border border-emerald-500/30 text-xs font-medium",children:[n.jsx(Pt,{className:"w-3 h-3"}),"正常可用"]})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400 font-mono",children:V.lastLoginAt?new Date(V.lastLoginAt).toLocaleString():n.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[n.jsx(Kn,{className:"w-3 h-3"}),"从未登录"]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsxs("button",{type:"button",onClick:()=>{q(V),Z("")},className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-slate-800 hover:bg-slate-700 text-sky-400 hover:text-sky-300 text-xs font-medium border border-slate-700 transition-colors",title:"重置登录密码",children:[n.jsx(ut,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"重置密码"})]}),n.jsx("button",{type:"button",onClick:()=>fe(V),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium border transition-colors ${V.isLocked?"bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 border-emerald-500/30":"bg-rose-500/10 hover:bg-rose-500/20 text-rose-400 border-rose-500/30"}`,title:V.isLocked?"恢复账号":"停用账号",children:V.isLocked?n.jsxs(n.Fragment,{children:[n.jsx(ea,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"恢复"})]}):n.jsxs(n.Fragment,{children:[n.jsx(bs,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"停用"})]})})]})})]},V.id))})]})})}),d&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(Hn,{className:"w-5 h-5 text-sky-400"}),"开设新账号"]}),n.jsxs("form",{onSubmit:Ue,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"教师真实姓名"}),n.jsx("input",{type:"text",value:C,onChange:V=>S(V.target.value),placeholder:"如 王老师 / 李明",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),n.jsx("input",{type:"text",value:m,onChange:V=>y(V.target.value),placeholder:"如 teacher_wang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录初始密码"}),n.jsx("input",{type:"password",value:p,onChange:V=>j(V.target.value),placeholder:"••••••••",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"角色权限"}),n.jsxs("select",{value:$,onChange:V=>D(V.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",children:[n.jsx("option",{value:"Teacher",children:"普通科任教师 (仅呼叫与回执)"}),n.jsx("option",{value:"SchoolAdmin",children:"学校管理员 (可管理班级与账号)"})]})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>f(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:H,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:H?"开设计算中...":"确认开通"})]})]})]})}),I&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-sky-500/10 border border-sky-500/20 text-sky-400",children:n.jsx(ut,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"重置教师密码"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["教师: ",I.fullName," (",I.username,")"]})]})]}),n.jsxs("form",{onSubmit:$e,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"请输入新密码 (不少于 6 位)"}),n.jsx("input",{type:"text",autoFocus:!0,required:!0,minLength:6,value:G,onChange:V=>Z(V.target.value),placeholder:"例如: Teacher@2026",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm font-mono focus:ring-2 focus:ring-sky-500"}),n.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"密码重置后请告知教师,教师下一次在网页端或移动端即可使用此新密码登录。"})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",disabled:te,onClick:()=>q(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:te||G.length<6,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50 flex items-center gap-1.5",children:te?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在重置..."})]}):n.jsx("span",{children:"确认重置密码"})})]})]})]})}),K&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:`p-2.5 rounded-xl border ${K.isLocked?"bg-emerald-500/10 border-emerald-500/20 text-emerald-400":"bg-rose-500/10 border-rose-500/20 text-rose-400"}`,children:K.isLocked?n.jsx(ea,{className:"w-5 h-5"}):n.jsx(bs,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:K.isLocked?"恢复启用教师账号?":"停用该教师账号?"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["教师: ",K.fullName," (",K.username,")"]})]})]}),n.jsx("p",{className:"text-xs text-slate-300 leading-relaxed mb-5",children:K.isLocked?"恢复启用后,该教师可重新登录控制台并向关联班级发送上课通知。":"停用后,该教师将无法登录网页控制台与 Android 移动端,且无法继续发送呼叫通知。教师的历史发送记录与回执将完整保留。"}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:pe,onClick:()=>fe(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"button",disabled:pe,onClick:Te,className:`px-4 py-2 rounded-xl text-white text-xs font-semibold shadow-lg transition-all flex items-center gap-1.5 disabled:opacity-50 ${K.isLocked?"bg-emerald-600 hover:bg-emerald-500 shadow-emerald-600/25":"bg-rose-600 hover:bg-rose-500 shadow-rose-600/25"}`,children:pe?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"处理中..."})]}):n.jsx("span",{children:K.isLocked?"确认恢复启用":"确认停用账号"})})]})]})})]})},px=()=>{const[a,l]=g.useState([]),[o,u]=g.useState([]),[d,f]=g.useState(!0),[m,y]=g.useState(null),[p,j]=g.useState(null),[C,S]=g.useState(!1),[$,D]=g.useState(""),[H,F]=g.useState(!1),[I,q]=g.useState(null),G=async()=>{f(!0),y(null);try{const[O,K]=await Promise.all([oe.getSchoolCodes(),oe.getSchoolClasses()]);l(O),u(K),K.length>0&&!$&&D(K[0].id)}catch(O){y((O==null?void 0:O.message)||"加载本校激活码数据失败")}finally{f(!1)}};g.useEffect(()=>{G()},[]);const Z=O=>{navigator.clipboard.writeText(O),j(O),setTimeout(()=>j(null),2e3)},te=async O=>{if(O.preventDefault(),!!$){F(!0),q(null);try{await oe.generateSchoolCode($),S(!1),G()}catch(K){q((K==null?void 0:K.message)||"生成激活码失败")}finally{F(!1)}}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"本校教室终端激活码"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理本校教室电脑安装所需的 8 位一次性硬件绑定激活码"})]}),n.jsxs("button",{onClick:()=>{q(null),S(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium transition-colors shadow-lg shadow-sky-600/25 self-start sm:self-auto",children:[n.jsx(Qn,{className:"w-4 h-4"}),"生成新激活码"]})]}),m&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:m})]}),n.jsxs("button",{onClick:G,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:n.jsx("div",{className:"overflow-x-auto",children:n.jsxs("table",{className:"w-full text-left text-sm",children:[n.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:n.jsxs("tr",{children:[n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定班级"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),n.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),n.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),n.jsx("tbody",{className:"divide-y divide-slate-800/50",children:d?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-400",children:n.jsxs("div",{className:"inline-flex items-center gap-2",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin text-sky-400"}),n.jsx("span",{children:"正在加载本校激活码..."})]})})}):a.length===0?n.jsx("tr",{children:n.jsx("td",{colSpan:6,className:"py-12 text-center text-slate-500",children:"本校暂无生成的激活码,请点击右上角生成"})}):a.map(O=>n.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[n.jsxs("td",{className:"py-4 px-4 font-mono font-bold text-sky-400 text-base flex items-center gap-2",children:[n.jsx("span",{children:O.code}),n.jsx("button",{onClick:()=>Z(O.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:p===O.code?n.jsx(Fl,{className:"w-3.5 h-3.5 text-emerald-400"}):n.jsx(Yo,{className:"w-3.5 h-3.5"})})]}),n.jsxs("td",{className:"py-4 px-4",children:[n.jsx("div",{className:"font-medium text-white",children:O.classroomName||O.classroomId}),n.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:O.classroomId})]}),n.jsx("td",{className:"py-4 px-4",children:O.isUsed?n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:[n.jsx(Pt,{className:"w-3.5 h-3.5 text-slate-500"}),"已激活使用"]}):n.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[n.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"待激活 (可用)"]})}),n.jsx("td",{className:"py-4 px-4 font-mono text-xs text-slate-400",children:O.usedByDeviceId?n.jsx("span",{className:"text-slate-200",children:O.usedByDeviceId}):n.jsx("span",{className:"text-slate-600",children:"-"})}),n.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(Kn,{className:"w-3.5 h-3.5 text-slate-500"}),n.jsxs("span",{children:[new Date(O.expiresAt).toLocaleDateString()," 到期"]})]})}),n.jsx("td",{className:"py-4 px-4 text-right",children:n.jsx("button",{onClick:()=>Z(O.code),className:"text-xs text-slate-400 hover:text-white underline underline-offset-4",children:p===O.code?"已复制":"复制用于安装"})})]},O.code))})]})})}),C&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800",children:[n.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[n.jsx(ut,{className:"w-5 h-5 text-sky-400"}),"生成本校班级设备激活码"]}),I&&n.jsx("div",{className:"mb-4 p-3 rounded-lg bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs",children:I}),n.jsxs("form",{onSubmit:te,className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),o.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-2 bg-amber-500/10 rounded-lg border border-amber-500/30",children:"本校暂无班级,请先前往“班级管理”创建班级。"}):n.jsx("select",{value:$,onChange:O=>D(O.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-sky-500",required:!0,children:o.map(O=>n.jsxs("option",{value:O.id,children:[O.displayName," (",O.id,")"]},O.id))})]}),n.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[n.jsx("button",{type:"button",onClick:()=>S(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),n.jsx("button",{type:"submit",disabled:H||o.length===0,className:"px-4 py-2 rounded-xl bg-sky-600 hover:bg-sky-500 text-white text-xs font-medium disabled:opacity-50",children:H?"生成中...":"立即生成"})]})]})]})})]})};function Ed(a){if(typeof a=="string")switch(a.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(a){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const xx=()=>{const[a,l]=g.useState([]),[o,u]=g.useState(""),[d,f]=g.useState(""),[m,y]=g.useState(""),[p,j]=g.useState(!0),[C,S]=g.useState(!0),[$,D]=g.useState(!1),[H,F]=g.useState(15),[I,q]=g.useState(!1),[G,Z]=g.useState([]),[te,O]=g.useState(!0),[K,fe]=g.useState(null),[pe,b]=g.useState(null),[ne,Ee]=g.useState(null),[je,_e]=g.useState(!1),[Ue,$e]=g.useState(null),[Te,V]=g.useState(1),k=async(U,de,ot,be)=>{b({notificationId:U,deviceId:de,className:ot,capturedAt:be}),_e(!0),$e(null),Ee(null),V(1);try{const We=await oe.getVisualReceiptBlob(U,de),Le=URL.createObjectURL(We);Ee(Le)}catch(We){$e((We==null?void 0:We.message)||"获取视觉核验图像失败")}finally{_e(!1)}},W=()=>{ne&&URL.revokeObjectURL(ne),Ee(null),b(null),$e(null),V(1)},[T,N]=g.useState(null),[L,ie]=g.useState(!1),ce=async()=>{if(T){ie(!0);try{await oe.cancelNotification(T.id),Z(U=>U.map(de=>de.id===T.id?{...de,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:de)),N(null)}catch(U){alert(U.message||"提前关闭通知失败")}finally{ie(!1)}}},he=na.useRef(a);g.useEffect(()=>{he.current=a},[a]);const ve=["请带各科作业本到办公室","马上到操场集合整队","课代表请到教研室领试卷","午休时间请教室内保持安静","请班长负责维护自习纪律","放学后值日生留下来打扫卫生"],ke=async()=>{O(!0),fe(null);try{const U=await oe.getTeacherClasses();l(U),U.length>0&&!o&&u(U[0].id);const de=await oe.getTeacherHistory(void 0,20);Z(de.map(ot=>({...ot,status:Ed(ot.status)})))}catch(U){fe((U==null?void 0:U.message)||"加载班级或历史记录失败")}finally{O(!1)}};g.useEffect(()=>{ke()},[]),g.useEffect(()=>{const U=Ot.onAckReceiptReceived(be=>{Z(We=>We.map(Le=>{if(Le.id===be.messageId){const Jn=Ed(be.status);return{...Le,status:Jn,confirmedAt:be.timestamp||Le.confirmedAt||new Date().toISOString()}}return Le}))}),de=Ot.onNewNotificationBroadcast(be=>{Z(We=>{if(We.some(nn=>nn.id===be.id))return We;const Le=he.current.find(nn=>nn.id===be.classId);return[{id:be.id,tenantId:be.tenantId,classId:be.classId,className:(Le==null?void 0:Le.displayName)||be.classId,senderName:"教师",message:be.message,priority:be.type===2?"Urgent":"Normal",createdAt:be.createdAt,status:"Sent"},...We]})}),ot=Ot.onNotificationCancelled(be=>{Z(We=>We.map(Le=>Le.id===be?{...Le,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Le))});return()=>{U(),de(),ot()}},[]);const Ne=async U=>{if(U.preventDefault(),!(!o||!m.trim())){q(!0);try{const de=a.find(Le=>Le.id===o),ot=d.trim()?`🔔 老师呼叫: ${d.trim()}`:`📢 ${(de==null?void 0:de.displayName)||"班级"}通知`,be=await oe.sendNotification({classId:o,studentName:d.trim()||void 0,title:ot,message:m.trim(),type:$?2:0,voice:p,shake:C,durationSeconds:H}),We=m.trim();y(""),f(""),be!=null&&be.messageId&&Z(Le=>Le.some(nn=>nn.id===be.messageId)?Le:[{id:be.messageId,tenantId:"",classId:o,className:(de==null?void 0:de.displayName)||o,senderName:"教师",message:We,priority:$?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...Le])}catch(de){alert(de.message||"呼叫发送失败")}finally{q(!1)}}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"教师呼叫工作台"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"向指定教室大屏下发即时点呼与通知,支持语音朗读(TTS)与学生回执确认"})]}),n.jsx("div",{className:"flex items-center gap-3 self-start sm:self-auto",children:n.jsx(ha,{})})]}),K&&n.jsxs("div",{className:"glass-panel p-4 border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[n.jsx(Sn,{className:"w-4 h-4 text-rose-400"}),n.jsx("span",{children:K})]}),n.jsxs("button",{onClick:ke,className:"flex items-center gap-1 text-xs px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[n.jsx(bt,{className:"w-3.5 h-3.5"}),"重新加载"]})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[n.jsx("div",{className:"lg:col-span-7 space-y-5",children:n.jsx("div",{className:"glass-panel p-6 border-slate-800",children:n.jsxs("form",{onSubmit:Ne,className:"space-y-5",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-2",children:"目标授课班级"}),a.length===0?n.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/30",children:"未查询到可用班级,请联系学校管理员添加班级"}):n.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:a.map(U=>{const de=o===U.id;return n.jsxs("button",{type:"button",onClick:()=>u(U.id),className:`p-3 rounded-xl border text-left transition-all relative ${de?"bg-indigo-600/20 border-indigo-500/50 text-white shadow-lg shadow-indigo-600/10":"bg-slate-900/60 border-slate-800 text-slate-400 hover:text-slate-200 hover:bg-slate-800/50"}`,children:[n.jsx("div",{className:"font-semibold text-sm truncate",children:U.displayName}),n.jsx("div",{className:"text-[11px] text-slate-500 truncate mt-0.5",children:U.roomNumber||U.id}),de&&n.jsx(Fl,{className:"w-4 h-4 text-indigo-400 absolute top-3 right-3"})]},U.id)})})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsxs("span",{className:"flex items-center gap-1.5",children:[n.jsx(Xd,{className:"w-3.5 h-3.5 text-slate-400"}),"指定学生姓名(可选,点呼场景使用)"]}),n.jsx("span",{className:"text-[11px] text-slate-500",children:"留空则为全班广播"})]}),n.jsx("input",{type:"text",value:d,onChange:U=>f(U.target.value),placeholder:"如:张三、李四(支持单人或多人)",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600"})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[n.jsx("span",{children:"呼叫通知内容"}),n.jsxs("span",{className:"text-[11px] text-slate-500",children:[m.length,"/200 字"]})]}),n.jsx("textarea",{rows:4,value:m,onChange:U=>y(U.target.value.slice(0,200)),placeholder:"请输入需要大屏弹窗展示并朗读的内容...",className:"w-full px-3.5 py-2.5 rounded-xl bg-slate-950 border border-slate-700/80 text-white text-sm focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all placeholder:text-slate-600",required:!0})]}),n.jsxs("div",{children:[n.jsxs("label",{className:"block text-xs font-medium text-slate-400 mb-2 flex items-center gap-1.5",children:[n.jsx(Jd,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷点呼短语推荐"]}),n.jsx("div",{className:"flex flex-wrap gap-1.5",children:ve.map((U,de)=>n.jsx("button",{type:"button",onClick:()=>y(U),className:"px-2.5 py-1 rounded-lg bg-slate-900 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-colors",children:U},de))})]}),n.jsxs("div",{className:"pt-2 border-t border-slate-800/80 grid grid-cols-1 sm:grid-cols-3 gap-3",children:[n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:p,onChange:U=>j(U.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[n.jsx(Gd,{className:"w-3.5 h-3.5 text-indigo-400"}),"TTS 语音朗读"]}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"教室音响朗读2遍"})]})]}),n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:C,onChange:U=>S(U.target.checked),className:"rounded bg-slate-950 border-slate-700 text-indigo-600 focus:ring-indigo-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsx("span",{className:"font-medium text-slate-200 block",children:"窗口抖动震颤"}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"强制吸引注意力"})]})]}),n.jsxs("label",{className:"flex items-center gap-2.5 p-3 rounded-xl bg-slate-900/60 border border-slate-800 cursor-pointer hover:bg-slate-800/40 transition-colors",children:[n.jsx("input",{type:"checkbox",checked:$,onChange:U=>D(U.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600 focus:ring-rose-500"}),n.jsxs("div",{className:"text-xs",children:[n.jsxs("span",{className:"font-medium text-slate-200 block flex items-center gap-1",children:[n.jsx(ks,{className:"w-3.5 h-3.5 text-rose-400"}),"紧急通知"]}),n.jsx("span",{className:"text-[10px] text-slate-500",children:"红色全屏强提醒"})]})]})]}),n.jsx("button",{type:"submit",disabled:I||!o||!m.trim(),className:"w-full py-3.5 rounded-xl bg-gradient-to-r from-indigo-600 to-violet-600 hover:from-indigo-500 hover:to-violet-500 text-white font-semibold text-sm shadow-lg shadow-indigo-600/25 flex items-center justify-center gap-2 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:I?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-4 h-4 animate-spin"}),n.jsx("span",{children:"正在秒级投递至教室大屏..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(_r,{className:"w-4 h-4"}),n.jsx("span",{children:"立即下发到教室大屏"})]})})]})})}),n.jsx("div",{className:"lg:col-span-5 space-y-4",children:n.jsxs("div",{className:"glass-panel p-5 border-slate-800",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h2",{className:"text-base font-semibold text-white flex items-center gap-2",children:[n.jsx(br,{className:"w-4 h-4 text-emerald-400"}),"实时回执动态 (ACK)"]}),n.jsx("span",{className:"text-xs text-slate-500",children:"SignalR 实时推送"})]}),n.jsx("div",{className:"space-y-3 max-h-[580px] overflow-y-auto pr-1",children:te&&G.length===0?n.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[n.jsx(bt,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-indigo-400"}),n.jsx("span",{children:"正在加载历史动态..."})]}):G.length===0?n.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:"暂无发送记录,在左侧选择班级即可下发第一条呼叫"}):G.map(U=>n.jsxs("div",{className:"glass-card p-4 space-y-2.5",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"font-semibold text-sm text-white",children:U.className}),n.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(U.createdAt).toLocaleTimeString()})]}),n.jsx("div",{className:"text-xs text-slate-300 bg-slate-950/50 p-2.5 rounded-lg border border-slate-800/80",children:U.message}),n.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between text-xs",children:[n.jsx("span",{className:"text-slate-400 text-[11px]",children:"回执阶段:"}),U.status==="Cancelled"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-slate-400 font-medium",children:[n.jsx(Go,{className:"w-3.5 h-3.5 text-slate-400"}),n.jsx("span",{children:"已提前关闭撤回"})]}),U.status==="Acknowledged"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(Pt,{className:"w-4 h-4 text-emerald-400"}),n.jsxs("span",{children:["学生已点击确认 (",U.confirmedAt?new Date(U.confirmedAt).toLocaleTimeString():"刚刚",")"]})]}),U.status==="Delivered"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-sky-400 font-medium",children:[n.jsx(_r,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"教室大屏已接收"})]}),U.status==="Sent"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-amber-400",children:[n.jsx(Kn,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"云端投递中..."})]}),U.status==="Timeout"&&n.jsx("div",{className:"text-slate-400 text-xs",children:n.jsx("span",{children:"超时已自动关闭"})}),U.status==="Failed"&&n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-rose-400 font-medium",children:[n.jsx(ks,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"投递失败"})]})]}),(U.status==="Sent"||U.status==="Delivered")&&!U.isCancelled&&n.jsx("div",{className:"flex items-center justify-end pt-1",children:n.jsxs("button",{type:"button",onClick:()=>N(U),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded bg-rose-500/10 hover:bg-rose-500/20 text-rose-300 text-[11px] font-medium transition-colors border border-rose-500/30",title:"在大屏端停止TTS并关闭弹窗",children:[n.jsx(kr,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"提前关闭 / 撤回"})]})}),U.receipts&&U.receipts.length>0&&(()=>{const de=U.receipts.find(be=>be.visualReceiptState==="Available"),ot=U.receipts.find(be=>be.visualReceiptState==="Expired");return de?n.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-slate-800/40 text-xs",children:[n.jsxs("div",{className:"inline-flex items-center gap-1.5 text-emerald-400 font-medium",children:[n.jsx(_s,{className:"w-4 h-4 text-emerald-400"}),n.jsx("span",{children:"视觉核验:已完成"})]}),n.jsxs("button",{type:"button",onClick:()=>k(U.id,de.deviceId,U.className,de.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-indigo-600/30 hover:bg-indigo-600/50 text-indigo-300 text-[11px] font-medium transition-colors border border-indigo-500/30",children:[n.jsx(m0,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"查看大屏实际展示"})]})]}):ot?n.jsx("div",{className:"flex items-center justify-between pt-2 border-t border-slate-800/40 text-[11px] text-slate-500",children:n.jsxs("div",{className:"inline-flex items-center gap-1",children:[n.jsx(_s,{className:"w-3.5 h-3.5 text-slate-500"}),n.jsx("span",{children:"视觉核验:已按 24h 策略自动销毁"})]})}):null})()]},U.id))})]})})]}),pe&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel w-full max-w-3xl bg-slate-900 border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[n.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(_s,{className:"w-5 h-5 text-emerald-400"}),n.jsxs("h3",{className:"font-semibold text-white text-base",children:[pe.className," · 通知视觉核验"]})]}),n.jsx("button",{type:"button",onClick:W,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:n.jsx(kr,{className:"w-5 h-5"})})]}),n.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[je&&n.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[n.jsx(kn,{className:"w-8 h-8 animate-spin text-indigo-400"}),n.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),Ue&&n.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[n.jsx(Sn,{className:"w-8 h-8 text-rose-400"}),n.jsx("span",{children:Ue})]}),ne&&!je&&n.jsxs("div",{className:"flex flex-col items-center w-full",children:[n.jsx("div",{className:"overflow-auto max-h-[60vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:n.jsx("img",{src:ne,alt:"教室大屏实际展示画面",style:{transform:`scale(${Te})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[55vh]"})}),n.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[n.jsx("button",{type:"button",onClick:()=>V(U=>Math.max(.5,+(U-.25).toFixed(2))),disabled:Te<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:n.jsx(nx,{className:"w-4 h-4"})}),n.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(Te*100),"%"]}),n.jsx("button",{type:"button",onClick:()=>V(U=>Math.min(3,+(U+.25).toFixed(2))),disabled:Te>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:n.jsx(ex,{className:"w-4 h-4"})}),n.jsx("button",{type:"button",onClick:()=>V(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),n.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[n.jsx("span",{children:pe.capturedAt?`捕获时间: ${new Date(pe.capturedAt).toLocaleString()}`:""}),n.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),T&&n.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:n.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl animate-in fade-in zoom-in-95 duration-150",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-400",children:n.jsx(ks,{className:"w-5 h-5"})}),n.jsxs("div",{children:[n.jsx("h3",{className:"text-base font-bold text-white",children:"提前关闭并撤回通知?"}),n.jsxs("p",{className:"text-xs text-slate-400 mt-0.5",children:["目标班级: ",T.className]})]})]}),n.jsxs("div",{className:"bg-slate-950/70 p-3.5 rounded-xl border border-slate-800/80 mb-4 text-xs text-slate-300",children:[n.jsx("div",{className:"text-slate-400 text-[11px] mb-1",children:"通知内容:"}),n.jsx("p",{className:"line-clamp-3",children:T.message})]}),n.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-[11px] text-amber-300/90 mb-5 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏发出关闭指令,大屏将",n.jsx("strong",{children:"立即停止 TTS 语音播报"}),"并",n.jsx("strong",{children:"收起弹窗窗口"}),"。"]}),n.jsxs("div",{className:"flex justify-end gap-2.5",children:[n.jsx("button",{type:"button",disabled:L,onClick:()=>N(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),n.jsx("button",{type:"button",disabled:L,onClick:ce,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-lg shadow-rose-600/25 transition-all flex items-center gap-1.5 disabled:opacity-50",children:L?n.jsxs(n.Fragment,{children:[n.jsx(kn,{className:"w-3.5 h-3.5 animate-spin"}),n.jsx("span",{children:"正在撤回..."})]}):n.jsxs(n.Fragment,{children:[n.jsx(Go,{className:"w-3.5 h-3.5"}),n.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},gx=()=>{const{user:a,isLoading:l}=Sr();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):a?n.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[n.jsx(sx,{}),n.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:n.jsx(Bd,{})})]}):n.jsx(Vt,{to:"/login",replace:!0})},vx=()=>{const{user:a,isLoading:l}=Sr();return l?n.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):a?a.role==="SuperAdmin"?n.jsx(Vt,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?n.jsx(Vt,{to:"/school-admin",replace:!0}):n.jsx(Vt,{to:"/teacher",replace:!0}):n.jsx(Vt,{to:"/login",replace:!0})},yx=()=>n.jsxs(Zm,{children:[n.jsx(Qe,{path:"/login",element:n.jsx(rx,{})}),n.jsx(Qe,{path:"/",element:n.jsx(vx,{})}),n.jsxs(Qe,{element:n.jsx(gx,{}),children:[n.jsxs(Qe,{element:n.jsx(Qo,{allowedRoles:["SuperAdmin"]}),children:[n.jsx(Qe,{path:"/admin",element:n.jsx(lx,{})}),n.jsx(Qe,{path:"/admin/tenants",element:n.jsx(cx,{})}),n.jsx(Qe,{path:"/admin/users",element:n.jsx(ux,{})}),n.jsx(Qe,{path:"/admin/devices",element:n.jsx(ix,{})}),n.jsx(Qe,{path:"/admin/broadcast",element:n.jsx(dx,{})}),n.jsx(Qe,{path:"/admin/codes",element:n.jsx(ox,{})}),n.jsx(Qe,{path:"/admin/history",element:n.jsx(ax,{})})]}),n.jsxs(Qe,{element:n.jsx(Qo,{allowedRoles:["SchoolAdmin"]}),children:[n.jsx(Qe,{path:"/school-admin",element:n.jsx(hx,{})}),n.jsx(Qe,{path:"/school-admin/classes",element:n.jsx(fx,{})}),n.jsx(Qe,{path:"/school-admin/teachers",element:n.jsx(mx,{})}),n.jsx(Qe,{path:"/school-admin/codes",element:n.jsx(px,{})})]}),n.jsx(Qe,{element:n.jsx(Qo,{allowedRoles:["Teacher"]}),children:n.jsx(Qe,{path:"/teacher",element:n.jsx(xx,{})})})]}),n.jsx(Qe,{path:"*",element:n.jsx(Vt,{to:"/",replace:!0})})]}),wx=()=>n.jsx(Gp,{children:n.jsx(op,{children:n.jsx(yx,{})})});om.createRoot(document.getElementById("root")).render(n.jsx(na.StrictMode,{children:n.jsx(wx,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-DmNDljc3.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3{left:.75rem}.left-3\.5{left:.875rem}.right-0{right:0}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-2\.5{top:.625rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-full{height:100%}.max-h-\[52vh\]{max-height:52vh}.max-h-\[58vh\]{max-height:58vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[calc\(100vh-250px\)\]{max-height:calc(100vh - 250px)}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.divide-slate-800\/60>:not([hidden])~:not([hidden]){border-color:#1e293b99}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-blue-500\/20{border-color:#3b82f633}.border-blue-500\/60{border-color:#3b82f699}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/50{border-color:#33415580}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/70{border-color:#1e293bb3}.border-slate-800\/80{border-color:#1e293bcc}.border-transparent{border-color:transparent}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-blue-600\/20{background-color:#2563eb33}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/20{background-color:#4f46e533}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-800\/60{background-color:#1e293b99}.bg-slate-800\/80{background-color:#1e293bcc}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/80{color:#fbbf24cc}.text-amber-400\/90{color:#fbbf24e6}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/90{color:#34d399e6}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-600\/20{--tw-shadow-color: rgb(37 99 235 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/20{--tw-shadow-color: rgb(225 29 72 / .2);--tw-shadow: var(--tw-shadow-colored)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-blue-500\/40:hover{border-color:#3b82f666}.hover\:border-rose-500\/30:hover{border-color:#f43f5e4d}.hover\:border-rose-500\/40:hover{border-color:#f43f5e66}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:border-slate-700\/60:hover{border-color:#33415599}.hover\:border-slate-700\/80:hover{border-color:#334155cc}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600\/20:hover{background-color:#2563eb33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-700\/80:hover{background-color:#334155cc}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500\/50:focus{border-color:#6366f180}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/30:focus{--tw-ring-color: rgb(99 102 241 / .3)}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:w-64{width:16rem}.sm\:w-72{width:18rem}.sm\:max-w-none{max-width:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-D-Vcu7vf.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3\.5{left:.875rem}.right-3{right:.75rem}.top-0{top:0}.top-3{top:.75rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.max-h-\[55vh\]{max-height:55vh}.max-h-\[580px\]{max-height:580px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[90vh\]{max-height:90vh}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-indigo-500\/50{border-color:#6366f180}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/50{border-color:#33415580}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/40{border-color:#1e293b66}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/80{border-color:#1e293bcc}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/30{background-color:#0000004d}.bg-black\/40{background-color:#0006}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/75{background-color:#000000bf}.bg-black\/80{background-color:#000c}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-indigo-600\/30{background-color:#4f46e54d}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-600\/10{background-color:#0284c71a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-900\/80{background-color:#0f172acc}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/50{background-color:#02061780}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.to-violet-600{--tw-gradient-to: #7c3aed var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/90{color:#fbbf24e6}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/80{color:#34d399cc}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-300\/90{color:#fda4afe6}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-400\/90{color:#fb7185e6}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.accent-indigo-500{accent-color:#6366f1}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-600\/25{--tw-shadow-color: rgb(5 150 105 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/10{--tw-shadow-color: rgb(79 70 229 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/25{--tw-shadow-color: rgb(79 70 229 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/25{--tw-shadow-color: rgb(225 29 72 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/30{--tw-shadow-color: rgb(225 29 72 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-sky-600\/25{--tw-shadow-color: rgb(2 132 199 / .25);--tw-shadow: var(--tw-shadow-colored)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-amber-500\/50:hover{border-color:#f59e0b80}.hover\:border-emerald-500\/50:hover{border-color:#10b98180}.hover\:border-indigo-500\/50:hover{border-color:#6366f180}.hover\:border-rose-500\/50:hover{border-color:#f43f5e80}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-sky-500\/50:hover{border-color:#0ea5e980}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-500\/20:hover{background-color:#10b98133}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-600\/20:hover{background-color:#4f46e533}.hover\:bg-indigo-600\/50:hover{background-color:#4f46e580}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-500\/20:hover{background-color:#f43f5e33}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-sky-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.hover\:bg-sky-600\/20:hover{background-color:#0284c733}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/20:hover{background-color:#1e293b33}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-800\/50:hover{background-color:#1e293b80}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-indigo-500:hover{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:to-violet-500:hover{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-indigo-300:hover{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-sky-300:hover{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.focus\:ring-rose-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity, 1))}.focus\:ring-sky-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 165 233 / var(--tw-ring-opacity, 1))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media(min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/assets/index-DYQz3G89.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-3\.5{left:.875rem}.right-3{right:.75rem}.top-0{top:0}.top-3{top:.75rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.max-h-\[55vh\]{max-height:55vh}.max-h-\[580px\]{max-height:580px}.max-h-\[60vh\]{max-height:60vh}.max-h-\[90vh\]{max-height:90vh}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-indigo-500\/50{border-color:#6366f180}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/40{border-color:#1e293b66}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/80{border-color:#1e293bcc}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-black\/30{background-color:#0000004d}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/75{background-color:#000000bf}.bg-black\/80{background-color:#000c}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/10{background-color:#4f46e51a}.bg-indigo-600\/20{background-color:#4f46e533}.bg-indigo-600\/30{background-color:#4f46e54d}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-600\/10{background-color:#0284c71a}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-900\/80{background-color:#0f172acc}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/50{background-color:#02061780}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.to-violet-600{--tw-gradient-to: #7c3aed var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-3{padding-bottom:.75rem}.pl-10{padding-left:2.5rem}.pr-1{padding-right:.25rem}.pr-4{padding-right:1rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/90{color:#fbbf24e6}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/80{color:#34d399cc}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-300\/90{color:#fda4afe6}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-400\/90{color:#fb7185e6}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.accent-indigo-500{accent-color:#6366f1}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-600\/25{--tw-shadow-color: rgb(5 150 105 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/10{--tw-shadow-color: rgb(79 70 229 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/25{--tw-shadow-color: rgb(79 70 229 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/25{--tw-shadow-color: rgb(225 29 72 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/30{--tw-shadow-color: rgb(225 29 72 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-sky-600\/25{--tw-shadow-color: rgb(2 132 199 / .25);--tw-shadow: var(--tw-shadow-colored)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-amber-500\/50:hover{border-color:#f59e0b80}.hover\:border-emerald-500\/50:hover{border-color:#10b98180}.hover\:border-indigo-500\/50:hover{border-color:#6366f180}.hover\:border-rose-500\/50:hover{border-color:#f43f5e80}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-sky-500\/50:hover{border-color:#0ea5e980}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-500\/20:hover{background-color:#10b98133}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-600\/20:hover{background-color:#4f46e533}.hover\:bg-indigo-600\/50:hover{background-color:#4f46e580}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-500\/20:hover{background-color:#f43f5e33}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-sky-500:hover{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.hover\:bg-sky-600\/20:hover{background-color:#0284c733}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/20:hover{background-color:#1e293b33}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-800\/50:hover{background-color:#1e293b80}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:from-indigo-500:hover{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:to-violet-500:hover{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-indigo-300:hover{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-sky-300:hover{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-transparent:focus{border-color:transparent}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.focus\:ring-rose-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(244 63 94 / var(--tw-ring-opacity, 1))}.focus\:ring-sky-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(14 165 233 / var(--tw-ring-opacity, 1))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:self-auto{align-self:auto}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media(min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}} ================================================================================ FILE: src/Server/ClassNotify.Server/publish_arm64/wwwroot/index.html ================================================================================ ClassNotify 智慧教室通知与集控平台
================================================================================ FILE: src/Server/ClassNotify.Server/Services/DeviceCommandTimeoutWorker.cs ================================================================================ using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Hubs; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.SignalR; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace ClassNotify.Server.Services; /// /// 后台受控远程命令超时与生命周期流转服务 /// 严格兑现封板要求: /// 1. Pending 超时 -> 自动标记 Expired 并推 TeacherHub /// 2. Dispatched 超过 TTL 或持续无心跳响应 -> 自动标记 TimedOut 并推 TeacherHub /// 3. 定期持久化状态至 PostgreSQL 实体 /// public class DeviceCommandTimeoutWorker : BackgroundService { private readonly IServiceScopeFactory _scopeFactory; private readonly IHubContext _teacherHub; private readonly ILogger _logger; private readonly TimeSpan _checkInterval; public DeviceCommandTimeoutWorker( IServiceScopeFactory scopeFactory, IHubContext teacherHub, ILogger logger, TimeSpan? checkInterval = null) { _scopeFactory = scopeFactory; _teacherHub = teacherHub; _logger = logger; _checkInterval = checkInterval ?? TimeSpan.FromSeconds(10); } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("DeviceCommandTimeoutWorker started (CheckInterval: {Interval}s)", _checkInterval.TotalSeconds); while (!stoppingToken.IsCancellationRequested) { try { await ProcessTimeoutsAsync(stoppingToken); } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } catch (Exception ex) { _logger.LogError(ex, "Error processing device command timeouts and expirations"); } try { await Task.Delay(_checkInterval, stoppingToken); } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } } _logger.LogInformation("DeviceCommandTimeoutWorker stopped."); } public async Task ProcessTimeoutsAsync(CancellationToken cancellationToken = default) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var now = DateTimeOffset.UtcNow; // Fetch all active non-terminal commands var activeCommands = await db.DeviceCommands .Where(c => c.Status == DeviceCommandStatuses.Pending || c.Status == DeviceCommandStatuses.Dispatched) .ToListAsync(cancellationToken); if (activeCommands.Count == 0) return 0; var transitioned = new List(); foreach (var cmd in activeCommands) { if (Domain.Entities.DeviceCommandNormalizer.NormalizeExpiredOrTimedOut(cmd, now)) { transitioned.Add(cmd); _logger.LogWarning("Command {CommandId} (Device {DeviceId}, Tenant {TenantId}) transitioned to terminal status '{Status}': {Reason}", cmd.Id, cmd.DeviceId, cmd.TenantId, cmd.Status, cmd.ResultMessage); } } if (transitioned.Count == 0) return 0; // 1. SAVE TO DATABASE FIRST - Fail-safe against broadcasting ghost states await db.SaveChangesAsync(cancellationToken); // 2. BROADCAST TO TEACHERHUB ONLY AFTER DB PERSISTENCE SUCCEEDS foreach (var cmd in transitioned) { var resultDto = new DeviceCommandResultDto { CommandId = cmd.Id, DeviceId = cmd.DeviceId, Status = cmd.Status, ResultCode = cmd.ResultCode ?? (cmd.Status == DeviceCommandStatuses.Expired ? -2 : -4), ResultMessage = cmd.ResultMessage, ExecutionDurationMs = cmd.DurationMs ?? 0, Timestamp = now }; try { await _teacherHub.Clients.Group($"t:{cmd.TenantId}:teachers").OnDeviceCommandStatusChanged(resultDto); } catch (Exception ex) { _logger.LogWarning(ex, "Failed to broadcast command status change for {CommandId} to TeacherHub", cmd.Id); } } return transitioned.Count; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/DevicePresenceService.cs ================================================================================ namespace ClassNotify.Server.Services; public interface IDevicePresenceService { bool IsOnline(string deviceId, DateTimeOffset? lastHeartbeatAt); } public sealed class DevicePresenceService : IDevicePresenceService { private readonly ISecurityService _securityService; public DevicePresenceService(ISecurityService securityService) { _securityService = securityService; } public bool IsOnline(string deviceId, DateTimeOffset? lastHeartbeatAt) { if (string.IsNullOrWhiteSpace(deviceId)) { return false; } // 1. Primary source of truth: Active SignalR device connection var connId = _securityService.GetDeviceConnectionId(deviceId); if (!string.IsNullOrEmpty(connId)) { return true; } // 2. Secondary heartbeat threshold check (within 60s) if (lastHeartbeatAt.HasValue && (DateTimeOffset.UtcNow - lastHeartbeatAt.Value).TotalSeconds <= 60) { return true; } return false; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/DeviceVersionEvaluator.cs ================================================================================ using ClassNotify.Server.Configuration; using ClassNotify.Shared.Enums; using Microsoft.Extensions.Options; namespace ClassNotify.Server.Services; public sealed record DeviceVersionEvaluation( FleetVersionStatus Status, IReadOnlyList Reasons); public interface IDeviceVersionEvaluator { DeviceVersionEvaluation Evaluate( string? serviceVersion, string? clientVersion, int? protocolVersion); } public sealed class DeviceVersionEvaluator : IDeviceVersionEvaluator { private readonly DeviceVersionPolicyOptions _policy; public DeviceVersionEvaluator(IOptions options) { _policy = options.Value; } public DeviceVersionEvaluation Evaluate( string? serviceVersion, string? clientVersion, int? protocolVersion) { var reasons = new List(); if (!TryParse(serviceVersion, out var service) || !TryParse(clientVersion, out var client) || protocolVersion == null) { reasons.Add("版本信息不完整"); return new DeviceVersionEvaluation(FleetVersionStatus.Unknown, reasons); } var minService = TryParsePolicyVersion(_policy.MinimumServiceVersion, new Version(2, 4, 0)); var recService = TryParsePolicyVersion(_policy.RecommendedServiceVersion, new Version(2, 5, 0)); var minClient = TryParsePolicyVersion(_policy.MinimumClientVersion, new Version(2, 4, 0)); var recClient = TryParsePolicyVersion(_policy.RecommendedClientVersion, new Version(2, 5, 0)); var minProtocol = _policy.MinimumProtocolVersion > 0 ? _policy.MinimumProtocolVersion : 2; if (service < minService) { reasons.Add($"Service {service} 低于最低支持版本 {minService}"); } if (client < minClient) { reasons.Add($"Client {client} 低于最低支持版本 {minClient}"); } if (protocolVersion.Value < minProtocol) { reasons.Add($"Protocol {protocolVersion.Value} 低于最低协议 {minProtocol}"); } if (reasons.Count > 0) { return new DeviceVersionEvaluation(FleetVersionStatus.Unsupported, reasons); } if (service < recService) { reasons.Add($"Service 建议升级至 {recService}"); } if (client < recClient) { reasons.Add($"Client 建议升级至 {recClient}"); } if (reasons.Count > 0) { return new DeviceVersionEvaluation(FleetVersionStatus.Outdated, reasons); } return new DeviceVersionEvaluation(FleetVersionStatus.Current, Array.Empty()); } private static Version TryParsePolicyVersion(string? input, Version fallback) { if (TryParse(input, out var parsed)) { return parsed; } return fallback; } private static bool TryParse(string? input, out Version version) { version = new Version(); if (string.IsNullOrWhiteSpace(input)) { return false; } return Version.TryParse(input.Trim(), out version!); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/FleetVersionService.cs ================================================================================ using ClassNotify.Server.Configuration; using ClassNotify.Server.Data; using ClassNotify.Shared.Enums; using ClassNotify.Shared.Models; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; namespace ClassNotify.Server.Services; public interface IFleetVersionService { Task GetFleetVersionSummaryAsync(CancellationToken ct = default); Task> GetFleetDevicesAsync(FleetDeviceVersionQuery query, CancellationToken ct = default); } public sealed class FleetVersionService : IFleetVersionService { private readonly ClassNotifyDbContext _db; private readonly IDeviceVersionEvaluator _versionEvaluator; private readonly IDevicePresenceService _presenceService; private readonly DeviceVersionPolicyOptions _policy; public FleetVersionService( ClassNotifyDbContext db, IDeviceVersionEvaluator versionEvaluator, IDevicePresenceService presenceService, IOptions options) { _db = db; _versionEvaluator = versionEvaluator; _presenceService = presenceService; _policy = options.Value; } public async Task GetFleetVersionSummaryAsync(CancellationToken ct = default) { var devices = await _db.Devices .AsNoTracking() .Select(d => new { d.ServiceVersion, d.ClientVersion, d.ProtocolVersion }) .ToListAsync(ct); int current = 0; int outdated = 0; int unsupported = 0; int unknown = 0; foreach (var d in devices) { var result = _versionEvaluator.Evaluate( d.ServiceVersion, d.ClientVersion, d.ProtocolVersion); switch (result.Status) { case FleetVersionStatus.Current: current++; break; case FleetVersionStatus.Outdated: outdated++; break; case FleetVersionStatus.Unsupported: unsupported++; break; default: unknown++; break; } } return new FleetVersionSummaryDto { Total = devices.Count, Current = current, Outdated = outdated, Unsupported = unsupported, Unknown = unknown, GeneratedAtUtc = DateTimeOffset.UtcNow, Policy = BuildPolicyDto() }; } public async Task> GetFleetDevicesAsync( FleetDeviceVersionQuery query, CancellationToken ct = default) { var devices = await _db.Devices .AsNoTracking() .ToListAsync(ct); var tenants = await _db.Tenants .AsNoTracking() .ToDictionaryAsync(t => t.Id, t => t.Name, ct); var classrooms = await _db.Classrooms .AsNoTracking() .ToDictionaryAsync(c => $"{c.TenantId}_{c.Id}", c => c.DisplayName, ct); var results = new List(); foreach (var d in devices) { var eval = _versionEvaluator.Evaluate( d.ServiceVersion, d.ClientVersion, d.ProtocolVersion); var isOnline = _presenceService.IsOnline(d.Id, d.LastHeartbeatAt); tenants.TryGetValue(d.TenantId, out var tenantName); tenantName ??= d.TenantId; classrooms.TryGetValue($"{d.TenantId}_{d.ClassroomId}", out var classroomName); classroomName ??= d.ClassroomId; // 1. Status Filter if (!string.IsNullOrWhiteSpace(query.Status) && !string.Equals(query.Status, "all", StringComparison.OrdinalIgnoreCase)) { if (!string.Equals(eval.Status.ToString(), query.Status.Trim(), StringComparison.OrdinalIgnoreCase)) { continue; } } // 2. Tenant Filter if (!string.IsNullOrWhiteSpace(query.TenantId) && !string.Equals(query.TenantId, "all", StringComparison.OrdinalIgnoreCase)) { if (!string.Equals(d.TenantId, query.TenantId.Trim(), StringComparison.OrdinalIgnoreCase)) { continue; } } // 3. Online Filter if (query.Online.HasValue) { if (isOnline != query.Online.Value) { continue; } } // 4. Keyword Query (DeviceId, Hostname, ClassroomName, TenantName) if (!string.IsNullOrWhiteSpace(query.Q)) { var q = query.Q.Trim(); bool matches = d.Id.Contains(q, StringComparison.OrdinalIgnoreCase) || (d.Hostname != null && d.Hostname.Contains(q, StringComparison.OrdinalIgnoreCase)) || classroomName.Contains(q, StringComparison.OrdinalIgnoreCase) || tenantName.Contains(q, StringComparison.OrdinalIgnoreCase); if (!matches) { continue; } } results.Add(new FleetDeviceVersionDto { DeviceId = d.Id, TenantId = d.TenantId, TenantName = tenantName, ClassroomId = d.ClassroomId, ClassroomName = classroomName, Hostname = d.Hostname, IsOnline = isOnline, LastHeartbeatAt = d.LastHeartbeatAt, ServiceVersion = d.ServiceVersion, ClientVersion = d.ClientVersion, ProtocolVersion = d.ProtocolVersion, OsVersion = d.OsVersion, Architecture = d.Architecture, VersionStatus = eval.Status, Reasons = eval.Reasons.ToList() }); } // Ordered by risk: Unsupported first (0), Outdated (1), Unknown (2), Current (3), then by Tenant & Class return results .OrderBy(r => GetSeverityRank(r.VersionStatus)) .ThenBy(r => r.TenantName) .ThenBy(r => r.ClassroomName) .ToList(); } private static int GetSeverityRank(FleetVersionStatus status) => status switch { FleetVersionStatus.Unsupported => 0, FleetVersionStatus.Outdated => 1, FleetVersionStatus.Unknown => 2, FleetVersionStatus.Current => 3, _ => 4 }; private DeviceVersionPolicyViewDto BuildPolicyDto() { return new DeviceVersionPolicyViewDto { MinimumServiceVersion = _policy.MinimumServiceVersion, RecommendedServiceVersion = _policy.RecommendedServiceVersion, MinimumClientVersion = _policy.MinimumClientVersion, RecommendedClientVersion = _policy.RecommendedClientVersion, MinimumProtocolVersion = _policy.MinimumProtocolVersion > 0 ? _policy.MinimumProtocolVersion : 2 }; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/ISecurityService.cs ================================================================================ using ClassNotify.Server.Domain.Entities; using ClassNotify.Shared.Models; namespace ClassNotify.Server.Services; public sealed record DeviceConnectionRegistrationResult( string CurrentConnectionId, string? ReplacedConnectionId); public interface ISecurityService { // Auth & Identity Task LoginTeacherAsync(TeacherLoginDto dto, string? remoteIp = null); Task ActivateDeviceAsync(DeviceActivationRequestDto dto); Task ValidateDeviceAsync(string deviceId, string deviceToken); // Tenant & Classrooms Task GetClassroomAsync(string tenantId, string classId); Task> GetClassroomsAsync(string tenantId); Task CreateClassroomAsync(string tenantId, CreateClassroomDto dto); Task GetTenantAsync(string tenantId); Task> GetTenantsOverviewAsync(); // Users Task> GetUsersAsync(string tenantId); Task CreateUserAsync(string tenantId, CreateTeacherDto dto); // Devices & Metrics Task GetAdminMetricsAsync(); Task> GetAllDevicesAsync(); Task> GetTenantDevicesAsync(string tenantId); Task RegisterDeviceConnectionAsync(string connectionId, string deviceId, string tenantId, string classroomId, string? hostname, string? remoteIp, string? clientVersion); Task UnregisterDeviceConnectionAsync(string connectionId); bool IsCurrentDeviceConnection(string deviceId, string connectionId); Task UpdateDeviceHeartbeatAsync(string connectionId, DeviceHeartbeatDto? heartbeat = null); string? GetDeviceConnectionId(string deviceId); // Activation Codes Task GenerateActivationCodeAsync(string tenantId, string classId, string? actor = null, string? actorRole = null, string? ip = null); Task> GetActivationCodesAsync(string? tenantId); // Notifications & ACKs (PostgreSQL & NotificationReceipt per-device isolation) Task RecordNotificationAsync(NotificationDto notification, string? senderUserId, string senderName); Task RecordAckAsync(string messageId, string authenticatedDeviceId, AckReceiptDto ack); Task ValidateNotificationTargetAsync(string messageId, string tenantId, string classroomId); Task> GetNotificationsAsync(string? tenantId, string? classId, int limit = 50); Task> GetPendingNotificationsForDeviceAsync(string deviceId); Task CancelNotificationAsync(string notificationId, string actorUserId, string actorUsername, string role, string tenantId, string? ip, CancellationToken ct = default); Task ResetSchoolTeacherPasswordAsync(string schoolAdminTenantId, string teacherUserId, string newPassword, string actorUsername, string? ip, CancellationToken ct = default); Task SetSchoolTeacherLockAsync(string schoolAdminTenantId, string teacherUserId, bool isLocked, string actorUsername, string? ip, CancellationToken ct = default); Task GetBroadcastReceiptSummaryAsync(string broadcastId, CancellationToken ct = default); // Device Commands (P1 Batch 10) Task CreateDeviceCommandAsync(string? callerTenantId, string deviceId, string commandType, string? parameters, string createdBy, string? actorRole = null, string? ip = null); Task MarkCommandDispatchedAsync(string commandId); Task RecordCommandResultAsync(DeviceCommandResultDto result, string callerDeviceId, string? callerTenantId); Task GetDeviceCommandAsync(string commandId, string? callerTenantId = null); Task> GetPendingCommandsForDeviceAsync(string deviceId); Task> GetDeviceCommandHistoryAsync(string? tenantId, string? deviceId, string? status, int limit = 50); // SuperAdmin Control Plane Extensions Task CreateTenantAsync(string id, string name, string? actor = null, string? actorRole = null, string? ip = null); Task UpdateTenantAsync(string id, string name, bool isActive, string? actor = null, string? actorRole = null, string? ip = null); Task> GetAllUsersAdminAsync(string? tenantId, string? role); Task CreateUserAdminAsync(CreateUserAdminRequest req, string? actor = null, string? actorRole = null, string? ip = null); Task ResetPasswordAsync(string userId, string newPassword, string? actor = null, string? actorRole = null, string? ip = null); Task SetUserLockAsync(string userId, bool isLocked, string? actor = null, string? actorRole = null, string? ip = null); Task DeleteUserAsync(string userId, string? actor = null, string? actorRole = null, string? ip = null); Task UpdateDeviceAsync(string deviceId, string? hostname, string? classroomId, string? actor = null, string? actorRole = null, string? ip = null); Task DecommissionDeviceAsync(string deviceId, string? actor = null, string? actorRole = null, string? ip = null); Task DeleteActivationCodeAsync(string code, string? actor = null, string? actorRole = null, string? ip = null); Task GetSystemHealthAsync(); Task LogAdminAuditAsync(string actorUsername, string actorRole, string action, string targetType, string targetId, string? details, string? ip); Task> GetAdminAuditLogsAsync(int limit = 100); } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/ISelfCheckBatchService.cs ================================================================================ using ClassNotify.Shared.Models; namespace ClassNotify.Server.Services; /// /// 终端批量自检服务接口 (P2.5 RC1-2) /// public interface ISelfCheckBatchService { /// /// 创建并事务性入库批量自检批次与各终端 Run,同时记录审计事件 /// Task CreateBatchAsync(CreateSelfCheckBatchRequest request, string actorUserId, string actorIp, CancellationToken ct); /// /// 获取批次聚合指标与 7 项探针异常聚合分布 /// Task GetBatchAsync(string batchId, CancellationToken ct); /// /// 获取最近自检批次列表及动态聚合统计 /// Task> GetBatchesAsync(string? status, int take, CancellationToken ct); /// /// 分页与多维过滤批次下各终端运行状态与探针结果 /// Task GetBatchDevicesAsync(string batchId, SelfCheckBatchDeviceQuery query, CancellationToken ct); /// /// 获取单台终端自检运行的详细诊断明细 (7 项探针下钻) /// Task GetBatchDeviceRunDetailAsync(string batchId, string runId, CancellationToken ct); } /// /// 批次自检调度唤醒通知器 /// public interface ISelfCheckDispatchNotifier { void Notify(); Task WaitAsync(CancellationToken ct); } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/ISupportBundleService.cs ================================================================================ using System; using System.Collections.Generic; using System.Threading.Channels; using System.Threading.Tasks; using ClassNotify.Shared.Models; namespace ClassNotify.Server.Services; /// /// 诊断包创建结果包装 /// public class SupportBundleCreationResult { public bool IsSuccess { get; set; } public int StatusCode { get; set; } = 202; public SupportBundleCreatedDto? Dto { get; set; } public string? ErrorCode { get; set; } public string? ErrorMessage { get; set; } public string? ExistingBundleId { get; set; } public static SupportBundleCreationResult Accepted(SupportBundleCreatedDto dto) => new() { IsSuccess = true, StatusCode = 202, Dto = dto }; public static SupportBundleCreationResult Conflict(string errorCode, string existingBundleId, string message) => new() { IsSuccess = false, StatusCode = 409, ErrorCode = errorCode, ExistingBundleId = existingBundleId, ErrorMessage = message }; public static SupportBundleCreationResult Forbidden(string message) => new() { IsSuccess = false, StatusCode = 403, ErrorCode = "Forbidden", ErrorMessage = message }; public static SupportBundleCreationResult NotFound(string message) => new() { IsSuccess = false, StatusCode = 404, ErrorCode = "DeviceNotFound", ErrorMessage = message }; public static SupportBundleCreationResult BadRequest(string message) => new() { IsSuccess = false, StatusCode = 400, ErrorCode = "BadRequest", ErrorMessage = message }; } /// /// 诊断包通用查询包装 /// public class SupportBundleQueryResult { public bool IsSuccess { get; set; } public int StatusCode { get; set; } = 200; public T? Data { get; set; } public string? ErrorCode { get; set; } public string? ErrorMessage { get; set; } public static SupportBundleQueryResult Ok(T data) => new() { IsSuccess = true, StatusCode = 200, Data = data }; public static SupportBundleQueryResult Forbidden(string message) => new() { IsSuccess = false, StatusCode = 403, ErrorCode = "Forbidden", ErrorMessage = message }; public static SupportBundleQueryResult NotFound(string message) => new() { IsSuccess = false, StatusCode = 404, ErrorCode = SupportBundleErrorCodes.SupportBundleNotFound, ErrorMessage = message }; } /// /// 诊断包下载准备结果 /// public class SupportBundleDownloadResult { public bool IsSuccess { get; set; } public int StatusCode { get; set; } = 200; public string? PhysicalPath { get; set; } public string? DownloadFileName { get; set; } public string? ErrorCode { get; set; } public string? ErrorMessage { get; set; } public static SupportBundleDownloadResult Success(string physicalPath, string downloadFileName) => new() { IsSuccess = true, StatusCode = 200, PhysicalPath = physicalPath, DownloadFileName = downloadFileName }; public static SupportBundleDownloadResult Forbidden(string message) => new() { IsSuccess = false, StatusCode = 403, ErrorCode = "Forbidden", ErrorMessage = message }; public static SupportBundleDownloadResult NotFound(string message) => new() { IsSuccess = false, StatusCode = 404, ErrorCode = SupportBundleErrorCodes.SupportBundleNotFound, ErrorMessage = message }; public static SupportBundleDownloadResult Conflict(string errorCode, string message) => new() { IsSuccess = false, StatusCode = 409, ErrorCode = errorCode, ErrorMessage = message }; public static SupportBundleDownloadResult Gone(string errorCode, string message) => new() { IsSuccess = false, StatusCode = 410, ErrorCode = errorCode, ErrorMessage = message }; public static SupportBundleDownloadResult BadRequest(string errorCode, string message) => new() { IsSuccess = false, StatusCode = 400, ErrorCode = errorCode, ErrorMessage = message }; public static SupportBundleDownloadResult ServerError(string errorCode, string message) => new() { IsSuccess = false, StatusCode = 500, ErrorCode = errorCode, ErrorMessage = message }; } /// /// 诊断包内部全量字段详情查询 DTO (保留兼容) /// public class SupportBundleDetailDto { public string SupportBundleId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public string RequestedByUserId { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset UpdatedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } public DateTimeOffset? DispatchedAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public DateTimeOffset? ExpiresAtUtc { get; set; } public int DispatchAttemptCount { get; set; } public string? StoragePath { get; set; } public long? SizeBytes { get; set; } public string? Sha256 { get; set; } public string? ErrorCode { get; set; } } /// /// 设备技术诊断包服务接口 (P2.5 RC1-3 Support Bundle Phase 1, 2, 3) /// public interface ISupportBundleService { /// /// 请求生成技术诊断包 (严格 RBAC、幂等性、单 Active 检查、事务与审计一致性落库) /// Task CreateSupportBundleAsync( string deviceId, CreateSupportBundleRequest request, string actorUserId, string actorRole, string? actorTenantId, string actorIp, bool simulateAuditFailure, CancellationToken ct); /// /// 获取技术诊断包详情 (内部兼容) /// Task GetSupportBundleAsync(string bundleId, string actorRole, string? actorTenantId, CancellationToken ct); /// /// 管理员查询技术诊断包状态 (P3-1: 严格 RBAC,杜绝暴露内部物理 StoragePath) /// Task> GetSupportBundleStatusAsync(string bundleId, string actorRole, string? actorTenantId, CancellationToken ct); /// /// 获取设备最近诊断包列表 (P3-11: 页面刷新恢复,最多 20 条) /// Task>> GetDeviceSupportBundlesAsync(string deviceId, int take, string actorRole, string? actorTenantId, CancellationToken ct); /// /// 准备管理员安全下载 (P3-2 ~ P3-5, P3-8, P3-9) /// Task PrepareDownloadAsync(string bundleId, string actorRole, string? actorTenantId, string actorUser, string actorIp, CancellationToken ct); } /// /// 诊断包调度唤醒通知器 /// public interface ISupportBundleDispatchNotifier { void Notify(); Task WaitAsync(CancellationToken ct); } /// /// 诊断包调度唤醒通知器实现 /// public sealed class SupportBundleDispatchNotifier : ISupportBundleDispatchNotifier { private readonly Channel _channel = Channel.CreateBounded(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest }); public void Notify() { _channel.Writer.TryWrite(1); } public async Task WaitAsync(CancellationToken ct) { await _channel.Reader.WaitToReadAsync(ct); while (_channel.Reader.TryRead(out _)) { } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/IVisualReceiptService.cs ================================================================================ using System.Security.Claims; namespace ClassNotify.Server.Services; public record VisualReceiptUploadResult(bool Success, string Message, int StatusCode, string? ReceiptId = null, DateTimeOffset? CapturedAt = null, DateTimeOffset? ExpiresAt = null); public record VisualReceiptFileResult(bool Success, string? FilePath = null, int StatusCode = 200, string? ErrorMessage = null); public interface IVisualReceiptService { Task SaveVisualReceiptAsync(string notificationId, string deviceId, string deviceToken, byte[] jpegBytes); Task GetVisualReceiptFileAsync(string notificationId, string deviceId, ClaimsPrincipal user); Task CleanupExpiredVisualReceiptsAsync(CancellationToken ct = default); } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/OperationalHealthState.cs ================================================================================ namespace ClassNotify.Server.Services; public sealed class OperationalHealthState { public DateTimeOffset? LastVisualReceiptCleanupSuccessUtc { get; set; } public DateTimeOffset? LastBackupSuccessUtc { get; set; } public int ActiveDeviceConnections { get; set; } public int ActiveTeacherConnections { get; set; } public DateTimeOffset StartedAtUtc { get; } = DateTimeOffset.UtcNow; } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SecurityService.cs ================================================================================ using System.Collections.Concurrent; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Security.Cryptography; using System.Text; using ClassNotify.Server.Configuration; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Shared.Enums; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; namespace ClassNotify.Server.Services; public class LiveConnectionInfo { public string ConnectionId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string? Hostname { get; set; } public string? RemoteIp { get; set; } public string? ClientVersion { get; set; } public DateTimeOffset LastHeartbeat { get; set; } = DateTimeOffset.UtcNow; public LiveConnectionInfo(string connectionId, string deviceId, string tenantId, string classroomId, string? hostname, string? remoteIp, string? clientVersion, DateTimeOffset lastHeartbeat) { ConnectionId = connectionId; DeviceId = deviceId; TenantId = tenantId; ClassroomId = classroomId; Hostname = hostname; RemoteIp = remoteIp; ClientVersion = clientVersion; LastHeartbeat = lastHeartbeat; } } public class SecurityService : ISecurityService { private readonly IServiceScopeFactory _scopeFactory; private readonly ILogger _logger; private readonly IDataProtector _protector; private readonly IPasswordHasher _passwordHasher; private readonly JwtOptions _jwtOptions; // In-memory real-time SignalR live connection registries (NOT in PostgreSQL) private readonly ConcurrentDictionary _liveConnections = new(); private readonly ConcurrentDictionary _deviceToConnection = new(); private readonly ConcurrentDictionary _connectionTenantMap = new(); // Heartbeat DB update throttle map (at most once every 30s per device) private readonly ConcurrentDictionary _lastHeartbeatDbUpdate = new(); public SecurityService( IServiceScopeFactory scopeFactory, IDataProtectionProvider dataProtectionProvider, IPasswordHasher passwordHasher, IOptions jwtOptions, ILogger logger) { _scopeFactory = scopeFactory; _logger = logger; _protector = dataProtectionProvider.CreateProtector("ClassNotify.DeviceTokens.v1"); _passwordHasher = passwordHasher; _jwtOptions = jwtOptions.Value; } #region Auth & Identity public async Task LoginTeacherAsync(TeacherLoginDto dto, string? remoteIp = null) { if (string.IsNullOrWhiteSpace(dto.Username) || string.IsNullOrWhiteSpace(dto.Password)) { return new TeacherLoginResultDto { Success = false, ErrorMessage = "用户名与密码不可为空" }; } var normalizedUser = dto.Username.Trim(); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var user = await db.Users.FirstOrDefaultAsync(u => u.Username == normalizedUser); if (user == null) { _logger.LogWarning("Authentication failed: User '{Username}' not found. Remote IP: {RemoteIp} at {Timestamp}", normalizedUser, remoteIp ?? "unknown", DateTimeOffset.UtcNow); return new TeacherLoginResultDto { Success = false, ErrorMessage = "用户名或密码错误" }; } // P0-01 Security Gate: Check if user account is locked if (user.IsLocked) { _logger.LogWarning("Authentication rejected: Account '{Username}' is locked by administrator. Remote IP: {RemoteIp}", normalizedUser, remoteIp ?? "unknown"); return new TeacherLoginResultDto { Success = false, ErrorMessage = "该账号已被管理员锁定封禁,无法登录系统" }; } // P0-02 Security Gate: Check if school tenant is active (non-global users) if (user.TenantId != "global") { var tenant = await db.Tenants.FirstOrDefaultAsync(t => t.Id == user.TenantId); if (tenant != null && !tenant.IsActive) { _logger.LogWarning("Authentication rejected: User '{Username}' belongs to suspended tenant '{TenantId}'.", normalizedUser, user.TenantId); return new TeacherLoginResultDto { Success = false, ErrorMessage = "该账号所属学校已暂停服务或被冻结,请联系平台管理员" }; } } bool passwordValid = false; bool needsRehash = false; // 1. Try modern ASP.NET Core PasswordHasher var verifyResult = _passwordHasher.VerifyHashedPassword(user, user.PasswordHash, dto.Password); if (verifyResult == PasswordVerificationResult.Success) { passwordValid = true; } else if (verifyResult == PasswordVerificationResult.SuccessRehashNeeded) { passwordValid = true; needsRehash = true; } else { // 2. Fallback to legacy SHA256 with fixed salt for backward compatibility if (VerifyLegacyPassword(dto.Password, user.PasswordHash)) { passwordValid = true; needsRehash = true; _logger.LogInformation("Legacy password verified for user '{Username}'. Will upgrade to PasswordHasher.", normalizedUser); } } if (!passwordValid) { _logger.LogWarning("Authentication failed: Invalid credentials for user '{Username}'. Remote IP: {RemoteIp} at {Timestamp}", normalizedUser, remoteIp ?? "unknown", DateTimeOffset.UtcNow); return new TeacherLoginResultDto { Success = false, ErrorMessage = "用户名或密码错误" }; } // 3. Automatic on-the-fly hash upgrade if legacy or rehash needed if (needsRehash) { user.PasswordHash = _passwordHasher.HashPassword(user, dto.Password); _logger.LogInformation("Password hash successfully upgraded to ASP.NET Core PasswordHasher for user '{Username}'.", normalizedUser); } // 4. Update LastLoginAt upon successful authentication user.LastLoginAt = DateTimeOffset.UtcNow; await db.SaveChangesAsync(); _logger.LogInformation("User '{Username}' ({UserId}) successfully authenticated from IP {RemoteIp}.", normalizedUser, user.Id, remoteIp ?? "unknown"); var token = GenerateJwtToken(user); return new TeacherLoginResultDto { Success = true, Token = token, UserId = user.Id, FullName = user.FullName, TenantId = user.TenantId, Role = user.Role }; } public async Task ActivateDeviceAsync(DeviceActivationRequestDto dto) { if (string.IsNullOrWhiteSpace(dto.ActivationCode)) { return new DeviceActivationResultDto { Success = false, ErrorMessage = "激活码不可为空" }; } if (string.IsNullOrWhiteSpace(dto.InstallationId) || !dto.InstallationId.StartsWith("inst_") || dto.InstallationId.Length > 50) { return new DeviceActivationResultDto { Success = false, ErrorMessage = "安装实例标识符 (InstallationId) 无效或格式不正确" }; } var normalizedCode = dto.ActivationCode.Trim().ToUpperInvariant(); var normalizedInstId = dto.InstallationId.Trim(); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); using var tx = await db.Database.BeginTransactionAsync(); try { var code = await db.ActivationCodes.FirstOrDefaultAsync(c => c.Code == normalizedCode); if (code == null) { return new DeviceActivationResultDto { Success = false, ErrorMessage = "激活码无效" }; } if (code.IsUsed) { // P0-09 / P1-02 Idempotency Rule: If same installationId, return original device credentials if (!string.IsNullOrEmpty(code.InstallationId) && string.Equals(code.InstallationId, normalizedInstId, StringComparison.OrdinalIgnoreCase)) { var existingDev = await db.Devices.FirstOrDefaultAsync(d => (!string.IsNullOrEmpty(code.UsedByDeviceId) && d.Id == code.UsedByDeviceId) || d.InstallationId == normalizedInstId); var existingCred = await db.DeviceCredentials.FirstOrDefaultAsync(c => (!string.IsNullOrEmpty(code.UsedByDeviceId) && c.DeviceId == code.UsedByDeviceId) || c.InstallationId == normalizedInstId); var existingCls = await db.Classrooms.FirstOrDefaultAsync(c => c.TenantId == code.TenantId && c.Id == code.ClassroomId); if (existingDev != null && existingCred != null && existingCls != null) { string recoveredToken; try { recoveredToken = _protector.Unprotect(existingCred.EncryptedRecoverableToken); } catch (Exception ex) { _logger.LogError(ex, "Failed to unprotect recoverable token for InstallationId {InstallationId}", normalizedInstId); return new DeviceActivationResultDto { Success = false, ErrorMessage = "解密设备凭据失败,请联系管理员" }; } _logger.LogInformation("Idempotent activation retry for InstallationId {InstallationId}, returning recovered token for Device {DeviceId}", normalizedInstId, existingDev.Id); return new DeviceActivationResultDto { Success = true, DeviceId = existingDev.Id, DeviceToken = recoveredToken, TenantId = existingCls.TenantId, ClassId = existingCls.Id, ClassDisplayName = existingCls.DisplayName }; } } // Different installationId or unable to match installationId -> 409 Conflict return new DeviceActivationResultDto { Success = false, ErrorMessage = "该激活码已被其他设备安装实例使用" }; } if (code.ExpiresAt < DateTimeOffset.UtcNow) { return new DeviceActivationResultDto { Success = false, ErrorMessage = "激活码已过期" }; } var cls = await db.Classrooms.FirstOrDefaultAsync(c => c.TenantId == code.TenantId && c.Id == code.ClassroomId); if (cls == null) { return new DeviceActivationResultDto { Success = false, ErrorMessage = "绑定的班级不存在" }; } var deviceId = $"dev_{Guid.NewGuid():N}"[..12]; var rawToken = $"dtoken_{Guid.NewGuid():N}"; var tokenHash = HashToken(rawToken); var device = new Device { Id = deviceId, TenantId = code.TenantId, ClassroomId = code.ClassroomId, DeviceTokenHash = tokenHash, InstallationId = normalizedInstId, Hostname = dto.Hostname, IsActive = true, CreatedAt = DateTimeOffset.UtcNow }; var credRecord = new DeviceCredentialRecord { DeviceId = deviceId, InstallationId = normalizedInstId, DeviceTokenHash = tokenHash, EncryptedRecoverableToken = _protector.Protect(rawToken), CreatedAt = DateTimeOffset.UtcNow }; db.Devices.Add(device); db.DeviceCredentials.Add(credRecord); code.IsUsed = true; code.UsedAt = DateTimeOffset.UtcNow; code.UsedByDeviceId = deviceId; code.InstallationId = normalizedInstId; await db.SaveChangesAsync(); await tx.CommitAsync(); _logger.LogInformation("Device {DeviceId} activated successfully for {TenantId} / {ClassId} ({DisplayName}) [InstallationId: {InstallationId}]", deviceId, cls.TenantId, cls.Id, cls.DisplayName, normalizedInstId); return new DeviceActivationResultDto { Success = true, DeviceId = deviceId, DeviceToken = rawToken, TenantId = cls.TenantId, ClassId = cls.Id, ClassDisplayName = cls.DisplayName }; } catch (Exception ex) { await tx.RollbackAsync(); _logger.LogError(ex, "Exception during device activation transaction for code {Code}", normalizedCode); throw; } } public async Task ValidateDeviceAsync(string deviceId, string deviceToken) { if (string.IsNullOrEmpty(deviceId) || string.IsNullOrEmpty(deviceToken)) { return null; } var tokenHash = HashToken(deviceToken); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var device = await db.Devices.AsNoTracking().FirstOrDefaultAsync(d => d.Id == deviceId && d.DeviceTokenHash == tokenHash && d.IsActive); if (device == null) return null; // P0-02 Security Gate: Verify tenant is active var tenant = await db.Tenants.AsNoTracking().FirstOrDefaultAsync(t => t.Id == device.TenantId); if (tenant != null && !tenant.IsActive) { _logger.LogWarning("Rejecting device {DeviceId} connection: Tenant {TenantId} is suspended/inactive.", deviceId, device.TenantId); return null; } return device; } #endregion #region Tenants & Classrooms public async Task GetTenantAsync(string tenantId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); return await db.Tenants.AsNoTracking().FirstOrDefaultAsync(t => t.Id == tenantId && t.IsActive); } public async Task> GetTenantsOverviewAsync() { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var tenants = await db.Tenants.AsNoTracking().Where(t => t.Id != "global").ToListAsync(); var classrooms = await db.Classrooms.AsNoTracking().ToListAsync(); var devices = await db.Devices.AsNoTracking().ToListAsync(); var liveSnapshots = _liveConnections.Values.ToList(); return tenants.Select(t => { var classCount = classrooms.Count(c => c.TenantId == t.Id); var deviceCount = devices.Count(d => d.TenantId == t.Id); var onlineCount = liveSnapshots.Count(c => c.TenantId == t.Id); return new TenantAdminDto { Id = t.Id, Name = t.Name, ClassroomCount = classCount, DeviceCount = deviceCount, OnlineCount = onlineCount, IsActive = t.IsActive, CreatedAt = t.CreatedAt }; }).ToList(); } public async Task GetClassroomAsync(string tenantId, string classId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); return await db.Classrooms.AsNoTracking().FirstOrDefaultAsync(c => c.TenantId == tenantId && c.Id == classId); } public async Task> GetClassroomsAsync(string tenantId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); return await db.Classrooms.AsNoTracking().Where(c => c.TenantId == tenantId).ToListAsync(); } public async Task CreateClassroomAsync(string tenantId, CreateClassroomDto dto) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); if (await db.Classrooms.AnyAsync(c => c.TenantId == tenantId && c.Id == dto.Id)) { return false; } db.Classrooms.Add(new Classroom { Id = dto.Id, TenantId = tenantId, DisplayName = dto.DisplayName, Grade = dto.Grade, RoomNumber = dto.RoomNumber, CreatedAt = DateTimeOffset.UtcNow }); await db.SaveChangesAsync(); return true; } #endregion #region Users public async Task> GetUsersAsync(string tenantId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); return await db.Users.AsNoTracking().Where(u => u.TenantId == tenantId).ToListAsync(); } public async Task CreateUserAsync(string tenantId, CreateTeacherDto dto) { if (string.IsNullOrWhiteSpace(dto.Password) || dto.Password.Length < 8) { _logger.LogWarning("CreateUser rejected: Password must be at least 8 characters long."); return false; } // P0 Verification Gate: Strictly enforce role whitelist to prevent SuperAdmin privilege escalation if (dto.Role != "Teacher" && dto.Role != "SchoolAdmin") { _logger.LogWarning("CreateUser rejected: Role '{Role}' is not allowed via standard user creation API.", dto.Role); return false; } using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); // P0-02 Security Gate: Verify school tenant is active var tenant = await db.Tenants.FirstOrDefaultAsync(t => t.Id == tenantId); if (tenant == null || !tenant.IsActive) { _logger.LogWarning("CreateUser rejected: School tenant '{TenantId}' does not exist or is suspended.", tenantId); return false; } if (await db.Users.AnyAsync(u => u.Username == dto.Username.Trim())) { return false; } var user = new User { Id = $"usr_{Guid.NewGuid():N}"[..12], TenantId = tenantId, Username = dto.Username.Trim(), FullName = dto.FullName, Role = dto.Role, CreatedAt = DateTimeOffset.UtcNow }; // Strictly use modern PasswordHasher for new user creation user.PasswordHash = _passwordHasher.HashPassword(user, dto.Password); db.Users.Add(user); await db.SaveChangesAsync(); return true; } #endregion #region Devices & Live SignalR Connections public async Task GetAdminMetricsAsync() { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var totalTenants = await db.Tenants.CountAsync(t => t.Id != "global"); var totalClassrooms = await db.Classrooms.CountAsync(); var totalDevices = await db.Devices.CountAsync(); var onlineDevices = _liveConnections.Count; var startOfToday = DateTimeOffset.UtcNow.Date; var todayNotifications = await db.Notifications.CountAsync(n => n.CreatedAt >= startOfToday); return new AdminMetricsDto { TotalTenants = totalTenants, TotalClassrooms = totalClassrooms, TotalDevices = totalDevices, OnlineDevices = onlineDevices, TodayNotifications = todayNotifications, AbnormalDevices = 0 }; } public async Task> GetAllDevicesAsync() { return await BuildDeviceAdminDtosAsync(null); } public async Task> GetTenantDevicesAsync(string tenantId) { return await BuildDeviceAdminDtosAsync(tenantId); } private async Task> BuildDeviceAdminDtosAsync(string? tenantId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var query = db.Devices.AsNoTracking(); if (!string.IsNullOrEmpty(tenantId) && tenantId != "global") { query = query.Where(d => d.TenantId == tenantId); } var devices = await query.ToListAsync(); var tenants = await db.Tenants.AsNoTracking().ToDictionaryAsync(t => t.Id, t => t.Name); var classrooms = await db.Classrooms.AsNoTracking().ToDictionaryAsync(c => $"{c.TenantId}_{c.Id}", c => c.DisplayName); var policy = scope.ServiceProvider.GetService>()?.Value ?? new ClassNotify.Server.Configuration.DeviceVersionPolicyOptions(); var liveSnapshot = _liveConnections.ToDictionary(k => k.Key, v => v.Value); return devices.Select(d => { var isOnline = _deviceToConnection.TryGetValue(d.Id, out var connId) && liveSnapshot.ContainsKey(connId); liveSnapshot.TryGetValue(connId ?? string.Empty, out var connInfo); tenants.TryGetValue(d.TenantId, out var tName); classrooms.TryGetValue($"{d.TenantId}_{d.ClassroomId}", out var cName); var serviceVer = d.ServiceVersion; var clientVer = isOnline ? (connInfo?.ClientVersion ?? d.ClientVersion) : d.ClientVersion; var protocolVer = d.ProtocolVersion; var versionStatus = policy.EvaluateVersionStatus(serviceVer, clientVer, protocolVer); return new DeviceAdminDto { DeviceId = d.Id, TenantId = d.TenantId, TenantName = tName ?? d.TenantId, ClassroomId = d.ClassroomId, ClassroomName = cName ?? d.ClassroomId, Hostname = d.Hostname, IsOnline = isOnline, LastHeartbeat = isOnline ? connInfo?.LastHeartbeat : d.LastHeartbeatAt, ClientVersion = clientVer, ServiceVersion = serviceVer, ProtocolVersion = protocolVer, OsVersion = d.OsVersion, Architecture = d.Architecture, VersionStatus = versionStatus, RemoteIp = isOnline ? connInfo?.RemoteIp : null, ServiceRunning = isOnline, ClientRunning = isOnline }; }).ToList(); } public Task RegisterDeviceConnectionAsync( string connectionId, string deviceId, string tenantId, string classroomId, string? hostname, string? remoteIp, string? clientVersion) { string? replacedConnectionId = null; if (_deviceToConnection.TryGetValue(deviceId, out var existingConnId)) { replacedConnectionId = existingConnId; _liveConnections.TryRemove(existingConnId, out _); _connectionTenantMap.TryRemove(existingConnId, out _); _logger.LogInformation("Replacing previous ConnectionId {OldConnId} with {NewConnId} for Device {DeviceId}", existingConnId, connectionId, deviceId); } _deviceToConnection[deviceId] = connectionId; var liveInfo = new LiveConnectionInfo(connectionId, deviceId, tenantId, classroomId, hostname, remoteIp, clientVersion, DateTimeOffset.UtcNow); _liveConnections[connectionId] = liveInfo; _connectionTenantMap[connectionId] = (tenantId, classroomId, deviceId); _logger.LogInformation("Device {DeviceId} connected via SignalR. ConnectionId={ConnId}, IP={RemoteIp}", deviceId, connectionId, remoteIp); return Task.FromResult(new DeviceConnectionRegistrationResult(connectionId, replacedConnectionId)); } public Task UnregisterDeviceConnectionAsync(string connectionId) { if (_connectionTenantMap.TryRemove(connectionId, out var info)) { _liveConnections.TryRemove(connectionId, out _); if (_deviceToConnection.TryGetValue(info.DeviceId, out var currentConnId) && currentConnId == connectionId) { _deviceToConnection.TryRemove(info.DeviceId, out _); _logger.LogInformation("Unregistered active device connection {ConnId} for Device {DeviceId}", connectionId, info.DeviceId); return Task.FromResult(true); } else { _logger.LogWarning("Ignored stale disconnect for {ConnId} (Device {DeviceId} active connection is {CurrentConnId})", connectionId, info.DeviceId, currentConnId); return Task.FromResult(false); } } return Task.FromResult(false); } public bool IsCurrentDeviceConnection(string deviceId, string connectionId) { return _deviceToConnection.TryGetValue(deviceId, out var currentConnId) && currentConnId == connectionId; } public Task UpdateDeviceHeartbeatAsync(string connectionId, DeviceHeartbeatDto? heartbeat = null) { if (_liveConnections.TryGetValue(connectionId, out var info)) { info.LastHeartbeat = DateTimeOffset.UtcNow; // Throttled DB heartbeat update (every 30s) var now = DateTimeOffset.UtcNow; var lastUpdate = _lastHeartbeatDbUpdate.GetOrAdd(info.DeviceId, DateTimeOffset.MinValue); if (now - lastUpdate >= TimeSpan.FromSeconds(30)) { _lastHeartbeatDbUpdate[info.DeviceId] = now; _ = Task.Run(async () => { try { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var dev = await db.Devices.FindAsync(info.DeviceId); if (dev != null) { dev.LastHeartbeatAt = now; if (heartbeat != null) { if (!string.IsNullOrEmpty(heartbeat.ServiceVersion)) dev.ServiceVersion = heartbeat.ServiceVersion; if (!string.IsNullOrEmpty(heartbeat.ClientVersion)) dev.ClientVersion = heartbeat.ClientVersion; if (heartbeat.ProtocolVersion > 0) dev.ProtocolVersion = heartbeat.ProtocolVersion; if (!string.IsNullOrEmpty(heartbeat.OsVersion)) dev.OsVersion = heartbeat.OsVersion; if (!string.IsNullOrEmpty(heartbeat.Architecture)) dev.Architecture = heartbeat.Architecture; dev.ClientProcessAvailable = heartbeat.ClientProcessAvailable; if (!string.IsNullOrEmpty(heartbeat.CorrelationId)) dev.LastHeartbeatCorrelationId = heartbeat.CorrelationId; } await db.SaveChangesAsync(); } } catch (Exception ex) { _logger.LogError(ex, "Failed to persist heartbeat update for device {DeviceId}", info.DeviceId); } }); } } return Task.CompletedTask; } public string? GetDeviceConnectionId(string deviceId) { return _deviceToConnection.TryGetValue(deviceId, out var connId) ? connId : null; } #endregion #region Activation Codes public async Task GenerateActivationCodeAsync(string tenantId, string classId, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var tenant = await db.Tenants.AsNoTracking().FirstOrDefaultAsync(t => t.Id == tenantId); if (tenant == null || !tenant.IsActive) { throw new InvalidOperationException($"租户不存在或已被禁用: {tenantId}"); } var classroomExists = await db.Classrooms.AnyAsync(c => c.TenantId == tenantId && c.Id == classId); if (!classroomExists) { db.Classrooms.Add(new Classroom { Id = classId, TenantId = tenantId, DisplayName = classId, CreatedAt = DateTimeOffset.UtcNow }); await db.SaveChangesAsync(); } var code = $"{tenantId[..Math.Min(4, tenantId.Length)].ToUpperInvariant()}-{Guid.NewGuid():N}"[..12].ToUpperInvariant(); db.ActivationCodes.Add(new ActivationCode { Code = code, TenantId = tenantId, ClassroomId = classId, ExpiresAt = DateTimeOffset.UtcNow.AddDays(7), IsUsed = false }); if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "GENERATE_ACTIVATION_CODE", TargetType = "ActivationCode", TargetId = code, Details = $"为学校 {tenantId} 班级 {classId} 生成激活码", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return code; } catch { await tx.RollbackAsync(); throw; } } public async Task> GetActivationCodesAsync(string? tenantId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var query = db.ActivationCodes.AsNoTracking(); if (!string.IsNullOrEmpty(tenantId) && tenantId != "global") { query = query.Where(c => c.TenantId == tenantId); } var codes = await query.OrderByDescending(c => c.ExpiresAt).ToListAsync(); var tenants = await db.Tenants.AsNoTracking().ToDictionaryAsync(t => t.Id, t => t.Name); var classrooms = await db.Classrooms.AsNoTracking().ToDictionaryAsync(c => $"{c.TenantId}_{c.Id}", c => c.DisplayName); return codes.Select(c => { tenants.TryGetValue(c.TenantId, out var tName); classrooms.TryGetValue($"{c.TenantId}_{c.ClassroomId}", out var cName); return new ActivationCodeDto { Code = c.Code, TenantId = c.TenantId, TenantName = tName ?? c.TenantId, ClassroomId = c.ClassroomId, ClassroomName = cName ?? c.ClassroomId, ExpiresAt = c.ExpiresAt, IsUsed = c.IsUsed, UsedAt = c.UsedAt, UsedByDeviceId = c.UsedByDeviceId }; }).ToList(); } #endregion #region Notifications & NotificationReceipts (PostgreSQL) public async Task RecordNotificationAsync(NotificationDto notification, string? senderUserId, string senderName) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var notifEntity = new Notification { Id = notification.Id, TenantId = notification.TenantId, ClassroomId = notification.ClassId, BroadcastId = notification.BroadcastId, SenderUserId = senderUserId, SenderName = senderName, Message = notification.Message, Title = notification.Title, Priority = notification.Type.ToString(), CreatedAt = notification.CreatedAt, ExpiresAt = notification.ExpiresAt, Voice = notification.Voice, Shake = notification.Shake, DurationSeconds = notification.DurationSeconds, CorrelationId = notification.CorrelationId }; db.Notifications.Add(notifEntity); // Find active devices for this classroom and create initial Receipt with Status = "Sent" var targetDevices = await db.Devices.AsNoTracking() .Where(d => d.TenantId == notification.TenantId && d.ClassroomId == notification.ClassId && d.IsActive) .ToListAsync(); foreach (var dev in targetDevices) { db.NotificationReceipts.Add(new NotificationReceipt { Id = $"rcpt_{Guid.NewGuid():N}", NotificationId = notification.Id, DeviceId = dev.Id, Status = "Sent", UpdatedAt = DateTimeOffset.UtcNow }); } await db.SaveChangesAsync(); } public async Task RecordAckAsync(string messageId, string authenticatedDeviceId, AckReceiptDto ack) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var notif = await db.Notifications.AsNoTracking().FirstOrDefaultAsync(n => n.Id == messageId); if (notif != null && !string.IsNullOrEmpty(notif.CorrelationId)) { if (!string.IsNullOrEmpty(ack.CorrelationId) && ack.CorrelationId != notif.CorrelationId) { _logger.LogWarning("ACK correlation mismatch for Msg {MsgId}: client provided {ClientCorrId}, canonical is {CanonicalCorrId}", messageId, ack.CorrelationId, notif.CorrelationId); } ack.CorrelationId = notif.CorrelationId; } var receipt = await db.NotificationReceipts .FirstOrDefaultAsync(r => r.NotificationId == messageId && r.DeviceId == authenticatedDeviceId); if (receipt == null) { // If receipt didn't exist (e.g. device activated after notification or direct delivery), create it receipt = new NotificationReceipt { Id = $"rcpt_{Guid.NewGuid():N}", NotificationId = messageId, DeviceId = authenticatedDeviceId, Status = "Sent", UpdatedAt = DateTimeOffset.UtcNow }; db.NotificationReceipts.Add(receipt); } // State Machine Protection: // Rank: Sent (0) -> DeviceReceived (1) -> Displayed (2) -> Acknowledged (3) // Terminal states: Timeout, Failed, Cancelled. // Rule: Never resurrect a Cancelled receipt, and never regress from Acknowledged to any lower rank or failure. if (receipt.Status == "Cancelled" || receipt.Status == "Acknowledged") { _logger.LogInformation("Receipt {ReceiptId} (Dev {DevId}) is terminal {Status}. Ignoring subsequent {NewStatus}.", receipt.Id, authenticatedDeviceId, receipt.Status, ack.Status); return; } switch (ack.Status) { case AckStatus.Delivered: // Client WPF displayed window on screen receipt.DeviceReceivedAt ??= ack.Timestamp; receipt.DisplayedAt ??= ack.Timestamp; if (receipt.Status != "Displayed" && receipt.Status != "Acknowledged") { receipt.Status = "Displayed"; } break; case AckStatus.Acknowledged: receipt.DeviceReceivedAt ??= ack.Timestamp; receipt.DisplayedAt ??= ack.Timestamp; receipt.AcknowledgedAt = ack.Timestamp; receipt.Status = "Acknowledged"; break; case AckStatus.Timeout: if (receipt.Status != "Acknowledged") { receipt.Status = "Timeout"; } break; case AckStatus.Failed: if (receipt.Status != "Acknowledged") { receipt.Status = "Failed"; receipt.FailedAt = ack.Timestamp; receipt.FailureReason = ack.Remark; } break; case AckStatus.Sent: default: break; } receipt.UpdatedAt = DateTimeOffset.UtcNow; await db.SaveChangesAsync(); } public async Task ValidateNotificationTargetAsync(string messageId, string tenantId, string classroomId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); return await db.Notifications.AsNoTracking() .AnyAsync(n => n.Id == messageId && n.TenantId == tenantId && n.ClassroomId == classroomId); } public async Task> GetNotificationsAsync(string? tenantId, string? classId, int limit = 50) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var query = db.Notifications.AsNoTracking().Include(n => n.Receipts).AsQueryable(); if (!string.IsNullOrEmpty(tenantId) && tenantId != "global") { query = query.Where(n => n.TenantId == tenantId); } if (!string.IsNullOrEmpty(classId)) { query = query.Where(n => n.ClassroomId == classId); } var notifications = await query.OrderByDescending(n => n.CreatedAt).Take(limit).ToListAsync(); var classrooms = await db.Classrooms.AsNoTracking().ToDictionaryAsync(c => $"{c.TenantId}_{c.Id}", c => c.DisplayName); return notifications.Select(n => { classrooms.TryGetValue($"{n.TenantId}_{n.ClassroomId}", out var cName); // Compute aggregate status across all device receipts string status = "Sent"; DateTimeOffset? confirmedAt = null; if (n.IsCancelled) { status = "Cancelled"; } else if (n.Receipts.Any(r => r.Status == "Acknowledged")) { status = "Acknowledged"; confirmedAt = n.Receipts.FirstOrDefault(r => r.Status == "Acknowledged")?.AcknowledgedAt; } else if (n.Receipts.Any(r => r.Status == "Displayed" || r.Status == "DeviceReceived")) { status = "Delivered"; } else if (n.Receipts.Any(r => r.Status == "Failed")) { status = "Failed"; } else if (n.Receipts.Any(r => r.Status == "Timeout")) { status = "Timeout"; } else if ((n.Receipts.Any() && n.Receipts.All(r => r.Status == "Expired")) || (n.ExpiresAt.HasValue && n.ExpiresAt.Value <= DateTimeOffset.UtcNow)) { status = "Expired"; } return new NotificationRecordDto { Id = n.Id, TenantId = n.TenantId, ClassId = n.ClassroomId, ClassName = cName ?? n.ClassroomId, SenderName = n.SenderName, Message = n.Message, Priority = n.Priority, CreatedAt = n.CreatedAt, Status = status, IsCancelled = n.IsCancelled, CancelledAt = n.CancelledAt, CancelledBy = n.CancelledBy, ConfirmedAt = confirmedAt, ExpiresAt = n.ExpiresAt, Receipts = n.Receipts.Select(r => new NotificationReceiptViewDto { DeviceId = r.DeviceId, Status = r.Status, DisplayedAt = r.DisplayedAt, VisualReceiptState = r.VisualReceiptState, VisualReceiptCapturedAt = r.VisualReceiptCapturedAt, VisualReceiptExpiresAt = r.VisualReceiptExpiresAt }).ToList() }; }).ToList(); } public async Task> GetPendingNotificationsForDeviceAsync(string deviceId) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var now = DateTimeOffset.UtcNow; // Query pending receipts for this authenticated device (excluding cancelled notifications) var pendingReceipts = await db.NotificationReceipts .Include(r => r.Notification) .Where(r => r.DeviceId == deviceId && r.Status == "Sent" && r.Notification != null && !r.Notification.IsCancelled) .ToListAsync(); var validDtos = new List(); bool hasStateChanges = false; foreach (var receipt in pendingReceipts) { if (receipt.Notification == null) continue; if (receipt.Notification.IsCancelled) { receipt.Status = "Cancelled"; receipt.UpdatedAt = now; hasStateChanges = true; continue; } // Check if notification has expired (or is legacy Batch 8 record where ExpiresAt is NULL) if (!receipt.Notification.ExpiresAt.HasValue || receipt.Notification.ExpiresAt.Value <= now) { receipt.Status = "Expired"; receipt.UpdatedAt = now; hasStateChanges = true; _logger.LogInformation("Receipt {ReceiptId} for Device {DeviceId} (Msg {MsgId}) marked Expired (ExpiresAt: {ExpiresAt}).", receipt.Id, deviceId, receipt.NotificationId, receipt.Notification.ExpiresAt); } else { var n = receipt.Notification; validDtos.Add(new NotificationDto { Id = n.Id, TenantId = n.TenantId, ClassId = n.ClassroomId, Title = n.Title, Message = n.Message, Type = Enum.TryParse(n.Priority, out var p) ? p : ClassNotify.Shared.Enums.NotificationType.Call, Voice = n.Voice, Shake = n.Shake, DurationSeconds = n.DurationSeconds, CreatedAt = n.CreatedAt, ExpiresAt = n.ExpiresAt }); } } if (hasStateChanges) { await db.SaveChangesAsync(); } return validDtos.OrderBy(d => d.CreatedAt).ToList(); } public async Task CancelNotificationAsync( string notificationId, string actorUserId, string actorUsername, string role, string tenantId, string? ip, CancellationToken ct = default) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var snapshot = await db.Notifications .AsNoTracking() .Where(n => n.Id == notificationId) .Select(n => new { n.Id, n.TenantId, n.ClassroomId, n.SenderUserId, n.SenderName, n.Message, n.IsCancelled, n.CancelledAt, n.CancelledBy }) .SingleOrDefaultAsync(ct); if (snapshot == null) throw new KeyNotFoundException("通知记录不存在。"); // ---------- Authorization (Enforced at Service Layer) ---------- switch (role) { case "SuperAdmin": break; case "SchoolAdmin": if (snapshot.TenantId != tenantId) throw new UnauthorizedAccessException("无权撤回其他学校的通知。"); break; case "Teacher": if (snapshot.TenantId != tenantId) throw new UnauthorizedAccessException("无权撤回其他学校的通知。"); // Check ownership: Strict SenderUserId matching (never rely on mutable display name) if (!string.IsNullOrEmpty(snapshot.SenderUserId) && snapshot.SenderUserId != actorUserId) throw new UnauthorizedAccessException("教师只能撤回自己发送的通知。"); break; default: throw new UnauthorizedAccessException("当前角色无通知撤回权限。"); } if (snapshot.IsCancelled) { return new CancelNotificationResult( snapshot.Id, snapshot.TenantId, snapshot.ClassroomId, true, snapshot.CancelledAt, snapshot.CancelledBy); } var now = DateTimeOffset.UtcNow; await using var tx = await db.Database.BeginTransactionAsync(ct); try { // 原子 first-writer-wins var affected = await db.Notifications .Where(n => n.Id == notificationId && !n.IsCancelled) .ExecuteUpdateAsync(setters => setters .SetProperty(n => n.IsCancelled, true) .SetProperty(n => n.CancelledAt, now) .SetProperty(n => n.CancelledBy, actorUsername), ct); if (affected == 0) { var current = await db.Notifications.AsNoTracking() .SingleAsync(n => n.Id == notificationId, ct); await tx.RollbackAsync(ct); return new CancelNotificationResult( current.Id, current.TenantId, current.ClassroomId, true, current.CancelledAt, current.CancelledBy); } // 只终止尚未 Displayed / Acknowledged 的 Receipt await db.NotificationReceipts .Where(r => r.NotificationId == notificationId && (r.Status == "Sent" || r.Status == "DeviceReceived")) .ExecuteUpdateAsync(setters => setters .SetProperty(r => r.Status, "Cancelled") .SetProperty(r => r.UpdatedAt, now), ct); db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = now, ActorUsername = actorUsername, ActorRole = role, Action = "NOTIFICATION_CANCELLED", TargetType = "Notification", TargetId = notificationId, Details = $"提前关闭通知,Tenant={snapshot.TenantId}, Classroom={snapshot.ClassroomId}: {snapshot.Message}", IpAddress = ip }); await db.SaveChangesAsync(ct); await tx.CommitAsync(ct); return new CancelNotificationResult( notificationId, snapshot.TenantId, snapshot.ClassroomId, false, now, actorUsername); } catch { await tx.RollbackAsync(ct); throw; } } #endregion #region Device Commands (P1 Batch 10) public async Task CreateDeviceCommandAsync(string? callerTenantId, string deviceId, string commandType, string? parameters, string createdBy, string? actorRole = null, string? ip = null) { if (string.IsNullOrWhiteSpace(deviceId)) { throw new ArgumentException("DeviceId cannot be empty", nameof(deviceId)); } // Whitelist check if (!DeviceCommandTypes.IsSupported(commandType)) { throw new ArgumentException($"Unsupported command type '{commandType}'. Whitelist: {string.Join(", ", DeviceCommandTypes.AllSupported)}"); } using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var device = await db.Devices.FirstOrDefaultAsync(d => d.Id == deviceId); if (device == null) { throw new InvalidOperationException($"Target device '{deviceId}' not found"); } // Multi-tenant isolation: non-superadmin caller must match device tenant if (!string.IsNullOrEmpty(callerTenantId) && !string.Equals(callerTenantId, device.TenantId, StringComparison.OrdinalIgnoreCase)) { throw new UnauthorizedAccessException($"Device '{deviceId}' does not belong to tenant '{callerTenantId}'"); } // P0-02 Security Gate: Verify tenant is active var tenant = await db.Tenants.FirstOrDefaultAsync(t => t.Id == device.TenantId); if (tenant != null && !tenant.IsActive) { throw new InvalidOperationException($"设备所属学校 [{tenant.Name}] 已停用冻结,无法下发远程运维指令"); } var ttl = DeviceCommandTypes.GetDefaultTtl(commandType); var now = DateTimeOffset.UtcNow; var commandId = $"cmd_{Guid.NewGuid():N}"; var entity = new DeviceCommand { Id = commandId, TenantId = device.TenantId, DeviceId = device.Id, CommandType = commandType, Parameters = parameters, CreatedBy = createdBy, CreatedAt = now, ExpiresAt = now.Add(ttl), Status = DeviceCommandStatuses.Pending }; db.DeviceCommands.Add(entity); // Pre-Audit in the EXACT SAME database transaction: // Ensures DeviceCommand cannot persist without immutable REMOTE_COMMAND_REQUESTED audit db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = now, ActorUsername = createdBy, ActorRole = actorRole ?? "SuperAdmin", Action = "REMOTE_COMMAND_REQUESTED", TargetType = "Device", TargetId = device.Id, Details = $"创建远程控制指令: {commandType} (CommandId: {commandId}, 参数: {parameters ?? "none"})", IpAddress = ip }); await db.SaveChangesAsync(); await tx.CommitAsync(); _logger.LogInformation("Created remote command {CommandId} ({CommandType}) with atomic Pre-Audit for Device {DeviceId} (Tenant {TenantId}) by {CreatedBy}", commandId, commandType, device.Id, device.TenantId, createdBy); return new DeviceCommandDto { CommandId = entity.Id, TenantId = entity.TenantId, DeviceId = entity.DeviceId, CommandType = entity.CommandType, Parameters = entity.Parameters, CreatedBy = entity.CreatedBy, CreatedAt = entity.CreatedAt, ExpiresAt = entity.ExpiresAt, Status = entity.Status }; } catch { await tx.RollbackAsync(); throw; } } public async Task MarkCommandDispatchedAsync(string commandId) { if (string.IsNullOrWhiteSpace(commandId)) return false; using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var cmd = await db.DeviceCommands.FirstOrDefaultAsync(c => c.Id == commandId); if (cmd == null) return false; if (cmd.Status == DeviceCommandStatuses.Pending) { cmd.Status = DeviceCommandStatuses.Dispatched; await db.SaveChangesAsync(); return true; } return false; } public async Task RecordCommandResultAsync(DeviceCommandResultDto result, string callerDeviceId, string? callerTenantId) { if (result == null || string.IsNullOrWhiteSpace(result.CommandId)) { _logger.LogWarning("RecordCommandResultAsync called with empty CommandId"); return null; } using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var cmd = await db.DeviceCommands.FirstOrDefaultAsync(c => c.Id == result.CommandId); if (cmd == null) { _logger.LogWarning("Remote command {CommandId} not found when recording execution result", result.CommandId); return null; } // Security assertion: device and tenant isolation if (!string.Equals(cmd.DeviceId, callerDeviceId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("Rejecting command result: DeviceId mismatch. Target: {TargetDevice}, Caller: {CallerDevice} (Command {CommandId})", cmd.DeviceId, callerDeviceId, result.CommandId); return null; } if (!string.IsNullOrEmpty(callerTenantId) && !string.Equals(cmd.TenantId, callerTenantId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("Rejecting command result: TenantId mismatch. Target: {TargetTenant}, Caller: {CallerTenant} (Command {CommandId})", cmd.TenantId, callerTenantId, result.CommandId); return null; } // Idempotency: if already reached terminal state, do not overwrite final outcome if (DeviceCommandStatuses.IsTerminal(cmd.Status)) { _logger.LogInformation("Command {CommandId} already completed with terminal status '{Status}'. Ignoring duplicate result report.", cmd.Id, cmd.Status); return new DeviceCommandResultDto { CommandId = cmd.Id, DeviceId = cmd.DeviceId, Status = cmd.Status, ResultCode = cmd.ResultCode ?? 0, ResultMessage = cmd.ResultMessage, ExecutionDurationMs = cmd.DurationMs ?? 0, Timestamp = cmd.CompletedAt ?? DateTimeOffset.UtcNow }; } var now = DateTimeOffset.UtcNow; cmd.Status = result.Status; cmd.ResultCode = result.ResultCode; cmd.DurationMs = result.ExecutionDurationMs; cmd.ResultMessage = result.ResultMessage != null && result.ResultMessage.Length > 1000 ? result.ResultMessage[..1000] : result.ResultMessage; cmd.StartedAt ??= result.Timestamp; cmd.CompletedAt = now; await db.SaveChangesAsync(); _logger.LogInformation("Recorded execution result for Command {CommandId} (Device {DeviceId}): Status={Status}, ResultCode={ResultCode}, Duration={Duration}ms", cmd.Id, cmd.DeviceId, cmd.Status, cmd.ResultCode, cmd.DurationMs); return new DeviceCommandResultDto { CommandId = cmd.Id, DeviceId = cmd.DeviceId, Status = cmd.Status, ResultCode = cmd.ResultCode ?? 0, ResultMessage = cmd.ResultMessage, ExecutionDurationMs = cmd.DurationMs ?? result.ExecutionDurationMs, Timestamp = cmd.CompletedAt ?? now }; } public async Task GetDeviceCommandAsync(string commandId, string? callerTenantId = null) { if (string.IsNullOrWhiteSpace(commandId)) return null; using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var cmd = await db.DeviceCommands.FirstOrDefaultAsync(c => c.Id == commandId); if (cmd == null) return null; if (!string.IsNullOrEmpty(callerTenantId) && !string.Equals(cmd.TenantId, callerTenantId, StringComparison.OrdinalIgnoreCase)) { return null; } // Active TTL evaluation: if Pending/Dispatched and past ExpiresAt, transition via Normalizer if (DeviceCommandNormalizer.NormalizeExpiredOrTimedOut(cmd, DateTimeOffset.UtcNow)) { await db.SaveChangesAsync(); } return new DeviceCommandDto { CommandId = cmd.Id, TenantId = cmd.TenantId, DeviceId = cmd.DeviceId, CommandType = cmd.CommandType, Parameters = cmd.Parameters, CreatedBy = cmd.CreatedBy, CreatedAt = cmd.CreatedAt, ExpiresAt = cmd.ExpiresAt, Status = cmd.Status, StartedAt = cmd.StartedAt, CompletedAt = cmd.CompletedAt, DurationMs = cmd.DurationMs, ResultCode = cmd.ResultCode, ResultMessage = cmd.ResultMessage }; } public async Task> GetPendingCommandsForDeviceAsync(string deviceId) { if (string.IsNullOrWhiteSpace(deviceId)) return new List(); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var list = await db.DeviceCommands .Where(c => c.DeviceId == deviceId && (c.Status == DeviceCommandStatuses.Pending || c.Status == DeviceCommandStatuses.Dispatched)) .OrderBy(c => c.CreatedAt) .ToListAsync(); var now = DateTimeOffset.UtcNow; var valid = new List(); bool hasExpiredUpdates = false; foreach (var cmd in list) { if (DeviceCommandNormalizer.NormalizeExpiredOrTimedOut(cmd, now)) { hasExpiredUpdates = true; _logger.LogInformation("Command {CommandId} for Device {DeviceId} marked {Status} (ExpiresAt: {ExpiresAt}).", cmd.Id, deviceId, cmd.Status, cmd.ExpiresAt); } else { valid.Add(new DeviceCommandDto { CommandId = cmd.Id, TenantId = cmd.TenantId, DeviceId = cmd.DeviceId, CommandType = cmd.CommandType, Parameters = cmd.Parameters, CreatedBy = cmd.CreatedBy, CreatedAt = cmd.CreatedAt, ExpiresAt = cmd.ExpiresAt, Status = cmd.Status, StartedAt = cmd.StartedAt, CompletedAt = cmd.CompletedAt, DurationMs = cmd.DurationMs, ResultCode = cmd.ResultCode, ResultMessage = cmd.ResultMessage }); } } if (hasExpiredUpdates) { await db.SaveChangesAsync(); } return valid; } public async Task> GetDeviceCommandHistoryAsync(string? tenantId, string? deviceId, string? status, int limit = 50) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var query = db.DeviceCommands.AsQueryable(); if (!string.IsNullOrEmpty(tenantId)) { query = query.Where(c => c.TenantId == tenantId); } if (!string.IsNullOrEmpty(deviceId)) { query = query.Where(c => c.DeviceId == deviceId); } if (!string.IsNullOrEmpty(status)) { query = query.Where(c => c.Status == status); } var commands = await query .OrderByDescending(c => c.CreatedAt) .Take(Math.Min(limit, 200)) .ToListAsync(); var now = DateTimeOffset.UtcNow; bool hasExpiredUpdates = false; var result = new List(); foreach (var cmd in commands) { if (DeviceCommandNormalizer.NormalizeExpiredOrTimedOut(cmd, now)) { hasExpiredUpdates = true; } result.Add(new DeviceCommandDto { CommandId = cmd.Id, TenantId = cmd.TenantId, DeviceId = cmd.DeviceId, CommandType = cmd.CommandType, Parameters = cmd.Parameters, CreatedBy = cmd.CreatedBy, CreatedAt = cmd.CreatedAt, ExpiresAt = cmd.ExpiresAt, Status = cmd.Status, StartedAt = cmd.StartedAt, CompletedAt = cmd.CompletedAt, DurationMs = cmd.DurationMs, ResultCode = cmd.ResultCode, ResultMessage = cmd.ResultMessage }); } if (hasExpiredUpdates) { await db.SaveChangesAsync(); } return result; } #endregion #region Helpers public string GenerateJwtToken(User user) { var tokenHandler = new JwtSecurityTokenHandler(); var key = Encoding.UTF8.GetBytes(_jwtOptions.SigningKey); var tokenDescriptor = new SecurityTokenDescriptor { Subject = new ClaimsIdentity(new[] { new Claim(ClaimTypes.NameIdentifier, user.Id), new Claim(ClaimTypes.Name, user.FullName), new Claim(ClaimTypes.Role, user.Role), new Claim("tenant_id", user.TenantId), new Claim("token_version", user.TokenVersion.ToString()) }), Issuer = _jwtOptions.Issuer, Audience = _jwtOptions.Audience, Expires = DateTime.UtcNow.AddDays(_jwtOptions.LifetimeDays > 0 ? _jwtOptions.LifetimeDays : 14), SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature) }; var token = tokenHandler.CreateToken(tokenDescriptor); return tokenHandler.WriteToken(token); } /// /// Legacy SHA256 password verifier for migration of existing accounts. /// STRICTLY PROHIBITED FOR GENERATING NEW PASSWORDS. /// public static bool VerifyLegacyPassword(string plaintextPassword, string legacyHash) { if (string.IsNullOrEmpty(plaintextPassword) || string.IsNullOrEmpty(legacyHash)) { return false; } using var sha = SHA256.Create(); var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(plaintextPassword + "_classnotify_salt")); var computed = Convert.ToBase64String(bytes); return CryptographicOperations.FixedTimeEquals( Encoding.UTF8.GetBytes(computed), Encoding.UTF8.GetBytes(legacyHash)); } private static string HashToken(string token) { using var sha = SHA256.Create(); var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(token)); return Convert.ToBase64String(bytes); } #region SuperAdmin Control Plane Implementations public async Task CreateTenantAsync(string id, string name, string? actor = null, string? actorRole = null, string? ip = null) { if (string.IsNullOrWhiteSpace(id) || string.IsNullOrWhiteSpace(name)) throw new ArgumentException("学校ID与名称不可为空"); var cleanId = id.Trim().ToLowerInvariant(); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { if (await db.Tenants.AnyAsync(t => t.Id == cleanId)) throw new InvalidOperationException($"租户ID '{cleanId}' 已存在"); var tenant = new Tenant { Id = cleanId, Name = name.Trim(), IsActive = true, CreatedAt = DateTimeOffset.UtcNow }; db.Tenants.Add(tenant); if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "CREATE_TENANT", TargetType = "Tenant", TargetId = tenant.Id, Details = $"创建学校: {tenant.Name} ({tenant.Id})", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return new TenantAdminDto { Id = tenant.Id, Name = tenant.Name, ClassroomCount = 0, DeviceCount = 0, OnlineCount = 0, IsActive = tenant.IsActive, CreatedAt = tenant.CreatedAt }; } catch { await tx.RollbackAsync(); throw; } } public async Task UpdateTenantAsync(string id, string name, bool isActive, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var tenant = await db.Tenants.FirstOrDefaultAsync(t => t.Id == id); if (tenant == null) return null; if (!string.IsNullOrWhiteSpace(name)) tenant.Name = name.Trim(); tenant.IsActive = isActive; if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "UPDATE_TENANT", TargetType = "Tenant", TargetId = tenant.Id, Details = $"更新学校: {tenant.Name}, 启用状态: {tenant.IsActive}", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); var classroomCount = await db.Classrooms.CountAsync(c => c.TenantId == id); var deviceCount = await db.Devices.CountAsync(d => d.TenantId == id); var onlineCount = _liveConnections.Values.Count(c => c.TenantId == id); return new TenantAdminDto { Id = tenant.Id, Name = tenant.Name, ClassroomCount = classroomCount, DeviceCount = deviceCount, OnlineCount = onlineCount, IsActive = tenant.IsActive, CreatedAt = tenant.CreatedAt }; } catch { await tx.RollbackAsync(); throw; } } public async Task> GetAllUsersAdminAsync(string? tenantId, string? role) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var query = db.Users.Include(u => u.Tenant).AsQueryable(); if (!string.IsNullOrWhiteSpace(tenantId)) query = query.Where(u => u.TenantId == tenantId); if (!string.IsNullOrWhiteSpace(role)) query = query.Where(u => u.Role == role); var list = await query.OrderByDescending(u => u.CreatedAt).ToListAsync(); return list.Select(u => new UserAdminDto { Id = u.Id, TenantId = u.TenantId, TenantName = u.Tenant?.Name ?? u.TenantId, Username = u.Username, FullName = u.FullName, Role = u.Role, IsLocked = u.IsLocked, CreatedAt = u.CreatedAt, LastLoginAt = u.LastLoginAt }).ToList(); } public async Task CreateUserAdminAsync(CreateUserAdminRequest req, string? actor = null, string? actorRole = null, string? ip = null) { if (string.IsNullOrWhiteSpace(req.TenantId) || string.IsNullOrWhiteSpace(req.Username) || string.IsNullOrWhiteSpace(req.Password) || string.IsNullOrWhiteSpace(req.FullName)) throw new ArgumentException("所有必填字段均不可为空"); // P1 Gate: Minimum password length 8 characters if (req.Password.Trim().Length < 8) throw new ArgumentException("密码长度不能少于 8 位"); var targetRole = req.Role?.Trim(); if (targetRole != "SchoolAdmin" && targetRole != "Teacher") throw new ArgumentException("角色必须为 'SchoolAdmin' 或 'Teacher'"); var cleanUser = req.Username.Trim(); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { if (await db.Users.AnyAsync(u => u.Username == cleanUser)) throw new InvalidOperationException($"用户名 '{cleanUser}' 已被占用"); var tenant = await db.Tenants.FirstOrDefaultAsync(t => t.Id == req.TenantId); if (tenant == null) throw new InvalidOperationException($"租户 '{req.TenantId}' 不存在"); // P0-02 Security Gate: Verify tenant is active if (!tenant.IsActive) throw new InvalidOperationException($"学校租户 '{tenant.Name}' 处于停用冻结状态,无法开通新账号"); var user = new User { Id = $"usr_{Guid.NewGuid():N}".Substring(0, 12), TenantId = req.TenantId, Username = cleanUser, FullName = req.FullName.Trim(), Role = targetRole, IsLocked = false, TokenVersion = 1, CreatedAt = DateTimeOffset.UtcNow }; user.PasswordHash = _passwordHasher.HashPassword(user, req.Password); db.Users.Add(user); if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "CREATE_USER", TargetType = "User", TargetId = user.Username, Details = $"创建用户: {user.FullName} ({user.Role}),学校: {tenant.Name}", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return new UserAdminDto { Id = user.Id, TenantId = user.TenantId, TenantName = tenant.Name, Username = user.Username, FullName = user.FullName, Role = user.Role, IsLocked = user.IsLocked, CreatedAt = user.CreatedAt }; } catch { await tx.RollbackAsync(); throw; } } public async Task ResetPasswordAsync(string userId, string newPassword, string? actor = null, string? actorRole = null, string? ip = null) { if (string.IsNullOrWhiteSpace(newPassword) || newPassword.Trim().Length < 8) throw new ArgumentException("新密码长度不能少于 8 位"); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var user = await db.Users.FirstOrDefaultAsync(u => u.Id == userId); if (user == null) return false; user.PasswordHash = _passwordHasher.HashPassword(user, newPassword); user.TokenVersion++; // Permanent invalidation of existing JWTs if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "RESET_PASSWORD", TargetType = "User", TargetId = userId, Details = "管理员重置用户登录密码", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return true; } catch { await tx.RollbackAsync(); throw; } } public async Task SetUserLockAsync(string userId, bool isLocked, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var user = await db.Users.FirstOrDefaultAsync(u => u.Id == userId); if (user == null) return false; user.IsLocked = isLocked; user.TokenVersion++; // Invalidate existing tokens if (!string.IsNullOrEmpty(actor)) { var action = isLocked ? "LOCK_USER" : "UNLOCK_USER"; var detail = isLocked ? "锁定账号 (禁止登录)" : "解锁账号 (恢复登录)"; db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = action, TargetType = "User", TargetId = userId, Details = detail, IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return true; } catch { await tx.RollbackAsync(); throw; } } public async Task ResetSchoolTeacherPasswordAsync(string schoolAdminTenantId, string teacherUserId, string newPassword, string actorUsername, string? ip, CancellationToken ct = default) { if (string.IsNullOrWhiteSpace(newPassword) || newPassword.Trim().Length < 8) throw new ArgumentException("新密码长度不得少于 8 位"); using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var targetUser = await db.Users .FirstOrDefaultAsync(u => u.Id == teacherUserId, ct); if (targetUser == null) throw new KeyNotFoundException("账号不存在。"); if (targetUser.Role == "SuperAdmin") throw new UnauthorizedAccessException("无权修改超级管理员密码。"); if (targetUser.TenantId != schoolAdminTenantId) throw new UnauthorizedAccessException("无权修改其他学校账号密码。"); if (targetUser.Role != "Teacher") throw new UnauthorizedAccessException("学校管理员无权修改非教师角色账号密码。"); await using var tx = await db.Database.BeginTransactionAsync(ct); try { targetUser.PasswordHash = _passwordHasher.HashPassword(targetUser, newPassword); targetUser.TokenVersion += 1; // 吊销旧 Token db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actorUsername, ActorRole = "SchoolAdmin", Action = "SCHOOLADMIN_RESET_TEACHER_PASSWORD", TargetType = "User", TargetId = teacherUserId, Details = $"重置教师密码: {targetUser.Username}", IpAddress = ip }); await db.SaveChangesAsync(ct); await tx.CommitAsync(ct); return true; } catch { await tx.RollbackAsync(ct); throw; } } public async Task SetSchoolTeacherLockAsync(string schoolAdminTenantId, string teacherUserId, bool isLocked, string actorUsername, string? ip, CancellationToken ct = default) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var targetUser = await db.Users .FirstOrDefaultAsync(u => u.Id == teacherUserId, ct); if (targetUser == null) throw new KeyNotFoundException("账号不存在。"); if (targetUser.Role == "SuperAdmin") throw new UnauthorizedAccessException("无权锁定超级管理员账号。"); if (targetUser.TenantId != schoolAdminTenantId) throw new UnauthorizedAccessException("无权操作其他学校账号。"); if (targetUser.Role != "Teacher") throw new UnauthorizedAccessException("学校管理员无权启停非教师角色账号。"); if (targetUser.IsLocked == isLocked) return false; await using var tx = await db.Database.BeginTransactionAsync(ct); try { targetUser.IsLocked = isLocked; targetUser.TokenVersion += 1; var action = isLocked ? "SCHOOLADMIN_LOCK_TEACHER" : "SCHOOLADMIN_UNLOCK_TEACHER"; var details = isLocked ? $"停用教师账号: {targetUser.Username}" : $"恢复教师账号: {targetUser.Username}"; db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actorUsername, ActorRole = "SchoolAdmin", Action = action, TargetType = "User", TargetId = teacherUserId, Details = details, IpAddress = ip }); await db.SaveChangesAsync(ct); await tx.CommitAsync(ct); return true; } catch { await tx.RollbackAsync(ct); throw; } } public async Task GetBroadcastReceiptSummaryAsync(string broadcastId, CancellationToken ct = default) { if (string.IsNullOrWhiteSpace(broadcastId)) return null; using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var notifications = await db.Notifications .AsNoTracking() .Include(n => n.Receipts) .Where(n => n.BroadcastId == broadcastId) .ToListAsync(ct); if (notifications.Count == 0) return null; var receipts = notifications .SelectMany(n => n.Receipts) .ToList(); return new BroadcastReceiptSummaryDto { BroadcastId = broadcastId, TargetSchools = notifications.Select(n => n.TenantId).Distinct().Count(), TargetClassrooms = notifications.Count, TargetDevices = receipts.Count, Displayed = receipts.Count(r => NotificationReceiptStatuses.IsDisplayed(r.Status)), Pending = receipts.Count(r => NotificationReceiptStatuses.IsPending(r.Status)), Cancelled = receipts.Count(r => r.Status == NotificationReceiptStatuses.Cancelled), Failed = receipts.Count(r => NotificationReceiptStatuses.IsFailed(r.Status)), CreatedAt = notifications.Min(n => n.CreatedAt) }; } public async Task DeleteUserAsync(string userId, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var user = await db.Users.FirstOrDefaultAsync(u => u.Id == userId); if (user == null) return false; if (user.Role == "SuperAdmin") throw new InvalidOperationException("无法删除超级管理员"); db.Users.Remove(user); if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "DELETE_USER", TargetType = "User", TargetId = userId, Details = "删除用户", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return true; } catch { await tx.RollbackAsync(); throw; } } public async Task UpdateDeviceAsync(string deviceId, string? hostname, string? classroomId, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var device = await db.Devices.FirstOrDefaultAsync(d => d.Id == deviceId); if (device == null) return false; if (!string.IsNullOrWhiteSpace(hostname)) device.Hostname = hostname.Trim(); if (!string.IsNullOrWhiteSpace(classroomId)) { var targetClass = classroomId.Trim(); var classExists = await db.Classrooms.AsNoTracking().AnyAsync(c => c.TenantId == device.TenantId && c.Id == targetClass); if (!classExists) { throw new InvalidOperationException($"目标班级不存在或不属于设备所在的学校租户 ({device.TenantId}): {targetClass}"); } device.ClassroomId = targetClass; } if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "UPDATE_DEVICE", TargetType = "Device", TargetId = deviceId, Details = $"更新设备元数据: 主机名={hostname}, 绑定班级={classroomId}", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return true; } catch { await tx.RollbackAsync(); throw; } } public async Task DecommissionDeviceAsync(string deviceId, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var device = await db.Devices.FirstOrDefaultAsync(d => d.Id == deviceId); if (device == null) return false; device.IsActive = false; device.LastHeartbeatAt = null; if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "DECOMMISSION_DEVICE", TargetType = "Device", TargetId = deviceId, Details = "清退并注销指定设备", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); if (_deviceToConnection.TryRemove(deviceId, out var connId)) { _liveConnections.TryRemove(connId, out _); _connectionTenantMap.TryRemove(connId, out _); } return true; } catch { await tx.RollbackAsync(); throw; } } public async Task DeleteActivationCodeAsync(string code, string? actor = null, string? actorRole = null, string? ip = null) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); await using var tx = await db.Database.BeginTransactionAsync(); try { var act = await db.ActivationCodes.FirstOrDefaultAsync(a => a.Code == code); if (act == null) return false; db.ActivationCodes.Remove(act); if (!string.IsNullOrEmpty(actor)) { db.AdminAuditEvents.Add(new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}"[..16], OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actor, ActorRole = actorRole ?? "SuperAdmin", Action = "DELETE_ACTIVATION_CODE", TargetType = "ActivationCode", TargetId = code, Details = "作废/删除激活码", IpAddress = ip }); } await db.SaveChangesAsync(); await tx.CommitAsync(); return true; } catch { await tx.RollbackAsync(); throw; } } public async Task GetSystemHealthAsync() { bool dbOk = false; double latencyMs = 0; using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); try { var sw = System.Diagnostics.Stopwatch.StartNew(); dbOk = await db.Database.CanConnectAsync(); sw.Stop(); latencyMs = sw.Elapsed.TotalMilliseconds; } catch {} var process = System.Diagnostics.Process.GetCurrentProcess(); var uptime = DateTime.UtcNow - process.StartTime.ToUniversalTime(); return new SystemHealthDto { Status = dbOk ? "Healthy" : "Degraded", DatabaseConnected = dbOk, DatabaseLatencyMs = Math.Round(latencyMs, 2), ActiveSignalRConnections = _liveConnections.Count, OnlineDevices = _liveConnections.Count, ServerTime = DateTimeOffset.UtcNow.ToString("o"), Uptime = $"{(int)uptime.TotalHours}h {uptime.Minutes}m {uptime.Seconds}s", MemoryUsedBytes = process.WorkingSet64 }; } public async Task LogAdminAuditAsync(string actorUsername, string actorRole, string action, string targetType, string targetId, string? details, string? ip) { try { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var evt = new AdminAuditEvent { Id = $"aud_{Guid.NewGuid():N}".Substring(0, 16), OccurredAt = DateTimeOffset.UtcNow, ActorUsername = actorUsername, ActorRole = actorRole, Action = action, TargetType = targetType, TargetId = targetId, Details = details, IpAddress = ip }; db.AdminAuditEvents.Add(evt); await db.SaveChangesAsync(); } catch (Exception ex) { _logger.LogError(ex, "FATAL SECURITY AUDIT FAILURE: Failed to persist AdminAuditEvent for action {Action} (fail-closed engaged)", action); throw; } } public async Task> GetAdminAuditLogsAsync(int limit = 100) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var list = await db.AdminAuditEvents .OrderByDescending(a => a.OccurredAt) .Take(limit) .ToListAsync(); return list.Select(a => new AdminAuditLogDto { Id = a.Id, OccurredAt = a.OccurredAt, ActorUsername = a.ActorUsername, ActorRole = a.ActorRole, Action = a.Action, TargetType = a.TargetType, TargetId = a.TargetId, Details = a.Details, IpAddress = a.IpAddress }).ToList(); } #endregion #endregion } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SelfCheckBatchReconciler.cs ================================================================================ using ClassNotify.Server.Data; using ClassNotify.Shared.Models; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Services; /// /// 批次自检超时与完成度收敛对齐器 (P2.5 RC1-2) /// 负责扫描超期 Run 并将其置为 TimedOut(迟到报告拒绝覆盖) /// 当批次下所有 Run 均到达终态 (Completed/Unreachable/TimedOut) 时,将 Batch.Status 收敛为 Completed /// public sealed class SelfCheckBatchReconciler : BackgroundService { private readonly IServiceScopeFactory _scopeFactory; private readonly ILogger _logger; public SelfCheckBatchReconciler( IServiceScopeFactory scopeFactory, ILogger logger) { _scopeFactory = scopeFactory; _logger = logger; } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("SelfCheckBatchReconciler started."); while (!stoppingToken.IsCancellationRequested) { try { await ReconcileAsync(stoppingToken); await Task.Delay(2000, stoppingToken); } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } catch (Exception ex) { _logger.LogError(ex, "Unexpected error in SelfCheckBatchReconciler loop"); await Task.Delay(2000, stoppingToken); } } _logger.LogInformation("SelfCheckBatchReconciler stopped."); } private async Task ReconcileAsync(CancellationToken ct) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var now = DateTimeOffset.UtcNow; // 1. Reconcile timed-out runs var timedOutRuns = await db.DeviceSelfChecks .Where(r => (r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched) && r.DeadlineAtUtc < now) .ToListAsync(ct); if (timedOutRuns.Count > 0) { foreach (var run in timedOutRuns) { run.RunState = SelfCheckRunStates.TimedOut; run.Status = "Timeout"; run.CompletedAtUtc = now; _logger.LogWarning("SelfCheck {RunId} timed out at {Deadline:u}. BatchId={BatchId}, DeviceId={DeviceId}", run.Id, run.DeadlineAtUtc, run.BatchId, run.DeviceId); } await db.SaveChangesAsync(ct); } // 2. Reconcile running batches to Completed when all runs reach terminal states var runningBatches = await db.DeviceSelfCheckBatches .Where(b => b.Status == "Running") .ToListAsync(ct); bool batchesUpdated = false; foreach (var batch in runningBatches) { var activeCount = await db.DeviceSelfChecks .CountAsync(r => r.BatchId == batch.Id && (r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched), ct); if (activeCount == 0) { batch.Status = "Completed"; batch.CompletedAtUtc = now; batch.UpdatedAtUtc = now; batchesUpdated = true; _logger.LogInformation("SelfCheck batch {BatchId} reached terminal state (Completed). Target={Target}", batch.Id, batch.TargetDeviceCount); } } if (batchesUpdated) { await db.SaveChangesAsync(ct); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SelfCheckBatchService.cs ================================================================================ using System.Collections.Concurrent; using System.Text.Json; using System.Threading.Channels; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Infrastructure.Correlation; using ClassNotify.Shared.Models; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Services; public sealed class SelfCheckDispatchNotifier : ISelfCheckDispatchNotifier { private readonly Channel _channel = Channel.CreateBounded(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest }); public void Notify() { _channel.Writer.TryWrite(1); } public async Task WaitAsync(CancellationToken ct) { await _channel.Reader.WaitToReadAsync(ct); while (_channel.Reader.TryRead(out _)) { } } } public class SelfCheckBatchService : ISelfCheckBatchService { private static readonly ConcurrentDictionary _batchCreationLocks = new(); private readonly ClassNotifyDbContext _db; private readonly ICorrelationContext _correlationContext; private readonly ISelfCheckDispatchNotifier _dispatchNotifier; private readonly IDevicePresenceService _presenceService; private readonly ILogger _logger; public SelfCheckBatchService( ClassNotifyDbContext db, ICorrelationContext correlationContext, ISelfCheckDispatchNotifier dispatchNotifier, IDevicePresenceService presenceService, ILogger logger) { _db = db; _correlationContext = correlationContext; _dispatchNotifier = dispatchNotifier; _presenceService = presenceService; _logger = logger; } public async Task CreateBatchAsync( CreateSelfCheckBatchRequest request, string actorUserId, string actorIp, CancellationToken ct) { if (request == null || request.DeviceIds == null) { throw new ArgumentException("请求体不可为空。"); } var deviceIds = request.DeviceIds .Where(x => !string.IsNullOrWhiteSpace(x)) .Distinct() .ToArray(); if (deviceIds.Length == 0) { throw new ArgumentException("至少选择一台设备。"); } if (deviceIds.Length > 100) { throw new ArgumentException("单批次最多允许 100 台设备。"); } if (string.IsNullOrWhiteSpace(request.ClientRequestId)) { request.ClientRequestId = Guid.NewGuid().ToString("N"); } var lockKey = $"{actorUserId}:{request.ClientRequestId}"; var gate = _batchCreationLocks.GetOrAdd(lockKey, _ => new SemaphoreSlim(1, 1)); await gate.WaitAsync(ct); try { // 1. Idempotency Check: Same ClientRequestId by same user returns existing batch var existing = await _db.DeviceSelfCheckBatches .AsNoTracking() .FirstOrDefaultAsync( x => x.CreatedByUserId == actorUserId && x.ClientRequestId == request.ClientRequestId, ct); if (existing != null) { _logger.LogInformation("Idempotent hit for self-check batch ClientRequestId={ClientRequestId}, returning existing BatchId={BatchId}", request.ClientRequestId, existing.Id); return new SelfCheckBatchCreatedDto { BatchId = existing.Id, Status = existing.Status, TargetDeviceCount = existing.TargetDeviceCount, CreatedAtUtc = existing.CreatedAtUtc, DeadlineAtUtc = existing.DeadlineAtUtc }; } // 2. Validate all devices exist var devices = await _db.Devices .Where(x => deviceIds.Contains(x.Id)) .ToListAsync(ct); if (devices.Count != deviceIds.Length) { var foundIds = devices.Select(d => d.Id).ToHashSet(); var missing = deviceIds.Where(id => !foundIds.Contains(id)).ToArray(); throw new ArgumentException($"存在无效设备: {string.Join(", ", missing)}"); } var now = DateTimeOffset.UtcNow; var batchId = $"scb_{now.ToUnixTimeMilliseconds()}_{Guid.NewGuid():N}"[..24]; var correlationId = !string.IsNullOrWhiteSpace(_correlationContext.CorrelationId) ? _correlationContext.CorrelationId : $"sc_corr_{Guid.NewGuid():N}"[..20]; var batch = new DeviceSelfCheckBatch { Id = batchId, CorrelationId = correlationId, ClientRequestId = request.ClientRequestId, CreatedByUserId = actorUserId, CreatedAtUtc = now, DeadlineAtUtc = now.AddSeconds(60), TargetDeviceCount = devices.Count, Status = "Running", UpdatedAtUtc = now }; var runs = devices.Select(device => new DeviceSelfCheckRun { Id = $"sc_{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}_{Guid.NewGuid():N}"[..24], BatchId = batch.Id, TenantId = device.TenantId, DeviceId = device.Id, CorrelationId = $"sc_corr_{Guid.NewGuid():N}"[..20], RequestedByUserId = actorUserId, RequestedAtUtc = now, DeadlineAtUtc = batch.DeadlineAtUtc, RunState = SelfCheckRunStates.PendingDispatch, Status = "Pending" }).ToArray(); var tenantCount = devices.Select(d => d.TenantId).Distinct().Count(); var audit = new AdminAuditEvent { Id = Guid.NewGuid().ToString("N"), OccurredAt = now, ActorUsername = actorUserId, ActorRole = "SuperAdmin", Action = "SELF_CHECK_BATCH_REQUESTED", TargetType = "DeviceSelfCheckBatch", TargetId = batch.Id, Details = JsonSerializer.Serialize(new { batchId = batch.Id, targetDeviceCount = batch.TargetDeviceCount, tenantCount = tenantCount }), IpAddress = actorIp }; // Atomic Transaction: Batch + Runs + Audit must succeed together await using var tx = await _db.Database.BeginTransactionAsync(ct); try { _db.DeviceSelfCheckBatches.Add(batch); _db.DeviceSelfChecks.AddRange(runs); _db.AdminAuditEvents.Add(audit); await _db.SaveChangesAsync(ct); await tx.CommitAsync(ct); } catch (DbUpdateException dbEx) { _logger.LogWarning(dbEx, "DbUpdateException during batch creation for ClientRequestId={ClientRequestId}. Checking for concurrent collision.", request.ClientRequestId); var collisionExisting = await _db.DeviceSelfCheckBatches .AsNoTracking() .FirstOrDefaultAsync(x => x.CreatedByUserId == actorUserId && x.ClientRequestId == request.ClientRequestId, ct); if (collisionExisting != null) { return new SelfCheckBatchCreatedDto { BatchId = collisionExisting.Id, Status = collisionExisting.Status, TargetDeviceCount = collisionExisting.TargetDeviceCount, CreatedAtUtc = collisionExisting.CreatedAtUtc, DeadlineAtUtc = collisionExisting.DeadlineAtUtc }; } throw; } catch (Exception ex) { _logger.LogError(ex, "Transaction failed while creating self-check batch {BatchId}. Rolled back.", batch.Id); throw; } _logger.LogInformation("Self-check batch created: BatchId={BatchId}, Devices={Count}, Tenants={Tenants}, CorrelationId={CorrelationId}", batch.Id, batch.TargetDeviceCount, tenantCount, batch.CorrelationId); // Notify background dispatch worker to immediately process pending runs _dispatchNotifier.Notify(); return new SelfCheckBatchCreatedDto { BatchId = batch.Id, Status = batch.Status, TargetDeviceCount = batch.TargetDeviceCount, CreatedAtUtc = batch.CreatedAtUtc, DeadlineAtUtc = batch.DeadlineAtUtc }; } finally { gate.Release(); } } public async Task GetBatchAsync(string batchId, CancellationToken ct) { var batch = await _db.DeviceSelfCheckBatches .AsNoTracking() .FirstOrDefaultAsync(x => x.Id == batchId, ct); if (batch == null) return null; var runs = await _db.DeviceSelfChecks .AsNoTracking() .Where(r => r.BatchId == batchId) .ToListAsync(ct); var (summary, probeFailures) = CalculateSummaryAndProbes(batch, runs); return new SelfCheckBatchDetailDto { BatchId = batch.Id, Status = batch.Status, CreatedAtUtc = batch.CreatedAtUtc, DeadlineAtUtc = batch.DeadlineAtUtc, CompletedAtUtc = batch.CompletedAtUtc, Summary = summary, ProbeFailures = probeFailures }; } public async Task> GetBatchesAsync(string? status, int take, CancellationToken ct) { var limit = take <= 0 ? 20 : (take > 100 ? 100 : take); var query = _db.DeviceSelfCheckBatches.AsNoTracking(); if (!string.IsNullOrWhiteSpace(status)) { query = query.Where(b => b.Status == status); } var batches = await query .OrderByDescending(b => b.CreatedAtUtc) .Take(limit) .ToListAsync(ct); if (batches.Count == 0) return Array.Empty(); var batchIds = batches.Select(b => b.Id).ToList(); var allRuns = await _db.DeviceSelfChecks .AsNoTracking() .Where(r => r.BatchId != null && batchIds.Contains(r.BatchId)) .ToListAsync(ct); var runsByBatch = allRuns.GroupBy(r => r.BatchId!).ToDictionary(g => g.Key, g => g.ToList()); var result = new List(); foreach (var b in batches) { runsByBatch.TryGetValue(b.Id, out var batchRuns); var (summary, _) = CalculateSummaryAndProbes(b, batchRuns ?? new List()); result.Add(summary); } return result; } public async Task GetBatchDevicesAsync( string batchId, SelfCheckBatchDeviceQuery query, CancellationToken ct) { var runsQuery = _db.DeviceSelfChecks .AsNoTracking() .Include(r => r.Device) .ThenInclude(d => d!.Tenant) .Include(r => r.Device) .ThenInclude(d => d!.Classroom) .Where(r => r.BatchId == batchId); var allRuns = await runsQuery.ToListAsync(ct); // In-memory multi-dimensional filtering var filtered = allRuns.AsEnumerable(); if (!string.IsNullOrWhiteSpace(query.TenantId)) { filtered = filtered.Where(r => r.TenantId == query.TenantId); } if (!string.IsNullOrWhiteSpace(query.Health)) { var h = query.Health.Trim(); if (h.Equals("Healthy", StringComparison.OrdinalIgnoreCase)) { filtered = filtered.Where(r => r.RunState == SelfCheckRunStates.Completed && r.OverallStatus == "Healthy"); } else if (h.Equals("Warning", StringComparison.OrdinalIgnoreCase)) { filtered = filtered.Where(r => r.RunState == SelfCheckRunStates.Completed && r.OverallStatus == "Warning"); } else if (h.Equals("Failed", StringComparison.OrdinalIgnoreCase)) { filtered = filtered.Where(r => r.RunState == SelfCheckRunStates.Completed && r.OverallStatus == "Failed"); } else if (h.Equals("Unreachable", StringComparison.OrdinalIgnoreCase)) { filtered = filtered.Where(r => r.RunState == SelfCheckRunStates.Unreachable); } else if (h.Equals("TimedOut", StringComparison.OrdinalIgnoreCase)) { filtered = filtered.Where(r => r.RunState == SelfCheckRunStates.TimedOut); } else if (h.Equals("Pending", StringComparison.OrdinalIgnoreCase)) { filtered = filtered.Where(r => r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched); } } if (!string.IsNullOrWhiteSpace(query.Probe)) { var normProbe = SelfCheckProbeKeys.Normalize(query.Probe); filtered = filtered.Where(r => { if (string.IsNullOrWhiteSpace(r.ResultJson)) return false; try { var res = JsonSerializer.Deserialize(r.ResultJson!); if (res?.Checks == null) return false; var probeCheck = res.Checks.FirstOrDefault(c => SelfCheckProbeKeys.Normalize(c.Name) == normProbe); if (probeCheck == null) return false; if (!string.IsNullOrWhiteSpace(query.Health)) { if (query.Health.Equals("Failed", StringComparison.OrdinalIgnoreCase)) return probeCheck.Status == SelfCheckStatus.Failed; if (query.Health.Equals("Warning", StringComparison.OrdinalIgnoreCase)) return probeCheck.Status == SelfCheckStatus.Warning; if (query.Health.Equals("Healthy", StringComparison.OrdinalIgnoreCase)) return probeCheck.Status == SelfCheckStatus.Healthy; } return probeCheck.Status == SelfCheckStatus.Failed || probeCheck.Status == SelfCheckStatus.Warning; } catch { return false; } }); } if (!string.IsNullOrWhiteSpace(query.Q)) { var q = query.Q.Trim(); filtered = filtered.Where(r => r.DeviceId.Contains(q, StringComparison.OrdinalIgnoreCase) || (r.Device?.Hostname != null && r.Device.Hostname.Contains(q, StringComparison.OrdinalIgnoreCase)) || (r.Device?.Classroom?.DisplayName != null && r.Device.Classroom.DisplayName.Contains(q, StringComparison.OrdinalIgnoreCase)) || (r.Device?.ClassroomId != null && r.Device.ClassroomId.Contains(q, StringComparison.OrdinalIgnoreCase)) ); } var list = filtered.OrderBy(r => r.DeviceId).ToList(); var total = list.Count; var page = query.Page <= 0 ? 1 : query.Page; var pageSize = query.PageSize <= 0 ? 50 : (query.PageSize > 100 ? 100 : query.PageSize); var pagedItems = list.Skip((page - 1) * pageSize).Take(pageSize).ToList(); var items = pagedItems.Select(r => MapDeviceItem(r, _presenceService)).ToList(); return new SelfCheckBatchDevicePagedResultDto { Total = total, Page = page, PageSize = pageSize, Items = items }; } public async Task GetBatchDeviceRunDetailAsync(string batchId, string runId, CancellationToken ct) { var run = await _db.DeviceSelfChecks .AsNoTracking() .Include(r => r.Device) .ThenInclude(d => d!.Tenant) .Include(r => r.Device) .ThenInclude(d => d!.Classroom) .FirstOrDefaultAsync(r => r.BatchId == batchId && r.Id == runId, ct); if (run == null) return null; return MapDeviceItem(run, _presenceService); } private static SelfCheckBatchDeviceItemDto MapDeviceItem(DeviceSelfCheckRun r, IDevicePresenceService presenceService) { var checks = new List(); if (!string.IsNullOrWhiteSpace(r.ResultJson)) { try { var parsed = JsonSerializer.Deserialize(r.ResultJson); if (parsed?.Checks != null) { checks = parsed.Checks; } } catch { } } bool isOnline = r.Device != null && presenceService.IsOnline(r.Device.Id, r.Device.LastHeartbeatAt); return new SelfCheckBatchDeviceItemDto { RunId = r.Id, DeviceId = r.DeviceId, TenantId = r.TenantId, SchoolName = r.Device?.Tenant?.Name ?? r.TenantId, ClassroomId = r.Device?.ClassroomId ?? "", ClassroomName = r.Device?.Classroom?.DisplayName ?? r.Device?.ClassroomId ?? "", Hostname = r.Device?.Hostname ?? "", IsOnline = isOnline, ServiceVersion = r.Device?.ServiceVersion, ClientVersion = r.Device?.ClientVersion, RunState = r.RunState, OverallStatus = r.OverallStatus, Checks = checks, RequestedAtUtc = r.RequestedAtUtc, DispatchedAtUtc = r.DispatchedAtUtc, CompletedAtUtc = r.CompletedAtUtc, CorrelationId = r.CorrelationId }; } private static (SelfCheckBatchSummaryDto Summary, List ProbeFailures) CalculateSummaryAndProbes( DeviceSelfCheckBatch batch, IReadOnlyList runs) { var pending = runs.Count(r => r.RunState == SelfCheckRunStates.PendingDispatch || r.RunState == SelfCheckRunStates.Dispatched); var healthy = runs.Count(r => r.RunState == SelfCheckRunStates.Completed && r.OverallStatus == "Healthy"); var warning = runs.Count(r => r.RunState == SelfCheckRunStates.Completed && r.OverallStatus == "Warning"); var failed = runs.Count(r => r.RunState == SelfCheckRunStates.Completed && r.OverallStatus == "Failed"); var unreachable = runs.Count(r => r.RunState == SelfCheckRunStates.Unreachable); var timedOut = runs.Count(r => r.RunState == SelfCheckRunStates.TimedOut); var completed = healthy + warning + failed; var summary = new SelfCheckBatchSummaryDto { BatchId = batch.Id, Status = batch.Status, Target = batch.TargetDeviceCount, Pending = pending, Completed = completed, Healthy = healthy, Warning = warning, Failed = failed, Unreachable = unreachable, TimedOut = timedOut, CreatedAtUtc = batch.CreatedAtUtc, CompletedAtUtc = batch.CompletedAtUtc }; var probeCounts = new Dictionary(StringComparer.OrdinalIgnoreCase); foreach (var pk in SelfCheckProbeKeys.All) { probeCounts[pk] = (0, 0); } foreach (var run in runs.Where(r => r.RunState == SelfCheckRunStates.Completed && !string.IsNullOrWhiteSpace(r.ResultJson))) { try { var res = JsonSerializer.Deserialize(run.ResultJson!); if (res?.Checks != null) { foreach (var check in res.Checks) { var normKey = SelfCheckProbeKeys.Normalize(check.Name); if (probeCounts.TryGetValue(normKey, out var current)) { if (check.Status == SelfCheckStatus.Warning) { probeCounts[normKey] = (current.Warning + 1, current.Failed); } else if (check.Status == SelfCheckStatus.Failed) { probeCounts[normKey] = (current.Warning, current.Failed + 1); } } } } } catch { } } var failures = SelfCheckProbeKeys.All .Select(k => new ProbeFailureCountDto { Probe = k, WarningCount = probeCounts[k].Warning, FailedCount = probeCounts[k].Failed }) .ToList(); return (summary, failures); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SelfCheckDispatchWorker.cs ================================================================================ using System.Text.Json; using ClassNotify.Server.Data; using ClassNotify.Server.Hubs; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.SignalR; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Services; /// /// 终端批量自检后台分发调度器 (P2.5 RC1-2) /// 严格基于数据库 PendingDispatch 状态作为可靠队列,支持服务重启后自动续跑 /// 并发上限受控 (MaxDegreeOfParallelism = 10),设备真实离线判定为 Unreachable (绝不伪造 Failed/Healthy) /// public sealed class SelfCheckDispatchWorker : BackgroundService { private readonly IServiceScopeFactory _scopeFactory; private readonly ISelfCheckDispatchNotifier _notifier; private readonly ILogger _logger; public SelfCheckDispatchWorker( IServiceScopeFactory scopeFactory, ISelfCheckDispatchNotifier notifier, ILogger logger) { _scopeFactory = scopeFactory; _notifier = notifier; _logger = logger; } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("SelfCheckDispatchWorker started."); while (!stoppingToken.IsCancellationRequested) { try { var processed = await ProcessPendingBatchAsync(stoppingToken); if (!processed) { // Wait for dispatch notification or fallback interval (2s) await Task.WhenAny(_notifier.WaitAsync(stoppingToken), Task.Delay(2000, stoppingToken)); } } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } catch (Exception ex) { _logger.LogError(ex, "Unexpected error in SelfCheckDispatchWorker loop"); await Task.Delay(2000, stoppingToken); } } _logger.LogInformation("SelfCheckDispatchWorker stopped."); } private async Task ProcessPendingBatchAsync(CancellationToken ct) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var pendingRunIds = await db.DeviceSelfChecks .AsNoTracking() .Where(r => r.RunState == SelfCheckRunStates.PendingDispatch) .OrderBy(r => r.RequestedAtUtc) .Take(50) .Select(r => r.Id) .ToListAsync(ct); if (pendingRunIds.Count == 0) { return false; } // Bounded concurrency dispatch (MaxDegreeOfParallelism = 10) await Parallel.ForEachAsync( pendingRunIds, new ParallelOptions { MaxDegreeOfParallelism = 10, CancellationToken = ct }, async (runId, token) => { try { await DispatchSingleRunAsync(runId, token); } catch (Exception ex) { _logger.LogError(ex, "Error dispatching self-check run {RunId}", runId); } }); return true; } private async Task DispatchSingleRunAsync(string runId, CancellationToken ct) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var presenceService = scope.ServiceProvider.GetRequiredService(); var securityService = scope.ServiceProvider.GetRequiredService(); var hubContext = scope.ServiceProvider.GetRequiredService>(); var run = await db.DeviceSelfChecks.FirstOrDefaultAsync(r => r.Id == runId, ct); if (run == null || run.RunState != SelfCheckRunStates.PendingDispatch) { return; } var device = await db.Devices.AsNoTracking().FirstOrDefaultAsync(d => d.Id == run.DeviceId, ct); if (device == null) { run.RunState = SelfCheckRunStates.Unreachable; run.CompletedAtUtc = DateTimeOffset.UtcNow; await db.SaveChangesAsync(ct); return; } // 1. Check device presence (Truthfulness guarantee: offline devices are Unreachable, not Failed) bool isOnline = presenceService.IsOnline(device.Id, device.LastHeartbeatAt); if (!isOnline) { run.RunState = SelfCheckRunStates.Unreachable; run.OverallStatus = null; run.CompletedAtUtc = DateTimeOffset.UtcNow; await db.SaveChangesAsync(ct); _logger.LogInformation("Device {DeviceId} is offline. SelfCheck {RunId} (Batch {BatchId}) marked Unreachable.", run.DeviceId, run.Id, run.BatchId); return; } // 2. Dispatch via tenant-qualified SignalR connection var connId = securityService.GetDeviceConnectionId(device.Id); if (string.IsNullOrEmpty(connId)) { run.RunState = SelfCheckRunStates.Unreachable; run.OverallStatus = null; run.CompletedAtUtc = DateTimeOffset.UtcNow; await db.SaveChangesAsync(ct); return; } var cmdReq = new DeviceSelfCheckRequestDto { SelfCheckId = run.Id, CorrelationId = run.CorrelationId, RequestedAtUtc = run.RequestedAtUtc, TimeoutSeconds = (int)Math.Max(5, (run.DeadlineAtUtc - DateTimeOffset.UtcNow).TotalSeconds) }; var payload = JsonSerializer.Serialize(cmdReq); var cmdDto = await securityService.CreateDeviceCommandAsync( run.TenantId, run.DeviceId, DeviceCommandTypes.SelfCheck, payload, run.RequestedByUserId, "SuperAdmin", "127.0.0.1"); try { await hubContext.Clients.Client(connId).ReceiveRemoteCommand(cmdDto); await securityService.MarkCommandDispatchedAsync(cmdDto.CommandId); run.RunState = SelfCheckRunStates.Dispatched; run.DispatchedAtUtc = DateTimeOffset.UtcNow; run.DispatchAttemptCount++; await db.SaveChangesAsync(ct); _logger.LogInformation("Dispatched SelfCheck {RunId} (Batch {BatchId}) to Device {DeviceId} (Conn: {ConnId})", run.Id, run.BatchId, run.DeviceId, connId); } catch (Exception ex) { run.DispatchAttemptCount++; _logger.LogWarning(ex, "Failed to dispatch SelfCheck {RunId} to Device {DeviceId} (attempt {Attempt}/3)", run.Id, run.DeviceId, run.DispatchAttemptCount); if (run.DispatchAttemptCount >= 3) { run.RunState = SelfCheckRunStates.Unreachable; run.OverallStatus = null; run.CompletedAtUtc = DateTimeOffset.UtcNow; } await db.SaveChangesAsync(ct); } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SupportBundleCleanupWorker.cs ================================================================================ using System; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using ClassNotify.Server.Configuration; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Shared.Models; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace ClassNotify.Server.Services; /// /// 诊断包生命周期清理统计报告 /// public class SupportBundleCleanupReport { public int ExpiredCleanedCount { get; set; } public int CleanupFailedCount { get; set; } public int OrphanDeletedCount { get; set; } public int OrphanSkippedCount { get; set; } } /// /// 诊断包 24 小时生命周期清理后台工作者 (P2.5 RC1-3 Phase 3) /// 严格执行: /// 1. 物理文件删除 -> 验证文件缺失 -> 数据库原子流转 Expired,清空 StoragePath /// 2. 物理删除失败保留 Available,下载 410 阻断,下一周期重试 /// 3. 保守清理无引用系统命名 Orphan ZIP (>24h) /// public class SupportBundleCleanupWorker : BackgroundService { private readonly IServiceProvider _serviceProvider; private readonly IOptions _options; private readonly ILogger _logger; public SupportBundleCleanupWorker( IServiceProvider serviceProvider, IOptions options, ILogger logger) { _serviceProvider = serviceProvider; _options = options; _logger = logger; } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("SupportBundleCleanupWorker started (5-minute periodic scan)."); while (!stoppingToken.IsCancellationRequested) { try { await CleanupAsync(stoppingToken); } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } catch (Exception ex) { _logger.LogError(ex, "Unexpected error in SupportBundleCleanupWorker cycle."); } // 5 minutes interval await Task.Delay(TimeSpan.FromMinutes(5), stoppingToken); } _logger.LogInformation("SupportBundleCleanupWorker stopped."); } /// /// 执行单次生命周期清理周期 (供 BackgroundService 及单元测试直接调用) /// public async Task CleanupAsync(CancellationToken ct = default) { var report = new SupportBundleCleanupReport(); using var scope = _serviceProvider.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var root = _options.Value.GetEffectiveStorageRoot(); var rootFull = Path.GetFullPath(root).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); var rootWithSep = rootFull + Path.DirectorySeparatorChar; var now = DateTimeOffset.UtcNow; // 1. 扫描 Status == Available && ExpiresAtUtc <= now && StoragePath != null var expiredBundles = await db.DeviceSupportBundles .Where(b => b.Status == SupportBundleStatuses.Available && b.ExpiresAtUtc != null && b.ExpiresAtUtc <= now && b.StoragePath != null) .OrderBy(b => b.ExpiresAtUtc) .Take(100) .ToListAsync(ct); foreach (var bundle in expiredBundles) { try { string candidatePath; try { candidatePath = SupportBundlePathResolver.ResolveBundlePath(rootFull, bundle.StoragePath); } catch (InvalidStoragePathException ex) { _logger.LogWarning("Cleanup worker detected invalid StoragePath for bundle {BundleId}: {Message} (StoragePath='{Path}'). Skipping physical delete.", bundle.Id, ex.Message, bundle.StoragePath); continue; } // 严格删除顺序: // Resolve safe path -> Delete physical file -> 确认文件不存在 -> DB Available -> Expired -> StoragePath = null bool fileExisted = File.Exists(candidatePath); if (fileExisted) { try { File.Delete(candidatePath); } catch (Exception ex) { _logger.LogError(ex, "Failed to delete physical support bundle file {FilePath} for {BundleId}. Retrying next cycle.", candidatePath, bundle.Id); report.CleanupFailedCount++; // 重要:物理文件删除失败,DB 不得转 Expired,保留 Available 和 StoragePath! continue; } if (File.Exists(candidatePath)) { _logger.LogWarning("File.Delete did not delete file {FilePath} for {BundleId}. Retrying next cycle.", candidatePath, bundle.Id); report.CleanupFailedCount++; continue; } } else { _logger.LogWarning("SupportBundleFileAlreadyMissing: bundle {BundleId} was marked Available but file {FilePath} was already missing.", bundle.Id, candidatePath); } // 物理文件确认已不存在,原子条件更新数据库:Available -> Expired if (db.Database.IsRelational()) { await db.DeviceSupportBundles .Where(b => b.Id == bundle.Id && b.Status == SupportBundleStatuses.Available) .ExecuteUpdateAsync(setters => setters .SetProperty(x => x.Status, SupportBundleStatuses.Expired) .SetProperty(x => x.StoragePath, (string?)null) .SetProperty(x => x.UpdatedAtUtc, DateTimeOffset.UtcNow), ct); } else { var b = await db.DeviceSupportBundles.FirstOrDefaultAsync(x => x.Id == bundle.Id && x.Status == SupportBundleStatuses.Available, ct); if (b != null) { b.Status = SupportBundleStatuses.Expired; b.StoragePath = null; b.UpdatedAtUtc = DateTimeOffset.UtcNow; await db.SaveChangesAsync(ct); } } report.ExpiredCleanedCount++; _logger.LogInformation("Successfully expired support bundle {BundleId} and cleaned up physical storage.", bundle.Id); } catch (Exception ex) { _logger.LogError(ex, "Error expiring support bundle {BundleId}", bundle.Id); report.CleanupFailedCount++; } } // 2. Conservative Orphan File Cleanup if (Directory.Exists(rootFull)) { try { await CleanupOrphansAsync(rootFull, db, report, ct); } catch (Exception ex) { _logger.LogError(ex, "Error scanning for orphan support bundle files in {Root}", rootFull); } } return report; } private async Task CleanupOrphansAsync(string rootFull, ClassNotifyDbContext db, SupportBundleCleanupReport report, CancellationToken ct) { var cutoff = DateTime.UtcNow.AddHours(-24); var files = Directory.GetFiles(rootFull, "*.*", SearchOption.AllDirectories); foreach (var filePath in files) { var relative = Path.GetRelativePath(rootFull, filePath).Replace('\\', '/'); // 规则:tmp/ 目录绝对不碰 if (relative.StartsWith("tmp/", StringComparison.OrdinalIgnoreCase) || relative.StartsWith("tmp\\", StringComparison.OrdinalIgnoreCase)) { report.OrphanSkippedCount++; continue; } var fileName = Path.GetFileName(filePath); // 规则:必须是系统命名格式 *.zip (以 sb_ 开头,以 .zip 结尾) if (!fileName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) || !fileName.StartsWith("sb_", StringComparison.OrdinalIgnoreCase)) { // 未知文件不自动删除,仅告警 report.OrphanSkippedCount++; continue; } // 规则:文件创建/写入时间必须 > 24h var lastWrite = File.GetLastWriteTimeUtc(filePath); var creation = File.GetCreationTimeUtc(filePath); var fileAgeUtc = lastWrite < creation ? lastWrite : creation; if (fileAgeUtc >= cutoff) { // 年龄不足 24h,跳过 report.OrphanSkippedCount++; continue; } // 规则:当前数据库没有任何 StoragePath 引用 bool hasDbRef = await db.DeviceSupportBundles.AnyAsync(b => b.StoragePath != null && (b.StoragePath == relative || b.StoragePath == filePath || b.StoragePath.EndsWith("/" + fileName) || b.StoragePath.EndsWith("\\" + fileName)), ct); if (hasDbRef) { report.OrphanSkippedCount++; continue; } // 孤儿确认,执行安全删除 try { File.Delete(filePath); report.OrphanDeletedCount++; _logger.LogInformation("Deleted orphan support bundle zip: {FilePath} (Age={AgeHours:F1}h, 0 DB refs)", filePath, (DateTime.UtcNow - fileAgeUtc).TotalHours); } catch (Exception ex) { _logger.LogWarning(ex, "Failed to delete orphan file: {FilePath}", filePath); } } } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SupportBundleDispatchWorker.cs ================================================================================ using ClassNotify.Server.Data; using ClassNotify.Server.Hubs; using ClassNotify.Shared.Contracts; using ClassNotify.Shared.Models; using Microsoft.AspNetCore.SignalR; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Services; /// /// 设备技术诊断包后台分发调度器 (P2.5 RC1-3 Support Bundle Phase 1) /// 严格基于数据库 PendingDispatch 状态作为可靠持久化队列,支持服务器重启后完全自动恢复 /// 离线真实等待重试,直至 Deadline 触发 TimedOut,绝不虚构状态 /// public sealed class SupportBundleDispatchWorker : BackgroundService { private readonly IServiceScopeFactory _scopeFactory; private readonly ISupportBundleDispatchNotifier _notifier; private readonly ILogger _logger; public SupportBundleDispatchWorker( IServiceScopeFactory scopeFactory, ISupportBundleDispatchNotifier notifier, ILogger logger) { _scopeFactory = scopeFactory; _notifier = notifier; _logger = logger; } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("SupportBundleDispatchWorker started."); while (!stoppingToken.IsCancellationRequested) { try { var processed = await ProcessPendingBundlesAsync(stoppingToken); if (!processed) { // 等待通知唤醒或定时兜底检测 (1s) await Task.WhenAny(_notifier.WaitAsync(stoppingToken), Task.Delay(1000, stoppingToken)); } } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } catch (Exception ex) { _logger.LogError(ex, "Unexpected error in SupportBundleDispatchWorker loop"); await Task.Delay(1000, stoppingToken); } } _logger.LogInformation("SupportBundleDispatchWorker stopped."); } private async Task ProcessPendingBundlesAsync(CancellationToken ct) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var presenceService = scope.ServiceProvider.GetRequiredService(); var hubContext = scope.ServiceProvider.GetRequiredService>(); var now = DateTimeOffset.UtcNow; // 1. 扫描超时任务 (PendingDispatch 或 Collecting 且超过 DeadlineAtUtc) var timedOutBundles = await db.DeviceSupportBundles .Where(sb => (sb.Status == SupportBundleStatuses.PendingDispatch || sb.Status == SupportBundleStatuses.Collecting) && sb.DeadlineAtUtc <= now) .Take(50) .ToListAsync(ct); if (timedOutBundles.Count > 0) { foreach (var b in timedOutBundles) { b.Status = SupportBundleStatuses.TimedOut; b.ErrorCode ??= "DeadlineExceeded"; b.UpdatedAtUtc = now; _logger.LogInformation("SupportBundle {Id} for device {DeviceId} timed out at {Now:u} (deadline was {Deadline:u})", b.Id, b.DeviceId, now, b.DeadlineAtUtc); } await db.SaveChangesAsync(ct); } // 2. 扫描待分发任务 (Status == PendingDispatch && NextDispatchAttemptAtUtc <= now && DeadlineAtUtc > now) var pendingBundles = await db.DeviceSupportBundles .Where(sb => sb.Status == SupportBundleStatuses.PendingDispatch && (sb.NextDispatchAttemptAtUtc == null || sb.NextDispatchAttemptAtUtc <= now) && sb.DeadlineAtUtc > now) .OrderBy(sb => sb.CreatedAtUtc) .Take(50) .ToListAsync(ct); if (pendingBundles.Count == 0) { return timedOutBundles.Count > 0; } foreach (var bundle in pendingBundles) { var device = await db.Devices.AsNoTracking().FirstOrDefaultAsync(d => d.Id == bundle.DeviceId, ct); bool isOnline = device != null && presenceService.IsOnline(device.Id, device.LastHeartbeatAt); if (isOnline) { // 设备在线:通过 tenant-qualified SignalR 渠道下发 GenerateSupportBundleCommand var command = new GenerateSupportBundleCommand { FormatVersion = 1, SupportBundleId = bundle.Id, CorrelationId = bundle.CorrelationId, RequestedAtUtc = bundle.CreatedAtUtc, DeadlineAtUtc = bundle.DeadlineAtUtc, MaxSizeBytes = 5 * 1024 * 1024 }; var tenantChannel = $"t:{bundle.TenantId}:d:{bundle.DeviceId}"; await hubContext.Clients.Group(tenantChannel).GenerateSupportBundle(command); bundle.Status = SupportBundleStatuses.Collecting; bundle.DispatchedAtUtc = now; bundle.DispatchAttemptCount += 1; bundle.LastDispatchAttemptAtUtc = now; bundle.UpdatedAtUtc = now; _logger.LogInformation("Successfully dispatched GenerateSupportBundleCommand to {Channel} for bundle {BundleId}. State -> Collecting.", tenantChannel, bundle.Id); } else { // 设备离线:保持 PendingDispatch,按规整阶梯安排下一次重试 (2s, 5s, 10s, 15s) bundle.DispatchAttemptCount += 1; bundle.LastDispatchAttemptAtUtc = now; int backoffSeconds = bundle.DispatchAttemptCount switch { 1 => 2, 2 => 5, 3 => 10, _ => 15 }; bundle.NextDispatchAttemptAtUtc = now.AddSeconds(backoffSeconds); bundle.UpdatedAtUtc = now; _logger.LogInformation("Device {DeviceId} for bundle {BundleId} is offline. Retry scheduled in {Seconds}s (Attempt={Attempt})", bundle.DeviceId, bundle.Id, backoffSeconds, bundle.DispatchAttemptCount); } } await db.SaveChangesAsync(ct); return true; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SupportBundlePathResolver.cs ================================================================================ using System; using System.IO; namespace ClassNotify.Server.Services; /// /// 当技术诊断包存储路径非法、包含路径穿越或违反纯相对路径约束时抛出 /// public sealed class InvalidStoragePathException : Exception { public InvalidStoragePathException(string message = "Invalid storage path detected.") : base(message) { } } /// /// 技术诊断包路径解析器 (严格约束相对路径与根目录约束,防御目录穿越与跨平台大小写边界漏洞) /// public static class SupportBundlePathResolver { /// /// 将数据库中记录的纯相对 StoragePath 安全解析为绝对路径 /// 严格禁止绝对路径,严格禁止任何向上逃逸 ('..') /// public static string ResolveBundlePath(string rootDir, string? relativeStoragePath) { if (string.IsNullOrWhiteSpace(relativeStoragePath)) { throw new InvalidStoragePathException("Storage path cannot be empty or whitespace."); } // 1. 绝对路径坚决拒绝 (无论 Windows 盘符 C:\、UNC \\ 还是 Linux 根路径 / ) if (Path.IsPathRooted(relativeStoragePath)) { throw new InvalidStoragePathException("Storage path must be a relative path. Absolute paths are strictly forbidden."); } var root = Path.GetFullPath(rootDir).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); var candidate = Path.GetFullPath(Path.Combine(root, relativeStoragePath)); // 2. 检查相对于 root 的路径 var relative = Path.GetRelativePath(root, candidate); if (relative == ".." || relative.StartsWith(".." + Path.DirectorySeparatorChar, StringComparison.Ordinal) || relative.StartsWith(".." + Path.AltDirectorySeparatorChar, StringComparison.Ordinal) || Path.IsPathRooted(relative) || relative == "." || string.IsNullOrWhiteSpace(relative) || string.Equals(candidate, root, StringComparison.OrdinalIgnoreCase)) { throw new InvalidStoragePathException("Storage path traversal detected."); } return candidate; } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/SupportBundleService.cs ================================================================================ using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; using ClassNotify.Server.Configuration; using ClassNotify.Server.Data; using ClassNotify.Server.Domain.Entities; using ClassNotify.Server.Infrastructure.Correlation; using ClassNotify.Shared.Models; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; namespace ClassNotify.Server.Services; /// /// 设备技术诊断包服务实现 (P2.5 RC1-3 Support Bundle Phase 1, Phase 2, Phase 3) /// 严格满足 RBAC、客户端幂等性、单 Active 互斥、事务与审计一致性、安全下载与生命周期管理 /// public class SupportBundleService : ISupportBundleService { private static readonly ConcurrentDictionary _creationLocks = new(); private readonly ClassNotifyDbContext _db; private readonly ICorrelationContext _correlationContext; private readonly ISupportBundleDispatchNotifier _dispatchNotifier; private readonly IOptions _options; private readonly ILogger _logger; public SupportBundleService( ClassNotifyDbContext db, ICorrelationContext correlationContext, ISupportBundleDispatchNotifier dispatchNotifier, IOptions options, ILogger logger) { _db = db; _correlationContext = correlationContext; _dispatchNotifier = dispatchNotifier; _options = options; _logger = logger; } public async Task CreateSupportBundleAsync( string deviceId, CreateSupportBundleRequest request, string actorUserId, string actorRole, string? actorTenantId, string actorIp, bool simulateAuditFailure, CancellationToken ct) { if (string.IsNullOrWhiteSpace(deviceId)) { return SupportBundleCreationResult.BadRequest("DeviceId 不可为空。"); } if (request == null) { request = new CreateSupportBundleRequest(); } if (string.IsNullOrWhiteSpace(request.ClientRequestId)) { request.ClientRequestId = Guid.NewGuid().ToString("N"); } var lockKey = $"{actorUserId}:{request.ClientRequestId}"; var gate = _creationLocks.GetOrAdd(lockKey, _ => new SemaphoreSlim(1, 1)); await gate.WaitAsync(ct); try { // 1. Load Device var device = await _db.Devices.AsNoTracking().FirstOrDefaultAsync(d => d.Id == deviceId, ct); if (device == null) { return SupportBundleCreationResult.NotFound($"设备 '{deviceId}' 不存在。"); } // 2. Authorize // SuperAdmin: 全局允许 // SchoolAdmin: 严格限定同校 JWT TenantId == Device.TenantId // Teacher / 其它: 403 if (actorRole == "SchoolAdmin") { if (string.IsNullOrEmpty(actorTenantId) || !string.Equals(actorTenantId, device.TenantId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("SchoolAdmin {User} (Tenant={UserTenant}) attempted to request support bundle for device {DeviceId} (Tenant={DeviceTenant}). 403 Forbidden.", actorUserId, actorTenantId, device.Id, device.TenantId); return SupportBundleCreationResult.Forbidden("跨租户技术诊断包请求被拒绝。"); } } else if (actorRole != "SuperAdmin") { _logger.LogWarning("User {User} with role {Role} attempted to request support bundle. 403 Forbidden.", actorUserId, actorRole); return SupportBundleCreationResult.Forbidden("仅允许系统管理员或学校管理员发起技术诊断包请求。"); } // 3. Idempotency Check: Same ClientRequestId by same user returns existing bundle var existing = await _db.DeviceSupportBundles .AsNoTracking() .FirstOrDefaultAsync(sb => sb.RequestedByUserId == actorUserId && sb.ClientRequestId == request.ClientRequestId, ct); if (existing != null) { _logger.LogInformation("Idempotent hit for support bundle ClientRequestId={ClientRequestId}, returning existing BundleId={BundleId}", request.ClientRequestId, existing.Id); return SupportBundleCreationResult.Accepted(new SupportBundleCreatedDto { SupportBundleId = existing.Id, DeviceId = existing.DeviceId, Status = existing.Status, CreatedAtUtc = existing.CreatedAtUtc, DeadlineAtUtc = existing.DeadlineAtUtc, CorrelationId = existing.CorrelationId }); } // 4. Active Bundle Check: 同一设备同一时间只允许一个正在生成的 Support Bundle (PendingDispatch 或 Collecting) var existingActive = await _db.DeviceSupportBundles .AsNoTracking() .FirstOrDefaultAsync(sb => sb.DeviceId == device.Id && (sb.Status == SupportBundleStatuses.PendingDispatch || sb.Status == SupportBundleStatuses.Collecting), ct); if (existingActive != null) { _logger.LogWarning("Device {DeviceId} already has active support bundle {ActiveBundleId} in state {State}. 409 Conflict.", device.Id, existingActive.Id, existingActive.Status); return SupportBundleCreationResult.Conflict( SupportBundleErrorCodes.SupportBundleAlreadyRunning, existingActive.Id, $"设备 '{device.Id}' 当前已有正在收集中的技术诊断包 ({existingActive.Id})。"); } // 5. Begin Transaction: DeviceSupportBundle + SUPPORT_BUNDLE_REQUESTED Audit 原子落库 var now = DateTimeOffset.UtcNow; var bundleId = $"sb_{now.ToUnixTimeMilliseconds()}_{Guid.NewGuid():N}"[..24]; var correlationId = !string.IsNullOrWhiteSpace(_correlationContext.CorrelationId) ? _correlationContext.CorrelationId : $"sb_corr_{Guid.NewGuid():N}"[..20]; var bundle = new DeviceSupportBundle { Id = bundleId, ClientRequestId = request.ClientRequestId, TenantId = device.TenantId, DeviceId = device.Id, CorrelationId = correlationId, RequestedByUserId = actorUserId, Status = SupportBundleStatuses.PendingDispatch, CreatedAtUtc = now, UpdatedAtUtc = now, DeadlineAtUtc = now.AddMinutes(2), // 固定第一版 CreatedAtUtc + 2 minutes NextDispatchAttemptAtUtc = now, DispatchAttemptCount = 0, StoragePath = null, SizeBytes = null, Sha256 = null, ExpiresAtUtc = null, ErrorCode = null }; var audit = new AdminAuditEvent { Id = Guid.NewGuid().ToString("N"), OccurredAt = now, ActorUsername = actorUserId, ActorRole = actorRole, Action = "SUPPORT_BUNDLE_REQUESTED", TargetType = "DeviceSupportBundle", TargetId = bundle.Id, Details = JsonSerializer.Serialize(new { supportBundleId = bundle.Id, tenantId = bundle.TenantId, deviceId = bundle.DeviceId }), IpAddress = actorIp }; await using var tx = await _db.Database.BeginTransactionAsync(ct); try { _db.DeviceSupportBundles.Add(bundle); if (simulateAuditFailure) { throw new InvalidOperationException("Simulated audit failure for testing atomic transaction rollback"); } _db.AdminAuditEvents.Add(audit); await _db.SaveChangesAsync(ct); await tx.CommitAsync(ct); } catch (DbUpdateException dbEx) { _logger.LogWarning(dbEx, "DbUpdateException during support bundle creation. Checking for concurrent collision."); // 检查幂等性冲突 (ClientRequestId + RequestedByUserId) var collisionExisting = await _db.DeviceSupportBundles .AsNoTracking() .FirstOrDefaultAsync(sb => sb.RequestedByUserId == actorUserId && sb.ClientRequestId == request.ClientRequestId, ct); if (collisionExisting != null) { return SupportBundleCreationResult.Accepted(new SupportBundleCreatedDto { SupportBundleId = collisionExisting.Id, DeviceId = collisionExisting.DeviceId, Status = collisionExisting.Status, CreatedAtUtc = collisionExisting.CreatedAtUtc, DeadlineAtUtc = collisionExisting.DeadlineAtUtc, CorrelationId = collisionExisting.CorrelationId }); } // 检查单 Active 唯一约束冲突 (UX_DeviceSupportBundles_Device_Active) var collisionActive = await _db.DeviceSupportBundles .AsNoTracking() .FirstOrDefaultAsync(sb => sb.DeviceId == device.Id && (sb.Status == SupportBundleStatuses.PendingDispatch || sb.Status == SupportBundleStatuses.Collecting), ct); if (collisionActive != null) { return SupportBundleCreationResult.Conflict( SupportBundleErrorCodes.SupportBundleAlreadyRunning, collisionActive.Id, $"设备 '{device.Id}' 当前已有正在收集中的技术诊断包 ({collisionActive.Id})。"); } throw; } catch (Exception ex) { _logger.LogError(ex, "Transaction failed while creating support bundle {BundleId}. Rolled back.", bundle.Id); throw; } _logger.LogInformation("Support bundle requested successfully: BundleId={BundleId}, DeviceId={DeviceId}, TenantId={TenantId}, CorrelationId={CorrelationId}", bundle.Id, bundle.DeviceId, bundle.TenantId, bundle.CorrelationId); // 6. Post-commit: 唤醒后台调度 Worker _dispatchNotifier.Notify(); return SupportBundleCreationResult.Accepted(new SupportBundleCreatedDto { SupportBundleId = bundle.Id, DeviceId = bundle.DeviceId, Status = bundle.Status, CreatedAtUtc = bundle.CreatedAtUtc, DeadlineAtUtc = bundle.DeadlineAtUtc, CorrelationId = bundle.CorrelationId }); } finally { gate.Release(); } } public async Task GetSupportBundleAsync(string bundleId, string actorRole, string? actorTenantId, CancellationToken ct) { var bundle = await _db.DeviceSupportBundles.AsNoTracking().FirstOrDefaultAsync(b => b.Id == bundleId, ct); if (bundle == null) return null; if (actorRole == "SchoolAdmin" && !string.Equals(actorTenantId, bundle.TenantId, StringComparison.OrdinalIgnoreCase)) { return null; // 租户越界静默拦截或 404 } return new SupportBundleDetailDto { SupportBundleId = bundle.Id, DeviceId = bundle.DeviceId, TenantId = bundle.TenantId, CorrelationId = bundle.CorrelationId, RequestedByUserId = bundle.RequestedByUserId, Status = bundle.Status, CreatedAtUtc = bundle.CreatedAtUtc, UpdatedAtUtc = bundle.UpdatedAtUtc, DeadlineAtUtc = bundle.DeadlineAtUtc, DispatchedAtUtc = bundle.DispatchedAtUtc, CompletedAtUtc = bundle.CompletedAtUtc, ExpiresAtUtc = bundle.ExpiresAtUtc, DispatchAttemptCount = bundle.DispatchAttemptCount, StoragePath = bundle.StoragePath, SizeBytes = bundle.SizeBytes, Sha256 = bundle.Sha256, ErrorCode = bundle.ErrorCode }; } public async Task> GetSupportBundleStatusAsync( string bundleId, string actorRole, string? actorTenantId, CancellationToken ct) { var bundle = await _db.DeviceSupportBundles.AsNoTracking().FirstOrDefaultAsync(b => b.Id == bundleId, ct); if (bundle == null) { return SupportBundleQueryResult.NotFound($"Support bundle '{bundleId}' not found."); } if (actorRole == "SchoolAdmin") { if (string.IsNullOrEmpty(actorTenantId) || !string.Equals(actorTenantId, bundle.TenantId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("SchoolAdmin (Tenant={UserTenant}) attempted cross-tenant status query for bundle {BundleId} (Tenant={BundleTenant}). 403 Forbidden.", actorTenantId, bundle.Id, bundle.TenantId); return SupportBundleQueryResult.Forbidden("跨租户技术诊断包查询被拒绝。"); } } else if (actorRole != "SuperAdmin") { return SupportBundleQueryResult.Forbidden("仅允许系统管理员或学校管理员查询技术诊断包。"); } var now = DateTimeOffset.UtcNow; bool isDownloadAvailable = bundle.Status == SupportBundleStatuses.Available && bundle.ExpiresAtUtc.HasValue && bundle.ExpiresAtUtc.Value > now; var dto = new SupportBundleStatusDto { SupportBundleId = bundle.Id, DeviceId = bundle.DeviceId, TenantId = bundle.TenantId, Status = bundle.Status, CreatedAtUtc = bundle.CreatedAtUtc, CompletedAtUtc = bundle.CompletedAtUtc, ExpiresAtUtc = bundle.ExpiresAtUtc, SizeBytes = bundle.SizeBytes, Sha256 = bundle.Sha256, DownloadAvailable = isDownloadAvailable, ErrorCode = bundle.ErrorCode }; return SupportBundleQueryResult.Ok(dto); } public async Task>> GetDeviceSupportBundlesAsync( string deviceId, int take, string actorRole, string? actorTenantId, CancellationToken ct) { var device = await _db.Devices.AsNoTracking().FirstOrDefaultAsync(d => d.Id == deviceId, ct); if (device == null) { return SupportBundleQueryResult>.NotFound($"Device '{deviceId}' not found."); } if (actorRole == "SchoolAdmin") { if (string.IsNullOrEmpty(actorTenantId) || !string.Equals(actorTenantId, device.TenantId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("SchoolAdmin (Tenant={UserTenant}) attempted cross-tenant device bundles query for device {DeviceId} (Tenant={DeviceTenant}). 403 Forbidden.", actorTenantId, device.Id, device.TenantId); return SupportBundleQueryResult>.Forbidden("跨租户设备诊断包列表查询被拒绝。"); } } else if (actorRole != "SuperAdmin") { return SupportBundleQueryResult>.Forbidden("仅允许系统管理员或学校管理员查询技术诊断包。"); } var clampedTake = Math.Clamp(take <= 0 ? 5 : take, 1, 20); var now = DateTimeOffset.UtcNow; var bundles = await _db.DeviceSupportBundles .AsNoTracking() .Where(b => b.DeviceId == deviceId) .OrderByDescending(b => b.CreatedAtUtc) .Take(clampedTake) .Select(b => new SupportBundleStatusDto { SupportBundleId = b.Id, DeviceId = b.DeviceId, TenantId = b.TenantId, Status = b.Status, CreatedAtUtc = b.CreatedAtUtc, CompletedAtUtc = b.CompletedAtUtc, ExpiresAtUtc = b.ExpiresAtUtc, SizeBytes = b.SizeBytes, Sha256 = b.Sha256, DownloadAvailable = b.Status == SupportBundleStatuses.Available && b.ExpiresAtUtc.HasValue && b.ExpiresAtUtc.Value > now, ErrorCode = b.ErrorCode }) .ToListAsync(ct); return SupportBundleQueryResult>.Ok(bundles); } public async Task PrepareDownloadAsync( string bundleId, string actorRole, string? actorTenantId, string actorUser, string actorIp, CancellationToken ct) { // 1. 加载诊断包记录 var bundle = await _db.DeviceSupportBundles.FirstOrDefaultAsync(b => b.Id == bundleId, ct); if (bundle == null) { return SupportBundleDownloadResult.NotFound($"Support bundle '{bundleId}' not found."); } // 2. 权限校验 if (actorRole == "SchoolAdmin") { if (string.IsNullOrEmpty(actorTenantId) || !string.Equals(actorTenantId, bundle.TenantId, StringComparison.OrdinalIgnoreCase)) { _logger.LogWarning("SchoolAdmin {User} (Tenant={UserTenant}) attempted cross-tenant download for bundle {BundleId} (Tenant={BundleTenant}). 403 Forbidden.", actorUser, actorTenantId, bundle.Id, bundle.TenantId); return SupportBundleDownloadResult.Forbidden("跨校技术诊断包下载被拒绝。"); } } else if (actorRole != "SuperAdmin") { return SupportBundleDownloadResult.Forbidden("仅允许系统管理员或学校管理员下载技术诊断包。"); } // 3. 状态与有效期检查 if (bundle.Status == SupportBundleStatuses.PendingDispatch || bundle.Status == SupportBundleStatuses.Collecting) { return SupportBundleDownloadResult.Conflict(SupportBundleErrorCodes.BundleNotReady, $"Support bundle is currently in state '{bundle.Status}' and not ready for download."); } if (bundle.Status == SupportBundleStatuses.Failed) { return SupportBundleDownloadResult.Conflict(SupportBundleErrorCodes.BundleFailed, "Support bundle collection failed and cannot be downloaded."); } if (bundle.Status == SupportBundleStatuses.TimedOut || bundle.Status == SupportBundleStatuses.Expired) { return SupportBundleDownloadResult.Gone(SupportBundleErrorCodes.BundleExpired, $"Support bundle is in terminal state '{bundle.Status}' and cannot be downloaded."); } var now = DateTimeOffset.UtcNow; if (bundle.ExpiresAtUtc.HasValue && bundle.ExpiresAtUtc.Value <= now) { return SupportBundleDownloadResult.Gone(SupportBundleErrorCodes.BundleExpired, "Support bundle has expired (retention period exceeded)."); } if (bundle.Status != SupportBundleStatuses.Available) { return SupportBundleDownloadResult.Conflict(SupportBundleErrorCodes.BundleNotReady, $"Support bundle is in state '{bundle.Status}' and cannot be downloaded."); } if (string.IsNullOrWhiteSpace(bundle.StoragePath)) { return SupportBundleDownloadResult.ServerError(SupportBundleErrorCodes.SupportBundleFileMissing, "Support bundle record has no StoragePath."); } // 4. Storage Root Confinement (Strict Relative Path & Path Traversal Protection) var root = _options.Value.GetEffectiveStorageRoot(); string candidatePath; try { candidatePath = SupportBundlePathResolver.ResolveBundlePath(root, bundle.StoragePath); } catch (InvalidStoragePathException ex) { _logger.LogWarning("CRITICAL: Storage path validation failed for bundle {BundleId}: {Message} (StoragePath='{Path}')", bundle.Id, ex.Message, bundle.StoragePath); return SupportBundleDownloadResult.BadRequest(SupportBundleErrorCodes.InvalidStoragePath, "Invalid storage path detected."); } catch (Exception ex) { _logger.LogWarning(ex, "Unexpected error resolving StoragePath '{StoragePath}' for bundle {BundleId}", bundle.StoragePath, bundle.Id); return SupportBundleDownloadResult.BadRequest(SupportBundleErrorCodes.InvalidStoragePath, "Invalid storage path detected."); } // 5. Physical File Existence Check if (!File.Exists(candidatePath)) { _logger.LogError("Support bundle file missing from disk! BundleId={BundleId}, Path={StoragePath}, ExpectedSha256={Sha256}", bundle.Id, bundle.StoragePath, bundle.Sha256); return SupportBundleDownloadResult.ServerError(SupportBundleErrorCodes.SupportBundleFileMissing, "Support bundle file missing from storage."); } // 6. Audit Logging: 仅当成功授权并准备提供下载时写入 SUPPORT_BUNDLE_DOWNLOADED var audit = new AdminAuditEvent { Id = Guid.NewGuid().ToString("N"), OccurredAt = now, ActorUsername = actorUser, ActorRole = actorRole, Action = "SUPPORT_BUNDLE_DOWNLOADED", TargetType = "DeviceSupportBundle", TargetId = bundle.Id, Details = JsonSerializer.Serialize(new { supportBundleId = bundle.Id, tenantId = bundle.TenantId, deviceId = bundle.DeviceId, sizeBytes = bundle.SizeBytes, sha256 = bundle.Sha256 }), IpAddress = actorIp }; _db.AdminAuditEvents.Add(audit); await _db.SaveChangesAsync(ct); var downloadFileName = $"classnotify-support-{bundle.DeviceId}-{bundle.CreatedAtUtc:yyyyMMdd-HHmm}.zip"; return SupportBundleDownloadResult.Success(candidatePath, downloadFileName); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/VisualReceiptCleanupWorker.cs ================================================================================ using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; namespace ClassNotify.Server.Services; public class VisualReceiptCleanupWorker : BackgroundService { private readonly IServiceProvider _serviceProvider; private readonly ILogger _logger; public VisualReceiptCleanupWorker( IServiceProvider serviceProvider, ILogger logger) { _serviceProvider = serviceProvider; _logger = logger; } protected override async Task ExecuteAsync(CancellationToken stoppingToken) { _logger.LogInformation("VisualReceiptCleanupWorker started (24h retention enforcer)."); while (!stoppingToken.IsCancellationRequested) { try { using var scope = _serviceProvider.CreateScope(); var service = scope.ServiceProvider.GetRequiredService(); await service.CleanupExpiredVisualReceiptsAsync(stoppingToken); var healthState = scope.ServiceProvider.GetService(); if (healthState != null) { healthState.LastVisualReceiptCleanupSuccessUtc = DateTimeOffset.UtcNow; } } catch (OperationCanceledException) when (stoppingToken.IsCancellationRequested) { break; } catch (Exception ex) { _logger.LogError(ex, "Error occurred during visual receipt cleanup execution."); } // Check every 30 minutes await Task.Delay(TimeSpan.FromMinutes(30), stoppingToken); } _logger.LogInformation("VisualReceiptCleanupWorker stopped."); } } ================================================================================ FILE: src/Server/ClassNotify.Server/Services/VisualReceiptService.cs ================================================================================ using System.Collections.Concurrent; using System.Security.Claims; using System.Security.Cryptography; using System.Threading; using ClassNotify.Server.Data; using Microsoft.EntityFrameworkCore; namespace ClassNotify.Server.Services; public class VisualReceiptService : IVisualReceiptService { private static readonly ConcurrentDictionary _receiptLocks = new(); private readonly IServiceScopeFactory _scopeFactory; private readonly ISecurityService _securityService; private readonly IConfiguration _configuration; private readonly ILogger _logger; private readonly string _storageBasePath; public VisualReceiptService( IServiceScopeFactory scopeFactory, ISecurityService securityService, IConfiguration configuration, ILogger logger) { _scopeFactory = scopeFactory; _securityService = securityService; _configuration = configuration; _logger = logger; // Path resolution: config > /var/lib/classnotify/visual-receipts (if linux directory exists or creatable) > AppContext.BaseDirectory var configuredPath = _configuration.GetValue("VisualReceipt:StoragePath"); if (!string.IsNullOrWhiteSpace(configuredPath)) { _storageBasePath = configuredPath; } else if (OperatingSystem.IsLinux()) { _storageBasePath = "/var/lib/classnotify/visual-receipts"; } else { _storageBasePath = Path.Combine(AppContext.BaseDirectory, "visual_receipts"); } try { Directory.CreateDirectory(_storageBasePath); } catch (Exception ex) { _logger.LogWarning(ex, "Failed to create visual receipts storage directory at {Path}, falling back to temp directory.", _storageBasePath); _storageBasePath = Path.Combine(Path.GetTempPath(), "classnotify_visual_receipts"); Directory.CreateDirectory(_storageBasePath); } } public async Task SaveVisualReceiptAsync( string notificationId, string deviceId, string deviceToken, byte[] jpegBytes) { if (string.IsNullOrWhiteSpace(notificationId) || string.IsNullOrWhiteSpace(deviceId) || string.IsNullOrWhiteSpace(deviceToken)) { return new VisualReceiptUploadResult(false, "缺少必要参数或凭据", 400); } // 1. Payload size check (Max 512 KiB) if (jpegBytes == null || jpegBytes.Length == 0) { return new VisualReceiptUploadResult(false, "图片数据为空", 400); } if (jpegBytes.Length > 524288) { return new VisualReceiptUploadResult(false, "图片文件超过 512 KiB 大小限制", 413); } // 2. JPEG magic bytes check: Starts with 0xFF 0xD8, Ends with 0xFF 0xD9 if (jpegBytes.Length < 4 || jpegBytes[0] != 0xFF || jpegBytes[1] != 0xD8 || jpegBytes[^2] != 0xFF || jpegBytes[^1] != 0xD9) { return new VisualReceiptUploadResult(false, "上传内容不是合法的 JPEG 格式图像", 415); } // 3. Authenticate device token var device = await _securityService.ValidateDeviceAsync(deviceId, deviceToken); if (device == null || !device.IsActive) { return new VisualReceiptUploadResult(false, "设备凭据无效或设备已被禁用", 401); } using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); // 4. Validate Notification and NotificationReceipt attribution var notification = await db.Notifications.AsNoTracking().FirstOrDefaultAsync(n => n.Id == notificationId); if (notification == null) { return new VisualReceiptUploadResult(false, "目标通知不存在", 404); } // Defense in depth: Check tenant and class isolation if (notification.TenantId != device.TenantId || notification.ClassroomId != device.ClassroomId) { _logger.LogWarning("Cross-tenant/class visual receipt upload spoofing attempt: Device {DevId} ({DevTenant}/{DevClass}) vs Notif {NotifId} ({NotifTenant}/{NotifClass})", deviceId, device.TenantId, device.ClassroomId, notificationId, notification.TenantId, notification.ClassroomId); return new VisualReceiptUploadResult(false, "设备归属与通知目标班级不匹配", 403); } var receipt = await db.NotificationReceipts.FirstOrDefaultAsync(r => r.NotificationId == notificationId && r.DeviceId == deviceId); if (receipt == null) { return new VisualReceiptUploadResult(false, "该设备未被分配此通知回执记录", 403); } // 5. Concurrency & Idempotency: First Successful Receipt Wins with Per-Receipt Mutex var receiptLock = _receiptLocks.GetOrAdd(receipt.Id, _ => new SemaphoreSlim(1, 1)); await receiptLock.WaitAsync(); try { // Fresh check from database inside mutex var currentReceipt = await db.NotificationReceipts.FirstOrDefaultAsync(r => r.Id == receipt.Id); if (currentReceipt == null) { return new VisualReceiptUploadResult(false, "回执记录不存在", 404); } if (currentReceipt.VisualReceiptState == "Available") { _logger.LogInformation("Visual receipt already available for Notification {NotifId} / Device {DevId} (Receipt {ReceiptId}). First-wins idempotent success returned.", notificationId, deviceId, receipt.Id); return new VisualReceiptUploadResult(true, "视觉回执已存在", 200, currentReceipt.Id, currentReceipt.VisualReceiptCapturedAt, currentReceipt.VisualReceiptExpiresAt); } // 6. Compute SHA256 hash string sha256Hex; using (var sha = SHA256.Create()) { var hashBytes = sha.ComputeHash(jpegBytes); sha256Hex = BitConverter.ToString(hashBytes).Replace("-", "").ToLowerInvariant(); } // 7. Atomic file writing with unique temporary file and overwrite: false var now = DateTimeOffset.UtcNow; var dateFolder = now.ToString("yyyyMMdd"); var targetDir = Path.Combine(_storageBasePath, dateFolder); Directory.CreateDirectory(targetDir); var relativePath = $"{dateFolder}/{currentReceipt.Id}.jpg"; var finalFilePath = Path.Combine(_storageBasePath, dateFolder, $"{currentReceipt.Id}.jpg"); var tempFilePath = Path.Combine(_storageBasePath, dateFolder, $"{currentReceipt.Id}_{Guid.NewGuid():N}.tmp"); try { await File.WriteAllBytesAsync(tempFilePath, jpegBytes); File.Move(tempFilePath, finalFilePath, overwrite: false); } catch (IOException ex) when (File.Exists(finalFilePath)) { // File already placed by a winning race; clean up temp and return idempotent success _logger.LogInformation(ex, "Final visual receipt file already exists at {Path}. Cleaned temp and returning first-wins idempotent.", finalFilePath); try { if (File.Exists(tempFilePath)) File.Delete(tempFilePath); } catch { } return new VisualReceiptUploadResult(true, "视觉回执已存在", 200, currentReceipt.Id, currentReceipt.VisualReceiptCapturedAt ?? now, currentReceipt.VisualReceiptExpiresAt ?? now.AddHours(24)); } catch (Exception ex) { _logger.LogError(ex, "Failed to write visual receipt file to {Path}", finalFilePath); try { if (File.Exists(tempFilePath)) File.Delete(tempFilePath); } catch { } return new VisualReceiptUploadResult(false, "服务端写入视觉回执文件失败", 500); } // 8. Update database record with 24-hour retention var expiresAt = now.AddHours(24); currentReceipt.VisualReceiptState = "Available"; currentReceipt.VisualReceiptPath = relativePath; currentReceipt.VisualReceiptCapturedAt = now; currentReceipt.VisualReceiptExpiresAt = expiresAt; currentReceipt.VisualReceiptSizeBytes = jpegBytes.Length; currentReceipt.VisualReceiptSha256 = sha256Hex; currentReceipt.UpdatedAt = now; try { await db.SaveChangesAsync(); _logger.LogInformation("Visual receipt successfully saved for Notification {NotifId} / Device {DevId} (Size: {Size} bytes, SHA256: {Sha256}, Expires: {ExpiresAt})", notificationId, deviceId, jpegBytes.Length, sha256Hex, expiresAt); return new VisualReceiptUploadResult(true, "视觉回执上传成功", 200, currentReceipt.Id, now, expiresAt); } catch (Exception ex) { _logger.LogError(ex, "Database update failed after saving visual receipt file. Compensating by removing file {Path}", finalFilePath); try { if (File.Exists(finalFilePath)) File.Delete(finalFilePath); } catch { } return new VisualReceiptUploadResult(false, "更新回执数据库状态失败", 500); } } finally { receiptLock.Release(); } } public async Task GetVisualReceiptFileAsync(string notificationId, string deviceId, ClaimsPrincipal user) { if (user.Identity?.IsAuthenticated != true) { return new VisualReceiptFileResult(false, null, 401, "未登录或登录凭据无效"); } using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var notification = await db.Notifications.AsNoTracking().FirstOrDefaultAsync(n => n.Id == notificationId); if (notification == null) { return new VisualReceiptFileResult(false, null, 404, "通知记录不存在"); } // Permission check var userRole = user.FindFirst(ClaimTypes.Role)?.Value ?? "Teacher"; var userTenant = user.FindFirst("tenant_id")?.Value; var userId = user.FindFirst(ClaimTypes.NameIdentifier)?.Value; if (userRole != "SuperAdmin") { if (string.IsNullOrEmpty(userTenant) || userTenant != notification.TenantId) { return new VisualReceiptFileResult(false, null, 403, "无权查看非本校通知记录的视觉回执"); } if (userRole == "Teacher") { // Teacher can view notifications sent by themselves or targeting their classroom bool isSender = !string.IsNullOrEmpty(userId) && notification.SenderUserId == userId; if (!isSender) { // Allow teacher within same school to view class notification history // (Consistent with existing NotificationController.GetNotifications policy) } } } var receipt = await db.NotificationReceipts.AsNoTracking() .FirstOrDefaultAsync(r => r.NotificationId == notificationId && r.DeviceId == deviceId); if (receipt == null || receipt.VisualReceiptState == "None") { return new VisualReceiptFileResult(false, null, 404, "该设备无视觉回执记录"); } var now = DateTimeOffset.UtcNow; if (receipt.VisualReceiptState == "Expired" || (receipt.VisualReceiptExpiresAt.HasValue && receipt.VisualReceiptExpiresAt.Value <= now)) { return new VisualReceiptFileResult(false, null, 410, "该视觉回执已按 24 小时隐私保存策略自动销毁"); } if (string.IsNullOrEmpty(receipt.VisualReceiptPath)) { return new VisualReceiptFileResult(false, null, 404, "视觉回执文件路径为空"); } // Prevent path traversal var safeRelativePath = receipt.VisualReceiptPath.Replace('\\', '/').TrimStart('/'); if (safeRelativePath.Contains("..")) { return new VisualReceiptFileResult(false, null, 400, "非法文件路径"); } var fullPath = Path.Combine(_storageBasePath, safeRelativePath); if (!File.Exists(fullPath)) { _logger.LogWarning("Visual receipt file missing on disk: {Path}", fullPath); return new VisualReceiptFileResult(false, null, 404, "视觉回执图像文件已被物理删除"); } return new VisualReceiptFileResult(true, fullPath, 200); } public async Task CleanupExpiredVisualReceiptsAsync(CancellationToken ct = default) { using var scope = _scopeFactory.CreateScope(); var db = scope.ServiceProvider.GetRequiredService(); var now = DateTimeOffset.UtcNow; var expiredReceipts = await db.NotificationReceipts .Where(r => r.VisualReceiptState == "Available" && r.VisualReceiptExpiresAt <= now) .Take(200) .ToListAsync(ct); if (expiredReceipts.Count == 0) return 0; int cleanedCount = 0; foreach (var r in expiredReceipts) { if (!string.IsNullOrEmpty(r.VisualReceiptPath)) { var safeRelativePath = r.VisualReceiptPath.Replace('\\', '/').TrimStart('/'); var fullPath = Path.Combine(_storageBasePath, safeRelativePath); try { if (File.Exists(fullPath)) { File.Delete(fullPath); } } catch (Exception ex) { _logger.LogWarning(ex, "Failed to delete expired visual receipt file at {Path}. Retaining Available state in database for retry in next cleanup cycle.", fullPath); continue; // Retain Available state and Path in database! Next worker cycle will retry. } } r.VisualReceiptPath = null; r.VisualReceiptState = "Expired"; r.UpdatedAt = now; cleanedCount++; } if (cleanedCount > 0) { await db.SaveChangesAsync(ct); _logger.LogInformation("Cleaned up {Count} expired visual receipts per 24-hour privacy retention policy.", cleanedCount); } return cleanedCount; } } ================================================================================ FILE: src/Server/ClassNotify.Server/wwwroot/assets/index-CmrflHx9.js ================================================================================ var l0=Object.defineProperty;var a0=(o,l,a)=>l in o?l0(o,l,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[l]=a;var _t=(o,l,a)=>a0(o,typeof l!="symbol"?l+"":l,a);function o0(o,l){for(var a=0;ad[u]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))d(u);new MutationObserver(u=>{for(const h of u)if(h.type==="childList")for(const f of h.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&d(f)}).observe(document,{childList:!0,subtree:!0});function a(u){const h={};return u.integrity&&(h.integrity=u.integrity),u.referrerPolicy&&(h.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?h.credentials="include":u.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function d(u){if(u.ep)return;u.ep=!0;const h=a(u);fetch(u.href,h)}})();function zu(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ni={exports:{}},Or={},ri={exports:{}},_e={};/** * @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 mu;function i0(){if(mu)return _e;mu=1;var o=Symbol.for("react.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),k=Symbol.iterator;function D(b){return b===null||typeof b!="object"?null:(b=k&&b[k]||b["@@iterator"],typeof b=="function"?b:null)}var W={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,F={};function C(b,M,ye){this.props=b,this.context=M,this.refs=F,this.updater=ye||W}C.prototype.isReactComponent={},C.prototype.setState=function(b,M){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,M,"setState")},C.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function O(){}O.prototype=C.prototype;function te(b,M,ye){this.props=b,this.context=M,this.refs=F,this.updater=ye||W}var Y=te.prototype=new O;Y.constructor=te,V(Y,C.prototype),Y.isPureReactComponent=!0;var K=Array.isArray,oe=Object.prototype.hasOwnProperty,ce={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function Z(b,M,ye){var Q,me={},be=null,Ie=null;if(M!=null)for(Q in M.ref!==void 0&&(Ie=M.ref),M.key!==void 0&&(be=""+M.key),M)oe.call(M,Q)&&!L.hasOwnProperty(Q)&&(me[Q]=M[Q]);var Ce=arguments.length-2;if(Ce===1)me.children=ye;else if(1>>1,M=S[b];if(0>>1;bu(me,I))beu(Ie,me)?(S[b]=Ie,S[be]=I,b=be):(S[b]=me,S[Q]=I,b=Q);else if(beu(Ie,I))S[b]=Ie,S[be]=I,b=be;else break e}}return ee}function u(S,ee){var I=S.sortIndex-ee.sortIndex;return I!==0?I:S.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;o.unstable_now=function(){return h.now()}}else{var f=Date,v=f.now();o.unstable_now=function(){return f.now()-v}}var p=[],N=[],j=1,k=null,D=3,W=!1,V=!1,F=!1,C=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Y(S){for(var ee=a(N);ee!==null;){if(ee.callback===null)d(N);else if(ee.startTime<=S)d(N),ee.sortIndex=ee.expirationTime,l(p,ee);else break;ee=a(N)}}function K(S){if(F=!1,Y(S),!V)if(a(p)!==null)V=!0,U(oe);else{var ee=a(N);ee!==null&&ve(K,ee.startTime-S)}}function oe(S,ee){V=!1,F&&(F=!1,O(Z),Z=-1),W=!0;var I=D;try{for(Y(ee),k=a(p);k!==null&&(!(k.expirationTime>ee)||S&&!G());){var b=k.callback;if(typeof b=="function"){k.callback=null,D=k.priorityLevel;var M=b(k.expirationTime<=ee);ee=o.unstable_now(),typeof M=="function"?k.callback=M:k===a(p)&&d(p),Y(ee)}else d(p);k=a(p)}if(k!==null)var ye=!0;else{var Q=a(N);Q!==null&&ve(K,Q.startTime-ee),ye=!1}return ye}finally{k=null,D=I,W=!1}}var ce=!1,L=null,Z=-1,A=5,he=-1;function G(){return!(o.unstable_now()-heS||125b?(S.sortIndex=I,l(N,S),a(p)===null&&S===a(N)&&(F?(O(Z),Z=-1):F=!0,ve(K,I-b))):(S.sortIndex=M,l(p,S),V||W||(V=!0,U(oe))),S},o.unstable_shouldYield=G,o.unstable_wrapCallback=function(S){var ee=D;return function(){var I=D;D=ee;try{return S.apply(this,arguments)}finally{D=I}}}})(oi)),oi}var vu;function m0(){return vu||(vu=1,ai.exports=h0()),ai.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 yu;function f0(){if(yu)return Ct;yu=1;var o=yi(),l=m0();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,N=/^[: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]*$/,j={},k={};function D(e){return p.call(k,e)?!0:p.call(j,e)?!1:N.test(e)?k[e]=!0:(j[e]=!0,!1)}function W(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 V(e,t,n,r){if(t===null||typeof t>"u"||W(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 F(e,t,n,r,i,c,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=m}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];C[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){C[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C[e]=new F(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){C[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){C[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){C[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){C[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){C[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function te(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(O,te);C[t]=new F(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(O,te);C[t]=new F(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(O,te);C[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){C[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),C.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){C[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function Y(e,t,n,r){var i=C.hasOwnProperty(t)?C[t]:null;(i!==null?i.type!==0:r||!(2g||i[m]!==c[g]){var y=` `+i[m].replace(" at new "," at ");return e.displayName&&y.includes("")&&(y=y.replace("",e.displayName)),y}while(1<=m&&0<=g);break}}}finally{ye=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function me(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=Q(e.type,!1),e;case 11:return e=Q(e.type.render,!1),e;case 1:return e=Q(e.type,!0),e;default:return""}}function be(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 L:return"Fragment";case ce:return"Portal";case A:return"Profiler";case Z:return"StrictMode";case T:return"Suspense";case se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:return(e.displayName||"Context")+".Consumer";case he:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Se:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}function Ie(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 be(t);case 8:return t===Z?"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 Ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Re(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ye(e){var t=Re(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 i=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(m){r=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(m){r=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function es(e){e._valueTracker||(e._valueTracker=Ye(e))}function Gs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Re(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ds(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 ws(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function js(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ce(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 Pt(e,t){t=t.checked,t!=null&&Y(e,"checked",t,!1)}function X(e,t){Pt(e,t);var n=Ce(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")?Ve(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ve(e,t.type,Ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ue(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 Ve(e,t,n){(t!=="number"||ds(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ue=Array.isArray;function Tt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=wn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ys(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var us={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},va=["Webkit","ms","Moz","O"];Object.keys(us).forEach(function(e){va.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),us[t]=us[e]})});function tr(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||us.hasOwnProperty(e)&&us[e]?(""+t).trim():t+"px"}function z(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=tr(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ne=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ke(e,t){if(t){if(Ne[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function Te(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Je=null;function Ze(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yt=null,bt=null,Rt=null;function Pi(e){if(e=Nr(e)){if(typeof yt!="function")throw Error(a(280));var t=e.stateNode;t&&(t=yl(t),yt(e.stateNode,e.type,t))}}function Ti(e){bt?Rt?Rt.push(e):Rt=[e]:bt=e}function Ri(){if(bt){var e=bt,t=Rt;if(Rt=bt=null,Pi(e),t)for(e=0;e>>=0,e===0?32:31-(wh(e)/jh|0)|0}var tl=64,sl=4194304;function lr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,c=e.pingedLanes,m=n&268435455;if(m!==0){var g=m&~i;g!==0?r=lr(g):(c&=m,c!==0&&(r=lr(c)))}else m=n&~i,m!==0?r=lr(m):c!==0&&(r=lr(c));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,c=t&-t,i>=c||i===16&&(c&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vt(t),e[t]=n}function _h(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fr),ac=" ",oc=!1;function ic(e,t){switch(e){case"keyup":return em.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function sm(e,t){switch(e){case"compositionend":return cc(t);case"keypress":return t.which!==32?null:(oc=!0,ac);case"textInput":return e=t.data,e===ac&&oc?null:e;default:return null}}function nm(e,t){if(kn)return e==="compositionend"||!Ma&&ic(e,t)?(e=ec(),il=Pa=Es=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pc(n)}}function vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yc(){for(var e=window,t=ds();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ds(e.document)}return t}function za(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hm(e){var t=yc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vc(n.ownerDocument.documentElement,n)){if(r!==null&&za(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,c=Math.min(r.start,i);r=r.end===void 0?c:Math.min(r.end,i),!e.extend&&c>r&&(i=r,r=c,c=i),i=gc(n,c);var m=gc(n,r);i&&m&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),c>r?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sn=null,Ua=null,vr=null,Fa=!1;function bc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fa||Sn==null||Sn!==ds(r)||(r=Sn,"selectionStart"in r&&za(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),vr&&gr(vr,r)||(vr=r,r=pl(Ua,"onSelect"),0Pn||(e.current=Za[Pn],Za[Pn]=null,Pn--)}function De(e,t){Pn++,Za[Pn]=e.current,e.current=t}var Rs={},ht=Ts(Rs),wt=Ts(!1),tn=Rs;function Tn(e,t){var n=e.type.contextTypes;if(!n)return Rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},c;for(c in n)i[c]=t[c];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jt(e){return e=e.childContextTypes,e!=null}function bl(){Ae(wt),Ae(ht)}function Dc(e,t,n){if(ht.current!==Rs)throw Error(a(168));De(ht,t),De(wt,n)}function Mc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(a(108,Ie(e)||"Unknown",i));return I({},n,r)}function wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rs,tn=ht.current,De(ht,e),De(wt,wt.current),!0}function Ac(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Mc(e,t,tn),r.__reactInternalMemoizedMergedChildContext=e,Ae(wt),Ae(ht),De(ht,e)):Ae(wt),De(wt,n)}var ms=null,jl=!1,eo=!1;function Oc(e){ms===null?ms=[e]:ms.push(e)}function km(e){jl=!0,Oc(e)}function Ls(){if(!eo&&ms!==null){eo=!0;var e=0,t=Le;try{var n=ms;for(Le=1;e>=m,i-=m,fs=1<<32-Vt(t)+i|n<we?(it=xe,xe=null):it=xe.sibling;var Pe=B(_,xe,E[we],q);if(Pe===null){xe===null&&(xe=it);break}e&&xe&&Pe.alternate===null&&t(_,xe),w=c(Pe,w,we),fe===null?de=Pe:fe.sibling=Pe,fe=Pe,xe=it}if(we===E.length)return n(_,xe),Oe&&nn(_,we),de;if(xe===null){for(;wewe?(it=xe,xe=null):it=xe.sibling;var Bs=B(_,xe,Pe.value,q);if(Bs===null){xe===null&&(xe=it);break}e&&xe&&Bs.alternate===null&&t(_,xe),w=c(Bs,w,we),fe===null?de=Bs:fe.sibling=Bs,fe=Bs,xe=it}if(Pe.done)return n(_,xe),Oe&&nn(_,we),de;if(xe===null){for(;!Pe.done;we++,Pe=E.next())Pe=J(_,Pe.value,q),Pe!==null&&(w=c(Pe,w,we),fe===null?de=Pe:fe.sibling=Pe,fe=Pe);return Oe&&nn(_,we),de}for(xe=r(_,xe);!Pe.done;we++,Pe=E.next())Pe=ne(xe,_,we,Pe.value,q),Pe!==null&&(e&&Pe.alternate!==null&&xe.delete(Pe.key===null?we:Pe.key),w=c(Pe,w,we),fe===null?de=Pe:fe.sibling=Pe,fe=Pe);return e&&xe.forEach(function(r0){return t(_,r0)}),Oe&&nn(_,we),de}function qe(_,w,E,q){if(typeof E=="object"&&E!==null&&E.type===L&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case oe:e:{for(var de=E.key,fe=w;fe!==null;){if(fe.key===de){if(de=E.type,de===L){if(fe.tag===7){n(_,fe.sibling),w=i(fe,E.props.children),w.return=_,_=w;break e}}else if(fe.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===U&&Wc(de)===fe.type){n(_,fe.sibling),w=i(fe,E.props),w.ref=kr(_,fe,E),w.return=_,_=w;break e}n(_,fe);break}else t(_,fe);fe=fe.sibling}E.type===L?(w=hn(E.props.children,_.mode,q,E.key),w.return=_,_=w):(q=ql(E.type,E.key,E.props,null,_.mode,q),q.ref=kr(_,w,E),q.return=_,_=q)}return m(_);case ce:e:{for(fe=E.key;w!==null;){if(w.key===fe)if(w.tag===4&&w.stateNode.containerInfo===E.containerInfo&&w.stateNode.implementation===E.implementation){n(_,w.sibling),w=i(w,E.children||[]),w.return=_,_=w;break e}else{n(_,w);break}else t(_,w);w=w.sibling}w=Yo(E,_.mode,q),w.return=_,_=w}return m(_);case U:return fe=E._init,qe(_,w,fe(E._payload),q)}if(Ue(E))return ae(_,w,E,q);if(ee(E))return ie(_,w,E,q);_l(_,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,w!==null&&w.tag===6?(n(_,w.sibling),w=i(w,E),w.return=_,_=w):(n(_,w),w=Go(E,_.mode,q),w.return=_,_=w),m(_)):n(_,w)}return qe}var Dn=Vc(!0),Qc=Vc(!1),Cl=Ts(null),El=null,Mn=null,ao=null;function oo(){ao=Mn=El=null}function io(e){var t=Cl.current;Ae(Cl),e._currentValue=t}function co(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function An(e,t){El=e,ao=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Nt=!0),e.firstContext=null)}function Ut(e){var t=e._currentValue;if(ao!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(El===null)throw Error(a(308));Mn=e,El.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var rn=null;function uo(e){rn===null?rn=[e]:rn.push(e)}function Kc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uo(t)):(n.next=i.next,i.next=n),t.interleaved=n,ps(e,r)}function ps(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var $s=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function gs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ds(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ee&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ps(e,n)}return i=r.interleaved,i===null?(t.next=t,uo(r)):(t.next=i.next,i.next=t),r.interleaved=t,ps(e,n)}function Il(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sa(e,n)}}function Xc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};c===null?i=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?i=c=t:c=c.next=t}else i=c=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Pl(e,t,n,r){var i=e.updateQueue;$s=!1;var c=i.firstBaseUpdate,m=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var y=g,P=y.next;y.next=null,m===null?c=P:m.next=P,m=y;var H=e.alternate;H!==null&&(H=H.updateQueue,g=H.lastBaseUpdate,g!==m&&(g===null?H.firstBaseUpdate=P:g.next=P,H.lastBaseUpdate=y))}if(c!==null){var J=i.baseState;m=0,H=P=y=null,g=c;do{var B=g.lane,ne=g.eventTime;if((r&B)===B){H!==null&&(H=H.next={eventTime:ne,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var ae=e,ie=g;switch(B=t,ne=n,ie.tag){case 1:if(ae=ie.payload,typeof ae=="function"){J=ae.call(ne,J,B);break e}J=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ie.payload,B=typeof ae=="function"?ae.call(ne,J,B):ae,B==null)break e;J=I({},J,B);break e;case 2:$s=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,B=i.effects,B===null?i.effects=[g]:B.push(g))}else ne={eventTime:ne,lane:B,tag:g.tag,payload:g.payload,callback:g.callback,next:null},H===null?(P=H=ne,y=J):H=H.next=ne,m|=B;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;B=g,g=B.next,B.next=null,i.lastBaseUpdate=B,i.shared.pending=null}}while(!0);if(H===null&&(y=J),i.baseState=y,i.firstBaseUpdate=P,i.lastBaseUpdate=H,t=i.shared.interleaved,t!==null){i=t;do m|=i.lane,i=i.next;while(i!==t)}else c===null&&(i.shared.lanes=0);on|=m,e.lanes=m,e.memoizedState=J}}function qc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{Le=n,go.transition=r}}function xd(){return Ft().memoizedState}function Em(e,t,n){var r=zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pd(e))gd(t,n);else if(n=Kc(e,t,n,r),n!==null){var i=vt();Gt(n,e,r,i),vd(n,t,r)}}function Im(e,t,n){var r=zs(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pd(e))gd(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,g=c(m,n);if(i.hasEagerState=!0,i.eagerState=g,Qt(g,m)){var y=t.interleaved;y===null?(i.next=i,uo(t)):(i.next=y.next,y.next=i),t.interleaved=i;return}}catch{}finally{}n=Kc(e,t,i,r),n!==null&&(i=vt(),Gt(n,e,r,i),vd(n,t,r))}}function pd(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function gd(e,t){Er=Ll=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vd(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sa(e,n)}}var Ml={readContext:Ut,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},Pm={readContext:Ut,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:od,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$l(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $l(4194308,4,e,t)},useInsertionEffect:function(e,t){return $l(4,2,e,t)},useMemo:function(e,t){var n=rs();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rs();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Em.bind(null,Be,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:ld,useDebugValue:ko,useDeferredValue:function(e){return rs().memoizedState=e},useTransition:function(){var e=ld(!1),t=e[0];return e=Cm.bind(null,e[1]),rs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Be,i=rs();if(Oe){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),ot===null)throw Error(a(349));(an&30)!==0||ed(r,t,n)}i.memoizedState=n;var c={value:n,getSnapshot:t};return i.queue=c,od(sd.bind(null,r,c,e),[e]),r.flags|=2048,Tr(9,td.bind(null,r,c,n,t),void 0,null),n},useId:function(){var e=rs(),t=ot.identifierPrefix;if(Oe){var n=xs,r=fs;n=(r&~(1<<32-Vt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ir++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=m.createElement(n,{is:r.is}):(e=m.createElement(n),n==="select"&&(m=e,r.multiple?m.multiple=!0:r.size&&(m.size=r.size))):e=m.createElementNS(e,n),e[ss]=t,e[jr]=r,Od(e,t,!1,!1),t.stateNode=e;e:{switch(m=Te(n,r),n){case"dialog":Me("cancel",e),Me("close",e),i=r;break;case"iframe":case"object":case"embed":Me("load",e),i=r;break;case"video":case"audio":for(i=0;iBn&&(t.flags|=128,r=!0,Rr(c,!1),t.lanes=4194304)}else{if(!r)if(e=Tl(m),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Oe)return ft(t),null}else 2*Xe()-c.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,Rr(c,!1),t.lanes=4194304);c.isBackwards?(m.sibling=t.child,t.child=m):(n=c.last,n!==null?n.sibling=m:t.child=m,c.last=m)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Xe(),t.sibling=null,n=Fe.current,De(Fe,r?n&1|2:n&1),t):(ft(t),null);case 22:case 23:return Jo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Mt&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function Om(e,t){switch(so(t),t.tag){case 1:return jt(t.type)&&bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),Ae(wt),Ae(ht),po(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return fo(t),null;case 13:if(Ae(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));$n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Fe),null;case 4:return On(),null;case 10:return io(t.type._context),null;case 22:case 23:return Jo(),null;case 24:return null;default:return null}}var Ul=!1,xt=!1,zm=typeof WeakSet=="function"?WeakSet:Set,le=null;function Un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Qe(e,t,r)}else n.current=null}function Mo(e,t,n){try{n()}catch(r){Qe(e,t,r)}}var Fd=!1;function Um(e,t){if(Ka=al,e=yc(),za(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,g=-1,y=-1,P=0,H=0,J=e,B=null;t:for(;;){for(var ne;J!==n||i!==0&&J.nodeType!==3||(g=m+i),J!==c||r!==0&&J.nodeType!==3||(y=m+r),J.nodeType===3&&(m+=J.nodeValue.length),(ne=J.firstChild)!==null;)B=J,J=ne;for(;;){if(J===e)break t;if(B===n&&++P===i&&(g=m),B===c&&++H===r&&(y=m),(ne=J.nextSibling)!==null)break;J=B,B=J.parentNode}J=ne}n=g===-1||y===-1?null:{start:g,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ja={focusedElem:e,selectionRange:n},al=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var ae=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ie=ae.memoizedProps,qe=ae.memoizedState,_=t.stateNode,w=_.getSnapshotBeforeUpdate(t.elementType===t.type?ie:Jt(t.type,ie),qe);_.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(q){Qe(t,t.return,q)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return ae=Fd,Fd=!1,ae}function Lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var c=i.destroy;i.destroy=void 0,c!==void 0&&Mo(t,n,c)}i=i.next}while(i!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ao(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bd(e){var t=e.alternate;t!==null&&(e.alternate=null,Bd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ss],delete t[jr],delete t[Ya],delete t[jm],delete t[Nm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hd(e){return e.tag===5||e.tag===3||e.tag===4}function Wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vl));else if(r!==4&&(e=e.child,e!==null))for(Oo(e,t,n),e=e.sibling;e!==null;)Oo(e,t,n),e=e.sibling}function zo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(zo(e,t,n),e=e.sibling;e!==null;)zo(e,t,n),e=e.sibling}var dt=null,Xt=!1;function Ms(e,t,n){for(n=n.child;n!==null;)Vd(e,t,n),n=n.sibling}function Vd(e,t,n){if(ts&&typeof ts.onCommitFiberUnmount=="function")try{ts.onCommitFiberUnmount(el,n)}catch{}switch(n.tag){case 5:xt||Un(n,t);case 6:var r=dt,i=Xt;dt=null,Ms(e,t,n),dt=r,Xt=i,dt!==null&&(Xt?(e=dt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):dt.removeChild(n.stateNode));break;case 18:dt!==null&&(Xt?(e=dt,n=n.stateNode,e.nodeType===8?Ga(e.parentNode,n):e.nodeType===1&&Ga(e,n),ur(e)):Ga(dt,n.stateNode));break;case 4:r=dt,i=Xt,dt=n.stateNode.containerInfo,Xt=!0,Ms(e,t,n),dt=r,Xt=i;break;case 0:case 11:case 14:case 15:if(!xt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var c=i,m=c.destroy;c=c.tag,m!==void 0&&((c&2)!==0||(c&4)!==0)&&Mo(n,t,m),i=i.next}while(i!==r)}Ms(e,t,n);break;case 1:if(!xt&&(Un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(g){Qe(n,t,g)}Ms(e,t,n);break;case 21:Ms(e,t,n);break;case 22:n.mode&1?(xt=(r=xt)||n.memoizedState!==null,Ms(e,t,n),xt=r):Ms(e,t,n);break;default:Ms(e,t,n)}}function Qd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zm),t.forEach(function(r){var i=Xm.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=m),r&=~c}if(r=i,r=Xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bm(r/1960))-r,10e?16:e,Os===null)var r=!1;else{if(e=Os,Os=null,Ql=0,(Ee&6)!==0)throw Error(a(331));var i=Ee;for(Ee|=4,le=e.current;le!==null;){var c=le,m=c.child;if((le.flags&16)!==0){var g=c.deletions;if(g!==null){for(var y=0;yXe()-Bo?dn(e,0):Fo|=n),St(e,t)}function lu(e,t){t===0&&((e.mode&1)===0?t=1:(t=sl,sl<<=1,(sl&130023424)===0&&(sl=4194304)));var n=vt();e=ps(e,t),e!==null&&(ar(e,t,n),St(e,n))}function Jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lu(e,n)}function Xm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),lu(e,n)}var au;au=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)Nt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Nt=!1,Mm(e,t,n);Nt=(e.flags&131072)!==0}else Nt=!1,Oe&&(t.flags&1048576)!==0&&zc(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zl(e,t),e=t.pendingProps;var i=Tn(t,ht.current);An(t,n),i=yo(null,t,r,e,i,n);var c=bo();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jt(r)?(c=!0,wl(t)):c=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ho(t),i.updater=Al,t.stateNode=i,i._reactInternals=t,_o(t,r,e,n),t=Po(null,t,r,!0,c,n)):(t.tag=0,Oe&&c&&to(t),gt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Gm(r),e=Jt(r,e),i){case 0:t=Io(null,t,r,e,n);break e;case 1:t=Rd(null,t,r,e,n);break e;case 11:t=Cd(null,t,r,e,n);break e;case 14:t=Ed(null,t,r,Jt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),Io(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),Rd(e,t,r,i,n);case 3:e:{if(Ld(t),e===null)throw Error(a(387));r=t.pendingProps,c=t.memoizedState,i=c.element,Jc(e,t),Pl(t,r,null,n);var m=t.memoizedState;if(r=m.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){i=zn(Error(a(423)),t),t=$d(e,t,r,n,i);break e}else if(r!==i){i=zn(Error(a(424)),t),t=$d(e,t,r,n,i);break e}else for(Dt=Ps(t.stateNode.containerInfo.firstChild),$t=t,Oe=!0,Kt=null,n=Qc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($n(),r===i){t=vs(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 5:return Gc(t),e===null&&ro(t),r=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,m=i.children,Xa(r,i)?m=null:c!==null&&Xa(r,c)&&(t.flags|=32),Td(e,t),gt(e,t,m,n),t.child;case 6:return e===null&&ro(t),null;case 13:return Dd(e,t,n);case 4:return mo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Dn(t,null,r,n):gt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),Cd(e,t,r,i,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,c=t.memoizedProps,m=i.value,De(Cl,r._currentValue),r._currentValue=m,c!==null)if(Qt(c.value,m)){if(c.children===i.children&&!wt.current){t=vs(e,t,n);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var g=c.dependencies;if(g!==null){m=c.child;for(var y=g.firstContext;y!==null;){if(y.context===r){if(c.tag===1){y=gs(-1,n&-n),y.tag=2;var P=c.updateQueue;if(P!==null){P=P.shared;var H=P.pending;H===null?y.next=y:(y.next=H.next,H.next=y),P.pending=y}}c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),co(c.return,n,t),g.lanes|=n;break}y=y.next}}else if(c.tag===10)m=c.type===t.type?null:c.child;else if(c.tag===18){if(m=c.return,m===null)throw Error(a(341));m.lanes|=n,g=m.alternate,g!==null&&(g.lanes|=n),co(m,n,t),m=c.sibling}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===t){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}gt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,An(t,n),i=Ut(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return r=t.type,i=Jt(r,t.pendingProps),i=Jt(r.type,i),Ed(e,t,r,i,n);case 15:return Id(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),zl(e,t),t.tag=1,jt(r)?(e=!0,wl(t)):e=!1,An(t,n),bd(t,r,i),_o(t,r,i,n),Po(null,t,r,!0,e,n);case 19:return Ad(e,t,n);case 22:return Pd(e,t,n)}throw Error(a(156,t.tag))};function ou(e,t){return Ui(e,t)}function qm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,r){return new qm(e,t,n,r)}function qo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gm(e){if(typeof e=="function")return qo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===R)return 11;if(e===Se)return 14}return 2}function Fs(e,t){var n=e.alternate;return n===null?(n=Ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ql(e,t,n,r,i,c){var m=2;if(r=e,typeof e=="function")qo(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case L:return hn(n.children,i,c,t);case Z:m=8,i|=8;break;case A:return e=Ht(12,n,t,i|2),e.elementType=A,e.lanes=c,e;case T:return e=Ht(13,n,t,i),e.elementType=T,e.lanes=c,e;case se:return e=Ht(19,n,t,i),e.elementType=se,e.lanes=c,e;case ve:return Gl(n,i,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case he:m=10;break e;case G:m=9;break e;case R:m=11;break e;case Se:m=14;break e;case U:m=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=Ht(m,n,t,i),t.elementType=e,t.type=r,t.lanes=c,t}function hn(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function Gl(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=ve,e.lanes=n,e.stateNode={isHidden:!1},e}function Go(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function Yo(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ym(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ka(0),this.expirationTimes=ka(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ka(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Zo(e,t,n,r,i,c,m,g,y){return e=new Ym(e,t,n,g,y),t===1?(t=1,c===!0&&(t|=8)):t=0,c=Ht(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ho(c),e}function Zm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(l){console.error(l)}}return o(),li.exports=f0(),li.exports}var wu;function x0(){if(wu)return ra;wu=1;var o=Fu();return ra.createRoot=o.createRoot,ra.hydrateRoot=o.hydrateRoot,ra}var p0=x0();const g0=zu(p0);Fu();/** * @remix-run/router v1.23.4 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Fr(){return Fr=Object.assign?Object.assign.bind():function(o){for(var l=1;l"u")throw new Error(l)}function Bu(o,l){if(!o){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function y0(){return Math.random().toString(36).substr(2,8)}function Nu(o,l){return{usr:o.state,key:o.key,idx:l}}function hi(o,l,a,d){return a===void 0&&(a=null),Fr({pathname:typeof o=="string"?o:o.pathname,search:"",hash:""},typeof l=="string"?Xn(l):l,{state:a,key:l&&l.key||d||y0()})}function aa(o){let{pathname:l="/",search:a="",hash:d=""}=o;return a&&a!=="?"&&(l+=a.charAt(0)==="?"?a:"?"+a),d&&d!=="#"&&(l+=d.charAt(0)==="#"?d:"#"+d),l}function Xn(o){let l={};if(o){let a=o.indexOf("#");a>=0&&(l.hash=o.substr(a),o=o.substr(0,a));let d=o.indexOf("?");d>=0&&(l.search=o.substr(d),o=o.substr(0,d)),o&&(l.pathname=o)}return l}function b0(o,l,a,d){d===void 0&&(d={});let{window:u=document.defaultView,v5Compat:h=!1}=d,f=u.history,v=Hs.Pop,p=null,N=j();N==null&&(N=0,f.replaceState(Fr({},f.state,{idx:N}),""));function j(){return(f.state||{idx:null}).idx}function k(){v=Hs.Pop;let C=j(),O=C==null?null:C-N;N=C,p&&p({action:v,location:F.location,delta:O})}function D(C,O){v=Hs.Push;let te=hi(F.location,C,O);N=j()+1;let Y=Nu(te,N),K=F.createHref(te);try{f.pushState(Y,"",K)}catch(oe){if(oe instanceof DOMException&&oe.name==="DataCloneError")throw oe;u.location.assign(K)}h&&p&&p({action:v,location:F.location,delta:1})}function W(C,O){v=Hs.Replace;let te=hi(F.location,C,O);N=j();let Y=Nu(te,N),K=F.createHref(te);f.replaceState(Y,"",K),h&&p&&p({action:v,location:F.location,delta:0})}function V(C){let O=u.location.origin!=="null"?u.location.origin:u.location.href,te=typeof C=="string"?C:aa(C);return te=te.replace(/ $/,"%20"),Ge(O,"No window.location.(origin|href) available to create URL for href: "+te),new URL(te,O)}let F={get action(){return v},get location(){return o(u,f)},listen(C){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(ju,k),p=C,()=>{u.removeEventListener(ju,k),p=null}},createHref(C){return l(u,C)},createURL:V,encodeLocation(C){let O=V(C);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:D,replace:W,go(C){return f.go(C)}};return F}var ku;(function(o){o.data="data",o.deferred="deferred",o.redirect="redirect",o.error="error"})(ku||(ku={}));function w0(o,l,a){return a===void 0&&(a="/"),j0(o,l,a)}function j0(o,l,a,d){let u=typeof l=="string"?Xn(l):l,h=bi(u.pathname||"/",a);if(h==null)return null;let f=Hu(o);N0(f);let v=null,p=D0(h);for(let N=0;v==null&&N{let p={relativePath:v===void 0?h.path||"":v,caseSensitive:h.caseSensitive===!0,childrenIndex:f,route:h};p.relativePath.startsWith("/")&&(Ge(p.relativePath.startsWith(d),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+d+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(d.length));let N=Ws([d,p.relativePath]),j=a.concat(p);h.children&&h.children.length>0&&(Ge(h.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+N+'".')),Hu(h.children,l,j,N)),!(h.path==null&&!h.index)&&l.push({path:N,score:P0(N,h.index),routesMeta:j})};return o.forEach((h,f)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))u(h,f);else for(let p of Wu(h.path))u(h,f,p)}),l}function Wu(o){let l=o.split("/");if(l.length===0)return[];let[a,...d]=l,u=a.endsWith("?"),h=a.replace(/\?$/,"");if(d.length===0)return u?[h,""]:[h];let f=Wu(d.join("/")),v=[];return v.push(...f.map(p=>p===""?h:[h,p].join("/"))),u&&v.push(...f),v.map(p=>o.startsWith("/")&&p===""?"/":p)}function N0(o){o.sort((l,a)=>l.score!==a.score?a.score-l.score:T0(l.routesMeta.map(d=>d.childrenIndex),a.routesMeta.map(d=>d.childrenIndex)))}const k0=/^:[\w-]+$/,S0=3,_0=2,C0=1,E0=10,I0=-2,Su=o=>o==="*";function P0(o,l){let a=o.split("/"),d=a.length;return a.some(Su)&&(d+=I0),l&&(d+=_0),a.filter(u=>!Su(u)).reduce((u,h)=>u+(k0.test(h)?S0:h===""?C0:E0),d)}function T0(o,l){return o.length===l.length&&o.slice(0,-1).every((d,u)=>d===l[u])?o[o.length-1]-l[l.length-1]:0}function R0(o,l,a){let{routesMeta:d}=o,u={},h="/",f=[];for(let v=0;v{let{paramName:D,isOptional:W}=j;if(D==="*"){let F=v[k]||"";f=h.slice(0,h.length-F.length).replace(/(.)\/+$/,"$1")}const V=v[k];return W&&!V?N[D]=void 0:N[D]=(V||"").replace(/%2F/g,"/"),N},{}),pathname:h,pathnameBase:f,pattern:o}}function $0(o,l,a){l===void 0&&(l=!1),a===void 0&&(a=!0),Bu(o==="*"||!o.endsWith("*")||o.endsWith("/*"),'Route path "'+o+'" will be treated as if it were '+('"'+o.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+o.replace(/\*$/,"/*")+'".'));let d=[],u="^"+o.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,v,p)=>(d.push({paramName:v,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return o.endsWith("*")?(d.push({paramName:"*"}),u+=o==="*"||o==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?u+="\\/*$":o!==""&&o!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),d]}function D0(o){try{return o.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Bu(!1,'The URL path "'+o+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+l+").")),o}}function bi(o,l){if(l==="/")return o;if(!o.toLowerCase().startsWith(l.toLowerCase()))return null;let a=l.endsWith("/")?l.length-1:l.length,d=o.charAt(a);return d&&d!=="/"?null:o.slice(a)||"/"}function M0(o,l){l===void 0&&(l="/");let{pathname:a,search:d="",hash:u=""}=typeof o=="string"?Xn(o):o,h;return a?(a=Vu(a),a.startsWith("/")?h=_u(a.substring(1),"/"):h=_u(a,l)):h=l,{pathname:h,search:z0(d),hash:U0(u)}}function _u(o,l){let a=l.replace(/\/+$/,"").split("/");return o.split("/").forEach(u=>{u===".."?a.length>1&&a.pop():u!=="."&&a.push(u)}),a.length>1?a.join("/"):"/"}function ii(o,l,a,d){return"Cannot include a '"+o+"' character in a manually specified "+("`to."+l+"` field ["+JSON.stringify(d)+"]. Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function A0(o){return o.filter((l,a)=>a===0||l.route.path&&l.route.path.length>0)}function wi(o,l){let a=A0(o);return l?a.map((d,u)=>u===a.length-1?d.pathname:d.pathnameBase):a.map(d=>d.pathnameBase)}function ji(o,l,a,d){d===void 0&&(d=!1);let u;typeof o=="string"?u=Xn(o):(u=Fr({},o),Ge(!u.pathname||!u.pathname.includes("?"),ii("?","pathname","search",u)),Ge(!u.pathname||!u.pathname.includes("#"),ii("#","pathname","hash",u)),Ge(!u.search||!u.search.includes("#"),ii("#","search","hash",u)));let h=o===""||u.pathname==="",f=h?"/":u.pathname,v;if(f==null)v=a;else{let k=l.length-1;if(!d&&f.startsWith("..")){let D=f.split("/");for(;D[0]==="..";)D.shift(),k-=1;u.pathname=D.join("/")}v=k>=0?l[k]:"/"}let p=M0(u,v),N=f&&f!=="/"&&f.endsWith("/"),j=(h||f===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(N||j)&&(p.pathname+="/"),p}const Vu=o=>o.replace(/\/\/+/g,"/"),Ws=o=>Vu(o.join("/")),O0=o=>o.replace(/\/+$/,"").replace(/^\/*/,"/"),z0=o=>!o||o==="?"?"":o.startsWith("?")?o:"?"+o,U0=o=>!o||o==="#"?"":o.startsWith("#")?o:"#"+o;function F0(o){return o!=null&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.internal=="boolean"&&"data"in o}const Qu=["post","put","patch","delete"];new Set(Qu);const B0=["get",...Qu];new Set(B0);/** * React Router v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Br(){return Br=Object.assign?Object.assign.bind():function(o){for(var l=1;l{v.current=!0}),x.useCallback(function(N,j){if(j===void 0&&(j={}),!v.current)return;if(typeof N=="number"){d.go(N);return}let k=ji(N,JSON.parse(f),h,j.relative==="path");o==null&&l!=="/"&&(k.pathname=k.pathname==="/"?l:Ws([l,k.pathname])),(j.replace?d.replace:d.push)(k,j.state,j)},[l,d,f,h,o])}const Q0=x.createContext(null);function K0(o){let l=x.useContext(cs).outlet;return l&&x.createElement(Q0.Provider,{value:o},l)}function J0(){let{matches:o}=x.useContext(cs),l=o[o.length-1];return l?l.params:{}}function Xu(o,l){let{relative:a}=l===void 0?{}:l,{future:d}=x.useContext(Xs),{matches:u}=x.useContext(cs),{pathname:h}=yn(),f=JSON.stringify(wi(u,d.v7_relativeSplatPath));return x.useMemo(()=>ji(o,JSON.parse(f),h,a==="path"),[o,f,h,a])}function X0(o,l){return q0(o,l)}function q0(o,l,a,d){qn()||Ge(!1);let{navigator:u}=x.useContext(Xs),{matches:h}=x.useContext(cs),f=h[h.length-1],v=f?f.params:{};f&&f.pathname;let p=f?f.pathnameBase:"/";f&&f.route;let N=yn(),j;if(l){var k;let C=typeof l=="string"?Xn(l):l;p==="/"||(k=C.pathname)!=null&&k.startsWith(p)||Ge(!1),j=C}else j=N;let D=j.pathname||"/",W=D;if(p!=="/"){let C=p.replace(/^\//,"").split("/");W="/"+D.replace(/^\//,"").split("/").slice(C.length).join("/")}let V=w0(o,{pathname:W}),F=tf(V&&V.map(C=>Object.assign({},C,{params:Object.assign({},v,C.params),pathname:Ws([p,u.encodeLocation?u.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?p:Ws([p,u.encodeLocation?u.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),h,a,d);return l&&F?x.createElement(xa.Provider,{value:{location:Br({pathname:"/",search:"",hash:"",state:null,key:"default"},j),navigationType:Hs.Pop}},F):F}function G0(){let o=lf(),l=F0(o)?o.status+" "+o.statusText:o instanceof Error?o.message:JSON.stringify(o),a=o instanceof Error?o.stack:null,u={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},l),a?x.createElement("pre",{style:u},a):null,null)}const Y0=x.createElement(G0,null);class Z0 extends x.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,a){return a.location!==l.location||a.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:a.error,location:a.location,revalidation:l.revalidation||a.revalidation}}componentDidCatch(l,a){console.error("React Router caught the following error during render",l,a)}render(){return this.state.error!==void 0?x.createElement(cs.Provider,{value:this.props.routeContext},x.createElement(Ku.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ef(o){let{routeContext:l,match:a,children:d}=o,u=x.useContext(Ni);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),x.createElement(cs.Provider,{value:l},d)}function tf(o,l,a,d){var u;if(l===void 0&&(l=[]),a===void 0&&(a=null),d===void 0&&(d=null),o==null){var h;if(!a)return null;if(a.errors)o=a.matches;else if((h=d)!=null&&h.v7_partialHydration&&l.length===0&&!a.initialized&&a.matches.length>0)o=a.matches;else return null}let f=o,v=(u=a)==null?void 0:u.errors;if(v!=null){let j=f.findIndex(k=>k.route.id&&(v==null?void 0:v[k.route.id])!==void 0);j>=0||Ge(!1),f=f.slice(0,Math.min(f.length,j+1))}let p=!1,N=-1;if(a&&d&&d.v7_partialHydration)for(let j=0;j=0?f=f.slice(0,N+1):f=[f[0]];break}}}return f.reduceRight((j,k,D)=>{let W,V=!1,F=null,C=null;a&&(W=v&&k.route.id?v[k.route.id]:void 0,F=k.route.errorElement||Y0,p&&(N<0&&D===0?(of("route-fallback"),V=!0,C=null):N===D&&(V=!0,C=k.route.hydrateFallbackElement||null)));let O=l.concat(f.slice(0,D+1)),te=()=>{let Y;return W?Y=F:V?Y=C:k.route.Component?Y=x.createElement(k.route.Component,null):k.route.element?Y=k.route.element:Y=j,x.createElement(ef,{match:k,routeContext:{outlet:j,matches:O,isDataRoute:a!=null},children:Y})};return a&&(k.route.ErrorBoundary||k.route.errorElement||D===0)?x.createElement(Z0,{location:a.location,revalidation:a.revalidation,component:F,error:W,children:te(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):te()},null)}var qu=(function(o){return o.UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o})(qu||{}),Gu=(function(o){return o.UseBlocker="useBlocker",o.UseLoaderData="useLoaderData",o.UseActionData="useActionData",o.UseRouteError="useRouteError",o.UseNavigation="useNavigation",o.UseRouteLoaderData="useRouteLoaderData",o.UseMatches="useMatches",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o.UseRouteId="useRouteId",o})(Gu||{});function sf(o){let l=x.useContext(Ni);return l||Ge(!1),l}function nf(o){let l=x.useContext(H0);return l||Ge(!1),l}function rf(o){let l=x.useContext(cs);return l||Ge(!1),l}function Yu(o){let l=rf(),a=l.matches[l.matches.length-1];return a.route.id||Ge(!1),a.route.id}function lf(){var o;let l=x.useContext(Ku),a=nf(),d=Yu();return l!==void 0?l:(o=a.errors)==null?void 0:o[d]}function af(){let{router:o}=sf(qu.UseNavigateStable),l=Yu(Gu.UseNavigateStable),a=x.useRef(!1);return Ju(()=>{a.current=!0}),x.useCallback(function(u,h){h===void 0&&(h={}),a.current&&(typeof u=="number"?o.navigate(u):o.navigate(u,Br({fromRouteId:l},h)))},[o,l])}const Cu={};function of(o,l,a){Cu[o]||(Cu[o]=!0)}function cf(o,l){o==null||o.v7_startTransition,o==null||o.v7_relativeSplatPath}function as(o){let{to:l,replace:a,state:d,relative:u}=o;qn()||Ge(!1);let{future:h,static:f}=x.useContext(Xs),{matches:v}=x.useContext(cs),{pathname:p}=yn(),N=bn(),j=ji(l,wi(v,h.v7_relativeSplatPath),p,u==="path"),k=JSON.stringify(j);return x.useEffect(()=>N(JSON.parse(k),{replace:a,state:d,relative:u}),[N,k,u,a,d]),null}function Zu(o){return K0(o.context)}function He(o){Ge(!1)}function df(o){let{basename:l="/",children:a=null,location:d,navigationType:u=Hs.Pop,navigator:h,static:f=!1,future:v}=o;qn()&&Ge(!1);let p=l.replace(/^\/*/,"/"),N=x.useMemo(()=>({basename:p,navigator:h,static:f,future:Br({v7_relativeSplatPath:!1},v)}),[p,v,h,f]);typeof d=="string"&&(d=Xn(d));let{pathname:j="/",search:k="",hash:D="",state:W=null,key:V="default"}=d,F=x.useMemo(()=>{let C=bi(j,p);return C==null?null:{location:{pathname:C,search:k,hash:D,state:W,key:V},navigationType:u}},[p,j,k,D,W,V,u]);return F==null?null:x.createElement(Xs.Provider,{value:N},x.createElement(xa.Provider,{children:a,value:F}))}function uf(o){let{children:l,location:a}=o;return X0(mi(l),a)}new Promise(()=>{});function mi(o,l){l===void 0&&(l=[]);let a=[];return x.Children.forEach(o,(d,u)=>{if(!x.isValidElement(d))return;let h=[...l,u];if(d.type===x.Fragment){a.push.apply(a,mi(d.props.children,h));return}d.type!==He&&Ge(!1),!d.props.index||!d.props.children||Ge(!1);let f={id:d.props.id||h.join("-"),caseSensitive:d.props.caseSensitive,element:d.props.element,Component:d.props.Component,index:d.props.index,path:d.props.path,loader:d.props.loader,action:d.props.action,errorElement:d.props.errorElement,ErrorBoundary:d.props.ErrorBoundary,hasErrorBoundary:d.props.ErrorBoundary!=null||d.props.errorElement!=null,shouldRevalidate:d.props.shouldRevalidate,handle:d.props.handle,lazy:d.props.lazy};d.props.children&&(f.children=mi(d.props.children,h)),a.push(f)}),a}/** * React Router DOM v6.30.6 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function fi(){return fi=Object.assign?Object.assign.bind():function(o){for(var l=1;l{let d=o[a];return l.concat(Array.isArray(d)?d.map(u=>[a,u]):[[a,d]])},[]))}function xf(o,l){let a=xi(o);return l&&l.forEach((d,u)=>{a.has(u)||l.getAll(u).forEach(h=>{a.append(u,h)})}),a}const pf=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gf="6";try{window.__reactRouterVersion=gf}catch{}const vf="startTransition",Eu=u0[vf];function yf(o){let{basename:l,children:a,future:d,window:u}=o,h=x.useRef();h.current==null&&(h.current=v0({window:u,v5Compat:!0}));let f=h.current,[v,p]=x.useState({action:f.action,location:f.location}),{v7_startTransition:N}=d||{},j=x.useCallback(k=>{N&&Eu?Eu(()=>p(k)):p(k)},[p,N]);return x.useLayoutEffect(()=>f.listen(j),[f,j]),x.useEffect(()=>cf(d),[d]),x.createElement(df,{basename:l,children:a,location:v.location,navigationType:v.action,navigator:f,future:d})}const bf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,je=x.forwardRef(function(l,a){let{onClick:d,relative:u,reloadDocument:h,replace:f,state:v,target:p,to:N,preventScrollReset:j,viewTransition:k}=l,D=hf(l,pf),{basename:W}=x.useContext(Xs),V,F=!1;if(typeof N=="string"&&wf.test(N)&&(V=N,bf))try{let Y=new URL(window.location.href),K=N.startsWith("//")?new URL(Y.protocol+N):new URL(N),oe=bi(K.pathname,W);K.origin===Y.origin&&oe!=null?N=oe+K.search+K.hash:F=!0}catch{}let C=W0(N,{relative:u}),O=jf(N,{replace:f,state:v,target:p,preventScrollReset:j,relative:u,viewTransition:k});function te(Y){d&&d(Y),Y.defaultPrevented||O(Y)}return x.createElement("a",fi({},D,{href:V||C,onClick:F||h?d:te,ref:a,target:p}))});var Iu;(function(o){o.UseScrollRestoration="useScrollRestoration",o.UseSubmit="useSubmit",o.UseSubmitFetcher="useSubmitFetcher",o.UseFetcher="useFetcher",o.useViewTransitionState="useViewTransitionState"})(Iu||(Iu={}));var Pu;(function(o){o.UseFetcher="useFetcher",o.UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"})(Pu||(Pu={}));function jf(o,l){let{target:a,replace:d,state:u,preventScrollReset:h,relative:f,viewTransition:v}=l===void 0?{}:l,p=bn(),N=yn(),j=Xu(o,{relative:f});return x.useCallback(k=>{if(ff(k,a)){k.preventDefault();let D=d!==void 0?d:aa(N)===aa(j);p(o,{replace:D,state:u,preventScrollReset:h,relative:f,viewTransition:v})}},[N,p,j,d,u,a,o,h,f,v])}function ki(o){let l=x.useRef(xi(o)),a=x.useRef(!1),d=yn(),u=x.useMemo(()=>xf(d.search,a.current?null:l.current),[d.search]),h=bn(),f=x.useCallback((v,p)=>{const N=xi(typeof v=="function"?v(u):v);a.current=!0,h("?"+N,p)},[h,u]);return[u,f]}class Nf{constructor(){_t(this,"listeners",new Set);_t(this,"isTerminated",!1)}subscribe(l){return this.listeners.add(l),()=>this.listeners.delete(l)}notifySessionExpired(l="登录已过期,请重新登录"){this.isTerminated||(this.isTerminated=!0,this.listeners.forEach(a=>{try{a(l)}catch(d){console.error("Error in session expired listener",d)}}))}reset(){this.isTerminated=!1}}const Vn=new Nf,pi="/api";function Ks(){return localStorage.getItem("classnotify_token")}function kf(o){localStorage.setItem("classnotify_token",o)}function zr(){localStorage.removeItem("classnotify_token"),localStorage.removeItem("classnotify_user")}function Sf(){const o=Date.now().toString(36),l=Math.random().toString(36).substring(2,8);return`web_${o}_${l}`}async function pe(o,l={}){const a=Ks(),d={"Content-Type":"application/json","X-Correlation-Id":Sf(),...l.headers};a&&(d.Authorization=`Bearer ${a}`);const u=await fetch(`${pi}${o}`,{...l,headers:d});if(u.status===401)throw zr(),Vn.notifySessionExpired("未授权或登录已过期,请重新登录"),new Error("未授权或登录已过期,请重新登录");if(!u.ok){let h=`请求失败 (${u.status})`;try{const f=await u.json();h=f.message||f.errorMessage||h}catch{}throw new Error(h)}return u.json()}const re={login:(o,l)=>pe("/auth/login",{method:"POST",body:JSON.stringify({username:o,password:l})}),getMe:()=>pe("/auth/me"),getAdminMetrics:()=>pe("/admin/metrics"),getTenants:()=>pe("/admin/tenants"),getAllDevices:()=>pe("/admin/devices"),sendDeviceCommand:(o,l,a)=>pe(`/admin/devices/${o}/command`,{method:"POST",body:JSON.stringify({command:l,parameters:a})}),triggerDeviceSelfCheck:o=>pe(`/admin/devices/${o}/self-check`,{method:"POST"}),getDeviceSelfChecks:o=>pe(`/admin/devices/${o}/self-checks`),getDeviceSelfCheckDetails:o=>pe(`/admin/devices/self-checks/${o}`),getOperationalHealthDiagnostics:()=>pe("/health/diagnostics"),getAdminActivationCodes:()=>pe("/admin/activation-codes"),getAdminClasses:o=>pe(`/admin/classes?tenantId=${encodeURIComponent(o)}`),generateAdminCode:(o,l)=>pe(`/admin/activation-codes?tenantId=${encodeURIComponent(o)}&classId=${encodeURIComponent(l)}`,{method:"POST"}),getAdminNotifications:(o=50)=>pe(`/admin/notifications?limit=${o}`),createTenant:o=>pe("/admin/tenants",{method:"POST",body:JSON.stringify(o)}),updateTenant:(o,l)=>pe(`/admin/tenants/${encodeURIComponent(o)}`,{method:"PATCH",body:JSON.stringify(l)}),getUsers:(o,l)=>{const a=new URLSearchParams;o&&a.append("tenantId",o),l&&a.append("role",l);const d=a.toString();return pe(`/admin/users${d?`?${d}`:""}`)},createUser:o=>pe("/admin/users",{method:"POST",body:JSON.stringify(o)}),resetPassword:(o,l)=>pe(`/admin/users/${encodeURIComponent(o)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setUserLock:(o,l)=>pe(`/admin/users/${encodeURIComponent(o)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),deleteUser:o=>pe(`/admin/users/${encodeURIComponent(o)}`,{method:"DELETE"}),updateDevice:(o,l)=>pe(`/admin/devices/${encodeURIComponent(o)}`,{method:"PATCH",body:JSON.stringify(l)}),decommissionDevice:o=>pe(`/admin/devices/${encodeURIComponent(o)}/decommission`,{method:"POST"}),deleteActivationCode:o=>pe(`/admin/activation-codes/${encodeURIComponent(o)}`,{method:"DELETE"}),sendEmergencyBroadcast:o=>pe("/admin/broadcasts",{method:"POST",body:JSON.stringify(o)}),getBroadcastReceiptSummary:o=>pe(`/admin/broadcasts/${encodeURIComponent(o)}/receipt-summary`),getSystemHealth:()=>pe("/admin/system/health"),getAuditLogs:(o=100)=>pe(`/admin/audit-logs?limit=${o}`),getSchoolOverview:()=>pe("/school-admin/overview"),getSchoolClasses:()=>pe("/school-admin/classes"),createSchoolClass:o=>pe("/school-admin/classes",{method:"POST",body:JSON.stringify(o)}),getSchoolTeachers:()=>pe("/school-admin/teachers"),createSchoolTeacher:o=>pe("/school-admin/teachers",{method:"POST",body:JSON.stringify(o)}),resetSchoolTeacherPassword:(o,l)=>pe(`/school-admin/teachers/${encodeURIComponent(o)}/reset-password`,{method:"POST",body:JSON.stringify({newPassword:l})}),setSchoolTeacherLock:(o,l)=>pe(`/school-admin/teachers/${encodeURIComponent(o)}/lock`,{method:"POST",body:JSON.stringify({isLocked:l})}),getSchoolDevices:()=>pe("/school-admin/devices"),getSchoolCodes:()=>pe("/school-admin/activation-codes"),generateSchoolCode:o=>pe(`/school-admin/activation-codes?classId=${encodeURIComponent(o)}`,{method:"POST"}),getTeacherClasses:()=>pe("/notification/classes"),sendNotification:o=>pe("/notification/send",{method:"POST",body:JSON.stringify(o)}),cancelNotification:o=>pe(`/notifications/${encodeURIComponent(o)}/cancel`,{method:"POST"}),getTeacherHistory:(o,l=50)=>pe(`/notification/history?${o?`classId=${encodeURIComponent(o)}&`:""}limit=${l}`),getVisualReceiptBlob:async(o,l)=>{const a=Ks(),d=await fetch(`${pi}/notifications/${encodeURIComponent(o)}/receipts/${encodeURIComponent(l)}/visual-receipt`,{headers:a?{Authorization:`Bearer ${a}`}:{}});if(d.status===410)throw new Error("视觉回执已按24小时保存策略自动销毁");if(d.status===404)throw new Error("未找到该通知的视觉回执");if(!d.ok)throw new Error(`获取视觉回执失败 (${d.status})`);return d.blob()},getFleetVersionSummary:()=>pe("/admin/fleet/version-summary"),getFleetDevices:o=>{const l=new URLSearchParams;o!=null&&o.status&&l.set("status",o.status),o!=null&&o.tenantId&&l.set("tenantId",o.tenantId),(o==null?void 0:o.online)!==void 0&&l.set("online",String(o.online)),o!=null&&o.q&&l.set("q",o.q);const a=l.toString();return pe(`/admin/fleet/devices${a?`?${a}`:""}`)},createSelfCheckBatch:(o,l)=>pe("/admin/self-check-batches",{method:"POST",body:JSON.stringify({clientRequestId:o,deviceIds:l})}),getSelfCheckBatches:(o,l=20)=>{const a=new URLSearchParams;o&&a.set("status",o),l&&a.set("take",String(l));const d=a.toString();return pe(`/admin/self-check-batches${d?`?${d}`:""}`)},getSelfCheckBatch:o=>pe(`/admin/self-check-batches/${encodeURIComponent(o)}`),getSelfCheckBatchDevices:(o,l)=>{const a=new URLSearchParams;l!=null&&l.health&&a.set("health",l.health),l!=null&&l.probe&&a.set("probe",l.probe),l!=null&&l.tenantId&&a.set("tenantId",l.tenantId),l!=null&&l.q&&a.set("q",l.q),l!=null&&l.page&&a.set("page",String(l.page)),l!=null&&l.pageSize&&a.set("pageSize",String(l.pageSize));const d=a.toString();return pe(`/admin/self-check-batches/${encodeURIComponent(o)}/devices${d?`?${d}`:""}`)},getSelfCheckBatchDeviceRun:(o,l)=>pe(`/admin/self-check-batches/${encodeURIComponent(o)}/runs/${encodeURIComponent(l)}`),createSupportBundle:(o,l)=>pe(`/admin/devices/${encodeURIComponent(o)}/support-bundles`,{method:"POST",body:JSON.stringify({clientRequestId:l})}),getSupportBundle:o=>pe(`/admin/support-bundles/${encodeURIComponent(o)}`),getDeviceSupportBundles:(o,l=5)=>pe(`/admin/devices/${encodeURIComponent(o)}/support-bundles?take=${l}`),downloadSupportBundle:async(o,l)=>{const a=Ks(),d=await fetch(`${pi}/admin/support-bundles/${encodeURIComponent(o)}/download`,{headers:a?{Authorization:`Bearer ${a}`}:{}});if(d.status===410)throw new Error("诊断包已过期并已自动清理");if(d.status===409)throw new Error("诊断包尚未就绪或生成失败");if(d.status===403)throw new Error("无权下载该学校终端的诊断包");if(!d.ok)throw new Error(`下载诊断包失败 (${d.status})`);const u=await d.blob(),h=window.URL.createObjectURL(u),f=document.createElement("a");f.href=h,f.download=l||`support-bundle-${o}.zip`,document.body.appendChild(f),f.click(),document.body.removeChild(f),window.URL.revokeObjectURL(h)}};class fn extends Error{constructor(l,a){const d=new.target.prototype;super(`${l}: Status code '${a}'`),this.statusCode=a,this.__proto__=d}}class Si extends Error{constructor(l="A timeout occurred."){const a=new.target.prototype;super(l),this.__proto__=a}}class Yt extends Error{constructor(l="An abort occurred."){const a=new.target.prototype;super(l),this.__proto__=a}}class _f extends Error{constructor(l,a){const d=new.target.prototype;super(l),this.transport=a,this.errorType="UnsupportedTransportError",this.__proto__=d}}class Cf extends Error{constructor(l,a){const d=new.target.prototype;super(l),this.transport=a,this.errorType="DisabledTransportError",this.__proto__=d}}class Ef extends Error{constructor(l,a){const d=new.target.prototype;super(l),this.transport=a,this.errorType="FailedToStartTransportError",this.__proto__=d}}class Tu extends Error{constructor(l){const a=new.target.prototype;super(l),this.errorType="FailedToNegotiateWithServerError",this.__proto__=a}}class If extends Error{constructor(l,a){const d=new.target.prototype;super(l),this.innerErrors=a,this.__proto__=d}}class eh{constructor(l,a,d){this.statusCode=l,this.statusText=a,this.content=d}}class pa{get(l,a){return this.send({...a,method:"GET",url:l})}post(l,a){return this.send({...a,method:"POST",url:l})}delete(l,a){return this.send({...a,method:"DELETE",url:l})}getCookieString(l){return""}}var $;(function(o){o[o.Trace=0]="Trace",o[o.Debug=1]="Debug",o[o.Information=2]="Information",o[o.Warning=3]="Warning",o[o.Error=4]="Error",o[o.Critical=5]="Critical",o[o.None=6]="None"})($||($={}));class Hr{constructor(){}log(l,a){}}Hr.instance=new Hr;const Pf="8.0.29";class st{static isRequired(l,a){if(l==null)throw new Error(`The '${a}' argument is required.`)}static isNotEmpty(l,a){if(!l||l.match(/^\s*$/))throw new Error(`The '${a}' argument should not be empty.`)}static isIn(l,a,d){if(!(l in a))throw new Error(`Unknown ${d} value: ${l}.`)}}class We{static get isBrowser(){return!We.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!We.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!We.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Wr(o,l){let a="";return pn(o)?(a=`Binary data of length ${o.byteLength}`,l&&(a+=`. Content: '${Tf(o)}'`)):typeof o=="string"&&(a=`String data of length ${o.length}`,l&&(a+=`. Content: '${o}'`)),a}function Tf(o){const l=new Uint8Array(o);let a="";return l.forEach(d=>{const u=d<16?"0":"";a+=`0x${u}${d.toString(16)} `}),a.substr(0,a.length-1)}function pn(o){return o&&typeof ArrayBuffer<"u"&&(o instanceof ArrayBuffer||o.constructor&&o.constructor.name==="ArrayBuffer")}async function th(o,l,a,d,u,h){const f={},[v,p]=Kn();f[v]=p,o.log($.Trace,`(${l} transport) sending data. ${Wr(u,h.logMessageContent)}.`);const N=pn(u)?"arraybuffer":"text",j=await a.post(d,{content:u,headers:{...f,...h.headers},responseType:N,timeout:h.timeout,withCredentials:h.withCredentials});o.log($.Trace,`(${l} transport) request complete. Response status: ${j.statusCode}.`)}function Rf(o){return o===void 0?new oa($.Information):o===null?Hr.instance:o.log!==void 0?o:new oa(o)}class Lf{constructor(l,a){this._subject=l,this._observer=a}dispose(){const l=this._subject.observers.indexOf(this._observer);l>-1&&this._subject.observers.splice(l,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(a=>{})}}class oa{constructor(l){this._minLevel=l,this.out=console}log(l,a){if(l>=this._minLevel){const d=`[${new Date().toISOString()}] ${$[l]}: ${a}`;switch(l){case $.Critical:case $.Error:this.out.error(d);break;case $.Warning:this.out.warn(d);break;case $.Information:this.out.info(d);break;default:this.out.log(d);break}}}}function Kn(){let o="X-SignalR-User-Agent";return We.isNode&&(o="User-Agent"),[o,$f(Pf,Df(),Af(),Mf())]}function $f(o,l,a,d){let u="Microsoft SignalR/";const h=o.split(".");return u+=`${h[0]}.${h[1]}`,u+=` (${o}; `,l&&l!==""?u+=`${l}; `:u+="Unknown OS; ",u+=`${a}`,d?u+=`; ${d}`:u+="; Unknown Runtime Version",u+=")",u}function Df(){if(We.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function Mf(){if(We.isNode)return process.versions.node}function Af(){return We.isNode?"NodeJS":"Browser"}function ci(o){return o.stack?o.stack:o.message?o.message:`${o}`}function Of(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class zf extends pa{constructor(l){if(super(),this._logger=l,typeof fetch>"u"||We.isNode){const a=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._jar=new(a("tough-cookie")).CookieJar,typeof fetch>"u"?this._fetchType=a("node-fetch"):this._fetchType=fetch,this._fetchType=a("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Of());if(typeof AbortController>"u"){const a=typeof __webpack_require__=="function"?__non_webpack_require__:require;this._abortControllerType=a("abort-controller")}else this._abortControllerType=AbortController}async send(l){if(l.abortSignal&&l.abortSignal.aborted)throw new Yt;if(!l.method)throw new Error("No method defined.");if(!l.url)throw new Error("No url defined.");const a=new this._abortControllerType;let d;l.abortSignal&&(l.abortSignal.onabort=()=>{a.abort(),d=new Yt});let u=null;if(l.timeout){const p=l.timeout;u=setTimeout(()=>{a.abort(),this._logger.log($.Warning,"Timeout from HTTP request."),d=new Si},p)}l.content===""&&(l.content=void 0),l.content&&(l.headers=l.headers||{},pn(l.content)?l.headers["Content-Type"]="application/octet-stream":l.headers["Content-Type"]="text/plain;charset=UTF-8");let h;try{h=await this._fetchType(l.url,{body:l.content,cache:"no-cache",credentials:l.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...l.headers},method:l.method,mode:"cors",redirect:"follow",signal:a.signal})}catch(p){throw d||(this._logger.log($.Warning,`Error from HTTP request. ${p}.`),p)}finally{u&&clearTimeout(u),l.abortSignal&&(l.abortSignal.onabort=null)}if(!h.ok){const p=await Ru(h,"text");throw new fn(p||h.statusText,h.status)}const v=await Ru(h,l.responseType);return new eh(h.status,h.statusText,v)}getCookieString(l){let a="";return We.isNode&&this._jar&&this._jar.getCookies(l,(d,u)=>a=u.join("; ")),a}}function Ru(o,l){let a;switch(l){case"arraybuffer":a=o.arrayBuffer();break;case"text":a=o.text();break;case"blob":case"document":case"json":throw new Error(`${l} is not supported.`);default:a=o.text();break}return a}class Uf extends pa{constructor(l){super(),this._logger=l}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Yt):l.method?l.url?new Promise((a,d)=>{const u=new XMLHttpRequest;u.open(l.method,l.url,!0),u.withCredentials=l.withCredentials===void 0?!0:l.withCredentials,u.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.content===""&&(l.content=void 0),l.content&&(pn(l.content)?u.setRequestHeader("Content-Type","application/octet-stream"):u.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const h=l.headers;h&&Object.keys(h).forEach(f=>{u.setRequestHeader(f,h[f])}),l.responseType&&(u.responseType=l.responseType),l.abortSignal&&(l.abortSignal.onabort=()=>{u.abort(),d(new Yt)}),l.timeout&&(u.timeout=l.timeout),u.onload=()=>{l.abortSignal&&(l.abortSignal.onabort=null),u.status>=200&&u.status<300?a(new eh(u.status,u.statusText,u.response||u.responseText)):d(new fn(u.response||u.responseText||u.statusText,u.status))},u.onerror=()=>{this._logger.log($.Warning,`Error from HTTP request. ${u.status}: ${u.statusText}.`),d(new fn(u.statusText,u.status))},u.ontimeout=()=>{this._logger.log($.Warning,"Timeout from HTTP request."),d(new Si)},u.send(l.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class Ff extends pa{constructor(l){if(super(),typeof fetch<"u"||We.isNode)this._httpClient=new zf(l);else if(typeof XMLHttpRequest<"u")this._httpClient=new Uf(l);else throw new Error("No usable HttpClient found.")}send(l){return l.abortSignal&&l.abortSignal.aborted?Promise.reject(new Yt):l.method?l.url?this._httpClient.send(l):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(l){return this._httpClient.getCookieString(l)}}class At{static write(l){return`${l}${At.RecordSeparator}`}static parse(l){if(l[l.length-1]!==At.RecordSeparator)throw new Error("Message is incomplete.");const a=l.split(At.RecordSeparator);return a.pop(),a}}At.RecordSeparatorCode=30;At.RecordSeparator=String.fromCharCode(At.RecordSeparatorCode);class Bf{writeHandshakeRequest(l){return At.write(JSON.stringify(l))}parseHandshakeResponse(l){let a,d;if(pn(l)){const v=new Uint8Array(l),p=v.indexOf(At.RecordSeparatorCode);if(p===-1)throw new Error("Message is incomplete.");const N=p+1;a=String.fromCharCode.apply(null,Array.prototype.slice.call(v.slice(0,N))),d=v.byteLength>N?v.slice(N).buffer:null}else{const v=l,p=v.indexOf(At.RecordSeparator);if(p===-1)throw new Error("Message is incomplete.");const N=p+1;a=v.substring(0,N),d=v.length>N?v.substring(N):null}const u=At.parse(a),h=JSON.parse(u[0]);if(h.type)throw new Error("Expected a handshake response from the server.");return[d,h]}}var ke;(function(o){o[o.Invocation=1]="Invocation",o[o.StreamItem=2]="StreamItem",o[o.Completion=3]="Completion",o[o.StreamInvocation=4]="StreamInvocation",o[o.CancelInvocation=5]="CancelInvocation",o[o.Ping=6]="Ping",o[o.Close=7]="Close",o[o.Ack=8]="Ack",o[o.Sequence=9]="Sequence"})(ke||(ke={}));class Hf{constructor(){this.observers=[]}next(l){for(const a of this.observers)a.next(l)}error(l){for(const a of this.observers)a.error&&a.error(l)}complete(){for(const l of this.observers)l.complete&&l.complete()}subscribe(l){return this.observers.push(l),new Lf(this,l)}}class Wf{constructor(l,a,d){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=l,this._connection=a,this._bufferSize=d}async _send(l){const a=this._protocol.writeMessage(l);let d=Promise.resolve();if(this._isInvocationMessage(l)){this._totalMessageCount++;let u=()=>{},h=()=>{};pn(a)?this._bufferedByteCount+=a.byteLength:this._bufferedByteCount+=a.length,this._bufferedByteCount>=this._bufferSize&&(d=new Promise((f,v)=>{u=f,h=v})),this._messages.push(new Vf(a,this._totalMessageCount,u,h))}try{this._reconnectInProgress||await this._connection.send(a)}catch{this._disconnected()}await d}_ack(l){let a=-1;for(let d=0;dthis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=l.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const l=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:ke.Sequence,sequenceId:l}));const a=this._messages;for(const d of a)await this._connection.send(d._message);this._reconnectInProgress=!1}_dispose(l){l??(l=new Error("Unable to reconnect to server."));for(const a of this._messages)a._rejector(l)}_isInvocationMessage(l){switch(l.type){case ke.Invocation:case ke.StreamItem:case ke.Completion:case ke.StreamInvocation:case ke.CancelInvocation:return!0;case ke.Close:case ke.Sequence:case ke.Ping:case ke.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:ke.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Vf{constructor(l,a,d,u){this._message=l,this._id=a,this._resolver=d,this._rejector=u}}const Qf=30*1e3,Kf=15*1e3,Jf=1e5;var $e;(function(o){o.Disconnected="Disconnected",o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Reconnecting="Reconnecting"})($e||($e={}));class _i{static create(l,a,d,u,h,f,v){return new _i(l,a,d,u,h,f,v)}constructor(l,a,d,u,h,f,v){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log($.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},st.isRequired(l,"connection"),st.isRequired(a,"logger"),st.isRequired(d,"protocol"),this.serverTimeoutInMilliseconds=h??Qf,this.keepAliveIntervalInMilliseconds=f??Kf,this._statefulReconnectBufferSize=v??Jf,this._logger=a,this._protocol=d,this.connection=l,this._reconnectPolicy=u,this._handshakeProtocol=new Bf,this.connection.onreceive=p=>this._processIncomingData(p),this.connection.onclose=p=>this._connectionClosed(p),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=$e.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:ke.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(l){if(this._connectionState!==$e.Disconnected&&this._connectionState!==$e.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!l)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=l}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==$e.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=$e.Connecting,this._logger.log($.Debug,"Starting HubConnection.");try{await this._startInternal(),We.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=$e.Connected,this._connectionStarted=!0,this._logger.log($.Debug,"HubConnection connected successfully.")}catch(l){return this._connectionState=$e.Disconnected,this._logger.log($.Debug,`HubConnection failed to start successfully because of error '${l}'.`),Promise.reject(l)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const l=new Promise((a,d)=>{this._handshakeResolver=a,this._handshakeRejecter=d});await this.connection.start(this._protocol.transferFormat);try{let a=this._protocol.version;this.connection.features.reconnect||(a=1);const d={protocol:this._protocol.name,version:a};if(this._logger.log($.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(d)),this._logger.log($.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await l,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new Wf(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(a){throw this._logger.log($.Debug,`Hub handshake failed with error '${a}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(a),a}}async stop(){const l=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await l}catch{}}_stopInternal(l){if(this._connectionState===$e.Disconnected)return this._logger.log($.Debug,`Call to HubConnection.stop(${l}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===$e.Disconnecting)return this._logger.log($.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const a=this._connectionState;return this._connectionState=$e.Disconnecting,this._logger.log($.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log($.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(a===$e.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=l||new Yt("The connection was stopped before the hub handshake could complete."),this.connection.stop(l))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(l,...a){const[d,u]=this._replaceStreamingParams(a),h=this._createStreamInvocation(l,a,u);let f;const v=new Hf;return v.cancelCallback=()=>{const p=this._createCancelInvocation(h.invocationId);return delete this._callbacks[h.invocationId],f.then(()=>this._sendWithProtocol(p))},this._callbacks[h.invocationId]=(p,N)=>{if(N){v.error(N);return}else p&&(p.type===ke.Completion?p.error?v.error(new Error(p.error)):v.complete():v.next(p.item))},f=this._sendWithProtocol(h).catch(p=>{v.error(p),delete this._callbacks[h.invocationId]}),this._launchStreams(d,f),v}_sendMessage(l){return this._resetKeepAliveInterval(),this.connection.send(l)}_sendWithProtocol(l){return this._messageBuffer?this._messageBuffer._send(l):this._sendMessage(this._protocol.writeMessage(l))}send(l,...a){const[d,u]=this._replaceStreamingParams(a),h=this._sendWithProtocol(this._createInvocation(l,a,!0,u));return this._launchStreams(d,h),h}invoke(l,...a){const[d,u]=this._replaceStreamingParams(a),h=this._createInvocation(l,a,!1,u);return new Promise((v,p)=>{this._callbacks[h.invocationId]=(j,k)=>{if(k){p(k);return}else j&&(j.type===ke.Completion?j.error?p(new Error(j.error)):v(j.result):p(new Error(`Unexpected message type: ${j.type}`)))};const N=this._sendWithProtocol(h).catch(j=>{p(j),delete this._callbacks[h.invocationId]});this._launchStreams(d,N)})}on(l,a){!l||!a||(l=l.toLowerCase(),this._methods[l]||(this._methods[l]=[]),this._methods[l].indexOf(a)===-1&&this._methods[l].push(a))}off(l,a){if(!l)return;l=l.toLowerCase();const d=this._methods[l];if(d)if(a){const u=d.indexOf(a);u!==-1&&(d.splice(u,1),d.length===0&&delete this._methods[l])}else delete this._methods[l]}onclose(l){l&&this._closedCallbacks.push(l)}onreconnecting(l){l&&this._reconnectingCallbacks.push(l)}onreconnected(l){l&&this._reconnectedCallbacks.push(l)}_processIncomingData(l){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(l=this._processHandshakeResponse(l),this._receivedHandshakeResponse=!0),l){const a=this._protocol.parseMessages(l,this._logger);for(const d of a)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(d)))switch(d.type){case ke.Invocation:this._invokeClientMethod(d).catch(u=>{this._logger.log($.Error,`Invoke client method threw error: ${ci(u)}`)});break;case ke.StreamItem:case ke.Completion:{const u=this._callbacks[d.invocationId];if(u){d.type===ke.Completion&&delete this._callbacks[d.invocationId];try{u(d)}catch(h){this._logger.log($.Error,`Stream callback threw error: ${ci(h)}`)}}break}case ke.Ping:break;case ke.Close:{this._logger.log($.Information,"Close message received from server.");const u=d.error?new Error("Server returned an error on close: "+d.error):void 0;d.allowReconnect===!0?this.connection.stop(u):this._stopPromise=this._stopInternal(u);break}case ke.Ack:this._messageBuffer&&this._messageBuffer._ack(d);break;case ke.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(d);break;default:this._logger.log($.Warning,`Invalid message type: ${d.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(l){let a,d;try{[d,a]=this._handshakeProtocol.parseHandshakeResponse(l)}catch(u){const h="Error parsing handshake response: "+u;this._logger.log($.Error,h);const f=new Error(h);throw this._handshakeRejecter(f),f}if(a.error){const u="Server returned handshake error: "+a.error;this._logger.log($.Error,u);const h=new Error(u);throw this._handshakeRejecter(h),h}else this._logger.log($.Debug,"Server handshake complete.");return this._handshakeResolver(),d}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let l=this._nextKeepAlive-new Date().getTime();l<0&&(l=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===$e.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},l)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(l){const a=l.target.toLowerCase(),d=this._methods[a];if(!d){this._logger.log($.Warning,`No client method with the name '${a}' found.`),l.invocationId&&(this._logger.log($.Warning,`No result given for '${a}' method and invocation ID '${l.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)));return}const u=d.slice(),h=!!l.invocationId;let f,v,p;for(const N of u)try{const j=f;f=await N.apply(this,l.arguments),h&&f&&j&&(this._logger.log($.Error,`Multiple results provided for '${a}'. Sending error to server.`),p=this._createCompletionMessage(l.invocationId,"Client provided multiple results.",null)),v=void 0}catch(j){v=j,this._logger.log($.Error,`A callback for the method '${a}' threw error '${j}'.`)}p?await this._sendWithProtocol(p):h?(v?p=this._createCompletionMessage(l.invocationId,`${v}`,null):f!==void 0?p=this._createCompletionMessage(l.invocationId,null,f):(this._logger.log($.Warning,`No result given for '${a}' method and invocation ID '${l.invocationId}'.`),p=this._createCompletionMessage(l.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(p)):f&&this._logger.log($.Error,`Result given for '${a}' method but server is not expecting a result.`)}_connectionClosed(l){this._logger.log($.Debug,`HubConnection.connectionClosed(${l}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||l||new Yt("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(l||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===$e.Disconnecting?this._completeClose(l):this._connectionState===$e.Connected&&this._reconnectPolicy?this._reconnect(l):this._connectionState===$e.Connected&&this._completeClose(l)}_completeClose(l){if(this._connectionStarted){this._connectionState=$e.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(l??new Error("Connection closed.")),this._messageBuffer=void 0),We.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(a=>a.apply(this,[l]))}catch(a){this._logger.log($.Error,`An onclose callback called with error '${l}' threw error '${a}'.`)}}}async _reconnect(l){const a=Date.now();let d=0,u=l!==void 0?l:new Error("Attempting to reconnect due to a unknown error."),h=this._getNextRetryDelay(d++,0,u);if(h===null){this._logger.log($.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(l);return}if(this._connectionState=$e.Reconnecting,l?this._logger.log($.Information,`Connection reconnecting because of error '${l}'.`):this._logger.log($.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(f=>f.apply(this,[l]))}catch(f){this._logger.log($.Error,`An onreconnecting callback called with error '${l}' threw error '${f}'.`)}if(this._connectionState!==$e.Reconnecting){this._logger.log($.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;h!==null;){if(this._logger.log($.Information,`Reconnect attempt number ${d} will start in ${h} ms.`),await new Promise(f=>{this._reconnectDelayHandle=setTimeout(f,h)}),this._reconnectDelayHandle=void 0,this._connectionState!==$e.Reconnecting){this._logger.log($.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=$e.Connected,this._logger.log($.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(f=>f.apply(this,[this.connection.connectionId]))}catch(f){this._logger.log($.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${f}'.`)}return}catch(f){if(this._logger.log($.Information,`Reconnect attempt failed because of error '${f}'.`),this._connectionState!==$e.Reconnecting){this._logger.log($.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===$e.Disconnecting&&this._completeClose();return}u=f instanceof Error?f:new Error(f.toString()),h=this._getNextRetryDelay(d++,Date.now()-a,u)}}this._logger.log($.Information,`Reconnect retries have been exhausted after ${Date.now()-a} ms and ${d} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(l,a,d){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:a,previousRetryCount:l,retryReason:d})}catch(u){return this._logger.log($.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${l}, ${a}) threw error '${u}'.`),null}}_cancelCallbacksWithError(l){const a=this._callbacks;this._callbacks={},Object.keys(a).forEach(d=>{const u=a[d];try{u(null,l)}catch(h){this._logger.log($.Error,`Stream 'error' callback called with '${l}' threw error: ${ci(h)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(l,a,d,u){if(d)return u.length!==0?{arguments:a,streamIds:u,target:l,type:ke.Invocation}:{arguments:a,target:l,type:ke.Invocation};{const h=this._invocationId;return this._invocationId++,u.length!==0?{arguments:a,invocationId:h.toString(),streamIds:u,target:l,type:ke.Invocation}:{arguments:a,invocationId:h.toString(),target:l,type:ke.Invocation}}}_launchStreams(l,a){if(l.length!==0){a||(a=Promise.resolve());for(const d in l)l[d].subscribe({complete:()=>{a=a.then(()=>this._sendWithProtocol(this._createCompletionMessage(d)))},error:u=>{let h;u instanceof Error?h=u.message:u&&u.toString?h=u.toString():h="Unknown error",a=a.then(()=>this._sendWithProtocol(this._createCompletionMessage(d,h)))},next:u=>{a=a.then(()=>this._sendWithProtocol(this._createStreamItemMessage(d,u)))}})}}_replaceStreamingParams(l){const a=[],d=[];for(let u=0;u0)&&(a=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(l);const d=await this._innerClient.send(l);return a&&d.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(l),await this._innerClient.send(l)):d}_setAuthorizationHeader(l){l.headers||(l.headers={}),this._accessToken?l.headers[xn.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&l.headers[xn.Authorization]&&delete l.headers[xn.Authorization]}getCookieString(l){return this._innerClient.getCookieString(l)}}var lt;(function(o){o[o.None=0]="None",o[o.WebSockets=1]="WebSockets",o[o.ServerSentEvents=2]="ServerSentEvents",o[o.LongPolling=4]="LongPolling"})(lt||(lt={}));var pt;(function(o){o[o.Text=1]="Text",o[o.Binary=2]="Binary"})(pt||(pt={}));let Gf=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class $u{get pollAborted(){return this._pollAbort.aborted}constructor(l,a,d){this._httpClient=l,this._logger=a,this._pollAbort=new Gf,this._options=d,this._running=!1,this.onreceive=null,this.onclose=null}async connect(l,a){if(st.isRequired(l,"url"),st.isRequired(a,"transferFormat"),st.isIn(a,pt,"transferFormat"),this._url=l,this._logger.log($.Trace,"(LongPolling transport) Connecting."),a===pt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[d,u]=Kn(),h={[d]:u,...this._options.headers},f={abortSignal:this._pollAbort.signal,headers:h,timeout:1e5,withCredentials:this._options.withCredentials};a===pt.Binary&&(f.responseType="arraybuffer");const v=`${l}&_=${Date.now()}`;this._logger.log($.Trace,`(LongPolling transport) polling: ${v}.`);const p=await this._httpClient.get(v,f);p.statusCode!==200?(this._logger.log($.Error,`(LongPolling transport) Unexpected response code: ${p.statusCode}.`),this._closeError=new fn(p.statusText||"",p.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,f)}async _poll(l,a){try{for(;this._running;)try{const d=`${l}&_=${Date.now()}`;this._logger.log($.Trace,`(LongPolling transport) polling: ${d}.`);const u=await this._httpClient.get(d,a);u.statusCode===204?(this._logger.log($.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):u.statusCode!==200?(this._logger.log($.Error,`(LongPolling transport) Unexpected response code: ${u.statusCode}.`),this._closeError=new fn(u.statusText||"",u.statusCode),this._running=!1):u.content?(this._logger.log($.Trace,`(LongPolling transport) data received. ${Wr(u.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(u.content)):this._logger.log($.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(d){this._running?d instanceof Si?this._logger.log($.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=d,this._running=!1):this._logger.log($.Trace,`(LongPolling transport) Poll errored after shutdown: ${d.message}`)}}finally{this._logger.log($.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(l){return this._running?th(this._logger,"LongPolling",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log($.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log($.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const l={},[a,d]=Kn();l[a]=d;const u={headers:{...l,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let h;try{await this._httpClient.delete(this._url,u)}catch(f){h=f}h?h instanceof fn&&(h.statusCode===404?this._logger.log($.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log($.Trace,`(LongPolling transport) Error sending a DELETE request: ${h}`)):this._logger.log($.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log($.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let l="(LongPolling transport) Firing onclose event.";this._closeError&&(l+=" Error: "+this._closeError),this._logger.log($.Trace,l),this.onclose(this._closeError)}}}class Yf{constructor(l,a,d,u){this._httpClient=l,this._accessToken=a,this._logger=d,this._options=u,this.onreceive=null,this.onclose=null}async connect(l,a){return st.isRequired(l,"url"),st.isRequired(a,"transferFormat"),st.isIn(a,pt,"transferFormat"),this._logger.log($.Trace,"(SSE transport) Connecting."),this._url=l,this._accessToken&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((d,u)=>{let h=!1;if(a!==pt.Text){u(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let f;if(We.isBrowser||We.isWebWorker)f=new this._options.EventSource(l,{withCredentials:this._options.withCredentials});else{const v=this._httpClient.getCookieString(l),p={};p.Cookie=v;const[N,j]=Kn();p[N]=j,f=new this._options.EventSource(l,{withCredentials:this._options.withCredentials,headers:{...p,...this._options.headers}})}try{f.onmessage=v=>{if(this.onreceive)try{this._logger.log($.Trace,`(SSE transport) data received. ${Wr(v.data,this._options.logMessageContent)}.`),this.onreceive(v.data)}catch(p){this._close(p);return}},f.onerror=v=>{h?this._close():u(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},f.onopen=()=>{this._logger.log($.Information,`SSE connected to ${this._url}`),this._eventSource=f,h=!0,d()}}catch(v){u(v);return}})}async send(l){return this._eventSource?th(this._logger,"SSE",this._httpClient,this._url,l,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(l){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(l))}}class Zf{constructor(l,a,d,u,h,f){this._logger=d,this._accessTokenFactory=a,this._logMessageContent=u,this._webSocketConstructor=h,this._httpClient=l,this.onreceive=null,this.onclose=null,this._headers=f}async connect(l,a){st.isRequired(l,"url"),st.isRequired(a,"transferFormat"),st.isIn(a,pt,"transferFormat"),this._logger.log($.Trace,"(WebSockets transport) Connecting.");let d;return this._accessTokenFactory&&(d=await this._accessTokenFactory()),new Promise((u,h)=>{l=l.replace(/^http/,"ws");let f;const v=this._httpClient.getCookieString(l);let p=!1;if(We.isNode||We.isReactNative){const N={},[j,k]=Kn();N[j]=k,d&&(N[xn.Authorization]=`Bearer ${d}`),v&&(N[xn.Cookie]=v),f=new this._webSocketConstructor(l,void 0,{headers:{...N,...this._headers}})}else d&&(l+=(l.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(d)}`);f||(f=new this._webSocketConstructor(l)),a===pt.Binary&&(f.binaryType="arraybuffer"),f.onopen=N=>{this._logger.log($.Information,`WebSocket connected to ${l}.`),this._webSocket=f,p=!0,u()},f.onerror=N=>{let j=null;typeof ErrorEvent<"u"&&N instanceof ErrorEvent?j=N.error:j="There was an error with the transport",this._logger.log($.Information,`(WebSockets transport) ${j}.`)},f.onmessage=N=>{if(this._logger.log($.Trace,`(WebSockets transport) data received. ${Wr(N.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(N.data)}catch(j){this._close(j);return}},f.onclose=N=>{if(p)this._close(N);else{let j=null;typeof ErrorEvent<"u"&&N instanceof ErrorEvent?j=N.error:j="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",h(new Error(j))}}})}send(l){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log($.Trace,`(WebSockets transport) sending data. ${Wr(l,this._logMessageContent)}.`),this._webSocket.send(l),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(l){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log($.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(l)&&(l.wasClean===!1||l.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${l.code} (${l.reason||"no reason given"}).`)):l instanceof Error?this.onclose(l):this.onclose())}_isCloseEvent(l){return l&&typeof l.wasClean=="boolean"&&typeof l.code=="number"}}const Du=100;class ex{constructor(l,a={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,st.isRequired(l,"url"),this._logger=Rf(a.logger),this.baseUrl=this._resolveUrl(l),a=a||{},a.logMessageContent=a.logMessageContent===void 0?!1:a.logMessageContent,typeof a.withCredentials=="boolean"||a.withCredentials===void 0)a.withCredentials=a.withCredentials===void 0?!0:a.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");a.timeout=a.timeout===void 0?100*1e3:a.timeout;let d=null,u=null;if(We.isNode&&typeof require<"u"){const h=typeof __webpack_require__=="function"?__non_webpack_require__:require;d=h("ws"),u=h("eventsource")}!We.isNode&&typeof WebSocket<"u"&&!a.WebSocket?a.WebSocket=WebSocket:We.isNode&&!a.WebSocket&&d&&(a.WebSocket=d),!We.isNode&&typeof EventSource<"u"&&!a.EventSource?a.EventSource=EventSource:We.isNode&&!a.EventSource&&typeof u<"u"&&(a.EventSource=u),this._httpClient=new qf(a.httpClient||new Ff(this._logger),a.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=a,this.onreceive=null,this.onclose=null}async start(l){if(l=l||pt.Binary,st.isIn(l,pt,"transferFormat"),this._logger.log($.Debug,`Starting connection with transfer format '${pt[l]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(l),await this._startInternalPromise,this._connectionState==="Disconnecting"){const a="Failed to start the HttpConnection before stop() was called.";return this._logger.log($.Error,a),await this._stopPromise,Promise.reject(new Yt(a))}else if(this._connectionState!=="Connected"){const a="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log($.Error,a),Promise.reject(new Yt(a))}this._connectionStarted=!0}send(l){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Ci(this.transport)),this._sendQueue.send(l))}async stop(l){if(this._connectionState==="Disconnected")return this._logger.log($.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log($.Debug,`Call to HttpConnection.stop(${l}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(a=>{this._stopPromiseResolver=a}),await this._stopInternal(l),await this._stopPromise}async _stopInternal(l){this._stopError=l;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(a){this._logger.log($.Error,`HttpConnection.transport.stop() threw error '${a}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log($.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(l){let a=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===lt.WebSockets)this.transport=this._constructTransport(lt.WebSockets),await this._startTransport(a,l);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let d=null,u=0;do{if(d=await this._getNegotiationResponse(a),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Yt("The connection was stopped during negotiation.");if(d.error)throw new Error(d.error);if(d.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(d.url&&(a=d.url),d.accessToken){const h=d.accessToken;this._accessTokenFactory=()=>h,this._httpClient._accessToken=h,this._httpClient._accessTokenFactory=void 0}u++}while(d.url&&u0?Promise.reject(new If(`Unable to connect to the server with any of the available transports. ${f.join(" ")}`,f)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(l){switch(l){case lt.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Zf(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case lt.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Yf(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case lt.LongPolling:return new $u(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${l}.`)}}_startTransport(l,a){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async d=>{let u=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(l,a),await this.features.resend()}catch{u=!0}else{this._stopConnection(d);return}u&&this._stopConnection(d)}:this.transport.onclose=d=>this._stopConnection(d),this.transport.connect(l,a)}_resolveTransportOrError(l,a,d,u){const h=lt[l.transport];if(h==null)return this._logger.log($.Debug,`Skipping transport '${l.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${l.transport}' because it is not supported by this client.`);if(tx(a,h))if(l.transferFormats.map(v=>pt[v]).indexOf(d)>=0){if(h===lt.WebSockets&&!this._options.WebSocket||h===lt.ServerSentEvents&&!this._options.EventSource)return this._logger.log($.Debug,`Skipping transport '${lt[h]}' because it is not supported in your environment.'`),new _f(`'${lt[h]}' is not supported in your environment.`,h);this._logger.log($.Debug,`Selecting transport '${lt[h]}'.`);try{return this.features.reconnect=h===lt.WebSockets?u:void 0,this._constructTransport(h)}catch(v){return v}}else return this._logger.log($.Debug,`Skipping transport '${lt[h]}' because it does not support the requested transfer format '${pt[d]}'.`),new Error(`'${lt[h]}' does not support ${pt[d]}.`);else return this._logger.log($.Debug,`Skipping transport '${lt[h]}' because it was disabled by the client.`),new Cf(`'${lt[h]}' is disabled by the client.`,h)}_isITransport(l){return l&&typeof l=="object"&&"connect"in l}_stopConnection(l){if(this._logger.log($.Debug,`HttpConnection.stopConnection(${l}) called while in state ${this._connectionState}.`),this.transport=void 0,l=this._stopError||l,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log($.Debug,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log($.Warning,`Call to HttpConnection.stopConnection(${l}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${l}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),l?this._logger.log($.Error,`Connection disconnected with error '${l}'.`):this._logger.log($.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(a=>{this._logger.log($.Error,`TransportSendQueue.stop() threw error '${a}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(l)}catch(a){this._logger.log($.Error,`HttpConnection.onclose(${l}) threw error '${a}'.`)}}}_resolveUrl(l){if(l.lastIndexOf("https://",0)===0||l.lastIndexOf("http://",0)===0)return l;if(!We.isBrowser)throw new Error(`Cannot resolve '${l}'.`);const a=window.document.createElement("a");return a.href=l,this._logger.log($.Information,`Normalizing '${l}' to '${a.href}'.`),a.href}_resolveNegotiateUrl(l){const a=new URL(l);a.pathname.endsWith("/")?a.pathname+="negotiate":a.pathname+="/negotiate";const d=new URLSearchParams(a.searchParams);return d.has("negotiateVersion")||d.append("negotiateVersion",this._negotiateVersion.toString()),d.has("useStatefulReconnect")?d.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&d.append("useStatefulReconnect","true"),a.search=d.toString(),a.toString()}}function tx(o,l){return!o||(l&o)!==0}class Ci{constructor(l){this._transport=l,this._buffer=[],this._executing=!0,this._sendBufferedData=new la,this._transportResult=new la,this._sendLoopPromise=this._sendLoop()}send(l){return this._bufferData(l),this._transportResult||(this._transportResult=new la),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(l){if(this._buffer.length&&typeof this._buffer[0]!=typeof l)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof l}`);this._buffer.push(l),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new la;const l=this._transportResult;this._transportResult=void 0;const a=typeof this._buffer[0]=="string"?this._buffer.join(""):Ci._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(a),l.resolve()}catch(d){l.reject(d)}}}static _concatBuffers(l){const a=l.map(h=>h.byteLength).reduce((h,f)=>h+f),d=new Uint8Array(a);let u=0;for(const h of l)d.set(new Uint8Array(h),u),u+=h.byteLength;return d.buffer}}class la{constructor(){this.promise=new Promise((l,a)=>[this._resolver,this._rejecter]=[l,a])}resolve(){this._resolver()}reject(l){this._rejecter(l)}}const sx="json";class nx{constructor(){this.name=sx,this.version=2,this.transferFormat=pt.Text}parseMessages(l,a){if(typeof l!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!l)return[];a===null&&(a=Hr.instance);const d=At.parse(l),u=[];for(const h of d){const f=JSON.parse(h);if(typeof f.type!="number")throw new Error("Invalid payload.");switch(f.type){case ke.Invocation:this._isInvocationMessage(f);break;case ke.StreamItem:this._isStreamItemMessage(f);break;case ke.Completion:this._isCompletionMessage(f);break;case ke.Ping:break;case ke.Close:break;case ke.Ack:this._isAckMessage(f);break;case ke.Sequence:this._isSequenceMessage(f);break;default:a.log($.Information,"Unknown message type '"+f.type+"' ignored.");continue}u.push(f)}return u}writeMessage(l){return At.write(JSON.stringify(l))}_isInvocationMessage(l){this._assertNotEmptyString(l.target,"Invalid payload for Invocation message."),l.invocationId!==void 0&&this._assertNotEmptyString(l.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(l){if(this._assertNotEmptyString(l.invocationId,"Invalid payload for StreamItem message."),l.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(l){if(l.result&&l.error)throw new Error("Invalid payload for Completion message.");!l.result&&l.error&&this._assertNotEmptyString(l.error,"Invalid payload for Completion message."),this._assertNotEmptyString(l.invocationId,"Invalid payload for Completion message.")}_isAckMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(l){if(typeof l.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(l,a){if(typeof l!="string"||l==="")throw new Error(a)}}const rx={trace:$.Trace,debug:$.Debug,info:$.Information,information:$.Information,warn:$.Warning,warning:$.Warning,error:$.Error,critical:$.Critical,none:$.None};function lx(o){const l=rx[o.toLowerCase()];if(typeof l<"u")return l;throw new Error(`Unknown log level: ${o}`)}class ax{configureLogging(l){if(st.isRequired(l,"logging"),ox(l))this.logger=l;else if(typeof l=="string"){const a=lx(l);this.logger=new oa(a)}else this.logger=new oa(l);return this}withUrl(l,a){return st.isRequired(l,"url"),st.isNotEmpty(l,"url"),this.url=l,typeof a=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...a}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:a},this}withHubProtocol(l){return st.isRequired(l,"protocol"),this.protocol=l,this}withAutomaticReconnect(l){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return l?Array.isArray(l)?this.reconnectPolicy=new Lu(l):this.reconnectPolicy=l:this.reconnectPolicy=new Lu,this}withServerTimeout(l){return st.isRequired(l,"milliseconds"),this._serverTimeoutInMilliseconds=l,this}withKeepAliveInterval(l){return st.isRequired(l,"milliseconds"),this._keepAliveIntervalInMilliseconds=l,this}withStatefulReconnect(l){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=l==null?void 0:l.bufferSize,this}build(){const l=this.httpConnectionOptions||{};if(l.logger===void 0&&(l.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const a=new ex(this.url,l);return _i.create(a,this.logger||Hr.instance,this.protocol||new nx,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function ox(o){return o.log!==void 0}class ix{constructor(){_t(this,"connection",null);_t(this,"state","Disconnected");_t(this,"startPromise",null);_t(this,"permanentRetryTimer",null);_t(this,"isAuthenticated",!1);_t(this,"stateListeners",new Set);_t(this,"ackListeners",new Set);_t(this,"deviceStatusListeners",new Set);_t(this,"healthReportListeners",new Set);_t(this,"notificationListeners",new Set);_t(this,"cancelledListeners",new Set);Vn.subscribe(()=>{this.stop()})}getState(){return this.state}setState(l){this.state!==l&&(this.state=l,this.stateListeners.forEach(a=>a(l)))}onStateChange(l){return this.stateListeners.add(l),l(this.state),()=>this.stateListeners.delete(l)}onAckReceiptReceived(l){return this.ackListeners.add(l),()=>this.ackListeners.delete(l)}onDeviceStatusChanged(l){return this.deviceStatusListeners.add(l),()=>this.deviceStatusListeners.delete(l)}onHealthReportReceived(l){return this.healthReportListeners.add(l),()=>this.healthReportListeners.delete(l)}onNewNotificationBroadcast(l){return this.notificationListeners.add(l),()=>this.notificationListeners.delete(l)}onNotificationCancelled(l){return this.cancelledListeners.add(l),()=>this.cancelledListeners.delete(l)}async start(){var a,d;if(!Ks()){this.setState("Disconnected");return}if(this.isAuthenticated=!0,((a=this.connection)==null?void 0:a.state)===$e.Connected){this.setState("Connected");return}return this.startPromise?this.startPromise:(this.connection||this.buildConnection(),this.setState(((d=this.connection)==null?void 0:d.state)===$e.Reconnecting?"Reconnecting":"Connecting"),this.startPromise=(async()=>{try{this.connection&&this.connection.state===$e.Disconnected&&(await this.connection.start(),this.setState("Connected"),this.clearPermanentRetryTimer())}catch(u){console.warn("SignalR start failed:",u),this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}finally{this.startPromise=null}})(),this.startPromise)}async stop(){if(this.isAuthenticated=!1,this.clearPermanentRetryTimer(),this.setState("Disconnected"),this.startPromise){try{await this.startPromise}catch{}this.startPromise=null}if(this.connection)try{await this.connection.stop()}catch(l){console.warn("Error stopping SignalR connection:",l)}finally{this.connection=null}}buildConnection(){this.connection=new ax().withUrl("/hubs/teacher",{accessTokenFactory:()=>Ks()||""}).withAutomaticReconnect([0,2e3,5e3,1e4,3e4]).configureLogging($.Warning).build(),this.connection.onreconnecting(()=>{this.setState("Reconnecting")}),this.connection.onreconnected(()=>{this.setState("Connected"),this.clearPermanentRetryTimer()}),this.connection.onclose(()=>{this.isAuthenticated?(this.setState("Reconnecting"),this.schedulePermanentRetry()):this.setState("Disconnected")}),this.connection.on("OnAckReceiptReceived",l=>{this.ackListeners.forEach(a=>a(l))}),this.connection.on("OnDeviceStatusChanged",l=>{this.deviceStatusListeners.forEach(a=>a(l))}),this.connection.on("OnHealthReportReceived",l=>{this.healthReportListeners.forEach(a=>a(l))}),this.connection.on("OnNewNotificationBroadcast",l=>{this.notificationListeners.forEach(a=>a(l))}),this.connection.on("OnNotificationCancelled",l=>{this.cancelledListeners.forEach(a=>a(l))})}schedulePermanentRetry(){this.permanentRetryTimer||!this.isAuthenticated||(this.permanentRetryTimer=setInterval(()=>{var l;if(!this.isAuthenticated){this.clearPermanentRetryTimer();return}((l=this.connection)==null?void 0:l.state)===$e.Disconnected&&this.start()},3e4))}clearPermanentRetryTimer(){this.permanentRetryTimer&&(clearInterval(this.permanentRetryTimer),this.permanentRetryTimer=null)}}const Wt=new ix,sh=x.createContext(void 0),cx=({children:o})=>{const[l,a]=x.useState(()=>{try{const N=localStorage.getItem("classnotify_user");return N?JSON.parse(N):null}catch{return null}}),[d,u]=x.useState(Ks()),[h,f]=x.useState(!0);x.useEffect(()=>{const N=Vn.subscribe(()=>{Wt.stop(),zr(),u(null),a(null)});return()=>N()},[]),x.useEffect(()=>{(async()=>{var k,D;if(Ks())try{const W=await re.getMe();a(W),localStorage.setItem("classnotify_user",JSON.stringify(W)),Vn.reset(),Wt.start()}catch(W){((k=W==null?void 0:W.message)!=null&&k.includes("未授权")||(D=W==null?void 0:W.message)!=null&&D.includes("401"))&&(zr(),u(null),a(null))}else zr(),a(null),u(null);f(!1)})()},[]);const v=async(N,j)=>{const k=await re.login(N,j);if(!k.success||!k.token||!k.role)throw new Error(k.errorMessage||"登录失败");kf(k.token),u(k.token);const D={userId:k.userId||"",name:k.fullName||N,role:k.role,tenantId:k.tenantId||""};return a(D),localStorage.setItem("classnotify_user",JSON.stringify(D)),Vn.reset(),Wt.start(),k.role},p=()=>{Wt.stop(),zr(),u(null),a(null),Vn.reset()};return s.jsx(sh.Provider,{value:{user:l,token:d,login:v,logout:p,isLoading:h},children:o})},Gn=()=>{const o=x.useContext(sh);if(!o){let l=null;try{const a=localStorage.getItem("classnotify_user");a&&(l=JSON.parse(a))}catch{}return{user:l,token:Ks(),login:async()=>"Teacher",logout:()=>{},isLoading:!1}}return o};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nh=(...o)=>o.filter((l,a,d)=>!!l&&l.trim()!==""&&d.indexOf(l)===a).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var ux={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.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hx=x.forwardRef(({color:o="currentColor",size:l=24,strokeWidth:a=2,absoluteStrokeWidth:d,className:u="",children:h,iconNode:f,...v},p)=>x.createElement("svg",{ref:p,...ux,width:l,height:l,stroke:o,strokeWidth:d?Number(a)*24/Number(l):a,className:nh("lucide",u),...v},[...f.map(([N,j])=>x.createElement(N,j)),...Array.isArray(h)?h:[h]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ge=(o,l)=>{const a=x.forwardRef(({className:d,...u},h)=>x.createElement(hx,{ref:h,iconNode:l,className:nh(`lucide-${dx(o)}`,d),...u}));return a.displayName=`${o}`,a};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mx=[["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"}]],Vs=ge("Activity",mx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wn=ge("ArrowRight",fx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xx=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],ia=ge("Bell",xx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const px=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],os=ge("Building2",px);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ca=ge("Check",gx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mu=ge("ChevronDown",vx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bx=ge("ChevronRight",yx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wx=[["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"}]],Zt=ge("CircleAlert",wx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],tt=ge("CircleCheck",jx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Nx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],kx=ge("CircleHelp",Nx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],da=ge("CircleX",Sx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _x=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Js=ge("Clock",_x);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cx=[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]],Ex=ge("CloudRain",Cx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ix=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],gi=ge("Copy",Ix);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Px=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],ua=ge("Cpu",Px);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Rx=ge("Download",Tx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lx=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],$x=ge("Ellipsis",Lx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dx=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Mx=ge("Eye",Dx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ax=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Au=ge("FileText",Ax);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ox=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],zx=ge("Flame",Ox);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ux=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Vr=ge("GraduationCap",Ux);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fx=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],vi=ge("History",Fx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Bx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Hx=ge("Info",Bx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wx=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],It=ge("KeyRound",Wx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Vx=[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]],Qx=ge("Laptop",Vx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kx=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Ur=ge("Layers",Kx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Et=ge("LoaderCircle",Jx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Xx=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],rh=ge("LockOpen",Xx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qx=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ha=ge("Lock",qx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gx=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Yx=ge("LogOut",Gx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zx=[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]],ep=ge("Megaphone",Zx);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tp=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],sp=ge("Menu",tp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const np=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],gn=ge("Monitor",np);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rp=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],lh=ge("PenLine",rp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vn=ge("Plus",lp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ap=[["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"}]],Jn=ge("Radio",ap);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const op=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ct=ge("RefreshCw",op);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ip=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],cp=ge("RotateCcw",ip);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dp=[["path",{d:"M14 22v-4a2 2 0 1 0-4 0v4",key:"hhkicm"}],["path",{d:"m18 10 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7.382a1 1 0 0 1 .553-.894L6 10",key:"1xqip1"}],["path",{d:"M18 5v17",key:"1sw6gf"}],["path",{d:"m4 6 7.106-3.553a2 2 0 0 1 1.788 0L20 6",key:"9d2mlk"}],["path",{d:"M6 5v17",key:"1xfsm0"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}]],Ou=ge("School",dp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const up=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Yn=ge("Search",up);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hp=[["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"}]],ma=ge("Send",hp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ah=ge("ShieldAlert",mp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],fa=ge("ShieldCheck",fp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xp=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],oh=ge("Sparkles",xp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pp=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ei=ge("Trash2",pp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gp=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],bs=ge("TriangleAlert",gp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vp=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ih=ge("User",vp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yp=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Qn=ge("Users",yp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bp=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],wp=ge("Volume2",bp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qs=ge("X",jp);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Np=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],kp=ge("ZoomIn",Np);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sp=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],_p=ge("ZoomOut",Sp),Cp=()=>{const[o,l]=x.useState(Wt.getState());return x.useEffect(()=>Wt.onStateChange(l),[]),o==="Connected"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"云端正常"]}):o==="Reconnecting"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-400"}),"正在重连…"]}):o==="Connecting"?s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-500/10 text-blue-400 border border-blue-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),"正在连接…"]}):s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium bg-rose-500/10 text-rose-400 border border-rose-500/20",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),"云端离线"]})},Ep=()=>{const{user:o,logout:l}=Gn(),a=yn(),[d,u]=x.useState(!1);if(x.useEffect(()=>{u(!1)},[a.pathname]),!o)return null;const h=f=>a.pathname===f;return s.jsx("header",{className:"sticky top-0 z-50 border-b border-slate-800/80 bg-slate-950/80 backdrop-blur-xl",children:s.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[s.jsxs("div",{className:"flex items-center justify-between h-16",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs(je,{to:"/",className:"flex items-center space-x-2.5",children:[s.jsx("div",{className:"w-9 h-9 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:s.jsx(ia,{className:"w-5 h-5 text-white"})}),s.jsx("span",{className:"font-bold text-lg tracking-tight bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"ClassNotify"})]}),s.jsxs("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium flex items-center gap-1.5 border bg-slate-900 border-slate-800 text-slate-300",children:[o.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(fa,{className:"w-3.5 h-3.5 text-amber-400"}),s.jsx("span",{className:"text-amber-400 font-semibold",children:"超级运维后台"})]}),o.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(Ou,{className:"w-3.5 h-3.5 text-sky-400"}),s.jsx("span",{className:"text-sky-400 font-semibold",children:"学校管理后台"})]}),o.role==="Teacher"&&s.jsxs(s.Fragment,{children:[s.jsx(Vr,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{className:"text-emerald-400 font-semibold",children:"教师工作台"})]})]})]}),s.jsxs("nav",{className:"hidden md:flex items-center space-x-1",children:[o.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsxs(je,{to:"/admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Ur,{className:"w-4 h-4"}),"总览"]}),s.jsxs(je,{to:"/admin/tenants",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/tenants")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(os,{className:"w-4 h-4"}),"学校租户"]}),s.jsxs(je,{to:"/admin/users",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/users")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Qn,{className:"w-4 h-4"}),"用户中枢"]}),s.jsxs(je,{to:"/admin/devices",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/devices")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(gn,{className:"w-4 h-4"}),"设备集控"]}),s.jsxs(je,{to:"/admin/fleet",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/fleet")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(ua,{className:"w-4 h-4"}),"终端版本"]}),s.jsxs(je,{to:"/admin/self-check-batches",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/self-check-batches")||a.pathname.startsWith("/admin/self-check-batches")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Vs,{className:"w-4 h-4"}),"批量自检"]}),s.jsxs(je,{to:"/admin/broadcast",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/broadcast")?"bg-rose-600/20 text-rose-400 border border-rose-500/30":"text-slate-400 hover:text-rose-300 hover:bg-slate-900"}`,children:[s.jsx(Jn,{className:"w-4 h-4"}),"应急广播"]}),s.jsxs(je,{to:"/admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${h("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[s.jsx(It,{className:"w-4 h-4 text-amber-400"}),"激活码"]}),s.jsxs(je,{to:"/admin/history",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/admin/history")?"bg-indigo-600/20 text-indigo-400 border border-indigo-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(vi,{className:"w-4 h-4"}),"审计"]})]}),o.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsxs(je,{to:"/school-admin",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/school-admin")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Ou,{className:"w-4 h-4"}),"学校概览"]}),s.jsxs(je,{to:"/school-admin/classes",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/school-admin/classes")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Ur,{className:"w-4 h-4"}),"班级管理"]}),s.jsxs(je,{to:"/school-admin/teachers",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/school-admin/teachers")?"bg-sky-600/20 text-sky-400 border border-sky-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(Qn,{className:"w-4 h-4"}),"教师账号"]}),s.jsxs(je,{to:"/school-admin/codes",className:`px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 ${h("/school-admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/40 shadow-sm shadow-amber-500/10":"text-amber-400 hover:text-amber-300 hover:bg-amber-500/10"}`,children:[s.jsx(It,{className:"w-4 h-4 text-amber-400"}),"本校激活码"]})]}),o.role==="Teacher"&&s.jsxs(je,{to:"/teacher",className:`px-3 py-1.5 rounded-lg text-sm font-medium transition-colors flex items-center gap-1.5 ${h("/teacher")?"bg-emerald-600/20 text-emerald-400 border border-emerald-500/30":"text-slate-400 hover:text-slate-200 hover:bg-slate-900"}`,children:[s.jsx(ia,{className:"w-4 h-4"}),"呼叫与回执"]})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:"hidden sm:block",children:s.jsx(Cp,{})}),s.jsxs("div",{className:"hidden sm:flex flex-col text-right",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:o.name}),s.jsx("span",{className:"text-xs text-slate-500",children:o.tenantId==="global"?"全平台":o.tenantId})]}),s.jsx("button",{onClick:l,className:"p-2 rounded-lg text-slate-400 hover:text-rose-400 hover:bg-rose-500/10 transition-colors",title:"退出登录",children:s.jsx(Yx,{className:"w-4 h-4"})}),s.jsx("button",{onClick:()=>u(!d),className:"md:hidden p-2 rounded-lg text-slate-400 hover:text-white hover:bg-slate-900 border border-slate-800 transition-colors","aria-label":"展开菜单",children:d?s.jsx(Qs,{className:"w-5 h-5"}):s.jsx(sp,{className:"w-5 h-5"})})]})]}),d&&s.jsxs("div",{className:"md:hidden py-3 px-2 border-t border-slate-800/80 bg-slate-950/95 space-y-1",children:[o.role==="SuperAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(je,{to:"/admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Ur,{className:"w-4 h-4 text-indigo-400"}),"总览大盘"]})}),s.jsx(je,{to:"/admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/codes")?"bg-amber-500/25 text-amber-300 border border-amber-500/30":"text-amber-400 bg-amber-500/10 hover:bg-amber-500/20"}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-2 font-semibold",children:[s.jsx(It,{className:"w-4 h-4 text-amber-400"}),"设备激活码生成与管理"]}),s.jsx("span",{className:"text-[10px] bg-amber-500/20 text-amber-300 px-1.5 py-0.5 rounded border border-amber-500/30 font-bold",children:"重点"})]})}),s.jsx(je,{to:"/admin/tenants",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/tenants")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(os,{className:"w-4 h-4 text-indigo-400"}),"学校租户"]})}),s.jsx(je,{to:"/admin/users",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/users")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Qn,{className:"w-4 h-4 text-indigo-400"}),"用户中枢"]})}),s.jsx(je,{to:"/admin/devices",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/devices")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(gn,{className:"w-4 h-4 text-indigo-400"}),"设备集控"]})}),s.jsx(je,{to:"/admin/fleet",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/fleet")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ua,{className:"w-4 h-4 text-indigo-400"}),"终端版本"]})}),s.jsx(je,{to:"/admin/self-check-batches",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/self-check-batches")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Vs,{className:"w-4 h-4 text-indigo-400"}),"批量自检"]})}),s.jsx(je,{to:"/admin/broadcast",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/broadcast")?"bg-rose-600/20 text-rose-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Jn,{className:"w-4 h-4 text-rose-400"}),"全校应急广播"]})}),s.jsx(je,{to:"/admin/history",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/admin/history")?"bg-indigo-600/20 text-indigo-400":"text-slate-300 hover:bg-slate-900"}`,children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(vi,{className:"w-4 h-4 text-indigo-400"}),"审计历史"]})})]}),o.role==="SchoolAdmin"&&s.jsxs(s.Fragment,{children:[s.jsx(je,{to:"/school-admin",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/school-admin")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"学校概览"}),s.jsx(je,{to:"/school-admin/classes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/school-admin/classes")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"班级管理"}),s.jsx(je,{to:"/school-admin/teachers",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/school-admin/teachers")?"bg-sky-600/20 text-sky-400":"text-slate-300 hover:bg-slate-900"}`,children:"教师账号"}),s.jsx(je,{to:"/school-admin/codes",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/school-admin/codes")?"bg-sky-600/20 text-sky-400":"text-amber-400 font-semibold"}`,children:"本校激活码"})]}),o.role==="Teacher"&&s.jsx(je,{to:"/teacher",className:`block px-3 py-2 rounded-lg text-sm font-medium ${h("/teacher")?"bg-emerald-600/20 text-emerald-400":"text-slate-300 hover:bg-slate-900"}`,children:"呼叫与回执"})]})]})})},di=({allowedRoles:o,children:l})=>{const{user:a,isLoading:d}=Gn();return d?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户权限..."}):a?o.includes(a.role)?l?s.jsx(s.Fragment,{children:l}):s.jsx(Zu,{}):a.role==="SuperAdmin"?s.jsx(as,{to:"/admin",replace:!0}):a.role==="SchoolAdmin"?s.jsx(as,{to:"/school-admin",replace:!0}):s.jsx(as,{to:"/teacher",replace:!0}):s.jsx(as,{to:"/login",replace:!0})},Ip=()=>{const[o,l]=x.useState(""),[a,d]=x.useState(""),[u,h]=x.useState(null),[f,v]=x.useState(!1),{login:p}=Gn(),N=bn(),j=async(k=o,D=a)=>{h(null),v(!0);try{const W=await p(k,D);N(W==="SuperAdmin"?"/admin":W==="SchoolAdmin"?"/school-admin":"/teacher")}catch(W){h(W.message||"登录失败,请检查账号密码")}finally{v(!1)}};return s.jsxs("div",{className:"min-h-screen flex items-center justify-center p-4 bg-gradient-to-br from-slate-950 via-slate-900 to-indigo-950/40 relative overflow-hidden",children:[s.jsx("div",{className:"absolute w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl -top-20 -left-20 pointer-events-none"}),s.jsx("div",{className:"absolute w-96 h-96 bg-violet-500/10 rounded-full blur-3xl -bottom-20 -right-20 pointer-events-none"}),s.jsx("div",{className:"w-full max-w-md relative z-10",children:s.jsxs("div",{className:"glass-panel p-8 border-slate-800",children:[s.jsxs("div",{className:"text-center mb-8",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center mx-auto mb-4 shadow-xl shadow-indigo-500/25",children:s.jsx(ia,{className:"w-8 h-8 text-white"})}),s.jsx("h1",{className:"text-2xl font-bold tracking-tight text-white",children:"ClassNotify 控制台"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1.5",children:"智慧教室通知与设备集控一体化系统"})]}),u&&s.jsxs("div",{className:"mb-6 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-sm flex items-center gap-2",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rose-400"}),u]}),s.jsxs("form",{onSubmit:k=>{k.preventDefault(),j()},className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录账号"}),s.jsxs("div",{className:"relative",children:[s.jsx(ih,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),s.jsx("input",{type:"text",value:o,onChange:k=>l(k.target.value),placeholder:"请输入账号",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"登录密码"}),s.jsxs("div",{className:"relative",children:[s.jsx(ha,{className:"w-4 h-4 text-slate-400 absolute left-3.5 top-3.5"}),s.jsx("input",{type:"password",value:a,onChange:k=>d(k.target.value),placeholder:"请输入密码",className:"w-full pl-10 pr-4 py-2.5 rounded-xl bg-slate-950/60 border border-slate-700/80 text-white placeholder-slate-500 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500",required:!0})]})]}),s.jsx("button",{type:"submit",disabled:f,className:"w-full py-2.5 px-4 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-sm transition-all duration-200 flex items-center justify-center gap-2 shadow-lg shadow-indigo-600/30 disabled:opacity-50 disabled:cursor-not-allowed mt-2",children:f?s.jsxs(s.Fragment,{children:[s.jsx(Et,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"正在验证身份..."})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"登 录"}),s.jsx(Wn,{className:"w-4 h-4"})]})})]})]})})]})},ze=({label:o,variant:l="slate",dot:a=!0,className:d=""})=>{const u={emerald:{bg:"bg-emerald-500/10",text:"text-emerald-400",border:"border-emerald-500/20",dotColor:"bg-emerald-400"},amber:{bg:"bg-amber-500/10",text:"text-amber-400",border:"border-amber-500/20",dotColor:"bg-amber-400"},rose:{bg:"bg-rose-500/10",text:"text-rose-400",border:"border-rose-500/20",dotColor:"bg-rose-400"},sky:{bg:"bg-sky-500/10",text:"text-sky-400",border:"border-sky-500/20",dotColor:"bg-sky-400"},slate:{bg:"bg-slate-800/60",text:"text-slate-400",border:"border-slate-700/50",dotColor:"bg-slate-400"},indigo:{bg:"bg-indigo-500/10",text:"text-indigo-400",border:"border-indigo-500/20",dotColor:"bg-indigo-400"}},h=u[l]||u.slate;return s.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium border ${h.bg} ${h.text} ${h.border} ${d}`,children:[a&&s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${h.dotColor}`}),o]})},qs=({title:o,description:l,badge:a,action:d,className:u=""})=>s.jsxs("div",{className:`flex flex-col sm:flex-row sm:items-center justify-between gap-4 pb-6 mb-6 border-b border-slate-800/80 ${u}`,children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-slate-100",children:o}),a]}),l&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:l})]}),d&&s.jsx("div",{className:"flex items-center gap-3",children:d})]}),ga=({tabs:o,activeId:l,onChange:a,className:d=""})=>s.jsx("div",{className:`flex items-center gap-1.5 p-1 bg-slate-900 border border-slate-800 rounded-xl overflow-x-auto ${d}`,children:o.map(u=>{const h=u.id===l;return s.jsxs("button",{type:"button",onClick:()=>a(u.id),className:`px-3 py-1.5 rounded-lg text-xs sm:text-sm font-medium transition-all whitespace-nowrap flex items-center gap-1.5 ${h?"bg-slate-800 text-white shadow-sm border border-slate-700/60":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/40"}`,children:[s.jsx("span",{children:u.label}),u.count!==void 0&&s.jsx("span",{className:`px-1.5 py-0.2 rounded-full text-[10px] font-semibold ${h?"bg-slate-700 text-slate-200":"bg-slate-800/80 text-slate-500"}`,children:u.count})]},u.id)})}),Qr=({value:o,onChange:l,placeholder:a="搜索...",className:d=""})=>s.jsxs("div",{className:`relative flex items-center ${d}`,children:[s.jsx(Yn,{className:"w-4 h-4 text-slate-500 absolute left-3 pointer-events-none"}),s.jsx("input",{type:"text",value:o,onChange:u=>l(u.target.value),placeholder:a,className:"w-full bg-slate-900 border border-slate-800 rounded-xl pl-9 pr-8 py-2 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/30 transition-colors"}),o&&s.jsx("button",{type:"button",onClick:()=>l(""),className:"absolute right-2.5 p-1 rounded-md text-slate-500 hover:text-slate-300 hover:bg-slate-800 transition-colors",children:s.jsx(Qs,{className:"w-3.5 h-3.5"})})]}),Ii=({items:o,className:l=""})=>{const[a,d]=x.useState(!1),u=x.useRef(null);return x.useEffect(()=>{const h=v=>{u.current&&!u.current.contains(v.target)&&d(!1)},f=v=>{v.key==="Escape"&&d(!1)};return a&&(document.addEventListener("mousedown",h),document.addEventListener("keydown",f)),()=>{document.removeEventListener("mousedown",h),document.removeEventListener("keydown",f)}},[a]),s.jsxs("div",{className:`relative inline-block text-left ${l}`,ref:u,children:[s.jsx("button",{type:"button","aria-label":"更多操作","aria-expanded":a,"aria-haspopup":"true",onClick:()=>d(!a),className:"p-1.5 rounded-lg text-slate-400 hover:text-slate-200 hover:bg-slate-800 transition-colors border border-transparent hover:border-slate-700/60",title:"更多操作",children:s.jsx($x,{className:"w-4 h-4"})}),a&&s.jsx("div",{className:"absolute right-0 mt-1 w-44 rounded-xl bg-slate-900 border border-slate-800 shadow-2xl py-1 z-30 animate-in fade-in-50 zoom-in-95 duration-100",children:o.map((h,f)=>s.jsxs("button",{type:"button",disabled:h.disabled,onClick:()=>{d(!1),h.onClick()},className:`w-full text-left px-3.5 py-2 text-xs sm:text-sm font-medium flex items-center gap-2.5 transition-colors ${h.danger?"text-rose-400 hover:bg-rose-500/10":"text-slate-300 hover:text-white hover:bg-slate-800"} ${h.disabled?"opacity-40 cursor-not-allowed":""}`,children:[h.icon&&s.jsx("span",{className:"w-4 h-4",children:h.icon}),s.jsx("span",{children:h.label})]},f))})]})},ch=({text:o,label:l="复制",className:a=""})=>{const[d,u]=x.useState(!1),h=async f=>{f.stopPropagation();try{await navigator.clipboard.writeText(o),u(!0),setTimeout(()=>u(!1),1500)}catch{const v=document.createElement("textarea");v.value=o,document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v),u(!0),setTimeout(()=>u(!1),1500)}};return s.jsx("button",{type:"button","aria-label":d?"已复制":l,onClick:h,className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-xs font-medium transition-all ${d?"bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 font-semibold":"bg-slate-800 text-slate-300 hover:text-white hover:bg-slate-700/80 border border-slate-700/60"} ${a}`,children:d?s.jsxs(s.Fragment,{children:[s.jsx(ca,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{children:"已复制"})]}):s.jsxs(s.Fragment,{children:[s.jsx(gi,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:l})]})})},mn=({title:o,value:l,subtitle:a,icon:d,badge:u,className:h=""})=>s.jsxs("div",{className:`p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex flex-col justify-between ${h}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs sm:text-sm font-medium text-slate-400",children:o}),d&&s.jsx("div",{className:"p-2 rounded-xl bg-slate-800/80 text-slate-300",children:d})]}),s.jsxs("div",{className:"mt-3 flex items-baseline justify-between gap-2",children:[s.jsx("div",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-white",children:l}),u]}),a&&s.jsx("p",{className:"mt-1 text-xs text-slate-500",children:a})]}),is=({isOpen:o,onClose:l,title:a,children:d,maxWidth:u="max-w-md",preventClose:h=!1})=>(x.useEffect(()=>{const f=v=>{v.key==="Escape"&&!h&&l()};return o&&document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[o,l,h]),o?s.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-slate-950/80 backdrop-blur-sm animate-in fade-in duration-150",children:s.jsxs("div",{className:`w-full ${u} bg-slate-900 border border-slate-800 rounded-2xl shadow-2xl overflow-hidden animate-in zoom-in-95 duration-150`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800/80",children:[s.jsx("h3",{className:"text-base sm:text-lg font-semibold text-slate-100",children:a}),s.jsx("button",{type:"button","aria-label":"关闭",disabled:h,onClick:()=>{h||l()},className:`p-1 rounded-lg text-slate-400 transition-colors ${h?"opacity-30 cursor-not-allowed":"hover:text-white hover:bg-slate-800"}`,children:s.jsx(Qs,{className:"w-5 h-5"})})]}),s.jsx("div",{className:"p-6",children:d})]})}):null),dh=({isOpen:o,onClose:l,onConfirm:a,title:d,description:u,targetName:h,confirmLabel:f="确认执行",loading:v=!1})=>o?s.jsx(is,{isOpen:o,onClose:l,title:d,maxWidth:"max-w-md",preventClose:v,children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-start gap-3 p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300",children:[s.jsx(bs,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),s.jsxs("div",{className:"text-xs sm:text-sm leading-relaxed",children:[h&&s.jsxs("span",{className:"font-semibold text-rose-200",children:["【",h,"】"]}),u]})]}),s.jsxs("div",{className:"flex items-center justify-end gap-3 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:l,disabled:v,className:"px-4 py-2 rounded-xl text-sm font-medium text-slate-300 hover:bg-slate-800 transition-colors",children:"取消"}),s.jsx("button",{type:"button",onClick:a,disabled:v,className:"px-4 py-2 rounded-xl text-sm font-semibold bg-rose-600 hover:bg-rose-500 text-white shadow-lg shadow-rose-600/20 transition-all disabled:opacity-50",children:v?"处理中...":f})]})]})}):null,Pp=()=>{var Y;const[o,l]=x.useState(null),[a,d]=x.useState([]),[u,h]=x.useState([]),[f,v]=x.useState(null),[p,N]=x.useState([]),[j,k]=x.useState(null),[D,W]=x.useState(!0),V=async()=>{var K,oe,ce;try{const[L,Z,A,he,G,R]=await Promise.all([re.getAdminMetrics(),re.getTenants(),re.getAdminNotifications(6),((K=re.getSystemHealth)==null?void 0:K.call(re).catch(()=>null))??Promise.resolve(null),((oe=re.getAuditLogs)==null?void 0:oe.call(re,6).catch(()=>[]))??Promise.resolve([]),((ce=re.getFleetVersionSummary)==null?void 0:ce.call(re).catch(()=>null))??Promise.resolve(null)]);l(L),d(Z),h(A),he&&v(he),G&&N(G),R&&k(R)}catch(L){console.error("Failed to load admin dashboard data",L)}finally{W(!1)}};x.useEffect(()=>{V();const K=setInterval(V,1e4);return()=>clearInterval(K)},[]);const F=(o==null?void 0:o.totalDevices)??0,C=(f==null?void 0:f.onlineDevices)??(o==null?void 0:o.onlineDevices)??0,O=(o==null?void 0:o.offlineDevices)??Math.max(0,F-C),te=F>0?Math.round(C/F*100):100;return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"全域云控超管总览",description:"实时掌握全网多校区教学终端连通率、异常事件与核心调度通道",action:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsxs(je,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[s.jsx(It,{className:"w-4 h-4 text-amber-400"}),"激活码管理"]}),s.jsxs(je,{to:"/admin/broadcast",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all",children:[s.jsx(Jn,{className:"w-4 h-4"}),"全域应急广播"]})]})}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"p-5 rounded-2xl bg-slate-900 border border-slate-800 shadow-sm flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"大屏在线率"}),s.jsxs("div",{className:"mt-2 text-2xl sm:text-3xl font-bold tracking-tight text-white",children:[te,"%"]}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-mono mt-0.5",children:[C," / ",F," 台在线"]})]}),s.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[s.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[s.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),s.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${te}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),s.jsx(Vs,{className:"w-5 h-5 text-emerald-400 absolute"})]})]}),s.jsx(mn,{title:"离线设备",value:D?"-":O,subtitle:O>0?"建议督促校区排查网络":"全网终端运行畅通",icon:s.jsx(bs,{className:`w-5 h-5 ${O>0?"text-amber-400":"text-slate-400"}`}),badge:O>0?s.jsx(ze,{label:"待恢复",variant:"amber"}):s.jsx(ze,{label:"正常",variant:"emerald"})}),s.jsx(mn,{title:"今日通知 / 点呼",value:D?"-":(o==null?void 0:o.todayNotifications)??0,subtitle:"各校区教师工作台发送",icon:s.jsx(ia,{className:"w-5 h-5 text-blue-400"})}),s.jsx(mn,{title:"入驻学校",value:D?"-":(o==null?void 0:o.totalTenants)??a.length,subtitle:"独立多租户隔离",icon:s.jsx(os,{className:"w-5 h-5 text-indigo-400"})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[s.jsxs("div",{className:"lg:col-span-7 space-y-6",children:[s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[s.jsx("h2",{className:"text-sm font-semibold text-white",children:"核心管控模块"}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[s.jsxs(je,{to:"/admin/tenants",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-blue-500/10 text-blue-400",children:s.jsx(os,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"学校租户"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"校区开通、参数与冻结"})]})]}),s.jsx(Wn,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/users",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-indigo-500/10 text-indigo-400",children:s.jsx(Qn,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"用户中枢"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"多角色账号与密码管控"})]})]}),s.jsx(Wn,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/devices",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-emerald-500/10 text-emerald-400",children:s.jsx(gn,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-blue-400",children:"设备集控"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"心跳、远程指令与清退"})]})]}),s.jsx(Wn,{className:"w-4 h-4 text-slate-500 group-hover:text-blue-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/fleet",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-indigo-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-indigo-500/10 text-indigo-400",children:s.jsx(ua,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-indigo-400",children:"终端版本"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"资产基线、兼容性与版本看板"})]})]}),s.jsx(Wn,{className:"w-4 h-4 text-slate-500 group-hover:text-indigo-400 transition-transform group-hover:translate-x-1"})]}),s.jsxs(je,{to:"/admin/broadcast",className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800 hover:border-rose-500/40 hover:bg-slate-850 transition-all flex items-center justify-between group",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-xl bg-rose-500/10 text-rose-400",children:s.jsx(Jn,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs sm:text-sm font-semibold text-white group-hover:text-rose-400",children:"应急广播"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"全网最高优先极速强插"})]})]}),s.jsx(Wn,{className:"w-4 h-4 text-slate-500 group-hover:text-rose-400 transition-transform group-hover:translate-x-1"})]})]})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(os,{className:"w-4 h-4 text-indigo-400"}),"入驻校区简况"]}),s.jsx(je,{to:"/admin/tenants",className:"text-xs text-blue-400 hover:underline",children:"管理全部校区"})]}),s.jsx("div",{className:"divide-y divide-slate-800/60",children:a.slice(0,4).map(K=>s.jsxs("div",{className:"py-2.5 flex items-center justify-between text-xs",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-slate-200",children:K.name}),s.jsxs("div",{className:"text-[11px] font-mono text-slate-500",children:[K.id," · ",K.classroomCount," 班级"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-slate-400 text-xs font-mono",children:[K.deviceCount," 设备"]}),s.jsx(ze,{label:K.isActive?"正常":"已冻结",variant:K.isActive?"emerald":"rose"})]})]},K.id))})]})]}),s.jsxs("div",{className:"lg:col-span-5 space-y-6",children:[s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(bs,{className:"w-4 h-4 text-amber-400"}),"需要关注"]}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"异常终端优先浮出"})]}),O===0&&((j==null?void 0:j.unsupported)??0)===0&&((j==null?void 0:j.outdated)??0)===0?s.jsxs("div",{className:"py-6 text-center text-xs text-slate-400",children:[s.jsx(tt,{className:"w-6 h-6 text-emerald-400 mx-auto mb-1.5"}),s.jsx("span",{children:"全网各校区终端运行良好,版本全部合规,无异常阻断"})]}):s.jsxs("div",{className:"space-y-2",children:[((j==null?void 0:j.unsupported)??0)>0&&s.jsxs("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:[s.jsxs("div",{className:"font-semibold flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-400 animate-pulse"}),j==null?void 0:j.unsupported," 台终端版本不受支持"]}),s.jsx(je,{to:"/admin/fleet?status=Unsupported",className:"text-xs text-rose-400 hover:underline font-semibold",children:"查看 →"})]}),s.jsx("div",{className:"text-[11px] text-rose-400/80 mt-1",children:"低于最低运行版本基线,建议统筹升级规划。"})]}),((j==null?void 0:j.outdated)??0)>0&&s.jsxs("div",{className:"p-3 rounded-xl bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300",children:[s.jsxs("div",{className:"font-semibold flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400"}),j==null?void 0:j.outdated," 台终端版本落后"]}),s.jsx(je,{to:"/admin/fleet?status=Outdated",className:"text-xs text-amber-400 hover:underline font-semibold",children:"查看 →"})]}),s.jsxs("div",{className:"text-[11px] text-amber-400/80 mt-1",children:["当前可正常收发通知,建议升级至推荐版本 ",((Y=j==null?void 0:j.policy)==null?void 0:Y.recommendedServiceVersion)||"2.5.0","。"]})]}),O>0&&s.jsxs("div",{className:"p-3 rounded-xl bg-slate-950 border border-slate-800 text-xs text-slate-300",children:[s.jsxs("div",{className:"font-semibold flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-amber-400",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-400"}),"检测到 ",O," 台大屏终端离线"]}),s.jsx(je,{to:"/admin/devices?status=offline",className:"text-xs text-blue-400 hover:underline font-semibold",children:"前往排查 →"})]}),s.jsx("div",{className:"text-[11px] text-slate-400 mt-1",children:"未接收到周期心跳包,可能由于关机或校内网络断开导致。"})]})]})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(fa,{className:"w-4 h-4 text-emerald-400"}),"最近安全审计流水"]}),s.jsx(je,{to:"/admin/history",className:"text-xs text-blue-400 hover:underline",children:"完整流水"})]}),s.jsx("div",{className:"space-y-2 text-xs",children:p.length===0?s.jsx("div",{className:"py-6 text-center text-xs text-slate-500",children:"暂无审计记录"}):p.map(K=>s.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80",children:[s.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[s.jsx("span",{className:"font-semibold text-slate-200",children:K.action}),s.jsx("span",{className:"text-slate-500 font-mono",children:new Date(K.occurredAt).toLocaleTimeString()})]}),s.jsxs("div",{className:"text-[11px] text-slate-400 mt-1 truncate",children:[K.actorUsername||"系统"," · ",K.targetType," ",K.targetId]})]},K.id))})]})]})]})]})},Tp=()=>{const o=bn(),[l,a]=x.useState([]),[d,u]=x.useState(!0),[h,f]=x.useState(""),[v,p]=x.useState("all"),[N,j]=x.useState(null),[k,D]=x.useState([]),[W,V]=x.useState(!1),[F,C]=x.useState(null),[O,te]=x.useState(""),[Y,K]=x.useState(""),[oe,ce]=x.useState(!1),[L,Z]=x.useState(null),[A,he]=x.useState(!1),[G,R]=x.useState(null),[T,se]=x.useState(null),[Se,U]=x.useState(!1),[ve,S]=x.useState(null),[ee,I]=x.useState(!1),b=async X=>{R(X),se(null),S(null),U(!0);try{const ue=await re.getDeviceSupportBundles(X.deviceId,1);if(ue.length>0){const Ve=ue[0];(Ve.status==="PendingDispatch"||Ve.status==="Collecting"||Ve.status==="Available")&&se(Ve)}}catch(ue){console.warn("Failed to load bundle history",ue)}finally{U(!1)}},M=async()=>{if(G){U(!0),S(null);try{const X=`req_${Date.now()}_${Math.random().toString(36).substring(2,8)}`,ue=await re.createSupportBundle(G.deviceId,X);se({supportBundleId:ue.supportBundleId,deviceId:ue.deviceId,tenantId:G.tenantId,status:ue.status,createdAtUtc:ue.createdAtUtc,downloadAvailable:!1})}catch(X){S(X.message||"发起生成诊断包失败")}finally{U(!1)}}},ye=async()=>{if(T){I(!0);try{const X=`classnotify-support-${T.deviceId}.zip`;await re.downloadSupportBundle(T.supportBundleId,X)}catch(X){S(X.message||"下载诊断包失败")}finally{I(!1)}}};x.useEffect(()=>{if(!T||!G||T.status!=="PendingDispatch"&&T.status!=="Collecting")return;const X=setInterval(async()=>{try{const ue=await re.getSupportBundle(T.supportBundleId);se(ue)}catch(ue){console.warn("Failed to poll bundle status",ue)}},2e3);return()=>clearInterval(X)},[T==null?void 0:T.status,T==null?void 0:T.supportBundleId,G]);const Q=X=>{switch(X){case"CollectionFailure":return"设备采集失败";case"BundleTooLarge":return"诊断包体积超过上限 (5 MiB)";case"InvalidZip":case"InvalidManifest":case"UnexpectedEntry":return"诊断包格式验证未通过";case"SupportBundleFileMissing":return"诊断包文件在存储中缺失";default:return"诊断包生成异常,请重试"}},me=X=>{if(!X)return"24 小时";const ue=new Date(X).getTime()-Date.now();if(ue<=0)return"已过期";const Ve=Math.floor(ue/(1e3*60*60)),Ue=Math.floor(ue%(1e3*60*60)/(1e3*60));return`${Ve}小时${Ue}分钟`},be=async()=>{try{const X=await re.getAllDevices();a(X)}catch(X){console.error("Failed to load devices",X)}finally{u(!1)}};x.useEffect(()=>{be();const X=setInterval(be,5e3);return()=>clearInterval(X)},[]);const Ie=async(X,ue,Ve)=>{j(null);try{const Ue=await re.sendDeviceCommand(X,ue,Ve);j({deviceId:X,message:Ue.message,success:!0}),be()}catch(Ue){j({deviceId:X,message:Ue.message||"远程指令下发失败",success:!1})}},Ce=async X=>{if(k.length===0)return;if(V(!0),X==="self_check")try{const Ue=`req_${Date.now()}_${Math.random().toString(36).substring(2,8)}`,Tt=await re.createSelfCheckBatch(Ue,k);D([]),V(!1),o(`/admin/self-check-batches/${Tt.batchId}`);return}catch(Ue){j({deviceId:`已选 ${k.length} 台`,message:Ue.message||"发起批量自检失败",success:!1}),V(!1);return}let ue=0;for(const Ue of k)try{await re.sendDeviceCommand(Ue,X),ue++}catch{}j({deviceId:`已选 ${k.length} 台`,message:`批量刷新配置指令已成功下发至 ${ue} 台大屏终端`,success:!0}),D([]),V(!1),be()},Re=X=>{D(ue=>ue.includes(X)?ue.filter(Ve=>Ve!==X):[...ue,X])},Ye=X=>{k.length===X.length?D([]):D(X.map(ue=>ue.deviceId))},es=X=>{C(X),te(X.hostname||""),K(X.classroomId||"")},Gs=async X=>{if(X.preventDefault(),!!F){ce(!0);try{await re.updateDevice(F.deviceId,{hostname:O.trim()||void 0,classroomId:Y.trim()||void 0}),j({deviceId:F.deviceId,message:"设备信息更新成功",success:!0}),C(null),be()}catch(ue){j({deviceId:F.deviceId,message:ue.message||"更新设备失败",success:!1})}finally{ce(!1)}}},ds=async()=>{if(L){he(!0);try{await re.decommissionDevice(L.deviceId),j({deviceId:L.deviceId,message:"设备已成功清退并注销",success:!0}),Z(null),be()}catch(X){j({deviceId:L.deviceId,message:X.message||"清退设备失败",success:!1})}finally{he(!1)}}},ws=X=>{if(!X)return"从无心跳";const ue=Math.floor((Date.now()-new Date(X).getTime())/1e3);return ue<10?"刚刚":ue<60?`${ue} 秒前`:ue<3600?`${Math.floor(ue/60)} 分钟前`:`${Math.floor(ue/3600)} 小时前`},js=[{id:"all",label:"全部设备",count:l.length},{id:"online",label:"在线正常",count:l.filter(X=>X.isOnline).length},{id:"offline",label:"离线需关注",count:l.filter(X=>!X.isOnline).length}],Pt=l.filter(X=>{if(v==="online"&&!X.isOnline||v==="offline"&&X.isOnline)return!1;if(h.trim()){const ue=h.toLowerCase(),Ve=X.tenantName.toLowerCase().includes(ue),Ue=X.classroomName.toLowerCase().includes(ue),Tt=X.deviceId.toLowerCase().includes(ue),Ns=X.hostname&&X.hostname.toLowerCase().includes(ue);if(!Ve&&!Ue&&!Tt&&!Ns)return!1}return!0});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"全网设备集控中心",description:"实时监控教室终端健康心跳与服务状态,支持批量安全自检/刷新配置、单机秒级调控与安全清退",action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{u(!0),be()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(ct,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),"刷新"]}),s.jsxs(je,{to:"/admin/self-check-batches",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(Vs,{className:"w-3.5 h-3.5 text-indigo-400"}),"自检批次看板"]}),s.jsxs(je,{to:"/admin/codes?openGenerate=true",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(It,{className:"w-3.5 h-3.5"}),"生成激活码"]})]})}),N&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between text-xs transition-all ${N.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[N.success?s.jsx(tt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):s.jsx(Zt,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsxs("span",{children:["[",N.deviceId,"] ",N.message]})]}),s.jsx("button",{onClick:()=>j(null),className:"text-xs opacity-70 hover:opacity-100 font-medium",children:"关闭"})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsx(ga,{tabs:js,activeId:v,onChange:X=>{p(X),D([])}}),s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(Qr,{value:h,onChange:f,placeholder:"搜索学校、班级、设备编号..."})})]}),k.length>0&&s.jsxs("div",{className:"p-3 bg-blue-950/60 border border-blue-500/40 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-3 text-xs shadow-lg animate-in fade-in duration-100",children:[s.jsxs("div",{className:"flex items-center gap-2 text-blue-200",children:[s.jsx(tt,{className:"w-4 h-4 text-blue-400 shrink-0"}),s.jsxs("span",{children:["已勾选 ",s.jsx("strong",{children:k.length})," 台教室大屏终端"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{type:"button",disabled:W,onClick:()=>Ce("self_check"),className:"px-3 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-medium flex items-center gap-1.5 transition-colors disabled:opacity-50",children:[s.jsx(Vs,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"批量运行自检"})]}),s.jsxs("button",{type:"button",disabled:W,onClick:()=>Ce("refresh_config"),className:"px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 hover:text-white font-medium border border-slate-700 flex items-center gap-1.5 transition-colors disabled:opacity-50",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"批量刷新配置"})]}),s.jsx("button",{type:"button",disabled:W,onClick:()=>D([]),className:"px-2.5 py-1.5 rounded-xl text-slate-400 hover:text-white transition-colors",children:"取消"})]})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-[11px] uppercase tracking-wider text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-3 w-10 text-center",children:s.jsx("input",{type:"checkbox",checked:Pt.length>0&&k.length===Pt.length,onChange:()=>Ye(Pt),className:"rounded bg-slate-950 border-slate-700 text-blue-600 focus:ring-0 cursor-pointer",title:"全选当前列表"})}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"学校 / 班级"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"设备编号 / 主机名"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"运行状态"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"心跳与 IP"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold",children:"版本"}),s.jsx("th",{className:"py-3.5 px-4 font-semibold text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:Pt.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:7,className:"text-center py-12 text-xs text-slate-500",children:d?"正在同步设备状态...":"暂无匹配的设备"})}):Pt.map(X=>{const ue=k.includes(X.deviceId);return s.jsxs("tr",{className:`hover:bg-slate-800/25 transition-colors ${ue?"bg-blue-600/10":""}`,children:[s.jsx("td",{className:"py-3.5 px-3 text-center",children:s.jsx("input",{type:"checkbox",checked:ue,onChange:()=>Re(X.deviceId),className:"rounded bg-slate-950 border-slate-700 text-blue-600 focus:ring-0 cursor-pointer"})}),s.jsxs("td",{className:"py-3.5 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:X.classroomName}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:X.tenantName})]}),s.jsxs("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:[s.jsx("div",{children:X.deviceId}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5 flex items-center gap-1",children:[s.jsx(gn,{className:"w-3 h-3 text-slate-500"}),s.jsx("span",{children:X.hostname||"Classroom-PC"})]})]}),s.jsx("td",{className:"py-3.5 px-4",children:s.jsx(ze,{label:X.isOnline?"在线":"离线",variant:X.isOnline?"emerald":"slate"})}),s.jsxs("td",{className:"py-3.5 px-4 text-xs text-slate-300",children:[s.jsx("div",{children:ws(X.lastHeartbeat)}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5 font-mono",children:X.remoteIp||"127.0.0.1"})]}),s.jsx("td",{className:"py-3.5 px-4 text-xs",children:s.jsxs("span",{className:"px-2 py-0.5 rounded bg-slate-800 text-slate-300 font-mono text-[11px]",children:["v",X.clientVersion||"2.1.0"]})}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:s.jsx(Ii,{items:[{label:"触发自检",icon:s.jsx(Vs,{className:"w-3.5 h-3.5 text-indigo-400"}),onClick:()=>Ie(X.deviceId,"self_check")},{label:"生成诊断包",icon:s.jsx(Au,{className:"w-3.5 h-3.5 text-blue-400"}),onClick:()=>b(X)},{label:"刷新配置",icon:s.jsx(ct,{className:"w-3.5 h-3.5 text-sky-400"}),onClick:()=>Ie(X.deviceId,"refresh_config")},{label:"重启客户端",icon:s.jsx(cp,{className:"w-3.5 h-3.5 text-amber-400"}),onClick:()=>Ie(X.deviceId,"restart_client")},{label:"编辑信息",icon:s.jsx(lh,{className:"w-3.5 h-3.5 text-slate-300"}),onClick:()=>es(X)},{label:"清退设备",icon:s.jsx(Ei,{className:"w-3.5 h-3.5 text-rose-400"}),onClick:()=>Z(X),danger:!0}]})})]},X.deviceId)})})]})})}),F&&s.jsx(is,{isOpen:!0,onClose:()=>C(null),title:`编辑设备: ${F.deviceId}`,preventClose:oe,children:s.jsxs("form",{onSubmit:Gs,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"计算机主机名 (Hostname)"}),s.jsx("input",{type:"text",value:O,onChange:X=>te(X.target.value),placeholder:"例如:ROOM-801-PC",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属教室编号 (ClassroomId)"}),s.jsx("input",{type:"text",value:Y,onChange:X=>K(X.target.value),placeholder:"例如:class-801",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 font-mono"})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",disabled:oe,onClick:()=>C(null),className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:oe,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all disabled:opacity-50",children:oe?"保存中...":"保存更改"})]})]})}),s.jsx(dh,{isOpen:!!L,onClose:()=>Z(null),onConfirm:ds,title:"确认清退大屏设备",targetName:L?`${L.classroomName} (${L.deviceId})`:void 0,description:"清退后该大屏终端将注销授权,无法接收通知与指令,需重新生成激活码方可绑定。",confirmLabel:"确认注销清退",loading:A}),G&&s.jsx(is,{isOpen:!0,onClose:()=>{(T==null?void 0:T.status)!=="PendingDispatch"&&(T==null?void 0:T.status)!=="Collecting"?(R(null),se(null)):R(null)},title:`设备技术诊断包: ${G.classroomName} (${G.deviceId})`,children:s.jsxs("div",{className:"space-y-4 text-xs",children:[ve&&s.jsxs("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300 flex items-center gap-2",children:[s.jsx(Zt,{className:"w-4 h-4 shrink-0 text-rose-400"}),s.jsx("span",{children:ve})]}),!T&&s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-slate-300",children:"即将向该终端下发诊断采集指令,收集系统关键指标用于排查故障。"}),s.jsxs("div",{className:"p-3 bg-slate-950/60 border border-slate-800 rounded-xl space-y-1.5 text-slate-300",children:[s.jsx("div",{className:"font-semibold text-slate-200 mb-1",children:"将收集:"}),s.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[s.jsx(tt,{className:"w-3.5 h-3.5 shrink-0"}),s.jsx("span",{className:"text-slate-300",children:"版本与运行状态"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[s.jsx(tt,{className:"w-3.5 h-3.5 shrink-0"}),s.jsx("span",{className:"text-slate-300",children:"最近一次自检结果"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[s.jsx(tt,{className:"w-3.5 h-3.5 shrink-0"}),s.jsx("span",{className:"text-slate-300",children:"网络 / SignalR / IPC / WPF / TTS 状态"})]}),s.jsxs("div",{className:"flex items-center gap-2 text-emerald-400",children:[s.jsx(tt,{className:"w-3.5 h-3.5 shrink-0"}),s.jsx("span",{className:"text-slate-300",children:"安全诊断事件"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",disabled:Se,onClick:()=>R(null),className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"取消"}),s.jsxs("button",{type:"button",disabled:Se,onClick:M,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all flex items-center gap-1.5 disabled:opacity-50",children:[Se?s.jsx(Et,{className:"w-3.5 h-3.5 animate-spin"}):s.jsx(Au,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"生成诊断包"})]})]})]}),(T==null?void 0:T.status)==="PendingDispatch"&&s.jsxs("div",{className:"text-center py-8 space-y-3",children:[s.jsx(Et,{className:"w-8 h-8 text-blue-400 animate-spin mx-auto"}),s.jsx("div",{className:"text-sm font-medium text-white",children:"正在请求设备…"}),s.jsx("div",{className:"text-slate-400 text-xs",children:"正在通过安全专线唤醒大屏终端,等待响应中"})]}),(T==null?void 0:T.status)==="Collecting"&&s.jsxs("div",{className:"text-center py-8 space-y-3",children:[s.jsx(Et,{className:"w-8 h-8 text-indigo-400 animate-spin mx-auto"}),s.jsx("div",{className:"text-sm font-medium text-white",children:"正在生成诊断包…"}),s.jsx("div",{className:"text-slate-400 text-xs",children:"终端正在打包系统环境、运行快照与自检指标 (每 2 秒同步)"})]}),(T==null?void 0:T.status)==="Available"&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"p-3.5 rounded-xl bg-emerald-500/10 border border-emerald-500/20 text-emerald-300 flex items-start gap-2.5",children:[s.jsx(tt,{className:"w-5 h-5 text-emerald-400 shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:"诊断包已生成"}),s.jsx("div",{className:"text-xs text-emerald-400/80 mt-0.5",children:"安全校验与哈希完整性校验已全部通过"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 p-3 bg-slate-950/60 border border-slate-800 rounded-xl",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-400 block text-[11px]",children:"文件体积"}),s.jsxs("span",{className:"text-white font-mono font-medium mt-0.5 block",children:[((T.sizeBytes||0)/1024).toFixed(1)," KB"]})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-400 block text-[11px]",children:"剩余有效期"}),s.jsx("span",{className:"text-amber-400 font-medium mt-0.5 block",children:me(T.expiresAtUtc)})]}),T.sha256&&s.jsxs("div",{className:"col-span-2 pt-1 border-t border-slate-800/60",children:[s.jsx("span",{className:"text-slate-400 block text-[11px]",children:"SHA256 校验和"}),s.jsxs("span",{className:"text-slate-300 font-mono text-[11px] mt-0.5 block truncate",children:[T.sha256.substring(0,16),"..."]})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>{R(null),se(null)},className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"关闭"}),s.jsxs("button",{type:"button",disabled:ee,onClick:ye,className:"px-4 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium shadow-md shadow-emerald-600/20 transition-all flex items-center gap-1.5 disabled:opacity-50",children:[ee?s.jsx(Et,{className:"w-3.5 h-3.5 animate-spin"}):s.jsx(Rx,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"下载诊断包"})]})]})]}),(T==null?void 0:T.status)==="Failed"&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300 flex items-start gap-2.5",children:[s.jsx(Zt,{className:"w-5 h-5 text-rose-400 shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:"诊断包生成失败"}),s.jsxs("div",{className:"text-xs text-rose-400/80 mt-0.5",children:["原因:",Q(T.errorCode)]})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>{R(null),se(null)},className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"关闭"}),s.jsxs("button",{type:"button",onClick:M,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all flex items-center gap-1.5",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"重新生成"})]})]})]}),(T==null?void 0:T.status)==="TimedOut"&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"p-3.5 rounded-xl bg-amber-500/10 border border-amber-500/20 text-amber-300 flex items-start gap-2.5",children:[s.jsx(Js,{className:"w-5 h-5 text-amber-400 shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:"生成超时"}),s.jsx("div",{className:"text-xs text-amber-400/80 mt-0.5",children:"设备未能在规定时间内完成诊断包生成。"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>{R(null),se(null)},className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"关闭"}),s.jsxs("button",{type:"button",onClick:M,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all flex items-center gap-1.5",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"重新生成"})]})]})]}),(T==null?void 0:T.status)==="Expired"&&s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"p-3.5 rounded-xl bg-slate-800 border border-slate-700 text-slate-300 flex items-start gap-2.5",children:[s.jsx(Js,{className:"w-5 h-5 text-slate-400 shrink-0 mt-0.5"}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:"诊断包已过期"}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:"为了节省服务器空间,诊断文件已自动删除。"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>{R(null),se(null)},className:"px-4 py-2 rounded-xl text-slate-400 hover:text-white text-xs font-medium transition-colors",children:"关闭"}),s.jsxs("button",{type:"button",onClick:M,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all flex items-center gap-1.5",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"重新生成"})]})]})]})]})})]})},Rp=()=>{const[o]=ki(),[l,a]=x.useState([]),[d,u]=x.useState([]),[h,f]=x.useState(!0),[v,p]=x.useState(null),[N,j]=x.useState(""),[k,D]=x.useState(""),[W,V]=x.useState(!1),[F,C]=x.useState(""),[O,te]=x.useState([]),[Y,K]=x.useState(!1),[oe,ce]=x.useState(""),[L,Z]=x.useState(!1),[A,he]=x.useState(""),[G,R]=x.useState(!1),[T,se]=x.useState(null),Se=async()=>{try{const[I,b]=await Promise.all([re.getAdminActivationCodes(),re.getTenants()]);a(I),u(b),b.length>0&&!F&&C(b[0].id)}catch(I){console.error("Failed to load activation codes",I)}finally{f(!1)}};x.useEffect(()=>{Se()},[]),x.useEffect(()=>{const I=o.get("tenantId"),b=o.get("openGenerate")==="true";I&&(D(I),C(I),b&&V(!0))},[o]),x.useEffect(()=>{F&&(K(!0),re.getAdminClasses(F).then(I=>{te(I),I.length>0?(ce(I[0].id),Z(!1)):(ce(""),Z(!0))}).catch(I=>{console.warn("Could not load classes for tenant:",F,I),te([]),Z(!0)}).finally(()=>K(!1)))},[F]);const U=I=>{navigator.clipboard.writeText(I),p(I),setTimeout(()=>p(null),2e3)},ve=async I=>{I.preventDefault();const b=L?A.trim():oe.trim();if(!F||!b){alert("请选择学校及目标班级");return}R(!0);try{const M=await re.generateAdminCode(F,b),ye=d.find(me=>me.id===F),Q=O.find(me=>me.id===b);se({code:M.code,schoolName:(ye==null?void 0:ye.name)||F,className:(Q==null?void 0:Q.displayName)||b}),V(!1),he(""),Se()}catch(M){alert(M.message||"生成激活码失败")}finally{R(!1)}},S=async I=>{if(window.confirm(`确定要废弃/删除激活码 [${I}] 吗?废弃后将无法用于设备初始化绑定。`))try{await re.deleteActivationCode(I),Se()}catch(b){alert(b.message||"删除激活码失败")}},ee=l.filter(I=>{const b=!k||I.tenantId===k,M=I.code.toLowerCase().includes(N.toLowerCase())||I.classroomName.toLowerCase().includes(N.toLowerCase())||I.tenantName.toLowerCase().includes(N.toLowerCase());return b&&M});return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-xl bg-amber-500/10 text-amber-400 flex items-center justify-center border border-amber-500/20",children:s.jsx(It,{className:"w-4 h-4"})}),s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网设备激活码大盘"})]}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{f(!0),Se()},className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(ct,{className:`w-3.5 h-3.5 ${h?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>{se(null),V(!0)},className:"flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold transition-all shadow-lg shadow-amber-500/20 active:scale-95",children:[s.jsx(vn,{className:"w-4 h-4"}),"生成新激活码"]})]})]}),T&&s.jsxs("div",{className:"glass-panel p-5 border-emerald-500/40 bg-emerald-950/20 rounded-2xl flex flex-col sm:flex-row sm:items-center justify-between gap-4 animate-in fade-in slide-in-from-top-4 duration-300",children:[s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/20 text-emerald-400 flex items-center justify-center shrink-0 border border-emerald-500/30",children:s.jsx(oh,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-semibold text-emerald-300",children:"激活码生成成功!"}),s.jsxs("div",{className:"text-xs text-slate-300 mt-0.5",children:["归属:",s.jsx("span",{className:"font-medium text-white",children:T.schoolName})," / ",s.jsx("span",{className:"font-medium text-white",children:T.className}),"(有效期 7 天,一次性硬件绑定)"]})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"px-4 py-1.5 rounded-xl bg-slate-900 border border-emerald-500/50 font-mono text-xl font-bold text-emerald-400 tracking-wider",children:T.code}),s.jsx("button",{onClick:()=>U(T.code),className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-medium transition-colors",children:v===T.code?s.jsxs(s.Fragment,{children:[s.jsx(ca,{className:"w-3.5 h-3.5"}),"已复制"]}):s.jsxs(s.Fragment,{children:[s.jsx(gi,{className:"w-3.5 h-3.5"}),"一键复制"]})})]})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[s.jsx(Yn,{className:"w-4 h-4 text-slate-400 shrink-0"}),s.jsx("input",{type:"text",value:N,onChange:I=>j(I.target.value),placeholder:"搜索激活码、班级或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(os,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:k,onChange:I=>D(I.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsxs("option",{value:"",children:["全部学校 (",d.length,")"]}),d.map(I=>s.jsxs("option",{value:I.id,children:[I.name," (",I.id,")"]},I.id))]})]}),s.jsxs("div",{className:"ml-auto text-xs text-slate-400",children:["共 ",s.jsx("span",{className:"text-white font-medium",children:ee.length})," 个激活码"]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"绑定学校 / 班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"使用状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"激活设备"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"有效期限"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:ee.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-12 text-slate-400",children:s.jsxs("div",{className:"flex flex-col items-center justify-center gap-2",children:[s.jsx(It,{className:"w-8 h-8 text-slate-600"}),s.jsx("div",{className:"text-sm font-medium",children:h?"正在读取激活码...":"暂无匹配的激活码"}),s.jsx("div",{className:"text-xs text-slate-500",children:"点击右上角“生成新激活码”即可为任意学校教室开通绑定码"}),s.jsxs("button",{onClick:()=>V(!0),className:"mt-2 flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-medium",children:[s.jsx(vn,{className:"w-3.5 h-3.5"}),"立即生成激活码"]})]})})}):ee.map(I=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4 font-mono font-bold text-indigo-400 text-base",children:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{children:I.code}),s.jsx("button",{onClick:()=>U(I.code),className:"p-1 rounded text-slate-500 hover:text-white transition-colors",title:"复制激活码",children:v===I.code?s.jsx(ca,{className:"w-3.5 h-3.5 text-emerald-400"}):s.jsx(gi,{className:"w-3.5 h-3.5"})})]})}),s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-medium text-white",children:I.classroomName}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:I.tenantName})]}),s.jsx("td",{className:"py-4 px-4",children:I.isUsed?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",children:[s.jsx(tt,{className:"w-3 h-3"}),"已激活绑定"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/20",children:[s.jsx(Js,{className:"w-3 h-3"}),"等待激活"]})}),s.jsx("td",{className:"py-4 px-4 text-xs font-mono text-slate-300",children:I.usedByDeviceId?s.jsx("span",{className:"text-slate-200",children:I.usedByDeviceId}):s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-400",children:[new Date(I.expiresAt).toLocaleDateString()," ",new Date(I.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>U(I.code),className:"px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:v===I.code?"已复制":"复制"}),s.jsx("button",{onClick:()=>S(I.code),className:"p-1 rounded text-slate-500 hover:text-rose-400 transition-colors",title:"废弃/删除此激活码",children:s.jsx(Ei,{className:"w-3.5 h-3.5"})})]})})]},I.code))})]})})}),W&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel max-w-md w-full p-6 border-slate-800 shadow-2xl rounded-2xl animate-in zoom-in-95 duration-200",children:[s.jsxs("h2",{className:"text-lg font-bold text-white mb-4 flex items-center gap-2",children:[s.jsx(It,{className:"w-5 h-5 text-amber-400"}),"生成班级设备激活码"]}),s.jsxs("form",{onSubmit:ve,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"所属学校 / 租户"}),s.jsx("select",{value:F,onChange:I=>C(I.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:d.map(I=>s.jsxs("option",{value:I.id,children:[I.name," (",I.id,") ",I.isActive?"":"[已冻结]"]},I.id))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-xs font-medium text-slate-300",children:"目标班级"}),s.jsx("button",{type:"button",onClick:()=>Z(!L),className:"text-[11px] text-amber-400 hover:underline",children:L?"从班级列表选择":"手动输入班级ID"})]}),Y?s.jsxs("div",{className:"text-xs text-slate-400 py-2.5 px-3 bg-slate-900 rounded-xl border border-slate-800 flex items-center gap-2",children:[s.jsx(ct,{className:"w-3.5 h-3.5 animate-spin"}),"正在读取该校班级列表..."]}):L?s.jsx("input",{type:"text",value:A,onChange:I=>he(I.target.value),placeholder:"输入班级编号,如 cls_801",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0}):O.length>0?s.jsx("select",{value:oe,onChange:I=>ce(I.target.value),className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0,children:O.map(I=>s.jsxs("option",{value:I.id,children:[I.displayName," (",I.id,")"]},I.id))}):s.jsxs("div",{className:"space-y-2",children:[s.jsxs("div",{className:"text-xs text-amber-400/90 flex items-center gap-1.5",children:[s.jsx(Zt,{className:"w-3.5 h-3.5 shrink-0"}),"该校暂无预设班级,请手动输入班级代码:"]}),s.jsx("input",{type:"text",value:A,onChange:I=>he(I.target.value),placeholder:"如 cls_801 或 cls_new",className:"w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none",required:!0})]})]}),s.jsxs("div",{className:"p-3 bg-slate-900/60 rounded-xl border border-slate-800 text-xs text-slate-400 space-y-1",children:[s.jsx("div",{className:"text-slate-300 font-medium",children:"💡 使用说明:"}),s.jsx("div",{children:"1. 激活码生成后有效期为 7 天;"}),s.jsx("div",{children:"2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>V(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium",children:"取消"}),s.jsx("button",{type:"submit",disabled:G,className:"px-4 py-2 rounded-xl bg-gradient-to-r from-amber-500 to-indigo-600 hover:from-amber-400 hover:to-indigo-500 text-white text-xs font-semibold disabled:opacity-50 transition-all shadow-md shadow-amber-500/20",children:G?"生成中...":"立即生成激活码"})]})]})]})})]})},Lp=()=>{const[o,l]=x.useState([]),[a,d]=x.useState(!0),[u,h]=x.useState(""),f=async()=>{try{const p=await re.getAdminNotifications(100);l(p)}catch(p){console.error("Failed to load notifications",p)}finally{d(!1)}};x.useEffect(()=>{f();const p=setInterval(f,8e3);return()=>clearInterval(p)},[]);const v=o.filter(p=>p.className.toLowerCase().includes(u.toLowerCase())||p.senderName.toLowerCase().includes(u.toLowerCase())||p.message.toLowerCase().includes(u.toLowerCase())||p.id.toLowerCase().includes(u.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"全网呼叫历史与回执审计"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"追踪全网每条通知从下发、教室大屏接收、到学生点击确认的全流程时间戳与 ACK 回执"})]}),s.jsxs("button",{onClick:()=>{d(!0),f()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700 self-start sm:self-auto",children:[s.jsx(ct,{className:`w-3.5 h-3.5 ${a?"animate-spin":""}`}),"刷新审计"]})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(Yn,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:u,onChange:p=>h(p.target.value),placeholder:"搜索消息内容、班级或教师姓名...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"目标班级"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"通知正文"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"发起老师"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"下发时间"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"回执状态 (ACK)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"确认时间"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:v.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:a?"正在加载审计数据...":"暂无呼叫历史记录"})}):v.map(p=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:p.className}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:p.classId})]}),s.jsxs("td",{className:"py-4 px-4 text-slate-200 max-w-md",children:[s.jsx("div",{className:"font-medium text-sm",children:p.message}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500 mt-0.5",children:p.id})]}),s.jsx("td",{className:"py-4 px-4 text-slate-300 text-xs",children:p.senderName}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(p.createdAt).toLocaleTimeString()}),s.jsxs("td",{className:"py-4 px-4",children:[p.status==="Acknowledged"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400 border border-emerald-500/30",children:[s.jsx(tt,{className:"w-3.5 h-3.5"}),"学生已点击确认"]}),p.status==="Delivered"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-sky-500/10 text-sky-400 border border-sky-500/30",children:[s.jsx(ma,{className:"w-3.5 h-3.5"}),"已送达教室大屏"]}),p.status==="Sent"&&s.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-amber-500/10 text-amber-400 border border-amber-500/30",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),"云端下发中"]}),p.status==="Timeout"&&s.jsx("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-slate-800 text-slate-400 border border-slate-700",children:"超时自动关闭"})]}),s.jsx("td",{className:"py-4 px-4 text-right text-xs text-slate-400",children:p.confirmedAt?s.jsx("span",{className:"text-emerald-400 font-mono",children:new Date(p.confirmedAt).toLocaleTimeString()}):s.jsx("span",{className:"text-slate-600",children:"-"})})]},p.id))})]})})})]})},$p=()=>{const[o,l]=x.useState([]),[a,d]=x.useState(!0),[u,h]=x.useState(""),[f,v]=x.useState(null),[p,N]=x.useState(!1),[j,k]=x.useState({id:"",name:""}),[D,W]=x.useState(!1),[V,F]=x.useState(null),[C,O]=x.useState({name:"",isActive:!0}),[te,Y]=x.useState(!1),K=async()=>{try{const A=await re.getTenants();l(A)}catch(A){console.error("Failed to load tenants",A)}finally{d(!1)}};x.useEffect(()=>{K()},[]);const oe=async A=>{if(A.preventDefault(),!(!j.id.trim()||!j.name.trim())){W(!0);try{await re.createTenant({id:j.id.trim(),name:j.name.trim()}),v({text:`学校 [${j.name}] 创建成功!`,success:!0}),N(!1),k({id:"",name:""}),K()}catch(he){v({text:he.message||"创建学校失败",success:!1})}finally{W(!1)}}},ce=A=>{F(A),O({name:A.name,isActive:A.isActive})},L=async A=>{if(A.preventDefault(),!(!V||!C.name.trim())){Y(!0);try{await re.updateTenant(V.id,{name:C.name.trim(),isActive:C.isActive}),v({text:`学校 [${C.name}] 配置已更新`,success:!0}),F(null),K()}catch(he){v({text:he.message||"更新学校配置失败",success:!1})}finally{Y(!1)}}},Z=o.filter(A=>A.name.toLowerCase().includes(u.toLowerCase())||A.id.toLowerCase().includes(u.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"学校租户生命周期管理"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"统筹多校区租户实体,支持新校区入驻配置、基础信息变更与服务启停冻结"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{d(!0),K()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(ct,{className:`w-3.5 h-3.5 ${a?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>N(!0),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[s.jsx(vn,{className:"w-4 h-4"}),"新建学校"]})]})]}),f&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${f.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.success?s.jsx(tt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(Zt,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:f.text})]}),s.jsx("button",{onClick:()=>v(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex items-center gap-3",children:[s.jsx(Yn,{className:"w-4 h-4 text-slate-400"}),s.jsx("input",{type:"text",value:u,onChange:A=>h(A.target.value),placeholder:"按学校标识代码 (ID) 或名称搜索...",className:"bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none w-full"}),u&&s.jsx("button",{onClick:()=>h(""),className:"text-xs text-slate-400 hover:text-white",children:"清空"})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"学校名称 / 标识码"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"班级总数"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"终端大屏 (在线/总计)"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"服务状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"接入时间"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"管理操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:Z.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:a?"正在读取租户列表...":"暂无匹配的学校租户"})}):Z.map(A=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsx("td",{className:"py-4 px-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center text-indigo-400 font-bold",children:s.jsx(os,{className:"w-4 h-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-white",children:A.name}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-0.5",children:A.id})]})]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-300",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-800 border border-slate-700",children:[s.jsx(Vr,{className:"w-3.5 h-3.5 text-indigo-400"}),s.jsxs("span",{children:[A.classroomCount," 个班级"]})]})}),s.jsx("td",{className:"py-4 px-4 text-xs",children:s.jsxs("div",{className:"inline-flex items-center gap-2",children:[s.jsxs("span",{className:"font-semibold text-emerald-400",children:[A.onlineCount," 在线"]}),s.jsx("span",{className:"text-slate-500",children:"/"}),s.jsxs("span",{className:"text-slate-400",children:[A.deviceCount," 总屏"]})]})}),s.jsx("td",{className:"py-4 px-4",children:A.isActive?s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 border border-emerald-500/30 text-emerald-400",children:[s.jsx(tt,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"正常运营"})]}):s.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[s.jsx(da,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"已停用冻结"})]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:new Date(A.createdAt).toLocaleDateString()}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsxs(je,{to:`/admin/codes?tenantId=${A.id}&openGenerate=true`,className:"px-2.5 py-1.5 rounded-lg bg-amber-500/10 hover:bg-amber-500/20 border border-amber-500/30 text-amber-300 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"为此学校生成班级设备激活码",children:[s.jsx(It,{className:"w-3.5 h-3.5"}),"生成激活码"]}),s.jsxs("button",{onClick:()=>ce(A),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",children:[s.jsx(lh,{className:"w-3 h-3"}),"编辑配置"]})]})})]},A.id))})]})})}),p&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"接入新学校租户"}),s.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校唯一标识代码 (Tenant ID)"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: t_beijing_no8 或 bj_highschool",value:j.id,onChange:A=>k({...j,id:A.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"只能包含小写字母、数字和下划线,作为多租户隔离主键不可篡改"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称 (Display Name)"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: 北京市第四中学",value:j.name,onChange:A=>k({...j,name:A.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>N(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:D,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:D?"正在创建...":"确认接入"})]})]})]})}),V&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsxs("h2",{className:"text-lg font-bold text-white",children:["编辑学校配置: ",V.id]}),s.jsxs("form",{onSubmit:L,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"学校全称"}),s.jsx("input",{type:"text",required:!0,value:C.name,onChange:A=>O({...C,name:A.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"运营状态"}),s.jsxs("div",{className:"flex items-center gap-4 mt-2",children:[s.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"radio",name:"isActive",checked:C.isActive===!0,onChange:()=>O({...C,isActive:!0}),className:"text-indigo-600 focus:ring-indigo-500"}),s.jsx("span",{className:"text-sm text-emerald-400",children:"正常运营"})]}),s.jsxs("label",{className:"inline-flex items-center gap-2 cursor-pointer",children:[s.jsx("input",{type:"radio",name:"isActive",checked:C.isActive===!1,onChange:()=>O({...C,isActive:!1}),className:"text-indigo-600 focus:ring-indigo-500"}),s.jsx("span",{className:"text-sm text-rose-400",children:"停用冻结 (拒绝该校任何指令)"})]})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>F(null),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:te,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:te?"保存中...":"保存更改"})]})]})]})})]})},Dp=()=>{const[o,l]=x.useState([]),[a,d]=x.useState([]),[u,h]=x.useState(!0),[f,v]=x.useState(""),[p,N]=x.useState(""),[j,k]=x.useState(""),[D,W]=x.useState(null),[V,F]=x.useState(!1),[C,O]=x.useState({tenantId:"",username:"",password:"",fullName:"",role:"Teacher"}),[te,Y]=x.useState(!1),[K,oe]=x.useState(null),[ce,L]=x.useState(""),[Z,A]=x.useState(!1),[he,G]=x.useState(null),R=async()=>{try{const[S,ee]=await Promise.all([re.getUsers(p||void 0,j||void 0),re.getTenants()]);l(S),d(ee)}catch(S){console.error("Failed to load user management data",S)}finally{h(!1)}};x.useEffect(()=>{R()},[p,j]);const T=async S=>{var ee;if(S.preventDefault(),!C.tenantId||!C.username||!C.password||!C.fullName){W({text:"请填写所有必填字段",success:!1});return}Y(!0);try{await re.createUser(C),W({text:`用户 [${C.username}] 创建成功!`,success:!0}),F(!1),O({tenantId:((ee=a[0])==null?void 0:ee.id)||"",username:"",password:"",fullName:"",role:"Teacher"}),R()}catch(I){W({text:I.message||"创建用户失败",success:!1})}finally{Y(!1)}},se=async S=>{if(S.preventDefault(),!(!K||!ce.trim())){A(!0);try{await re.resetPassword(K.id,ce.trim()),W({text:`用户 [${K.username}] 的密码已重置成功`,success:!0}),oe(null),L("")}catch(ee){W({text:ee.message||"重置密码失败",success:!1})}finally{A(!1)}}},Se=async S=>{const ee=!S.isLocked,I=ee?`确定要锁定账号 [${S.username}] 吗?锁定后该用户将无法登录系统。`:`确定要解锁账号 [${S.username}] 吗?`;if(window.confirm(I)){G(`lock_${S.id}`);try{await re.setUserLock(S.id,ee),W({text:`用户 [${S.username}] 已成功${ee?"锁定":"解锁"}`,success:!0}),R()}catch(b){W({text:b.message||"操作失败",success:!1})}finally{G(null)}}},U=async S=>{if(S.role==="SuperAdmin"){alert("超级管理员账号不可删除");return}if(window.confirm(`警告:确定要永久删除用户 [${S.username} (${S.fullName})] 吗?此操作不可逆!`)){G(`delete_${S.id}`);try{await re.deleteUser(S.id),W({text:`用户 [${S.username}] 已被删除`,success:!0}),R()}catch(ee){W({text:ee.message||"删除用户失败",success:!1})}finally{G(null)}}},ve=o.filter(S=>S.username.toLowerCase().includes(f.toLowerCase())||S.fullName.toLowerCase().includes(f.toLowerCase())||S.tenantName.toLowerCase().includes(f.toLowerCase()));return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"多租户统一用户中枢"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"全网教职工与校级管理员统一管控,支持跨校账号开户、密码强行重置、异常封禁与权限审计"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:()=>{h(!0),R()},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium transition-colors border border-slate-700/60",children:[s.jsx(ct,{className:`w-3.5 h-3.5 ${u?"animate-spin":""}`}),"刷新"]}),s.jsxs("button",{onClick:()=>{a.length>0&&!C.tenantId&&O(S=>({...S,tenantId:a[0].id})),F(!0)},className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/20 transition-all",children:[s.jsx(vn,{className:"w-4 h-4"}),"新建用户"]})]})]}),D&&s.jsxs("div",{className:`p-4 rounded-xl border flex items-center justify-between ${D.success?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[D.success?s.jsx(tt,{className:"w-5 h-5 text-emerald-400 shrink-0"}):s.jsx(Zt,{className:"w-5 h-5 text-rose-400 shrink-0"}),s.jsx("span",{children:D.text})]}),s.jsx("button",{onClick:()=>W(null),className:"text-xs opacity-70 hover:opacity-100",children:"关闭"})]}),s.jsxs("div",{className:"glass-panel p-4 border-slate-800 flex flex-col md:flex-row items-center gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2 bg-slate-900/60 px-3 py-2 rounded-xl border border-slate-800 w-full md:w-80",children:[s.jsx(Yn,{className:"w-4 h-4 text-slate-400 shrink-0"}),s.jsx("input",{type:"text",value:f,onChange:S=>v(S.target.value),placeholder:"搜索用户名、姓名或学校...",className:"bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full"})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(os,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:p,onChange:S=>N(S.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"全部学校 (全网)"}),a.map(S=>s.jsxs("option",{value:S.id,children:[S.name," (",S.id,")"]},S.id))]})]}),s.jsxs("div",{className:"flex items-center gap-2 w-full md:w-auto",children:[s.jsx(Vr,{className:"w-4 h-4 text-slate-400"}),s.jsxs("select",{value:j,onChange:S=>k(S.target.value),className:"px-3 py-2 rounded-xl bg-slate-900/60 border border-slate-800 text-xs text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"全部角色"}),s.jsx("option",{value:"SuperAdmin",children:"平台超级管理员"}),s.jsx("option",{value:"SchoolAdmin",children:"校区管理员"}),s.jsx("option",{value:"Teacher",children:"普通授课教师"})]})]})]}),s.jsx("div",{className:"glass-panel border-slate-800 overflow-hidden",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-900/60 border-b border-slate-800/80",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"用户姓名 / 登录名"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"归属学校"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"角色身份"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"账号状态"}),s.jsx("th",{className:"py-3.5 px-4 font-medium",children:"最近登录"}),s.jsx("th",{className:"py-3.5 px-4 font-medium text-right",children:"生命周期操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/50",children:ve.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"text-center py-10 text-xs text-slate-500",children:u?"正在同步用户中枢...":"暂无匹配的用户"})}):ve.map(S=>s.jsxs("tr",{className:"hover:bg-slate-800/25 transition-colors",children:[s.jsxs("td",{className:"py-4 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:S.fullName}),s.jsx("div",{className:"text-xs text-slate-400 font-mono mt-0.5",children:S.username})]}),s.jsxs("td",{className:"py-4 px-4 text-xs text-slate-300",children:[s.jsx("div",{children:S.tenantName}),s.jsx("div",{className:"text-[11px] text-slate-500 font-mono",children:S.tenantId})]}),s.jsx("td",{className:"py-4 px-4",children:S.role==="SuperAdmin"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-rose-500/10 border border-rose-500/30 text-rose-400",children:[s.jsx(ah,{className:"w-3 h-3"}),"超级管理员"]}):S.role==="SchoolAdmin"?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-indigo-500/10 border border-indigo-500/30 text-indigo-400",children:[s.jsx(os,{className:"w-3 h-3"}),"校区管理员"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-slate-800 border border-slate-700 text-slate-300",children:[s.jsx(Vr,{className:"w-3 h-3"}),"授课老师"]})}),s.jsx("td",{className:"py-4 px-4",children:S.isLocked?s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-rose-500/15 text-rose-400 border border-rose-500/30",children:[s.jsx(ha,{className:"w-3 h-3"}),"已锁定封禁"]}):s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/15 text-emerald-400 border border-emerald-500/30",children:[s.jsx(tt,{className:"w-3 h-3"}),"正常"]})}),s.jsx("td",{className:"py-4 px-4 text-xs text-slate-400",children:S.lastLoginAt?new Date(S.lastLoginAt).toLocaleString():"尚未登录"}),s.jsx("td",{className:"py-4 px-4 text-right",children:s.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[s.jsxs("button",{onClick:()=>oe(S),className:"px-2 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 border border-slate-700 text-slate-200 text-xs font-medium transition-colors inline-flex items-center gap-1",title:"强制重置登录密码",children:[s.jsx(It,{className:"w-3 h-3 text-amber-400"}),"重置密码"]}),S.role!=="SuperAdmin"&&s.jsxs("button",{onClick:()=>Se(S),disabled:he===`lock_${S.id}`,className:`px-2 py-1 rounded-lg border text-xs font-medium transition-colors inline-flex items-center gap-1 ${S.isLocked?"bg-emerald-600/15 border-emerald-500/30 text-emerald-300 hover:bg-emerald-600/25":"bg-rose-600/15 border-rose-500/30 text-rose-300 hover:bg-rose-600/25"}`,title:S.isLocked?"解除账号锁定":"锁定账号",children:[S.isLocked?s.jsx(rh,{className:"w-3 h-3"}):s.jsx(ha,{className:"w-3 h-3"}),S.isLocked?"解锁":"锁定"]}),S.role!=="SuperAdmin"&&s.jsx("button",{onClick:()=>U(S),disabled:he===`delete_${S.id}`,className:"p-1.5 rounded-lg bg-slate-800 hover:bg-rose-900/40 border border-slate-700 hover:border-rose-700/50 text-slate-400 hover:text-rose-400 transition-colors",title:"删除用户",children:s.jsx(Ei,{className:"w-3.5 h-3.5"})})]})})]},S.id))})]})})}),V&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsx("h2",{className:"text-lg font-bold text-white",children:"开通新用户账号"}),s.jsxs("form",{onSubmit:T,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"归属学校"}),s.jsxs("select",{required:!0,value:C.tenantId,onChange:S=>O({...C,tenantId:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"",children:"-- 请选择学校 --"}),a.map(S=>s.jsxs("option",{value:S.id,children:[S.name," (",S.id,")"]},S.id))]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户角色"}),s.jsxs("select",{value:C.role,onChange:S=>O({...C,role:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white focus:outline-none focus:border-indigo-500",children:[s.jsx("option",{value:"Teacher",children:"普通授课老师 (Teacher)"}),s.jsx("option",{value:"SchoolAdmin",children:"校区管理员 (SchoolAdmin)"})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"平台超级管理员只可通过系统底层配置文件委任,禁止通过控制台赋予。"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: teacher_li 或 admin_no4",value:C.username,onChange:S=>O({...C,username:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"用户真实姓名"}),s.jsx("input",{type:"text",required:!0,placeholder:"例如: 李老师",value:C.fullName,onChange:S=>O({...C,fullName:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始登录密码"}),s.jsx("input",{type:"password",required:!0,placeholder:"设置 6 位以上密码",value:C.password,onChange:S=>O({...C,password:S.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>F(!1),className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:te,className:"px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold shadow-lg shadow-indigo-500/25 transition-all disabled:opacity-50",children:te?"正在创建...":"确认开户"})]})]})]})}),K&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"glass-panel border-slate-700 bg-slate-900 w-full max-w-md p-6 space-y-4",children:[s.jsxs("h2",{className:"text-lg font-bold text-white",children:["重置用户密码: ",K.username]}),s.jsxs("p",{className:"text-xs text-slate-400",children:["为归属于 [",K.tenantName,"] 的 [",K.fullName,"] 强行设置新密码。"]}),s.jsxs("form",{onSubmit:se,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码"}),s.jsx("input",{type:"password",required:!0,placeholder:"请输入新密码",value:ce,onChange:S=>L(S.target.value),className:"w-full px-3 py-2 rounded-xl bg-slate-800 border border-slate-700 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[s.jsx("button",{type:"button",onClick:()=>{oe(null),L("")},className:"px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:Z,className:"px-4 py-2 rounded-xl bg-amber-600 hover:bg-amber-500 text-white text-xs font-semibold shadow-lg shadow-amber-500/25 transition-all disabled:opacity-50",children:Z?"重置中...":"确认重置"})]})]})]})})]})},Mp=()=>{const[o,l]=x.useState([]),[a,d]=x.useState(!0),[u,h]=x.useState([]),[f,v]=x.useState(!1),[p,N]=x.useState({tenantId:"",title:"⚠️ 全校紧急预警通报",message:"",voice:!0,shake:!0,durationSeconds:30}),[j,k]=x.useState(!1),[D,W]=x.useState(!1),[V,F]=x.useState(null),[C,O]=x.useState(null),[te,Y]=x.useState(null),K=[{title:"消防紧急疏散演练",content:"全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速有序撤离至操场!",duration:60,shake:!0,voice:!0,icon:zx},{title:"恶劣天气避险通报",content:"气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁前往室外!",duration:45,shake:!0,voice:!0,icon:Ex},{title:"临时紧急调度会议",content:"请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学教室内自习。",duration:30,shake:!1,voice:!0,icon:Qn},{title:"作息调整离校通知",content:"因突发教学安排,今天下午放学时间临时调整为 16:30,请任课老师提醒学生整理个人物品按时离校。",duration:30,shake:!1,voice:!0,icon:ep}],oe=async()=>{try{const U=await re.getTenants();l(U)}catch(U){console.error("Failed to load tenants",U)}finally{d(!1)}},ce=async()=>{v(!0);try{const U=await re.getAdminNotifications(15);h(U)}catch(U){console.error("Failed to load recent broadcasts",U)}finally{v(!1)}};x.useEffect(()=>{oe(),ce()},[]);const L=U=>{N(ve=>({...ve,title:`⚠️ ${U.title}`,message:U.content,durationSeconds:U.duration,shake:U.shake,voice:U.voice}))},Z=U=>{if(U.preventDefault(),!p.message.trim()){alert("请输入广播通知正文");return}k(!0)};x.useEffect(()=>{if(!V)return;let U=!1,ve;const S=Date.now(),ee=async()=>{try{const I=await re.getBroadcastReceiptSummary(V);if(U)return;O(I),!I.completed&&Date.now()-S<6e4&&(ve=window.setTimeout(ee,2e3))}catch{!U&&Date.now()-S<6e4&&(ve=window.setTimeout(ee,3e3))}};return ee(),()=>{U=!0,ve&&clearTimeout(ve)}},[V]);const A=async()=>{W(!0);try{const U=await re.sendEmergencyBroadcast({...p,tenantId:p.tenantId||void 0});U.broadcastId&&F(U.broadcastId),Y({dispatchedCount:U.dispatchedCount,targetSchools:U.targetSchools,message:U.message,success:!0,timestamp:new Date().toLocaleTimeString()}),k(!1),N(ve=>({...ve,message:""})),ce()}catch(U){Y({dispatchedCount:0,targetSchools:0,message:U.message||"应急广播下发失败",success:!1,timestamp:new Date().toLocaleTimeString()}),k(!1)}finally{W(!1)}},he=o.find(U=>U.id===p.tenantId),G=he?he.classroomCount:o.reduce((U,ve)=>U+(ve.classroomCount||0),0);he?he.deviceCount:o.reduce((U,ve)=>U+(ve.deviceCount||0),0);const R=(C==null?void 0:C.targetDevices)??null,T=(C==null?void 0:C.displayed)??0,se=(C==null?void 0:C.pending)??null,Se=C&&C.targetDevices>0?Math.min(100,Math.round(T/C.targetDevices*100)):0;return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"全域应急广播通道",description:"全网最高优先调度通道,覆盖多校区所有教室大屏终端,支持全屏强置顶与语音播报",badge:s.jsx(ze,{label:"极高优先级",variant:"rose"})}),te&&s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4 animate-in fade-in duration-150",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[te.success?s.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-500/10 text-emerald-400 flex items-center justify-center",children:s.jsx(tt,{className:"w-5 h-5"})}):s.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center",children:s.jsx(bs,{className:"w-5 h-5"})}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-white",children:te.success?"紧急广播指令已成功下发至目标教室大屏":"广播下发失败"}),s.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:te.message})]})]}),s.jsx("button",{type:"button",onClick:()=>{Y(null),F(null),O(null)},className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:s.jsx(Qs,{className:"w-4 h-4"})})]}),te.success&&s.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"relative w-14 h-14 flex items-center justify-center shrink-0",children:[s.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 36 36",children:[s.jsx("path",{className:"text-slate-800",strokeWidth:"3.5",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"}),s.jsx("path",{className:"text-emerald-400 transition-all duration-500",strokeDasharray:`${Se}, 100`,strokeWidth:"3.5",strokeLinecap:"round",stroke:"currentColor",fill:"none",d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831"})]}),s.jsxs("span",{className:"text-xs font-bold text-white absolute",children:[Se,"%"]})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-semibold text-white",children:"大屏显示达成率"}),s.jsx("div",{className:"text-[11px] text-slate-400 mt-0.5",children:C?`${T} / ${R} 台大屏已完成现场弹窗`:`广播已调度下发至 ${te.dispatchedCount||0} 个目标班级,正在等待终端回执...`})]})]}),s.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[s.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20 text-emerald-400",children:[s.jsx("div",{className:"font-bold text-sm",children:T}),s.jsx("div",{className:"text-[10px]",children:"已显示"})]}),s.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-300",children:[s.jsx("div",{className:"font-bold text-sm",children:se!==null?se:"—"}),s.jsx("div",{className:"text-[10px]",children:C?"等待回执":"等待统计"})]}),s.jsxs("div",{className:"text-center px-3 py-1.5 rounded-lg bg-slate-900 border border-slate-800 text-slate-400",children:[s.jsx("div",{className:"font-bold text-sm",children:(C==null?void 0:C.failed)??"—"}),s.jsx("div",{className:"text-[10px]",children:"失败/离线"})]})]})]}),te.success&&o.length>0&&s.jsxs("div",{className:"space-y-2 pt-2 border-t border-slate-800",children:[s.jsx("span",{className:"text-xs font-medium text-slate-400",children:"目标校区下达详情"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:o.map(U=>!p.tenantId||p.tenantId===U.id?s.jsxs("div",{className:"p-2.5 rounded-xl bg-slate-950 border border-slate-800/80 flex items-center justify-between text-xs",children:[s.jsxs("div",{children:[s.jsx("div",{className:"font-semibold text-slate-200",children:U.name}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:[U.classroomCount," 间教室 · ",U.deviceCount," 台大屏"]})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 font-medium",children:[s.jsx(Jn,{className:"w-3.5 h-3.5 text-blue-400"}),s.jsx("span",{children:"已调度下发"})]})]},U.id):null)})]})]}),s.jsxs("div",{className:"space-y-2.5",children:[s.jsx("label",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider block",children:"应急广播预设模板(点击快速填装)"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:K.map((U,ve)=>{const S=U.icon;return s.jsxs("button",{type:"button",onClick:()=>L(U),className:"p-3.5 rounded-xl bg-slate-900 border border-slate-800 hover:border-blue-500/40 hover:bg-slate-850 text-left transition-all group",children:[s.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-slate-200 group-hover:text-blue-400 mb-1",children:[s.jsx(S,{className:"w-4 h-4 text-blue-400 shrink-0"}),s.jsx("span",{children:U.title})]}),s.jsx("p",{className:"text-[11px] text-slate-500 line-clamp-2 leading-relaxed",children:U.content})]},ve)})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm",children:s.jsxs("form",{onSubmit:Z,className:"space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(os,{className:"w-3.5 h-3.5 text-blue-400"}),"目标广播校区"]}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:["预计覆盖 ",G," 班级"]})]}),s.jsxs("select",{value:p.tenantId||"",onChange:U=>N({...p,tenantId:U.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",children:[s.jsx("option",{value:"",children:"🚨 全网所有学校与所有教室大屏 (全域覆盖)"}),o.map(U=>s.jsxs("option",{value:U.id,children:["仅该校: ",U.name," (",U.classroomCount," 班级, ",U.deviceCount," 大屏)"]},U.id))]})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1.5",children:[s.jsx(ah,{className:"w-3.5 h-3.5 text-rose-400"}),"广播标题"]}),s.jsx("input",{type:"text",required:!0,value:p.title,onChange:U=>N({...p,title:U.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",placeholder:"例如: ⚠️ 全校紧急避险预警"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"广播正文内容"}),s.jsx("textarea",{required:!0,rows:3,value:p.message,onChange:U=>N({...p,message:U.target.value}),className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white placeholder-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none leading-relaxed",placeholder:"请输入紧急通报具体事项..."})]}),s.jsxs("div",{className:"pt-2 border-t border-slate-800/80 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-4 text-xs",children:[s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[s.jsx("input",{type:"checkbox",checked:p.voice,onChange:U=>N({...p,voice:U.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx(wp,{className:"w-3.5 h-3.5 text-emerald-400"}),s.jsx("span",{children:"TTS 语音朗读"})]}),s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer text-slate-300",children:[s.jsx("input",{type:"checkbox",checked:p.shake,onChange:U=>N({...p,shake:U.target.checked}),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx(Vs,{className:"w-3.5 h-3.5 text-rose-400"}),s.jsx("span",{children:"窗口视效抖动"})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),s.jsxs("span",{children:["时长: ",p.durationSeconds,"s"]})]})]}),s.jsxs("button",{type:"submit",disabled:D||!p.message.trim(),className:"px-5 py-2.5 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center justify-center gap-2 disabled:opacity-40",children:[s.jsx(ma,{className:"w-4 h-4"}),s.jsx("span",{children:"下发紧急广播"})]})]})]})}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800",children:[s.jsxs("h2",{className:"text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx(vi,{className:"w-4 h-4 text-blue-400"}),"最近全网广播与呼叫调度记录"]}),s.jsx("button",{onClick:ce,disabled:f,className:"text-xs text-blue-400 hover:underline disabled:opacity-50",children:f?"刷新中...":"刷新"})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs",children:[s.jsx("thead",{className:"text-[11px] uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-2.5 px-3",children:"发起时间"}),s.jsx("th",{className:"py-2.5 px-3",children:"类型"}),s.jsx("th",{className:"py-2.5 px-3",children:"目标范围"}),s.jsx("th",{className:"py-2.5 px-3",children:"通报内容"}),s.jsx("th",{className:"py-2.5 px-3 text-right",children:"状态"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:u.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"py-8 text-center text-slate-500",children:f?"正在加载历史记录...":"暂无调度记录"})}):u.slice(0,6).map(U=>s.jsxs("tr",{className:"hover:bg-slate-800/25",children:[s.jsx("td",{className:"py-3 px-3 font-mono text-slate-400 whitespace-nowrap",children:new Date(U.createdAt).toLocaleTimeString()}),s.jsx("td",{className:"py-3 px-3 whitespace-nowrap",children:U.priority==="Urgent"?s.jsx(ze,{label:"紧急通报",variant:"rose",dot:!1}):s.jsx(ze,{label:"日常呼叫",variant:"slate",dot:!1})}),s.jsx("td",{className:"py-3 px-3 text-white font-medium whitespace-nowrap",children:U.className||"全域广播"}),s.jsx("td",{className:"py-3 px-3 text-slate-300 max-w-xs truncate",children:U.message}),s.jsx("td",{className:"py-3 px-3 text-right whitespace-nowrap",children:U.status==="Cancelled"?s.jsx("span",{className:"text-slate-400",children:"已撤回"}):U.status==="Acknowledged"?s.jsx("span",{className:"text-emerald-400 font-medium",children:"已确认"}):U.status==="Delivered"?s.jsx("span",{className:"text-sky-400",children:"已送达"}):s.jsx("span",{className:"text-slate-400",children:"已发送"})})]},U.id))})]})})]}),j&&s.jsx(is,{isOpen:!0,onClose:()=>k(!1),title:"全域应急调度二次确认",preventClose:D,children:s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"p-3.5 rounded-xl bg-rose-500/10 border border-rose-500/20 text-rose-300 text-xs leading-relaxed",children:"⚠️ 确认后,系统将强制穿透目标教室大屏正在进行的多媒体课件,以全屏高优先级弹窗展示并进行语音朗读。"}),s.jsxs("div",{className:"p-3 rounded-xl bg-slate-950 border border-slate-800 text-xs space-y-1.5",children:[s.jsxs("div",{className:"text-slate-400",children:["广播范围:",s.jsx("span",{className:"text-white font-semibold",children:p.tenantId?he==null?void 0:he.name:`全域覆盖 (${o.length} 所学校)`})]}),s.jsxs("div",{className:"text-slate-400",children:["广播标题:",s.jsx("span",{className:"text-white font-medium",children:p.title})]}),s.jsxs("div",{className:"text-slate-400",children:["广播正文:",s.jsx("span",{className:"text-slate-200",children:p.message})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[s.jsx("button",{type:"button",disabled:D,onClick:()=>k(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"放弃"}),s.jsx("button",{type:"button",disabled:D,onClick:A,className:"px-5 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 flex items-center gap-2 disabled:opacity-50",children:D?s.jsxs(s.Fragment,{children:[s.jsx(Et,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"下发中..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(ma,{className:"w-4 h-4"}),s.jsx("span",{children:"确认下发"})]})})]})]})})]})},Ap=()=>{const[o,l]=ki(),a=o.get("status")||"all",d=o.get("tenantId")||"all",u=o.get("online")||"all",[h,f]=x.useState(null),[v,p]=x.useState([]),[N,j]=x.useState([]),[k,D]=x.useState(!0),[W,V]=x.useState(!1),[F,C]=x.useState(""),O=async(L=!1)=>{L?V(!0):D(!0);try{const[Z,A,he]=await Promise.all([re.getFleetVersionSummary(),re.getFleetDevices({status:a!=="all"?a:void 0,tenantId:d!=="all"?d:void 0,online:u==="true"?!0:u==="false"?!1:void 0,q:F.trim()||void 0}),re.getTenants()]);f(Z),p(A),j(he)}catch(Z){console.error("Failed to load fleet version data",Z)}finally{D(!1),V(!1)}};x.useEffect(()=>{O()},[a,d,u]);const te=L=>{L.preventDefault(),O()},Y=L=>{const Z=new URLSearchParams(o);L==="all"?Z.delete("status"):Z.set("status",L),l(Z)},K=L=>{const Z=new URLSearchParams(o);L==="all"?Z.delete("tenantId"):Z.set("tenantId",L),l(Z)},oe=L=>{const Z=new URLSearchParams(o);L==="all"?Z.delete("online"):Z.set("online",L),l(Z)},ce=L=>{if(!L)return"从不上线 / 未知";try{return new Date(L).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return L}};return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"终端版本运维看板",description:"全网教室大屏软件版本资产观测、兼容性评估与落后终端清点 (Observe Only)",action:s.jsxs("button",{onClick:()=>O(!0),disabled:k||W,className:"px-3.5 py-2 rounded-xl bg-slate-900 border border-slate-800 text-slate-300 hover:text-white hover:bg-slate-800 transition-all flex items-center gap-2 text-xs font-medium shadow-sm",children:[s.jsx(ct,{className:`w-3.5 h-3.5 ${W?"animate-spin text-blue-400":""}`}),W?"刷新中...":"刷新状态"]})}),(h==null?void 0:h.policy)&&s.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/90 p-4 shadow-sm backdrop-blur-sm flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center shrink-0",children:s.jsx(ua,{className:"w-5 h-5 text-indigo-400"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"text-sm font-semibold text-white flex items-center gap-2",children:["当前运行策略",s.jsxs("span",{className:"text-[11px] px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 font-mono",children:["协议 v",h.policy.minimumProtocolVersion]})]}),s.jsxs("div",{className:"text-xs text-slate-400 mt-0.5",children:["最低要求:Service ",h.policy.minimumServiceVersion," / Client ",h.policy.minimumClientVersion," · 推荐版本:",h.policy.recommendedServiceVersion]})]})]}),s.jsx("div",{className:"flex items-center gap-2 self-stretch md:self-auto justify-end",children:s.jsxs("span",{className:"text-[11px] px-2.5 py-1 rounded-lg bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 font-medium flex items-center gap-1.5",children:[s.jsx(tt,{className:"w-3.5 h-3.5"}),"只读观测模式 · 绝不阻断通知"]})})]}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-3.5 sm:gap-4",children:[s.jsxs("div",{onClick:()=>Y("all"),className:`cursor-pointer rounded-2xl p-4 sm:p-5 border transition-all ${a==="all"?"bg-slate-850 border-blue-500/50 shadow-md shadow-blue-500/5":"bg-slate-900 border-slate-800 hover:border-slate-700"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"全网终端资产"}),s.jsx(gn,{className:"w-4 h-4 text-slate-400"})]}),s.jsx("div",{className:"text-2xl sm:text-3xl font-bold font-mono text-white mt-2",children:k?"-":(h==null?void 0:h.total)??0}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-1",children:"全部入册大屏"})]}),s.jsxs("div",{onClick:()=>Y("Current"),className:`cursor-pointer rounded-2xl p-4 sm:p-5 border transition-all ${a==="Current"?"bg-emerald-950/30 border-emerald-500/50 shadow-md shadow-emerald-500/5":"bg-slate-900 border-slate-800 hover:border-emerald-500/30"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs text-emerald-400 font-medium",children:"当前版本"}),s.jsx(tt,{className:"w-4 h-4 text-emerald-400"})]}),s.jsx("div",{className:"text-2xl sm:text-3xl font-bold font-mono text-emerald-300 mt-2",children:k?"-":(h==null?void 0:h.current)??0}),s.jsx("div",{className:"text-[11px] text-emerald-500/80 mt-1",children:"满足推荐基线"})]}),s.jsxs("div",{onClick:()=>Y("Outdated"),className:`cursor-pointer rounded-2xl p-4 sm:p-5 border transition-all ${a==="Outdated"?"bg-amber-950/30 border-amber-500/50 shadow-md shadow-amber-500/5":"bg-slate-900 border-slate-800 hover:border-amber-500/30"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs text-amber-400 font-medium",children:"版本落后"}),s.jsx(bs,{className:"w-4 h-4 text-amber-400"})]}),s.jsx("div",{className:"text-2xl sm:text-3xl font-bold font-mono text-amber-300 mt-2",children:k?"-":(h==null?void 0:h.outdated)??0}),s.jsx("div",{className:"text-[11px] text-amber-500/80 mt-1",children:"可用但建议升级"})]}),s.jsxs("div",{onClick:()=>Y("Unsupported"),className:`cursor-pointer rounded-2xl p-4 sm:p-5 border transition-all ${a==="Unsupported"?"bg-rose-950/30 border-rose-500/50 shadow-md shadow-rose-500/5":"bg-slate-900 border-slate-800 hover:border-rose-500/30"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs text-rose-400 font-medium",children:"不受支持"}),s.jsx(da,{className:"w-4 h-4 text-rose-400"})]}),s.jsx("div",{className:"text-2xl sm:text-3xl font-bold font-mono text-rose-300 mt-2",children:k?"-":(h==null?void 0:h.unsupported)??0}),s.jsx("div",{className:"text-[11px] text-rose-500/80 mt-1",children:"低于最低支持版本"})]}),s.jsxs("div",{onClick:()=>Y("Unknown"),className:`cursor-pointer rounded-2xl p-4 sm:p-5 border transition-all ${a==="Unknown"?"bg-slate-850 border-slate-400/50 shadow-md":"bg-slate-900 border-slate-800 hover:border-slate-700"}`,children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-xs text-slate-300 font-medium",children:"版本未知"}),s.jsx(kx,{className:"w-4 h-4 text-slate-400"})]}),s.jsx("div",{className:"text-2xl sm:text-3xl font-bold font-mono text-slate-200 mt-2",children:k?"-":(h==null?void 0:h.unknown)??0}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-1",children:"信息缺失或未上报"})]})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-4 shadow-sm space-y-4",children:[s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 pb-3 border-b border-slate-800/80",children:[s.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:[{id:"all",label:"全部",count:(h==null?void 0:h.total)??0},{id:"Current",label:"当前版本",count:(h==null?void 0:h.current)??0,color:"text-emerald-400"},{id:"Outdated",label:"版本落后",count:(h==null?void 0:h.outdated)??0,color:"text-amber-400"},{id:"Unsupported",label:"不受支持",count:(h==null?void 0:h.unsupported)??0,color:"text-rose-400"},{id:"Unknown",label:"未知",count:(h==null?void 0:h.unknown)??0,color:"text-slate-400"}].map(L=>{const Z=a===L.id;return s.jsxs("button",{onClick:()=>Y(L.id),className:`px-3 py-1.5 rounded-xl text-xs font-medium transition-all flex items-center gap-1.5 ${Z?"bg-blue-600 text-white shadow-sm shadow-blue-500/20":"bg-slate-950 text-slate-400 hover:text-slate-200 border border-slate-800"}`,children:[s.jsx("span",{className:Z?"text-white":L.color,children:L.label}),s.jsx("span",{className:`px-1.5 py-0.5 rounded-md text-[10px] font-mono ${Z?"bg-blue-700/60 text-white":"bg-slate-850 text-slate-400"}`,children:L.count})]},L.id)})}),s.jsxs("div",{className:"text-xs text-slate-500 font-mono",children:["共筛选出 ",v.length," 台设备"]})]}),s.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-12 gap-3 items-center",children:[s.jsx("div",{className:"sm:col-span-4",children:s.jsxs("select",{value:d,onChange:L=>K(L.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-slate-200 focus:outline-none focus:border-blue-500 transition-colors",children:[s.jsx("option",{value:"all",children:"全部入驻学校 (租户)"}),N.map(L=>s.jsxs("option",{value:L.id,children:[L.name," (",L.deviceCount," 设备)"]},L.id))]})}),s.jsx("div",{className:"sm:col-span-3",children:s.jsxs("select",{value:u,onChange:L=>oe(L.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-slate-200 focus:outline-none focus:border-blue-500 transition-colors",children:[s.jsx("option",{value:"all",children:"在线状态:全部"}),s.jsx("option",{value:"true",children:"仅看在线终端 (● 在线)"}),s.jsx("option",{value:"false",children:"仅看离线终端 (○ 离线)"})]})}),s.jsxs("form",{onSubmit:te,className:"sm:col-span-5 relative",children:[s.jsx("input",{type:"text",value:F,onChange:L=>C(L.target.value),placeholder:"搜索设备ID、主机名、班级...",className:"w-full bg-slate-950 border border-slate-800 rounded-xl pl-9 pr-16 py-2 text-xs text-slate-200 placeholder-slate-500 focus:outline-none focus:border-blue-500 transition-colors"}),s.jsx(Yn,{className:"w-3.5 h-3.5 text-slate-500 absolute left-3 top-2.5"}),s.jsx("button",{type:"submit",className:"absolute right-1.5 top-1.5 px-2.5 py-1 bg-slate-800 hover:bg-slate-700 text-[11px] text-slate-300 rounded-lg transition-colors",children:"搜索"})]})]})]}),s.jsx("div",{className:"space-y-3",children:k?s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-12 text-center text-slate-400 text-sm",children:[s.jsx(ct,{className:"w-6 h-6 animate-spin mx-auto mb-3 text-blue-400"}),"正在动态计算全网终端版本资产状态..."]}):v.length===0?s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-12 text-center",children:[s.jsx("div",{className:"w-12 h-12 rounded-2xl bg-slate-800/80 flex items-center justify-center mx-auto mb-3 text-slate-400",children:s.jsx(tt,{className:"w-6 h-6 text-emerald-400"})}),s.jsx("div",{className:"text-sm font-semibold text-slate-200",children:"没有符合筛选条件的设备"}),s.jsx("div",{className:"text-xs text-slate-500 mt-1",children:"请尝试放宽筛选条件或切换状态选项卡"})]}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3.5",children:v.map(L=>{const Z=L.versionStatus==="Current"?"emerald":L.versionStatus==="Outdated"?"amber":L.versionStatus==="Unsupported"?"rose":"slate",A=L.versionStatus==="Current"?"当前版本":L.versionStatus==="Outdated"?"版本落后":L.versionStatus==="Unsupported"?"不受支持":"版本未知";return s.jsxs("div",{className:`rounded-2xl p-4 sm:p-5 border transition-all bg-slate-900/90 ${L.versionStatus==="Unsupported"?"border-rose-900/50 hover:border-rose-500/40":L.versionStatus==="Outdated"?"border-amber-900/40 hover:border-amber-500/40":"border-slate-800 hover:border-slate-700"}`,children:[s.jsxs("div",{className:"flex items-start justify-between gap-3 pb-3 border-b border-slate-800/70",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"text-xs sm:text-sm font-semibold text-white flex items-center gap-2",children:[s.jsx("span",{children:L.tenantName}),s.jsx("span",{className:"text-slate-600",children:"·"}),s.jsx("span",{className:"text-slate-300 font-medium",children:L.classroomName})]}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-mono mt-0.5 flex items-center gap-2",children:[s.jsx("span",{children:L.deviceId}),L.hostname&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-slate-700",children:"|"}),s.jsx("span",{children:L.hostname})]})]})]}),s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[s.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-[11px] font-medium border ${L.isOnline?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":"bg-slate-800 text-slate-400 border-slate-700"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${L.isOnline?"bg-emerald-400 animate-pulse":"bg-slate-500"}`}),L.isOnline?"在线":"离线"]}),s.jsx(ze,{label:A,variant:Z})]})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-2 py-3 text-xs border-b border-slate-800/70",children:[s.jsxs("div",{className:"bg-slate-950/60 rounded-xl p-2.5",children:[s.jsx("div",{className:"text-[10px] text-slate-500",children:"Service 服务端"}),s.jsx("div",{className:"font-mono text-slate-200 font-semibold mt-0.5",children:L.serviceVersion||"未上报"})]}),s.jsxs("div",{className:"bg-slate-950/60 rounded-xl p-2.5",children:[s.jsx("div",{className:"text-[10px] text-slate-500",children:"Client 客户端"}),s.jsx("div",{className:"font-mono text-slate-200 font-semibold mt-0.5",children:L.clientVersion||"未上报"})]}),s.jsxs("div",{className:"bg-slate-950/60 rounded-xl p-2.5",children:[s.jsx("div",{className:"text-[10px] text-slate-500",children:"通信协议"}),s.jsxs("div",{className:"font-mono text-slate-200 font-semibold mt-0.5",children:["v",L.protocolVersion??"1"]})]})]}),s.jsxs("div",{className:"pt-3 flex flex-wrap items-center justify-between gap-2 text-[11px] text-slate-400",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Qx,{className:"w-3.5 h-3.5 text-slate-500"}),s.jsx("span",{children:L.osVersion||"Windows"}),s.jsxs("span",{className:"font-mono text-slate-500",children:["(",L.architecture||"X64",")"]})]}),s.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500 font-mono",children:[s.jsx(Js,{className:"w-3.5 h-3.5"}),s.jsxs("span",{children:["心跳: ",ce(L.lastHeartbeatAt)]})]})]}),L.reasons&&L.reasons.length>0&&s.jsx("div",{className:"mt-3 rounded-xl p-2.5 bg-slate-950/80 border border-slate-800/80 text-[11px] space-y-1",children:L.reasons.map((he,G)=>s.jsxs("div",{className:`flex items-start gap-1.5 ${L.versionStatus==="Unsupported"?"text-rose-400":L.versionStatus==="Outdated"?"text-amber-400":"text-slate-400"}`,children:[s.jsx(Hx,{className:"w-3.5 h-3.5 shrink-0 mt-0.5"}),s.jsx("span",{children:he})]},G))})]},L.deviceId)})})})]})},Op=()=>{const{batchId:o}=J0(),l=bn(),[a,d]=ki(),[u,h]=x.useState(null),[f,v]=x.useState([]),[p,N]=x.useState([]),[j,k]=x.useState(!0),[D,W]=x.useState(null),[V,F]=x.useState(null),C=a.get("health")||"all",O=a.get("probe")||"",te=a.get("tenantId")||"all",Y=a.get("q")||"",K=x.useRef(!0);x.useEffect(()=>{re.getTenants().then(N).catch(()=>{})},[]);const oe=async()=>{if(o)try{const R=await re.getSelfCheckBatch(o);if(!K.current)return;h(R);const T=await re.getSelfCheckBatchDevices(o,{health:C!=="all"?C:void 0,probe:O||void 0,tenantId:te!=="all"?te:void 0,q:Y||void 0,pageSize:100});if(!K.current)return;v(T.items),W(null)}catch(R){if(!K.current)return;W(R.message||"加载批次数据失败")}finally{K.current&&k(!1)}};x.useEffect(()=>(K.current=!0,k(!0),oe(),()=>{K.current=!1}),[o,C,O,te,Y]),x.useEffect(()=>{if(!u||u.status!=="Running")return;const R=setInterval(()=>{oe()},2e3);return()=>clearInterval(R)},[u==null?void 0:u.status,C,O,te,Y]);const ce=(R,T)=>{const se=new URLSearchParams(a);!T||T==="all"?se.delete(R):se.set(R,T),d(se)},L=()=>{d(new URLSearchParams)},Z=R=>({service:"Service 守护进程",signalr:"SignalR 长连接",https_ping:"HTTPS 延迟与连通",clock_offset:"系统时钟同步",ipc_pipe:"IPC 命名管道",wpf_client:"WPF 客户端进程",tts_engine:"TTS 语音播报引擎"})[R]||R,A=u==null?void 0:u.summary,he=A&&A.target>0?Math.round((A.completed+A.unreachable+A.timedOut)/A.target*100):0,G=(C!=="all"?1:0)+(O?1:0)+(te!=="all"?1:0)+(Y?1:0);return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 p-6",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center space-x-3 mb-1",children:[s.jsxs("button",{onClick:()=>l("/admin/self-check-batches"),className:"text-slate-500 hover:text-slate-700 text-sm font-medium flex items-center",children:[s.jsx("svg",{className:"w-4 h-4 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"自检批次历史"]}),s.jsx("span",{className:"text-slate-300",children:"/"}),s.jsx("span",{className:"text-sm font-semibold text-slate-700 font-mono",children:o})]}),s.jsxs("h1",{className:"text-2xl font-bold text-slate-800 flex items-center gap-3",children:[s.jsx("span",{children:"终端批量自检下钻看板"}),(u==null?void 0:u.status)==="Running"?s.jsxs("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-sky-100 text-sky-800 border border-sky-300",children:[s.jsxs("svg",{className:"animate-spin -ml-0.5 mr-1.5 h-3 w-3 text-sky-600",fill:"none",viewBox:"0 0 24 24",children:[s.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),s.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"检测执行中 (自动刷新)"]}):s.jsxs("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-emerald-100 text-emerald-800 border border-emerald-300",children:[s.jsx("svg",{className:"w-3.5 h-3.5 mr-1 text-emerald-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"批次已就绪 (Completed)"]})]}),s.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["创建于: ",u!=null&&u.createdAtUtc?new Date(u.createdAtUtc).toLocaleString("zh-CN"):"-",(u==null?void 0:u.completedAtUtc)&&` · 结束于: ${new Date(u.completedAtUtc).toLocaleString("zh-CN")}`]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:oe,className:"px-4 py-2 border border-slate-300 rounded-lg text-sm text-slate-700 hover:bg-slate-50 transition-colors flex items-center shadow-sm",children:[s.jsx("svg",{className:"w-4 h-4 mr-1.5 text-slate-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"刷新数据"]}),s.jsx("button",{onClick:()=>l("/admin/fleet"),className:"px-4 py-2 bg-indigo-50 border border-indigo-200 text-indigo-700 rounded-lg text-sm font-medium hover:bg-indigo-100 transition-colors shadow-sm",children:"查看版本大盘"})]})]}),s.jsxs("div",{className:"mt-6 pt-5 border-t border-slate-100",children:[s.jsxs("div",{className:"flex justify-between items-center text-sm font-medium text-slate-700 mb-2",children:[s.jsxs("span",{children:["批次推进进度:",((A==null?void 0:A.completed)||0)+((A==null?void 0:A.unreachable)||0)+((A==null?void 0:A.timedOut)||0)," / ",(A==null?void 0:A.target)||0," 台完成"]}),s.jsxs("span",{className:"font-semibold text-indigo-600",children:[he,"%"]})]}),s.jsx("div",{className:"w-full bg-slate-100 rounded-full h-3 overflow-hidden",children:s.jsx("div",{className:`h-full transition-all duration-500 ${(u==null?void 0:u.status)==="Running"?"bg-gradient-to-r from-sky-500 to-indigo-500":"bg-emerald-500"}`,style:{width:`${he}%`}})})]})]}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4",children:[s.jsxs("div",{onClick:()=>ce("health","all"),className:`p-4 bg-white rounded-xl border cursor-pointer transition-all ${C==="all"?"border-indigo-500 ring-2 ring-indigo-100 shadow-md":"border-slate-200 hover:border-slate-300 shadow-sm"}`,children:[s.jsx("div",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wider",children:"目标检测总量"}),s.jsx("div",{className:"mt-1 text-2xl font-bold text-slate-800",children:(A==null?void 0:A.target)||0}),s.jsx("div",{className:"text-xs text-slate-400 mt-1",children:"本批次覆盖设备"})]}),s.jsxs("div",{onClick:()=>ce("health","Healthy"),className:`p-4 bg-white rounded-xl border cursor-pointer transition-all ${C==="Healthy"?"border-emerald-500 ring-2 ring-emerald-100 shadow-md":"border-slate-200 hover:border-emerald-300 shadow-sm"}`,children:[s.jsxs("div",{className:"text-xs font-semibold text-emerald-600 uppercase tracking-wider flex items-center",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500 mr-1.5"}),"正常 (Healthy)"]}),s.jsx("div",{className:"mt-1 text-2xl font-bold text-emerald-600",children:(A==null?void 0:A.healthy)||0}),s.jsx("div",{className:"text-xs text-slate-400 mt-1",children:"7 项探针全部达标"})]}),s.jsxs("div",{onClick:()=>ce("health","Warning"),className:`p-4 bg-white rounded-xl border cursor-pointer transition-all ${C==="Warning"?"border-amber-500 ring-2 ring-amber-100 shadow-md":"border-slate-200 hover:border-amber-300 shadow-sm"}`,children:[s.jsxs("div",{className:"text-xs font-semibold text-amber-600 uppercase tracking-wider flex items-center",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-amber-500 mr-1.5"}),"告警 (Warning)"]}),s.jsx("div",{className:"mt-1 text-2xl font-bold text-amber-600",children:(A==null?void 0:A.warning)||0}),s.jsx("div",{className:"text-xs text-slate-400 mt-1",children:"存在偏离但未阻断"})]}),s.jsxs("div",{onClick:()=>ce("health","Failed"),className:`p-4 bg-white rounded-xl border cursor-pointer transition-all ${C==="Failed"?"border-rose-500 ring-2 ring-rose-100 shadow-md":"border-slate-200 hover:border-rose-300 shadow-sm"}`,children:[s.jsxs("div",{className:"text-xs font-semibold text-rose-600 uppercase tracking-wider flex items-center",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-rose-500 mr-1.5"}),"故障 (Failed)"]}),s.jsx("div",{className:"mt-1 text-2xl font-bold text-rose-600",children:(A==null?void 0:A.failed)||0}),s.jsx("div",{className:"text-xs text-slate-400 mt-1",children:"关键探针诊断失败"})]}),s.jsxs("div",{onClick:()=>ce("health","Unreachable"),className:`p-4 bg-white rounded-xl border cursor-pointer transition-all ${C==="Unreachable"?"border-gray-500 ring-2 ring-gray-100 shadow-md":"border-slate-200 hover:border-gray-300 shadow-sm"}`,children:[s.jsxs("div",{className:"text-xs font-semibold text-gray-600 uppercase tracking-wider flex items-center",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-gray-400 mr-1.5"}),"不可达 (Unreachable)"]}),s.jsx("div",{className:"mt-1 text-2xl font-bold text-gray-600",children:(A==null?void 0:A.unreachable)||0}),s.jsx("div",{className:"text-xs text-slate-400 mt-1",children:"离线未建连真实态"})]}),s.jsxs("div",{onClick:()=>ce("health","TimedOut"),className:`p-4 bg-white rounded-xl border cursor-pointer transition-all ${C==="TimedOut"?"border-slate-500 ring-2 ring-slate-100 shadow-md":"border-slate-200 hover:border-slate-300 shadow-sm"}`,children:[s.jsxs("div",{className:"text-xs font-semibold text-slate-600 uppercase tracking-wider flex items-center",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-slate-400 mr-1.5"}),"超时 (TimedOut)"]}),s.jsx("div",{className:"mt-1 text-2xl font-bold text-slate-600",children:(A==null?void 0:A.timedOut)||0}),s.jsx("div",{className:"text-xs text-slate-400 mt-1",children:"未在窗口内返回"})]})]}),s.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-lg font-bold text-slate-800",children:"7 项核心探针故障聚合"}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:"点击下方探针指标卡,可直接在设备列表中精准下钻到该项异常终端"})]}),O&&s.jsxs("button",{onClick:()=>ce("probe",""),className:"text-xs text-indigo-600 hover:text-indigo-800 font-medium bg-indigo-50 px-2.5 py-1 rounded-md border border-indigo-200",children:["清除探针筛选 (",Z(O),") ✕"]})]}),s.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-7 gap-3",children:u==null?void 0:u.probeFailures.map(R=>{const T=O===R.probe,se=R.failedCount>0,Se=R.warningCount>0;return s.jsxs("div",{onClick:()=>{if(T)ce("probe","");else{const U=new URLSearchParams(a);U.set("probe",R.probe),se?U.set("health","Failed"):Se&&U.set("health","Warning"),d(U)}},className:`p-3 rounded-lg border text-left cursor-pointer transition-all ${T?"border-indigo-500 bg-indigo-50/50 ring-2 ring-indigo-200 shadow-sm":se?"border-rose-200 bg-rose-50/30 hover:border-rose-300":Se?"border-amber-200 bg-amber-50/30 hover:border-amber-300":"border-slate-200 bg-slate-50/30 hover:border-slate-300"}`,children:[s.jsx("div",{className:"text-xs font-semibold text-slate-700 truncate",title:Z(R.probe),children:Z(R.probe)}),s.jsxs("div",{className:"mt-2 flex items-center justify-between text-xs",children:[s.jsxs("span",{className:`font-semibold ${R.failedCount>0?"text-rose-600":"text-slate-400"}`,children:["Failed: ",R.failedCount]}),s.jsxs("span",{className:`font-semibold ${R.warningCount>0?"text-amber-600":"text-slate-400"}`,children:["Warn: ",R.warningCount]})]})]},R.probe)})})]}),s.jsx("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 p-4",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:[{id:"all",label:"全部状态"},{id:"Healthy",label:"正常 Healthy"},{id:"Warning",label:"告警 Warning"},{id:"Failed",label:"故障 Failed"},{id:"Unreachable",label:"离线 Unreachable"},{id:"TimedOut",label:"超时 TimedOut"}].map(R=>s.jsx("button",{onClick:()=>ce("health",R.id),className:`px-3 py-1.5 rounded-lg text-xs font-medium transition-colors ${C===R.id?"bg-indigo-600 text-white shadow-sm":"bg-slate-100 text-slate-600 hover:bg-slate-200"}`,children:R.label},R.id))}),s.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[s.jsxs("select",{value:te,onChange:R=>ce("tenantId",R.target.value),className:"px-3 py-1.5 bg-slate-50 border border-slate-300 rounded-lg text-xs text-slate-700 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[s.jsx("option",{value:"all",children:"所有所属学校/租户"}),p.map(R=>s.jsx("option",{value:R.id,children:R.name},R.id))]}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"text",placeholder:"搜索设备ID / 班级 / 主机名",value:Y,onChange:R=>ce("q",R.target.value),className:"pl-8 pr-3 py-1.5 bg-slate-50 border border-slate-300 rounded-lg text-xs text-slate-700 w-48 sm:w-60 focus:outline-none focus:ring-2 focus:ring-indigo-500"}),s.jsx("svg",{className:"w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-2.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})]}),G>0&&s.jsx("button",{onClick:L,className:"text-xs text-rose-600 hover:text-rose-800 font-medium px-2 py-1",children:"重置筛选"})]})]})}),s.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 overflow-hidden",children:[s.jsx("div",{className:"px-6 py-4 border-b border-slate-100 flex items-center justify-between",children:s.jsxs("h3",{className:"font-bold text-slate-800",children:["设备自检记录明细",s.jsxs("span",{className:"ml-2 text-xs font-normal text-slate-500",children:["共 ",f.length," 台设备匹配"]})]})}),f.length===0?s.jsxs("div",{className:"p-12 text-center text-slate-400",children:[s.jsx("svg",{className:"w-12 h-12 mx-auto mb-3 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),s.jsx("p",{className:"text-sm",children:"没有匹配当前条件的设备诊断结果"}),G>0&&s.jsx("button",{onClick:L,className:"mt-3 text-xs text-indigo-600 hover:underline",children:"清除所有过滤条件"})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left border-collapse text-xs",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"bg-slate-50/75 border-b border-slate-200 text-slate-600 font-semibold uppercase tracking-wider",children:[s.jsx("th",{className:"py-3 px-4",children:"终端信息"}),s.jsx("th",{className:"py-3 px-4",children:"学校与班级"}),s.jsx("th",{className:"py-3 px-4",children:"流程状态 (RunState)"}),s.jsx("th",{className:"py-3 px-4",children:"健康状态 (Health)"}),s.jsx("th",{className:"py-3 px-4",children:"7 项核心探针摘要"}),s.jsx("th",{className:"py-3 px-4 text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-100 text-slate-700",children:f.map(R=>s.jsxs("tr",{className:"hover:bg-slate-50/60 transition-colors",children:[s.jsxs("td",{className:"py-3 px-4",children:[s.jsx("div",{className:"font-semibold text-slate-900 font-mono",children:R.deviceId}),s.jsx("div",{className:"text-[11px] text-slate-500",children:R.hostname||"未分配主机名"})]}),s.jsxs("td",{className:"py-3 px-4",children:[s.jsx("div",{className:"font-medium text-slate-800",children:R.schoolName}),s.jsx("div",{className:"text-[11px] text-slate-500",children:R.classroomName})]}),s.jsx("td",{className:"py-3 px-4",children:R.runState==="Completed"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-50 text-emerald-700 border border-emerald-200",children:"已完成"}):R.runState==="Dispatched"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-sky-50 text-sky-700 border border-sky-200",children:"已调度下发"}):R.runState==="Unreachable"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-gray-100 text-gray-700 border border-gray-200",children:"不可达 (离线)"}):R.runState==="TimedOut"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-slate-100 text-slate-700 border border-slate-300",children:"超时未响应"}):s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-amber-50 text-amber-700 border border-amber-200",children:"待调度"})}),s.jsx("td",{className:"py-3 px-4",children:R.overallStatus==="Healthy"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-emerald-100 text-emerald-800",children:"● 正常 Healthy"}):R.overallStatus==="Warning"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-amber-100 text-amber-800",children:"● 告警 Warning"}):R.overallStatus==="Failed"?s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium bg-rose-100 text-rose-800",children:"● 故障 Failed"}):s.jsx("span",{className:"text-slate-400",children:"-"})}),s.jsx("td",{className:"py-3 px-4",children:R.checks&&R.checks.length>0?s.jsx("div",{className:"flex flex-wrap gap-1",children:R.checks.map(T=>{const se=T.status===2,Se=T.status===1,U=T.status===0;return s.jsx("span",{title:`${T.name}: ${T.summary}`,className:`inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-mono ${se?"bg-rose-100 text-rose-800 font-bold border border-rose-300":Se?"bg-amber-100 text-amber-800 border border-amber-300":U?"bg-emerald-50 text-emerald-700 border border-emerald-200":"bg-slate-100 text-slate-500"}`,children:T.name},T.name)})}):s.jsx("span",{className:"text-slate-400 italic",children:"暂无探针明细"})}),s.jsx("td",{className:"py-3 px-4 text-right",children:s.jsx("button",{onClick:()=>F(R),className:"px-2.5 py-1 text-xs font-medium text-indigo-600 hover:text-indigo-800 hover:bg-indigo-50 rounded border border-indigo-200 transition-colors",children:"查看诊断"})})]},R.runId))})]})})]}),V&&s.jsx("div",{className:"fixed inset-0 z-50 overflow-hidden bg-slate-900/40 backdrop-blur-sm flex justify-end",children:s.jsxs("div",{className:"w-full max-w-xl bg-white h-full shadow-2xl flex flex-col animate-slide-left",children:[s.jsxs("div",{className:"p-6 border-b border-slate-200 flex items-center justify-between bg-slate-50",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-xs text-slate-500 uppercase font-semibold",children:"终端全面诊断详情"}),s.jsx("h3",{className:"text-lg font-bold text-slate-800 font-mono mt-0.5",children:V.deviceId})]}),s.jsx("button",{onClick:()=>F(null),className:"text-slate-400 hover:text-slate-600 p-1.5 rounded-lg hover:bg-slate-200",children:s.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs("div",{className:"p-6 overflow-y-auto space-y-6 flex-1 text-sm",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4 bg-slate-50 p-4 rounded-lg border border-slate-200 text-xs",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500",children:"所属学校:"}),s.jsx("span",{className:"font-medium text-slate-800",children:V.schoolName})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500",children:"关联班级:"}),s.jsx("span",{className:"font-medium text-slate-800",children:V.classroomName})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500",children:"Service 版本:"}),s.jsx("span",{className:"font-mono text-slate-800",children:V.serviceVersion||"未上报"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500",children:"Client 版本:"}),s.jsx("span",{className:"font-mono text-slate-800",children:V.clientVersion||"未上报"})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500",children:"流程状态:"}),s.jsx("span",{className:"font-medium text-slate-800",children:V.runState})]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500",children:"诊断结论:"}),s.jsx("span",{className:`font-semibold ${V.overallStatus==="Healthy"?"text-emerald-600":V.overallStatus==="Warning"?"text-amber-600":V.overallStatus==="Failed"?"text-rose-600":"text-slate-500"}`,children:V.overallStatus||"无结果"})]})]}),s.jsxs("div",{children:[s.jsxs("h4",{className:"font-bold text-slate-800 mb-3 text-sm flex items-center justify-between",children:[s.jsx("span",{children:"7 项核心探针执行报告"}),s.jsxs("span",{className:"text-xs font-normal text-slate-500",children:[V.checks.length," 项完成"]})]}),s.jsx("div",{className:"space-y-3",children:V.checks.map(R=>{const T=R.status===2,se=R.status===1,Se=R.status===0;return s.jsxs("div",{className:`p-3.5 rounded-lg border text-xs ${T?"bg-rose-50/40 border-rose-200":se?"bg-amber-50/40 border-amber-200":Se?"bg-emerald-50/40 border-emerald-200":"bg-slate-50 border-slate-200"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("span",{className:"font-bold text-slate-900 flex items-center gap-1.5",children:[R.name,s.jsxs("span",{className:"font-mono font-normal text-[11px] text-slate-500",children:["(",Z(R.name.toLowerCase()),")"]})]}),s.jsx("span",{className:`px-2 py-0.5 rounded text-[10px] font-semibold ${T?"bg-rose-100 text-rose-800":se?"bg-amber-100 text-amber-800":Se?"bg-emerald-100 text-emerald-800":"bg-slate-200 text-slate-700"}`,children:T?"× Failed":se?"! Warning":Se?"✓ Healthy":"Skipped"})]}),s.jsx("div",{className:"text-slate-700 mt-1",children:R.summary}),s.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-200/60 flex items-center justify-between text-[11px] text-slate-500 font-mono",children:[s.jsxs("span",{children:["代码: ",R.code||"-"]}),R.latencyMs!==void 0&&R.latencyMs!==null&&s.jsxs("span",{children:["延迟: ",R.latencyMs,"ms"]})]})]},R.name)})})]}),s.jsxs("div",{className:"bg-slate-50 p-4 rounded-lg border border-slate-200 text-xs font-mono space-y-1.5 text-slate-600",children:[s.jsx("div",{className:"text-slate-400 font-sans uppercase font-bold text-[10px] mb-1",children:"追踪上下文"}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-400",children:"RunId:"})," ",V.runId]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-400",children:"CorrelationId:"})," ",V.correlationId]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-400",children:"请求时间:"})," ",new Date(V.requestedAtUtc).toLocaleString("zh-CN")]}),V.completedAtUtc&&s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-400",children:"完成时间:"})," ",new Date(V.completedAtUtc).toLocaleString("zh-CN")]})]})]}),s.jsx("div",{className:"p-4 border-t border-slate-200 bg-slate-50 text-right",children:s.jsx("button",{onClick:()=>F(null),className:"px-4 py-2 bg-white border border-slate-300 rounded-lg text-sm text-slate-700 hover:bg-slate-100",children:"关闭抽屉"})})]})})]})},zp=()=>{const o=bn(),[l,a]=x.useState([]),[d,u]=x.useState(!0),[h,f]=x.useState(null),v=async()=>{try{u(!0);const p=await re.getSelfCheckBatches(void 0,30);a(p),f(null)}catch(p){f(p.message||"加载自检批次历史失败")}finally{u(!1)}};return x.useEffect(()=>{v()},[]),s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 p-6 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-slate-800",children:"终端批量自检历史批次"}),s.jsx("p",{className:"text-sm text-slate-500 mt-1",children:"查看历次全网或跨校批量自检执行结果、完成度与健康状态收敛指标"})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:v,className:"px-4 py-2 border border-slate-300 rounded-lg text-sm text-slate-700 hover:bg-slate-50 transition-colors flex items-center shadow-sm",children:[s.jsx("svg",{className:"w-4 h-4 mr-1.5 text-slate-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"刷新列表"]}),s.jsxs("button",{onClick:()=>o("/admin/devices"),className:"px-4 py-2 bg-indigo-600 text-white rounded-lg text-sm font-medium hover:bg-indigo-700 transition-colors shadow-sm flex items-center",children:[s.jsx("svg",{className:"w-4 h-4 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"前往设备列表发起自检"]})]})]}),d?s.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 p-12 text-center text-slate-400",children:[s.jsx("div",{className:"inline-block animate-spin w-8 h-8 border-4 border-indigo-600 border-t-transparent rounded-full mb-3"}),s.jsx("p",{className:"text-sm",children:"正在加载自检批次记录..."})]}):h?s.jsxs("div",{className:"bg-rose-50 border border-rose-200 text-rose-700 rounded-xl p-6 text-center",children:[s.jsx("p",{className:"font-semibold",children:h}),s.jsx("button",{onClick:v,className:"mt-3 px-4 py-1.5 bg-rose-600 text-white rounded-lg text-xs hover:bg-rose-700",children:"重试"})]}):l.length===0?s.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-slate-200 p-12 text-center text-slate-400",children:[s.jsx("svg",{className:"w-12 h-12 mx-auto mb-3 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})}),s.jsx("p",{className:"text-sm font-medium",children:"暂无自检批次记录"}),s.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"可在“设备管理”页面多选设备后点击“批量运行自检”创建批次"})]}):s.jsx("div",{className:"space-y-4",children:l.map(p=>{const N=p.completed+p.unreachable+p.timedOut,j=p.target>0?Math.round(N/p.target*100):0,k=p.status==="Running";return s.jsx("div",{onClick:()=>o(`/admin/self-check-batches/${p.batchId}`),className:"bg-white rounded-xl shadow-sm border border-slate-200 p-5 hover:border-indigo-400 hover:shadow-md transition-all cursor-pointer",children:s.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"font-mono font-bold text-slate-900 text-sm",children:p.batchId}),k?s.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-semibold bg-sky-100 text-sky-800",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-sky-600 animate-pulse mr-1"}),"运行中 (Running)"]}):s.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-semibold bg-emerald-100 text-emerald-800",children:"✓ 已完成 (Completed)"})]}),s.jsxs("div",{className:"text-xs text-slate-400",children:["创建时间: ",new Date(p.createdAtUtc).toLocaleString("zh-CN"),p.completedAtUtc&&` · 结束: ${new Date(p.completedAtUtc).toLocaleString("zh-CN")}`]})]}),s.jsxs("div",{className:"w-full md:w-64",children:[s.jsxs("div",{className:"flex justify-between text-xs font-medium text-slate-600 mb-1",children:[s.jsxs("span",{children:["进度 ",N," / ",p.target," 台"]}),s.jsxs("span",{children:[j,"%"]})]}),s.jsx("div",{className:"w-full bg-slate-100 rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:`h-full ${k?"bg-sky-500":"bg-emerald-500"}`,style:{width:`${j}%`}})})]}),s.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[s.jsxs("span",{className:"px-2 py-1 rounded bg-emerald-50 text-emerald-700 font-medium",children:["正常: ",p.healthy]}),s.jsxs("span",{className:"px-2 py-1 rounded bg-amber-50 text-amber-700 font-medium",children:["告警: ",p.warning]}),s.jsxs("span",{className:"px-2 py-1 rounded bg-rose-50 text-rose-700 font-medium",children:["故障: ",p.failed]}),s.jsxs("span",{className:"px-2 py-1 rounded bg-gray-100 text-gray-700 font-medium",children:["离线: ",p.unreachable]}),s.jsxs("span",{className:"px-2 py-1 rounded bg-slate-100 text-slate-700 font-medium",children:["超时: ",p.timedOut]}),s.jsx("button",{onClick:D=>{D.stopPropagation(),o(`/admin/self-check-batches/${p.batchId}`)},className:"ml-3 px-3 py-1.5 bg-indigo-50 text-indigo-700 rounded-lg font-medium hover:bg-indigo-100 border border-indigo-200 transition-colors",children:"查看详情 →"})]})]})},p.batchId)})})]})},Up=()=>{const[o,l]=x.useState(null),[a,d]=x.useState([]),[u,h]=x.useState(!0),[f,v]=x.useState(null),[p,N]=x.useState("all"),j=async()=>{h(!0),v(null);try{const[O,te]=await Promise.all([re.getSchoolOverview(),re.getSchoolDevices()]);l(O),d(te)}catch(O){v((O==null?void 0:O.message)||"加载学校总览与设备数据失败")}finally{h(!1)}};x.useEffect(()=>{j();const O=Wt.onDeviceStatusChanged(Y=>{d(K=>{const oe=Y.state===1||String(Y.state).toLowerCase()==="online",ce=K.map(Z=>Z.deviceId===Y.deviceId?{...Z,isOnline:oe,lastHeartbeat:Y.lastHeartbeat,clientVersion:Y.agentVersion||Z.clientVersion}:Z),L=ce.filter(Z=>Z.isOnline).length;return l(Z=>Z?{...Z,onlineCount:L}:null),ce})}),te=Wt.onHealthReportReceived(Y=>{d(K=>K.map(oe=>oe.deviceId===Y.deviceId?{...oe,healthStatus:Y.overallStatus,lastHeartbeat:Y.timestamp||new Date().toISOString()}:oe))});return()=>{O(),te()}},[]);const k=(o==null?void 0:o.deviceCount)??a.length,D=(o==null?void 0:o.onlineCount)??a.filter(O=>O.isOnline).length,W=Math.max(0,k-D),V=[{id:"all",label:"全部设备",count:a.length},{id:"online",label:"在线正常",count:a.filter(O=>O.isOnline).length},{id:"offline",label:"离线需关注",count:a.filter(O=>!O.isOnline).length}],C=a.filter(O=>p==="online"?O.isOnline:p==="offline"?!O.isOnline:!0);return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:o!=null&&o.tenantName?`${o.tenantName} · 本校管理后台`:"本校管理后台",description:"实时监控全校各班级多媒体大屏运行状态与科任教师账号",action:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(je,{to:"/school-admin/classes",className:"flex items-center gap-1.5 px-3 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-medium border border-slate-700 transition-colors",children:[s.jsx(Ur,{className:"w-4 h-4 text-sky-400"}),"班级管理"]}),s.jsxs(je,{to:"/school-admin/codes",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-medium shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(It,{className:"w-4 h-4"}),"生成激活码"]})]})}),f&&s.jsxs("div",{className:"p-4 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Zt,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:f})]}),s.jsxs("button",{onClick:j,className:"flex items-center gap-1 px-3 py-1.5 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),"重试"]})]}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsx(mn,{title:"教学班级",value:u?"-":(o==null?void 0:o.classCount)??0,subtitle:`安装终端 ${k} 台`,icon:s.jsx(Ur,{className:"w-5 h-5 text-indigo-400"})}),s.jsx(mn,{title:"在线终端",value:u?"-":D,subtitle:"正常就绪待接收",icon:s.jsx(Vs,{className:"w-5 h-5 text-emerald-400"}),badge:s.jsx(ze,{label:"正常",variant:"emerald"})}),s.jsx(mn,{title:"离线终端",value:u?"-":W,subtitle:W>0?"建议排查电源或网络":"全校终端连通正常",icon:s.jsx(bs,{className:`w-5 h-5 ${W>0?"text-amber-400":"text-slate-400"}`}),badge:W>0?s.jsx(ze,{label:"待排查",variant:"amber"}):s.jsx(ze,{label:"全部在线",variant:"slate"})}),s.jsx(mn,{title:"任课教师",value:u?"-":(o==null?void 0:o.teacherCount)??0,subtitle:"已授权控制台账号",icon:s.jsx(Qn,{className:"w-5 h-5 text-sky-400"})})]}),W>0&&s.jsxs("div",{className:"p-4 rounded-xl bg-amber-500/10 border border-amber-500/20 text-amber-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx(bs,{className:"w-4 h-4 text-amber-400 shrink-0"}),s.jsxs("span",{children:["检测到 ",s.jsxs("strong",{children:[W," 台"]})," 教室大屏当前处于离线状态,已为您自动置顶展示,方便排查。"]})]}),s.jsx(je,{to:"/school-admin/codes",className:"text-amber-400 hover:text-amber-300 font-medium underline underline-offset-4",children:"获取安装激活码"})]}),s.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(gn,{className:"w-4 h-4 text-blue-400"}),s.jsx("h2",{className:"text-sm font-semibold text-white",children:"大屏终端在线与健康状态"})]}),s.jsx(ga,{tabs:V,activeId:p,onChange:N})]}),s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"班级"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"设备编号"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"在线状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"健康评估"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"客户端版本"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:u?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(ct,{className:"w-4 h-4 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在获取大屏状态..."})]})}):C.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:p==="offline"?"全校大屏均在线运行良好":"暂无大屏数据"})}):C.map(O=>s.jsxs("tr",{className:"hover:bg-slate-800/40 transition-colors",children:[s.jsx("td",{className:"py-3.5 px-4 font-semibold text-white",children:O.classroomName||"未分配班级"}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:O.deviceId}),s.jsx("td",{className:"py-3.5 px-4",children:O.isOnline?s.jsx(ze,{label:"在线",variant:"emerald"}):s.jsx(ze,{label:"离线",variant:"slate"})}),s.jsx("td",{className:"py-3.5 px-4",children:O.healthStatus==="Degraded"?s.jsx(ze,{label:"亚健康",variant:"amber"}):O.isOnline?s.jsx(ze,{label:"健康",variant:"emerald"}):s.jsx(ze,{label:"离线未检",variant:"slate"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:O.lastHeartbeat?new Date(O.lastHeartbeat).toLocaleTimeString():s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsxs("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:["v",O.clientVersion||"2.4.0"]})]},O.deviceId))})]})})]})]})},Fp=()=>{const[o,l]=x.useState([]),[a,d]=x.useState([]),[u,h]=x.useState(!0),[f,v]=x.useState(""),[p,N]=x.useState(!1),[j,k]=x.useState(""),[D,W]=x.useState(""),[V,F]=x.useState(""),[C,O]=x.useState(""),[te,Y]=x.useState(!1),[K,oe]=x.useState(null),[ce,L]=x.useState(null),Z=async()=>{try{const[T,se]=await Promise.all([re.getSchoolClasses(),re.getSchoolDevices().catch(()=>[])]);l(T),d(se)}catch(T){console.error("Failed to load class or device data",T)}finally{h(!1)}};x.useEffect(()=>{Z()},[]);const A=async T=>{if(T.preventDefault(),!(!j||!D)){Y(!0);try{await re.createSchoolClass({id:j,displayName:D,grade:V,roomNumber:C}),N(!1),k(""),W(""),F(""),O(""),Z()}catch(se){alert(se.message||"创建班级失败")}finally{Y(!1)}}},he=async T=>{L(T.id);try{const se=await re.generateSchoolCode(T.id);oe({classId:T.id,className:T.displayName,code:se.code})}catch(se){alert(se.message||"生成激活码失败")}finally{L(null)}},G=T=>a.find(se=>se.classroomId===T),R=o.filter(T=>{if(!f.trim())return!0;const se=f.toLowerCase();return T.displayName.toLowerCase().includes(se)||T.id.toLowerCase().includes(se)||T.roomNumber&&T.roomNumber.toLowerCase().includes(se)});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"教学班级管理",description:"维护本校班级档案,管理教室位置与大屏终端绑定状态",action:s.jsxs("button",{type:"button",onClick:()=>N(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(vn,{className:"w-4 h-4"}),"新建教学班"]})}),s.jsxs("div",{className:"flex items-center justify-between gap-4",children:[s.jsx("div",{className:"w-72",children:s.jsx(Qr,{value:f,onChange:v,placeholder:"搜索班级名称或位置..."})}),s.jsxs("div",{className:"text-xs text-slate-400",children:["共 ",s.jsx("span",{className:"font-semibold text-white",children:R.length})," 个教学班"]})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"班级名称"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"教室位置"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定大屏"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"大屏状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最近心跳"}),s.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:u?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Et,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载班级数据..."})]})}):R.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:f?"未找到匹配的班级":"暂无教学班,点击右上角新建"})}):R.map(T=>{const se=G(T.id);return s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsxs("td",{className:"py-3.5 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:T.displayName}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:T.id})]}),s.jsx("td",{className:"py-3.5 px-4 text-slate-300",children:T.roomNumber||T.grade||s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-3.5 px-4",children:se?s.jsxs("div",{className:"flex items-center gap-1.5 font-mono text-xs text-slate-200",children:[s.jsx(gn,{className:"w-3.5 h-3.5 text-blue-400 shrink-0"}),s.jsx("span",{children:se.deviceId})]}):s.jsx("span",{className:"text-slate-500 text-xs",children:"未绑定大屏"})}),s.jsx("td",{className:"py-3.5 px-4",children:se?se.isOnline?s.jsx(ze,{label:"在线",variant:"emerald"}):s.jsx(ze,{label:"离线",variant:"slate"}):s.jsxs("button",{type:"button",onClick:()=>he(T),className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-semibold bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 border border-blue-500/20 transition-colors",children:[s.jsx(It,{className:"w-3 h-3"}),s.jsx("span",{children:"立即绑定"})]})}),s.jsx("td",{className:"py-3.5 px-4 text-xs font-mono text-slate-400",children:se!=null&&se.lastHeartbeat?new Date(se.lastHeartbeat).toLocaleTimeString():s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:s.jsx(Ii,{items:[{label:"生成安装激活码",icon:s.jsx(It,{className:"w-4 h-4 text-blue-400"}),onClick:()=>he(T)}]})})]},T.id)})})]})})}),K&&s.jsx(is,{isOpen:!0,onClose:()=>oe(null),title:`大屏安装激活码 · ${K.className}`,children:s.jsxs("div",{className:"space-y-4 text-center py-2",children:[s.jsx("p",{className:"text-xs text-slate-400",children:"请在班级教室大屏运行客户端安装程序,并输入以下 8 位激活码完成绑定:"}),s.jsxs("div",{className:"p-4 rounded-xl bg-slate-950 border border-slate-800 flex items-center justify-center gap-3",children:[s.jsx("span",{className:"font-mono text-2xl font-bold tracking-widest text-blue-400",children:K.code}),s.jsx(ch,{text:K.code,label:"复制"})]}),s.jsx("p",{className:"text-[11px] text-slate-500",children:"激活码 24 小时内有效,完成一次硬件绑定后将自动核销。"}),s.jsx("div",{className:"pt-2",children:s.jsx("button",{type:"button",onClick:()=>oe(null),className:"w-full py-2.5 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 text-xs font-semibold transition-colors",children:"完成"})})]})}),p&&s.jsx(is,{isOpen:!0,onClose:()=>N(!1),title:"新建教学班级",children:s.jsxs("form",{onSubmit:A,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级编号 (唯一识别码)"}),s.jsx("input",{type:"text",value:j,onChange:T=>k(T.target.value),placeholder:"如 cls_801 或 c_eight_1",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"班级显示名称"}),s.jsx("input",{type:"text",value:D,onChange:T=>W(T.target.value),placeholder:"如 八年级(1)班",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"年级 (可选)"}),s.jsx("input",{type:"text",value:V,onChange:T=>F(T.target.value),placeholder:"如 初二 / 高一",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教室位置 (可选)"}),s.jsx("input",{type:"text",value:C,onChange:T=>O(T.target.value),placeholder:"如 教学楼 301",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors"})]})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>N(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:te,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:te?"创建中...":"确认创建"})]})]})})]})},Bp=()=>{const[o,l]=x.useState([]),[a,d]=x.useState(!0),[u,h]=x.useState("all"),[f,v]=x.useState(""),[p,N]=x.useState(!1),[j,k]=x.useState(""),[D,W]=x.useState(""),[V,F]=x.useState(""),[C,O]=x.useState(!1),[te,Y]=x.useState(null),[K,oe]=x.useState(""),[ce,L]=x.useState(!1),Z=x.useRef(null),[A,he]=x.useState(null),[G,R]=x.useState(!1),[T,se]=x.useState(null),Se=(Q,me)=>{se({type:Q,text:me}),setTimeout(()=>{se(be=>(be==null?void 0:be.text)===me?null:be)},4e3)},U=async()=>{try{const Q=await re.getSchoolTeachers();l(Q)}catch(Q){Se("error",(Q==null?void 0:Q.message)||"加载教师列表失败")}finally{d(!1)}};x.useEffect(()=>{U()},[]),x.useEffect(()=>{te&&Z.current&&setTimeout(()=>{var Q;return(Q=Z.current)==null?void 0:Q.focus()},100)},[te]);const ve=async Q=>{if(Q.preventDefault(),!(!j||!D||!V)){if(D.length<8){alert("密码长度不能少于 8 位");return}O(!0);try{await re.createSchoolTeacher({username:j,password:D,fullName:V,role:"Teacher"}),N(!1),k(""),W(""),F(""),Se("success",`教师账号 ${V} 开设成功`),U()}catch(me){alert(me.message||"创建教师账号失败")}finally{O(!1)}}},S=async Q=>{if(Q.preventDefault(),!(!te||!K)){if(K.length<8){alert("根据系统安全基线,密码长度不能少于 8 位");return}L(!0);try{await re.resetSchoolTeacherPassword(te.id,K),Se("success",`已成功将教师 [${te.fullName}] 的密码重置`),Y(null),oe("")}catch(me){alert(me.message||"重置密码失败")}finally{L(!1)}}},ee=async()=>{if(!A)return;R(!0);const Q=!A.isLocked;try{await re.setSchoolTeacherLock(A.id,Q),Se("success",`已成功${Q?"停用":"启用"}教师 [${A.fullName}] 账号`),he(null),U()}catch(me){alert(me.message||"操作失败")}finally{R(!1)}},I=o.filter(Q=>!Q.isLocked).length,b=o.filter(Q=>Q.isLocked).length,M=[{id:"all",label:"全部教师",count:o.length},{id:"active",label:"正常使用",count:I},{id:"locked",label:"已停用",count:b}],ye=o.filter(Q=>{if(u==="active"&&Q.isLocked||u==="locked"&&!Q.isLocked)return!1;if(f.trim()){const me=f.toLowerCase();return Q.fullName.toLowerCase().includes(me)||Q.username.toLowerCase().includes(me)}return!0});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"教师账号管理",description:"管理本校任课教师账号登录凭证与权限状态",action:s.jsxs("button",{type:"button",onClick:()=>N(!0),className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(vn,{className:"w-4 h-4"}),"开设教师账号"]})}),T&&s.jsxs("div",{className:`p-3.5 rounded-xl border text-xs flex items-center justify-between transition-all ${T.type==="success"?"bg-emerald-500/10 border-emerald-500/30 text-emerald-300":"bg-rose-500/10 border-rose-500/30 text-rose-300"}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[T.type==="success"?s.jsx(tt,{className:"w-4 h-4 text-emerald-400 shrink-0"}):s.jsx(bs,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:T.text})]}),s.jsx("button",{onClick:()=>se(null),className:"text-slate-400 hover:text-white",children:s.jsx(Qs,{className:"w-3.5 h-3.5"})})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsx(ga,{tabs:M,activeId:u,onChange:h}),s.jsx("div",{className:"w-full sm:w-64",children:s.jsx(Qr,{value:f,onChange:v,placeholder:"搜索教师姓名或登录名..."})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"教师姓名"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"登录账号"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"身份角色"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"账号状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"最近登录"}),s.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:a?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Et,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载教师列表..."})]})}):ye.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:f?"未找到符合条件的教师":"暂无教师数据"})}):ye.map(Q=>s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsxs("td",{className:"py-3.5 px-4 font-semibold text-white flex items-center gap-2",children:[s.jsx(Vr,{className:"w-4 h-4 text-emerald-400 shrink-0"}),s.jsx("span",{children:Q.fullName})]}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-300",children:Q.username}),s.jsx("td",{className:"py-3.5 px-4 text-xs",children:Q.role==="SchoolAdmin"?s.jsx("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-400 border border-blue-500/20 text-xs",children:"学校管理员"}):s.jsx("span",{className:"px-2 py-0.5 rounded-full bg-slate-800 text-slate-300 border border-slate-700/60 text-xs",children:"任课教师"})}),s.jsx("td",{className:"py-3.5 px-4",children:Q.isLocked?s.jsx(ze,{label:"已停用",variant:"rose"}):s.jsx(ze,{label:"正常",variant:"emerald"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:Q.lastLoginAt?new Date(Q.lastLoginAt).toLocaleString():s.jsxs("span",{className:"text-slate-600 flex items-center gap-1",children:[s.jsx(Js,{className:"w-3 h-3"}),"从未登录"]})}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:Q.role==="Teacher"?s.jsx(Ii,{items:[{label:"重置登录密码",icon:s.jsx(It,{className:"w-4 h-4 text-blue-400"}),onClick:()=>{Y(Q),oe("")}},{label:Q.isLocked?"启用账号":"停用账号",icon:Q.isLocked?s.jsx(rh,{className:"w-4 h-4 text-emerald-400"}):s.jsx(ha,{className:"w-4 h-4 text-rose-400"}),danger:!Q.isLocked,onClick:()=>he(Q)}]}):s.jsx("span",{className:"text-slate-600 text-xs",children:"-"})})]},Q.id))})]})})}),te&&s.jsx(is,{isOpen:!0,onClose:()=>Y(null),title:`重置教师密码 · ${te.fullName}`,children:s.jsxs("form",{onSubmit:S,className:"space-y-4",children:[s.jsx("p",{className:"text-xs text-slate-400",children:"重置密码将立即终止该教师当前的在线会话,下次登录必须使用新密码:"}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"新密码(至少 8 位)"}),s.jsx("input",{ref:Z,type:"password",value:K,onChange:Q=>oe(Q.target.value),placeholder:"请输入不少于 8 位的新密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>Y(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:ce||K.length<8,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:ce?"正在重置...":"确认重置密码"})]})]})}),A&&s.jsx(dh,{isOpen:!0,onClose:()=>he(null),onConfirm:ee,loading:G,title:A.isLocked?"恢复教师账号权限?":"停用该教师账号?",targetName:A.fullName,description:A.isLocked?"启用后,该教师将可以正常登录教师工作台并向班级大屏发送呼叫通知。":"停用后,该教师所有活跃登录会话将立即注销,无法再向大屏发起任何呼叫。历史通知与审计记录不受影响。",confirmLabel:A.isLocked?"确认启用":"确认停用账号"}),p&&s.jsx(is,{isOpen:!0,onClose:()=>N(!1),title:"开设任课教师账号",children:s.jsxs("form",{onSubmit:ve,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"教师真实姓名"}),s.jsx("input",{type:"text",value:V,onChange:Q=>F(Q.target.value),placeholder:"如 张老师、王建国",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"登录用户名"}),s.jsx("input",{type:"text",value:j,onChange:Q=>k(Q.target.value),placeholder:"建议使用手机号或拼音如 teacher_zhang",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"初始密码(至少 8 位)"}),s.jsx("input",{type:"password",value:D,onChange:Q=>W(Q.target.value),placeholder:"设置该教师首次登录的初始密码",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 transition-colors",required:!0,minLength:8})]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>N(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:C,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:C?"开设中...":"确认开设"})]})]})})]})},Hp=()=>{const[o,l]=x.useState([]),[a,d]=x.useState([]),[u,h]=x.useState(!0),[f,v]=x.useState(null),[p,N]=x.useState("all"),[j,k]=x.useState(""),[D,W]=x.useState(!1),[V,F]=x.useState(""),[C,O]=x.useState(!1),[te,Y]=x.useState(null),K=async()=>{h(!0),v(null);try{const[G,R]=await Promise.all([re.getSchoolCodes(),re.getSchoolClasses()]);l(G),d(R),R.length>0&&!V&&F(R[0].id)}catch(G){v((G==null?void 0:G.message)||"加载本校激活码数据失败")}finally{h(!1)}};x.useEffect(()=>{K()},[]);const oe=async G=>{if(G.preventDefault(),!!V){O(!0),Y(null);try{await re.generateSchoolCode(V),W(!1),K()}catch(R){Y((R==null?void 0:R.message)||"生成激活码失败")}finally{O(!1)}}},ce=o.filter(G=>!G.isUsed&&new Date(G.expiresAt).getTime()>Date.now()).length,L=o.filter(G=>G.isUsed).length,Z=o.filter(G=>!G.isUsed&&new Date(G.expiresAt).getTime()<=Date.now()).length,A=[{id:"all",label:"全部",count:o.length},{id:"pending",label:"待激活 (可用)",count:ce},{id:"used",label:"已绑定",count:L},{id:"expired",label:"已过期",count:Z}],he=o.filter(G=>{const R=!G.isUsed&&new Date(G.expiresAt).getTime()<=Date.now();if(p==="pending"&&(G.isUsed||R)||p==="used"&&!G.isUsed||p==="expired"&&!R)return!1;if(j.trim()){const T=j.toLowerCase(),se=G.code.toLowerCase().includes(T),Se=(G.classroomName||G.classroomId).toLowerCase().includes(T);if(!se&&!Se)return!1}return!0});return s.jsxs("div",{className:"space-y-6",children:[s.jsx(qs,{title:"本校教室终端激活码",description:"生成与管理本校教室大屏安装所需的 8 位一次性硬件绑定激活码",action:s.jsxs("button",{type:"button",onClick:()=>{Y(null),W(!0)},className:"flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 transition-all",children:[s.jsx(vn,{className:"w-4 h-4"}),"生成新激活码"]})}),f&&s.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Zt,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:f})]}),s.jsxs("button",{onClick:K,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),"重试"]})]}),s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsx(ga,{tabs:A,activeId:p,onChange:N}),s.jsx("div",{className:"w-full sm:w-64",children:s.jsx(Qr,{value:j,onChange:k,placeholder:"搜索激活码或班级..."})})]}),s.jsx("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-xs sm:text-sm",children:[s.jsx("thead",{className:"text-xs uppercase text-slate-400 bg-slate-950/60 border-b border-slate-800",children:s.jsxs("tr",{children:[s.jsx("th",{className:"py-3 px-4 font-medium",children:"8位激活码"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定班级"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"使用状态"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"绑定设备 ID"}),s.jsx("th",{className:"py-3 px-4 font-medium",children:"有效期"}),s.jsx("th",{className:"py-3 px-4 font-medium text-right",children:"操作"})]})}),s.jsx("tbody",{className:"divide-y divide-slate-800/60",children:u?s.jsx("tr",{children:s.jsxs("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:[s.jsx(Et,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载激活码..."})]})}):he.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:6,className:"py-12 text-center text-xs text-slate-500",children:j?"未找到符合条件的激活码":"暂无激活码,点击右上角生成"})}):he.map(G=>{const R=!G.isUsed&&new Date(G.expiresAt).getTime()<=Date.now();return s.jsxs("tr",{className:"hover:bg-slate-800/30 transition-colors",children:[s.jsx("td",{className:"py-3.5 px-4 font-mono font-bold text-blue-400 text-sm",children:G.code}),s.jsxs("td",{className:"py-3.5 px-4",children:[s.jsx("div",{className:"font-semibold text-white",children:G.classroomName||G.classroomId}),s.jsx("div",{className:"text-[11px] font-mono text-slate-500",children:G.classroomId})]}),s.jsx("td",{className:"py-3.5 px-4",children:G.isUsed?s.jsx(ze,{label:"已绑定",variant:"slate"}):R?s.jsx(ze,{label:"已过期",variant:"rose"}):s.jsx(ze,{label:"待激活",variant:"emerald"})}),s.jsx("td",{className:"py-3.5 px-4 font-mono text-xs text-slate-400",children:G.usedByDeviceId||s.jsx("span",{className:"text-slate-600",children:"-"})}),s.jsx("td",{className:"py-3.5 px-4 text-xs text-slate-400 font-mono",children:new Date(G.expiresAt).toLocaleDateString()}),s.jsx("td",{className:"py-3.5 px-4 text-right",children:s.jsx(ch,{text:G.code,label:"复制"})})]},G.code)})})]})})}),D&&s.jsx(is,{isOpen:!0,onClose:()=>W(!1),title:"生成本校班级设备激活码",children:s.jsxs("form",{onSubmit:oe,className:"space-y-4",children:[te&&s.jsx("div",{className:"p-3 rounded-xl bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:te}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1",children:"选择目标班级"}),a.length===0?s.jsx("div",{className:"text-xs text-amber-400 p-3 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无可分配班级,请先前往【班级管理】新建班级"}):s.jsx("select",{value:V,onChange:G=>F(G.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors",required:!0,children:a.map(G=>s.jsxs("option",{value:G.id,children:[G.displayName," (",G.roomNumber||G.id,")"]},G.id))})]}),s.jsx("p",{className:"text-[11px] text-slate-500 leading-relaxed",children:"💡 激活码生成后有效期为 24 小时。在教室大屏安装客户端并成功绑定后,该激活码将自动核销。"}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-3 border-t border-slate-800",children:[s.jsx("button",{type:"button",onClick:()=>W(!1),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"submit",disabled:C||!V,className:"px-4 py-2 rounded-xl bg-blue-600 hover:bg-blue-500 text-white text-xs font-semibold shadow-md shadow-blue-600/20 disabled:opacity-50 transition-all",children:C?"生成中...":"立即生成"})]})]})})]})};function ui(o){if(typeof o=="string")switch(o.toLowerCase()){case"acknowledged":case"confirmed":return"Acknowledged";case"delivered":return"Delivered";case"sent":return"Sent";case"cancelled":case"canceled":return"Cancelled";case"timeout":return"Timeout";case"failed":return"Failed";default:return"Sent"}switch(o){case 5:return"Cancelled";case 2:return"Acknowledged";case 1:return"Delivered";case 0:return"Sent";case 3:return"Timeout";case 4:return"Failed";default:return"Sent"}}const Wp=[],Vp=[{label:"到办公室",text:"请到教师办公室一趟。"},{label:"下楼集合",text:"请立即到楼下操场集合整队。"},{label:"家长来了",text:"校门口有家长找,请前往传达室。"},{label:"带作业本",text:"请收齐各科作业本送至办公室。"},{label:"课间回来",text:"预备铃已响,请迅速回教室内就坐。"},{label:"自习纪律",text:"请保持教室内安静自习,班干部负责维护纪律。"}],Qp=()=>{const{user:o}=Gn(),[l,a]=x.useState([]),[d,u]=x.useState(""),[h,f]=x.useState(""),[v,p]=x.useState(""),[N,j]=x.useState(!1),[k,D]=x.useState(null),[W,V]=x.useState(!0),[F,C]=x.useState(!0),[O,te]=x.useState(!1),[Y,K]=x.useState(15),[oe,ce]=x.useState(!1),[L,Z]=x.useState(!1),A=z=>!(o!=null&&o.tenantId)||!(o!=null&&o.userId)||!z?null:`classnotify:recentStudents:${o.tenantId}:${o.userId}:${z}`,[he,G]=x.useState(Wp);x.useEffect(()=>{if(!d)return;const z=A(d);if(!z){G([]);return}try{const Ne=localStorage.getItem(z);G(Ne?JSON.parse(Ne):[])}catch{G([])}},[d,o==null?void 0:o.tenantId,o==null?void 0:o.userId]);const[R,T]=x.useState([]),[se,Se]=x.useState(50),[U,ve]=x.useState(!1),[S,ee]=x.useState(!0),[I,b]=x.useState(!0),[M,ye]=x.useState(null),[Q,me]=x.useState("all"),[be,Ie]=x.useState(""),[Ce,Re]=x.useState(null),[Ye,es]=x.useState(null),[Gs,ds]=x.useState(!1),[ws,js]=x.useState(null),[Pt,X]=x.useState(1),[ue,Ve]=x.useState(null),[Ue,Tt]=x.useState(!1),Ns=x.useRef(l);x.useEffect(()=>{Ns.current=l},[l]);const Zn=async()=>{b(!0),ye(null);try{const z=await re.getTeacherClasses();a(z),z.length>0&&!d&&u(z[0].id);const Ne=await re.getTeacherHistory(void 0,se);T(Ne.map(Ke=>({...Ke,status:ui(Ke.status)}))),Ne.length{const z=se+50;ve(!0);try{const Ne=await re.getTeacherHistory(void 0,z);T(Ne.map(Ke=>({...Ke,status:ui(Ke.status)}))),Se(z),Ne.length{Zn()},[]),x.useEffect(()=>{const z=Wt.onAckReceiptReceived(Te=>{T(Je=>Je.map(Ze=>{if(Ze.id===Te.messageId){const yt=ui(Te.status);return{...Ze,status:yt,confirmedAt:Te.timestamp||Ze.confirmedAt||new Date().toISOString()}}return Ze}))}),Ne=Wt.onNewNotificationBroadcast(Te=>{T(Je=>{if(Je.some(bt=>bt.id===Te.id))return Je;const Ze=Ns.current.find(bt=>bt.id===Te.classId);return[{id:Te.id,tenantId:Te.tenantId,classId:Te.classId,className:(Ze==null?void 0:Ze.displayName)||Te.classId,senderName:"教师",message:Te.message,priority:Te.type===2?"Urgent":"Normal",createdAt:Te.createdAt,status:"Sent"},...Je]})}),Ke=typeof Wt.onNotificationCancelled=="function"?Wt.onNotificationCancelled(Te=>{T(Je=>Je.map(Ze=>Ze.id===Te?{...Ze,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Ze))}):()=>{};return()=>{typeof z=="function"&&z(),typeof Ne=="function"&&Ne(),typeof Ke=="function"&&Ke()}},[]);const Jr=z=>{if(N&&v.trim().length>0&&!window.confirm("当前输入框已有手写内容,确定使用模版覆盖吗?"))return;const Ne=h.trim();p(Ne?`${Ne},${z.text}`:z.text),j(!1)},Xr=z=>{f(z),!N||!v.trim()?(p(`${z},请到教师办公室一趟。`),j(!1)):v.includes(z)||p(`${z},${v}`)},er=async z=>{if(z.preventDefault(),!(!d||!v.trim())){ce(!0),D(null);try{const Ne=l.find(yt=>yt.id===d),Ke=h.trim()?`🔔 老师呼叫: ${h.trim()}`:`📢 ${(Ne==null?void 0:Ne.displayName)||"班级"}通知`,Te=await re.sendNotification({classId:d,studentName:h.trim()||void 0,title:Ke,message:v.trim(),type:O?2:0,voice:W,shake:F,durationSeconds:Y}),Je=h.trim();Je&&d&&G(yt=>{const bt=[Je,...yt.filter(Rt=>Rt!==Je)].slice(0,8);try{const Rt=A(d);Rt&&localStorage.setItem(Rt,JSON.stringify(bt))}catch{}return bt});const Ze=v.trim();p(""),f(""),j(!1),D(null),Te!=null&&Te.messageId&&T(yt=>yt.some(Rt=>Rt.id===Te.messageId)?yt:[{id:Te.messageId,tenantId:"",classId:d,className:(Ne==null?void 0:Ne.displayName)||d,senderName:"教师",message:Ze,priority:O?"Urgent":"Normal",createdAt:new Date().toISOString(),status:"Sent"},...yt])}catch(Ne){D((Ne==null?void 0:Ne.message)||"呼叫发送失败,请检查网络或稍后重试")}finally{ce(!1)}}},wn=async()=>{if(ue){Tt(!0);try{await re.cancelNotification(ue.id),T(z=>z.map(Ne=>Ne.id===ue.id?{...Ne,status:"Cancelled",isCancelled:!0,cancelledAt:new Date().toISOString()}:Ne)),Ve(null)}catch(z){alert(z.message||"提前关闭通知失败")}finally{Tt(!1)}}},qr=async(z,Ne,Ke,Te)=>{Re({notificationId:z,deviceId:Ne,className:Ke,capturedAt:Te}),ds(!0),js(null),es(null),X(1);try{const Je=await re.getVisualReceiptBlob(z,Ne),Ze=URL.createObjectURL(Je);es(Ze)}catch(Je){js((Je==null?void 0:Je.message)||"获取视觉核验图像失败")}finally{ds(!1)}},Ys=()=>{Ye&&URL.revokeObjectURL(Ye),es(null),Re(null),js(null),X(1)},us=R.filter(z=>{if(Q!=="all"&&z.classId!==Q)return!1;if(be.trim()){const Ne=be.toLowerCase(),Ke=z.message.toLowerCase().includes(Ne),Te=z.className.toLowerCase().includes(Ne);if(!Ke&&!Te)return!1}return!0}),va=l.slice(0,4),tr=l.slice(4);return s.jsxs("div",{className:"space-y-5",children:[s.jsx("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-slate-800/80",children:s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight text-white flex items-center gap-2.5",children:"教师呼叫工作台"}),s.jsx("p",{className:"text-xs sm:text-sm text-slate-400 mt-1",children:"秒级定向呼叫教室大屏,支持 TTS 朗读、视觉核验与实时送达回执"})]})}),M&&s.jsxs("div",{className:"p-3.5 rounded-xl border border-rose-500/30 bg-rose-500/10 text-rose-300 flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Zt,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:M})]}),s.jsxs("button",{onClick:Zn,className:"flex items-center gap-1 px-3 py-1 rounded-lg bg-rose-600 hover:bg-rose-500 text-white font-medium transition-colors",children:[s.jsx(ct,{className:"w-3.5 h-3.5"}),"重试"]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start",children:[s.jsxs("div",{className:"lg:col-span-5 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-5",children:[s.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-slate-800/70",children:[s.jsx("h2",{className:"text-sm font-semibold text-slate-200",children:"快速发送呼叫"}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"3秒极速触达"})]}),s.jsxs("form",{onSubmit:er,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs font-medium text-slate-300 mb-1.5",children:"目标班级"}),l.length===0?s.jsx("div",{className:"text-xs text-amber-400 p-2.5 bg-amber-500/10 rounded-xl border border-amber-500/20",children:"暂无关联班级,请联系管理员分配"}):s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:va.map(z=>{const Ne=d===z.id;return s.jsx("button",{type:"button",onClick:()=>u(z.id),className:`px-3 py-2 rounded-xl text-left text-xs font-medium border transition-all flex items-center justify-between ${Ne?"bg-blue-600/20 border-blue-500/60 text-white shadow-sm":"bg-slate-950/70 border-slate-800 text-slate-300 hover:bg-slate-800 hover:text-white"}`,children:s.jsx("span",{className:"truncate",children:z.displayName})},z.id)})}),tr.length>0&&s.jsxs("div",{className:"relative",children:[s.jsxs("select",{value:d,onChange:z=>u(z.target.value),className:"w-full bg-slate-950 border border-slate-800 rounded-xl px-3 py-2 text-xs text-slate-300 focus:outline-none focus:border-blue-500 appearance-none pr-8 cursor-pointer",children:[s.jsx("option",{value:"",disabled:!0,children:"选择其他班级..."}),tr.map(z=>s.jsxs("option",{value:z.id,children:[z.displayName," (",z.roomNumber||z.id,")"]},z.id))]}),s.jsx(Mu,{className:"w-3.5 h-3.5 text-slate-500 absolute right-3 top-2.5 pointer-events-none"})]})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("label",{className:"text-xs font-medium text-slate-300 flex items-center gap-1",children:[s.jsx(ih,{className:"w-3.5 h-3.5 text-slate-400"}),"呼叫对象(学生姓名)"]}),s.jsx("span",{className:"text-[11px] text-slate-500",children:"可选,留空则为全班"})]}),he.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:he.slice(0,6).map(z=>s.jsx("button",{type:"button",onClick:()=>Xr(z),className:`px-2 py-0.5 rounded-lg text-xs transition-colors ${h===z?"bg-blue-600 text-white font-medium":"bg-slate-950 text-slate-400 hover:text-slate-200 hover:bg-slate-800 border border-slate-800"}`,children:z},z))}),s.jsx("input",{type:"text",value:h,onChange:z=>f(z.target.value),placeholder:"点击上方学生姓名或直接输入...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"block text-xs font-medium text-slate-300 mb-1.5 flex items-center gap-1",children:[s.jsx(oh,{className:"w-3.5 h-3.5 text-amber-400"}),"快捷通知短语"]}),s.jsx("div",{className:"grid grid-cols-3 gap-1.5",children:Vp.map(z=>s.jsx("button",{type:"button",onClick:()=>Jr(z),className:"px-2.5 py-1.5 rounded-xl bg-slate-950 border border-slate-800 text-xs text-slate-300 hover:text-white hover:bg-slate-800 hover:border-slate-700 transition-all truncate text-center font-medium",title:z.text,children:z.label},z.label))})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("label",{className:"text-xs font-medium text-slate-300",children:"通知内容"}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:[v.length,"/200"]})]}),s.jsx("textarea",{rows:3,value:v,onChange:z=>{p(z.target.value.slice(0,200)),j(!0)},placeholder:"点击上方模板快速生成,或直接输入通知内容...",className:"w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs placeholder:text-slate-600 focus:outline-none focus:border-blue-500 transition-colors resize-none",required:!0}),k&&s.jsxs("div",{className:"mt-2 p-2.5 rounded-xl bg-rose-500/10 border border-rose-500/30 text-rose-300 text-xs flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(Zt,{className:"w-4 h-4 text-rose-400 shrink-0"}),s.jsx("span",{children:k})]}),s.jsx("button",{type:"button",onClick:()=>D(null),className:"text-rose-400 hover:text-white p-0.5",children:s.jsx(Qs,{className:"w-3.5 h-3.5"})})]})]}),s.jsxs("div",{className:"pt-2 border-t border-slate-800/80",children:[s.jsxs("button",{type:"button",onClick:()=>Z(!L),className:"w-full flex items-center justify-between text-xs text-slate-400 hover:text-slate-200 transition-colors py-1",children:[s.jsxs("span",{className:"flex items-center gap-1.5 font-medium",children:[L?s.jsx(Mu,{className:"w-3.5 h-3.5 text-slate-400"}):s.jsx(bx,{className:"w-3.5 h-3.5 text-slate-400"}),"播报与显示设置"]}),s.jsxs("span",{className:"text-[11px] text-slate-500",children:[W?"语音开启":"静音"," · ",F?"震屏":"无震"," · ",Y,"秒"]})]}),L&&s.jsxs("div",{className:"mt-3 p-3 rounded-xl bg-slate-950 border border-slate-800/80 space-y-3 animate-in fade-in duration-100",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[s.jsx("input",{type:"checkbox",checked:W,onChange:z=>V(z.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx("span",{className:"text-slate-300",children:"TTS 语音朗读"})]}),s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-slate-900 border border-slate-800 hover:bg-slate-850",children:[s.jsx("input",{type:"checkbox",checked:F,onChange:z=>C(z.target.checked),className:"rounded bg-slate-950 border-slate-700 text-blue-600"}),s.jsx("span",{className:"text-slate-300",children:"窗口抖动震颤"})]})]}),s.jsxs("div",{className:"flex items-center justify-between text-xs text-slate-300 pt-1",children:[s.jsx("span",{children:"停留时长"}),s.jsx("div",{className:"flex items-center gap-1",children:[10,15,30].map(z=>s.jsxs("button",{type:"button",onClick:()=>K(z),className:`px-2.5 py-0.5 rounded-lg text-xs font-mono transition-colors ${Y===z?"bg-blue-600 text-white font-semibold":"bg-slate-900 text-slate-400 hover:text-white border border-slate-800"}`,children:[z,"s"]},z))})]}),s.jsxs("label",{className:"flex items-center gap-2 cursor-pointer p-2 rounded-lg bg-rose-500/10 border border-rose-500/20 text-xs text-rose-300",children:[s.jsx("input",{type:"checkbox",checked:O,onChange:z=>te(z.target.checked),className:"rounded bg-slate-950 border-slate-700 text-rose-600"}),s.jsx("span",{className:"font-semibold",children:"红色紧急通知(全屏优先展示)"})]})]})]}),s.jsx("button",{type:"submit",disabled:oe||!d||!v.trim(),className:"w-full py-3 rounded-xl bg-blue-600 hover:bg-blue-500 active:bg-blue-700 text-white font-semibold text-sm shadow-md shadow-blue-600/20 flex items-center justify-center gap-2 transition-all disabled:opacity-40 disabled:cursor-not-allowed",children:oe?s.jsxs(s.Fragment,{children:[s.jsx(Et,{className:"w-4 h-4 animate-spin"}),s.jsx("span",{children:"正在投递至教室大屏..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(ma,{className:"w-4 h-4"}),s.jsx("span",{children:"立即发送呼叫"})]})})]})]}),s.jsxs("div",{className:"lg:col-span-7 bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-sm space-y-4",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-slate-800/70",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(Jn,{className:"w-4 h-4 text-emerald-400"}),s.jsx("h2",{className:"text-sm font-semibold text-white",children:"回执动态"}),s.jsxs("span",{className:"text-[11px] text-slate-500 font-mono",children:["(",us.length,")"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"flex items-center gap-1 overflow-x-auto max-w-[200px] sm:max-w-none",children:[s.jsx("button",{type:"button",onClick:()=>me("all"),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors ${Q==="all"?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:"全部"}),l.slice(0,3).map(z=>s.jsx("button",{type:"button",onClick:()=>me(z.id),className:`px-2 py-1 rounded-lg text-xs font-medium transition-colors whitespace-nowrap ${Q===z.id?"bg-slate-800 text-white border border-slate-700":"text-slate-400 hover:text-slate-200"}`,children:z.displayName},z.id))]}),s.jsx("div",{className:"w-36",children:s.jsx(Qr,{value:be,onChange:Ie,placeholder:"搜索动态...",className:"text-xs"})})]})]}),s.jsxs("div",{className:"space-y-3 max-h-[calc(100vh-250px)] overflow-y-auto pr-1",children:[I&&R.length===0?s.jsxs("div",{className:"text-center py-16 text-xs text-slate-500",children:[s.jsx(Et,{className:"w-5 h-5 animate-spin mx-auto mb-2 text-blue-400"}),s.jsx("span",{children:"正在加载回执记录..."})]}):us.length===0?s.jsx("div",{className:"text-center py-16 text-xs text-slate-500",children:be||Q!=="all"?"未找到符合条件的通知记录":"暂无呼叫记录,左侧选择班级即可下发"}):us.map(z=>{var Ke;const Ne=(Ke=z.receipts)==null?void 0:Ke.find(Te=>Te.visualReceiptState==="Available");return s.jsxs("div",{className:"p-4 rounded-xl bg-slate-950/80 border border-slate-800/80 hover:border-slate-700/80 transition-all space-y-2.5",children:[s.jsxs("div",{className:"flex items-center justify-between text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2 font-medium text-slate-200",children:[s.jsx("span",{className:"font-semibold text-white",children:z.className}),z.priority==="Urgent"&&s.jsx(ze,{label:"紧急",variant:"rose",dot:!1,className:"py-0 px-1.5 text-[10px]"})]}),s.jsx("span",{className:"text-[11px] font-mono text-slate-500",children:new Date(z.createdAt).toLocaleTimeString()})]}),s.jsx("div",{className:"text-xs text-slate-300 leading-relaxed bg-slate-900/60 p-2.5 rounded-lg border border-slate-800/60",children:z.message}),s.jsxs("div",{className:"pt-1.5 border-t border-slate-800/60 flex items-center justify-between flex-wrap gap-2 text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[z.status==="Acknowledged"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400 font-medium text-xs",children:[s.jsx(tt,{className:"w-3.5 h-3.5 text-emerald-400"}),"学生已点击确认"]}),z.status==="Delivered"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-sky-400 font-medium text-xs",children:[s.jsx(ca,{className:"w-3.5 h-3.5 text-sky-400"}),"已在大屏展示"]}),z.status==="Sent"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-400 text-xs",children:[s.jsx(Js,{className:"w-3.5 h-3.5 text-amber-400"}),"云端投递中..."]}),z.status==="Cancelled"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-slate-400 text-xs",children:[s.jsx(da,{className:"w-3.5 h-3.5"}),"已撤回关闭"]}),z.status==="Timeout"&&s.jsx("span",{className:"text-slate-500 text-xs",children:"超时自动收起"}),z.status==="Failed"&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-rose-400 text-xs",children:[s.jsx(bs,{className:"w-3.5 h-3.5"}),"投递失败"]}),Ne&&s.jsxs("span",{className:"inline-flex items-center gap-1 text-emerald-400/90 text-[11px] font-medium ml-1",children:[s.jsx(fa,{className:"w-3.5 h-3.5 text-emerald-400"}),"视觉核验:已完成"]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[Ne&&s.jsxs("button",{type:"button",onClick:()=>qr(z.id,Ne.deviceId,z.className,Ne.visualReceiptCapturedAt),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-blue-600/10 hover:bg-blue-600/20 text-blue-400 text-xs font-medium border border-blue-500/20 transition-colors",children:[s.jsx(Mx,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"查看大屏实际展示"})]}),(z.status==="Sent"||z.status==="Delivered")&&!z.isCancelled&&s.jsxs("button",{type:"button",onClick:()=>Ve(z),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-rose-500/10 text-slate-300 hover:text-rose-400 text-xs font-medium border border-slate-700/60 hover:border-rose-500/30 transition-colors",children:[s.jsx(Qs,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"提前关闭"})]})]})]})]},z.id)}),S&&s.jsx("div",{className:"pt-3 text-center",children:s.jsx("button",{type:"button",onClick:Kr,disabled:U,className:"px-4 py-2 rounded-xl bg-slate-950 hover:bg-slate-800 text-slate-300 hover:text-white text-xs font-medium border border-slate-800 transition-colors inline-flex items-center gap-2",children:U?s.jsxs(s.Fragment,{children:[s.jsx(Et,{className:"w-3.5 h-3.5 animate-spin text-blue-400"}),s.jsx("span",{children:"正在拉取更早历史..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(ct,{className:"w-3.5 h-3.5 text-slate-400"}),s.jsx("span",{children:"加载更多历史回执 (+50)"})]})})})]})]})]}),Ce&&s.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 backdrop-blur-sm flex items-center justify-center p-4",children:s.jsxs("div",{className:"w-full max-w-3xl bg-slate-900 border border-slate-800 rounded-2xl overflow-hidden shadow-2xl flex flex-col max-h-[90vh]",children:[s.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-slate-800 bg-slate-950/60",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(fa,{className:"w-5 h-5 text-emerald-400"}),s.jsxs("h3",{className:"font-semibold text-white text-base",children:[Ce.className," · 通知视觉核验"]})]}),s.jsx("button",{type:"button",onClick:Ys,className:"p-1 rounded-lg text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",children:s.jsx(Qs,{className:"w-5 h-5"})})]}),s.jsxs("div",{className:"p-6 flex-1 overflow-auto flex flex-col items-center justify-center min-h-[320px] bg-slate-950/40",children:[Gs&&s.jsxs("div",{className:"flex flex-col items-center gap-3 text-slate-400 text-sm",children:[s.jsx(Et,{className:"w-8 h-8 animate-spin text-blue-400"}),s.jsx("span",{children:"正在安全解密并加载现场回执画面..."})]}),ws&&s.jsxs("div",{className:"flex flex-col items-center gap-2 text-rose-400 text-sm",children:[s.jsx(Zt,{className:"w-8 h-8 text-rose-400"}),s.jsx("span",{children:ws})]}),Ye&&!Gs&&s.jsxs("div",{className:"flex flex-col items-center w-full",children:[s.jsx("div",{className:"overflow-auto max-h-[58vh] max-w-full flex items-center justify-center p-2 rounded-xl bg-black/60 border border-slate-800",children:s.jsx("img",{src:Ye,alt:"教室大屏实际展示画面",style:{transform:`scale(${Pt})`,transformOrigin:"center center",transition:"transform 0.2s"},className:"rounded-lg shadow-lg object-contain max-h-[52vh]"})}),s.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[s.jsx("button",{type:"button",onClick:()=>X(z=>Math.max(.5,+(z-.25).toFixed(2))),disabled:Pt<=.5,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"缩小",children:s.jsx(_p,{className:"w-4 h-4"})}),s.jsxs("span",{className:"text-xs font-mono text-slate-300 min-w-[50px] text-center",children:[Math.round(Pt*100),"%"]}),s.jsx("button",{type:"button",onClick:()=>X(z=>Math.min(3,+(z+.25).toFixed(2))),disabled:Pt>=3,className:"p-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 disabled:opacity-40 transition-colors",title:"放大",children:s.jsx(kp,{className:"w-4 h-4"})}),s.jsx("button",{type:"button",onClick:()=>X(1),className:"px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-300 text-xs transition-colors",children:"重置"})]})]})]}),s.jsxs("div",{className:"px-5 py-3 border-t border-slate-800 bg-slate-950/60 flex flex-col sm:flex-row items-center justify-between text-[11px] text-slate-400 gap-2",children:[s.jsx("span",{children:Ce.capturedAt?`捕获时间: ${new Date(Ce.capturedAt).toLocaleString()}`:""}),s.jsx("span",{className:"text-amber-400/90 text-right",children:"该现场画面仅用于核验通知是否成功显示,并将在捕获后 24 小时自动销毁。"})]})]})}),ue&&s.jsx(is,{isOpen:!0,onClose:()=>Ve(null),title:"提前关闭并撤回通知?",children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"bg-slate-950 p-3 rounded-xl border border-slate-800 text-xs text-slate-300",children:[s.jsxs("div",{className:"text-slate-400 text-[11px] mb-1",children:["班级:",s.jsx("span",{className:"text-white font-medium",children:ue.className})]}),s.jsx("p",{className:"line-clamp-3",children:ue.message})]}),s.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-xs text-amber-300/90 leading-relaxed",children:["💡 确认后,云端将立即向教室大屏下发终止指令,",s.jsx("strong",{children:"停止语音播报并收起弹窗"}),"。"]}),s.jsxs("div",{className:"flex justify-end gap-2.5 pt-2",children:[s.jsx("button",{type:"button",disabled:Ue,onClick:()=>Ve(null),className:"px-4 py-2 rounded-xl text-slate-300 hover:bg-slate-800 text-xs font-medium transition-colors",children:"取消"}),s.jsx("button",{type:"button",disabled:Ue,onClick:wn,className:"px-4 py-2 rounded-xl bg-rose-600 hover:bg-rose-500 text-white text-xs font-semibold shadow-md shadow-rose-600/20 transition-all flex items-center gap-1.5 disabled:opacity-50",children:Ue?s.jsxs(s.Fragment,{children:[s.jsx(Et,{className:"w-3.5 h-3.5 animate-spin"}),s.jsx("span",{children:"正在撤回..."})]}):s.jsxs(s.Fragment,{children:[s.jsx(da,{className:"w-3.5 h-3.5"}),s.jsx("span",{children:"确认提前关闭"})]})})]})]})})]})},Kp=()=>{const{user:o,isLoading:l}=Gn();return l?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在验证用户身份..."}):o?s.jsxs("div",{className:"min-h-screen bg-slate-950 text-slate-100 flex flex-col",children:[s.jsx(Ep,{}),s.jsx("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:s.jsx(Zu,{})})]}):s.jsx(as,{to:"/login",replace:!0})},Jp=()=>{const{user:o,isLoading:l}=Gn();return l?s.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center text-slate-400 text-sm",children:"正在初始化..."}):o?o.role==="SuperAdmin"?s.jsx(as,{to:"/admin",replace:!0}):o.role==="SchoolAdmin"?s.jsx(as,{to:"/school-admin",replace:!0}):s.jsx(as,{to:"/teacher",replace:!0}):s.jsx(as,{to:"/login",replace:!0})},Xp=()=>s.jsxs(uf,{children:[s.jsx(He,{path:"/login",element:s.jsx(Ip,{})}),s.jsx(He,{path:"/",element:s.jsx(Jp,{})}),s.jsxs(He,{element:s.jsx(Kp,{}),children:[s.jsxs(He,{element:s.jsx(di,{allowedRoles:["SuperAdmin"]}),children:[s.jsx(He,{path:"/admin",element:s.jsx(Pp,{})}),s.jsx(He,{path:"/admin/tenants",element:s.jsx($p,{})}),s.jsx(He,{path:"/admin/users",element:s.jsx(Dp,{})}),s.jsx(He,{path:"/admin/devices",element:s.jsx(Tp,{})}),s.jsx(He,{path:"/admin/fleet",element:s.jsx(Ap,{})}),s.jsx(He,{path:"/admin/self-check-batches",element:s.jsx(zp,{})}),s.jsx(He,{path:"/admin/self-check-batches/:batchId",element:s.jsx(Op,{})}),s.jsx(He,{path:"/admin/broadcast",element:s.jsx(Mp,{})}),s.jsx(He,{path:"/admin/codes",element:s.jsx(Rp,{})}),s.jsx(He,{path:"/admin/history",element:s.jsx(Lp,{})})]}),s.jsxs(He,{element:s.jsx(di,{allowedRoles:["SchoolAdmin"]}),children:[s.jsx(He,{path:"/school-admin",element:s.jsx(Up,{})}),s.jsx(He,{path:"/school-admin/classes",element:s.jsx(Fp,{})}),s.jsx(He,{path:"/school-admin/teachers",element:s.jsx(Bp,{})}),s.jsx(He,{path:"/school-admin/codes",element:s.jsx(Hp,{})})]}),s.jsx(He,{element:s.jsx(di,{allowedRoles:["Teacher"]}),children:s.jsx(He,{path:"/teacher",element:s.jsx(Qp,{})})})]}),s.jsx(He,{path:"*",element:s.jsx(as,{to:"/",replace:!0})})]}),qp=()=>s.jsx(cx,{children:s.jsx(yf,{children:s.jsx(Xp,{})})});g0.createRoot(document.getElementById("root")).render(s.jsx(Uu.StrictMode,{children:s.jsx(qp,{})})); ================================================================================ FILE: src/Server/ClassNotify.Server/wwwroot/assets/index-TSELHymJ.css ================================================================================ *,: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}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}body *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body *::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}body::selection{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-20{bottom:-5rem}.-left-20{left:-5rem}.-right-20{right:-5rem}.-top-20{top:-5rem}.left-2\.5{left:.625rem}.left-3{left:.75rem}.left-3\.5{left:.875rem}.right-0{right:0}.right-1\.5{right:.375rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-2\.5{top:.625rem}.top-3\.5{top:.875rem}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.-ml-0\.5{margin-left:-.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-full{height:100%}.max-h-\[52vh\]{max-height:52vh}.max-h-\[58vh\]{max-height:58vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[calc\(100vh-250px\)\]{max-height:calc(100vh - 250px)}.min-h-\[320px\]{min-height:320px}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-full{width:100%}.min-w-\[50px\]{min-width:50px}.max-w-3xl{max-width:48rem}.max-w-7xl{max-width:80rem}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-3\.5{gap:.875rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.625rem * var(--tw-space-x-reverse));margin-left:calc(.625rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-slate-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(241 245 249 / var(--tw-divide-opacity, 1))}.divide-slate-800\/50>:not([hidden])~:not([hidden]){border-color:#1e293b80}.divide-slate-800\/60>:not([hidden])~:not([hidden]){border-color:#1e293b99}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.border-amber-500\/20{border-color:#f59e0b33}.border-amber-500\/30{border-color:#f59e0b4d}.border-amber-500\/40{border-color:#f59e0b66}.border-amber-500\/50{border-color:#f59e0b80}.border-amber-900\/40{border-color:#78350f66}.border-blue-500\/20{border-color:#3b82f633}.border-blue-500\/40{border-color:#3b82f666}.border-blue-500\/50{border-color:#3b82f680}.border-blue-500\/60{border-color:#3b82f699}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-emerald-500\/20{border-color:#10b98133}.border-emerald-500\/30{border-color:#10b9814d}.border-emerald-500\/40{border-color:#10b98166}.border-emerald-500\/50{border-color:#10b98180}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-500\/20{border-color:#6366f133}.border-indigo-500\/30{border-color:#6366f14d}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-rose-200{--tw-border-opacity: 1;border-color:rgb(254 205 211 / var(--tw-border-opacity, 1))}.border-rose-300{--tw-border-opacity: 1;border-color:rgb(253 164 175 / var(--tw-border-opacity, 1))}.border-rose-500{--tw-border-opacity: 1;border-color:rgb(244 63 94 / var(--tw-border-opacity, 1))}.border-rose-500\/20{border-color:#f43f5e33}.border-rose-500\/30{border-color:#f43f5e4d}.border-rose-500\/50{border-color:#f43f5e80}.border-rose-900\/50{border-color:#88133780}.border-sky-200{--tw-border-opacity: 1;border-color:rgb(186 230 253 / var(--tw-border-opacity, 1))}.border-sky-300{--tw-border-opacity: 1;border-color:rgb(125 211 252 / var(--tw-border-opacity, 1))}.border-sky-500\/20{border-color:#0ea5e933}.border-sky-500\/30{border-color:#0ea5e94d}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-200\/60{border-color:#e2e8f099}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-slate-400\/50{border-color:#94a3b880}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-700\/50{border-color:#33415580}.border-slate-700\/60{border-color:#33415599}.border-slate-700\/80{border-color:#334155cc}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-800\/60{border-color:#1e293b99}.border-slate-800\/70{border-color:#1e293bb3}.border-slate-800\/80{border-color:#1e293bcc}.border-transparent{border-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-50\/30{background-color:#fffbeb4d}.bg-amber-50\/40{background-color:#fffbeb66}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-500\/20{background-color:#f59e0b33}.bg-amber-500\/25{background-color:#f59e0b40}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-950\/30{background-color:#451a034d}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/80{background-color:#000c}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-blue-600\/20{background-color:#2563eb33}.bg-blue-700\/60{background-color:#1d4ed899}.bg-blue-950\/60{background-color:#17255499}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-50\/40{background-color:#ecfdf566}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-emerald-500\/15{background-color:#10b98126}.bg-emerald-500\/20{background-color:#10b98133}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/15{background-color:#05966926}.bg-emerald-600\/20{background-color:#05966933}.bg-emerald-950\/20{background-color:#022c2233}.bg-emerald-950\/30{background-color:#022c224d}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-indigo-50\/50{background-color:#eef2ff80}.bg-indigo-500\/10{background-color:#6366f11a}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-600\/20{background-color:#4f46e533}.bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity, 1))}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-50{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity, 1))}.bg-rose-50\/30{background-color:#fff1f24d}.bg-rose-50\/40{background-color:#fff1f266}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-500\/10{background-color:#f43f5e1a}.bg-rose-500\/15{background-color:#f43f5e26}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-600\/15{background-color:#e11d4826}.bg-rose-600\/20{background-color:#e11d4833}.bg-rose-950\/30{background-color:#4c05194d}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity, 1))}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-sky-500\/10{background-color:#0ea5e91a}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-600\/20{background-color:#0284c733}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-slate-50\/30{background-color:#f8fafc4d}.bg-slate-50\/75{background-color:#f8fafcbf}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-800\/60{background-color:#1e293b99}.bg-slate-800\/80{background-color:#1e293bcc}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-slate-900\/40{background-color:#0f172a66}.bg-slate-900\/60{background-color:#0f172a99}.bg-slate-900\/90{background-color:#0f172ae6}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.bg-slate-950\/40{background-color:#02061766}.bg-slate-950\/60{background-color:#02061799}.bg-slate-950\/70{background-color:#020617b3}.bg-slate-950\/80{background-color:#020617cc}.bg-slate-950\/95{background-color:#020617f2}.bg-transparent{background-color:transparent}.bg-violet-500\/10{background-color:#8b5cf61a}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from: #f59e0b var(--tw-gradient-from-position);--tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-sky-500{--tw-gradient-from: #0ea5e9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 165 233 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-slate-950{--tw-gradient-from: #020617 var(--tw-gradient-from-position);--tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to: rgb(226 232 240 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-slate-900{--tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0f172a var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-indigo-500{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-indigo-950\/40{--tw-gradient-to: rgb(30 27 75 / .4) var(--tw-gradient-to-position)}.to-slate-400{--tw-gradient-to: #94a3b8 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-1{padding-right:.25rem}.pr-16{padding-right:4rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-\[\'Inter\'\,system-ui\,-apple-system\,sans-serif\]{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-300\/90{color:#fcd34de6}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-400\/80{color:#fbbf24cc}.text-amber-400\/90{color:#fbbf24e6}.text-amber-500\/80{color:#f59e0bcc}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-400\/80{color:#34d399cc}.text-emerald-400\/90{color:#34d399e6}.text-emerald-500\/80{color:#10b981cc}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-400\/80{color:#fb7185cc}.text-rose-500\/80{color:#f43f5ecc}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-rose-700{--tw-text-opacity: 1;color:rgb(190 18 60 / var(--tw-text-opacity, 1))}.text-rose-800{--tw-text-opacity: 1;color:rgb(159 18 57 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity, 1))}.text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.text-sky-800{--tw-text-opacity: 1;color:rgb(7 89 133 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(100 116 139 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.placeholder-slate-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(71 85 105 / var(--tw-placeholder-opacity, 1))}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-amber-500\/10{--tw-shadow-color: rgb(245 158 11 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/20{--tw-shadow-color: rgb(245 158 11 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/25{--tw-shadow-color: rgb(245 158 11 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-amber-500\/5{--tw-shadow-color: rgb(245 158 11 / .05);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-500\/20{--tw-shadow-color: rgb(59 130 246 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-500\/5{--tw-shadow-color: rgb(59 130 246 / .05);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-600\/20{--tw-shadow-color: rgb(37 99 235 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-500\/5{--tw-shadow-color: rgb(16 185 129 / .05);--tw-shadow: var(--tw-shadow-colored)}.shadow-emerald-600\/20{--tw-shadow-color: rgb(5 150 105 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-500\/25{--tw-shadow-color: rgb(99 102 241 / .25);--tw-shadow: var(--tw-shadow-colored)}.shadow-indigo-600\/30{--tw-shadow-color: rgb(79 70 229 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-500\/5{--tw-shadow-color: rgb(244 63 94 / .05);--tw-shadow: var(--tw-shadow-colored)}.shadow-rose-600\/20{--tw-shadow-color: rgb(225 29 72 / .2);--tw-shadow: var(--tw-shadow-colored)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-amber-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(254 243 199 / var(--tw-ring-opacity, 1))}.ring-emerald-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 250 229 / var(--tw-ring-opacity, 1))}.ring-gray-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(243 244 246 / var(--tw-ring-opacity, 1))}.ring-indigo-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(224 231 255 / var(--tw-ring-opacity, 1))}.ring-indigo-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(199 210 254 / var(--tw-ring-opacity, 1))}.ring-rose-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 228 230 / var(--tw-ring-opacity, 1))}.ring-slate-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(241 245 249 / var(--tw-ring-opacity, 1))}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.glass-panel{border-radius:1rem;border-width:1px;border-color:#1e293bcc;background-color:#0f172ab3;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-card{border-radius:.75rem;border-width:1px;border-color:#33415580;background-color:#1e293b66;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.glass-card:hover{border-color:#475569b3;background-color:#1e293b99}.placeholder\:text-slate-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.placeholder\:text-slate-600::placeholder{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:border-amber-300:hover{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.hover\:border-amber-500\/30:hover{border-color:#f59e0b4d}.hover\:border-amber-500\/40:hover{border-color:#f59e0b66}.hover\:border-blue-500\/40:hover{border-color:#3b82f666}.hover\:border-emerald-300:hover{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.hover\:border-emerald-500\/30:hover{border-color:#10b9814d}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:border-indigo-400:hover{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.hover\:border-indigo-500\/40:hover{border-color:#6366f166}.hover\:border-rose-300:hover{--tw-border-opacity: 1;border-color:rgb(253 164 175 / var(--tw-border-opacity, 1))}.hover\:border-rose-500\/30:hover{border-color:#f43f5e4d}.hover\:border-rose-500\/40:hover{border-color:#f43f5e66}.hover\:border-rose-700\/50:hover{border-color:#be123c80}.hover\:border-slate-300:hover{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.hover\:border-slate-700:hover{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.hover\:border-slate-700\/60:hover{border-color:#33415599}.hover\:border-slate-700\/80:hover{border-color:#334155cc}.hover\:bg-amber-500:hover{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.hover\:bg-amber-500\/10:hover{background-color:#f59e0b1a}.hover\:bg-amber-500\/20:hover{background-color:#f59e0b33}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-600\/20:hover{background-color:#2563eb33}.hover\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\:bg-emerald-600\/25:hover{background-color:#05966940}.hover\:bg-indigo-100:hover{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-50:hover{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500:hover{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-500\/10:hover{background-color:#f43f5e1a}.hover\:bg-rose-600\/25:hover{background-color:#e11d4840}.hover\:bg-rose-700:hover{--tw-bg-opacity: 1;background-color:rgb(190 18 60 / var(--tw-bg-opacity, 1))}.hover\:bg-rose-900\/40:hover{background-color:#88133766}.hover\:bg-slate-100:hover{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-50\/60:hover{background-color:#f8fafc99}.hover\:bg-slate-700:hover{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-700\/80:hover{background-color:#334155cc}.hover\:bg-slate-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.hover\:bg-slate-800\/25:hover{background-color:#1e293b40}.hover\:bg-slate-800\/30:hover{background-color:#1e293b4d}.hover\:bg-slate-800\/40:hover{background-color:#1e293b66}.hover\:bg-slate-900:hover{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.hover\:from-amber-400:hover{--tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-indigo-500:hover{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.hover\:text-amber-300:hover{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.hover\:text-indigo-800:hover{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.hover\:text-rose-300:hover{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.hover\:text-rose-400:hover{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.hover\:text-rose-800:hover{--tw-text-opacity: 1;color:rgb(159 18 57 / var(--tw-text-opacity, 1))}.hover\:text-slate-200:hover{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.hover\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.hover\:text-slate-600:hover{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.hover\:text-slate-700:hover{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.focus\:border-indigo-500\/50:focus{border-color:#6366f180}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-amber-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\:ring-indigo-500\/30:focus{--tw-ring-color: rgb(99 102 241 / .3)}.focus\:ring-indigo-500\/50:focus{--tw-ring-color: rgb(99 102 241 / .5)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-blue-700:active{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:col-span-3{grid-column:span 3 / span 3}.sm\:col-span-4{grid-column:span 4 / span 4}.sm\:col-span-5{grid-column:span 5 / span 5}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:w-60{width:15rem}.sm\:w-64{width:16rem}.sm\:w-72{width:18rem}.sm\:max-w-none{max-width:none}.sm\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-4{gap:1rem}.sm\:self-auto{align-self:auto}.sm\:p-5{padding:1.25rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media(min-width:768px){.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-64{width:16rem}.md\:w-80{width:20rem}.md\:w-auto{width:auto}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:self-auto{align-self:auto}}@media(min-width:1024px){.lg\:col-span-5{grid-column:span 5 / span 5}.lg\:col-span-7{grid-column:span 7 / span 7}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}} ================================================================================ FILE: src/Server/ClassNotify.Server/wwwroot/index.html ================================================================================ ClassNotify 智慧教室通知与集控平台
================================================================================ FILE: src/Server/classnotify.service ================================================================================ [Unit] Description=ClassNotify Cloud SignalR Server After=network-online.target postgresql.service Wants=network-online.target [Service] WorkingDirectory=/var/www/classnotify/current ExecStart=/usr/bin/dotnet /var/www/classnotify/current/ClassNotify.Server.dll User=www-data Group=www-data Environment=ASPNETCORE_ENVIRONMENT=Production Environment=ASPNETCORE_URLS=http://127.0.0.1:5000 Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false EnvironmentFile=/etc/classnotify/classnotify.env Restart=always RestartSec=10 KillSignal=SIGINT [Install] WantedBy=multi-user.target ================================================================================ FILE: src/Server/docker-compose.yml ================================================================================ version: '3.8' services: server: build: context: ../../ dockerfile: src/Server/ClassNotify.Server/Dockerfile restart: always environment: - ASPNETCORE_ENVIRONMENT=Production - ASPNETCORE_URLS=http://+:5000 ports: - "127.0.0.1:5000:5000" caddy: image: caddy:alpine restart: always ports: - "80:80" - "443:443" volumes: - ./Caddyfile:/etc/caddy/Caddyfile - caddy_data:/data - caddy_config:/config depends_on: - server volumes: caddy_data: caddy_config: ================================================================================ FILE: src/Shared/ClassNotify.Shared/ClassNotify.Shared.csproj ================================================================================ net8.0 enable enable latest ================================================================================ FILE: src/Shared/ClassNotify.Shared/Contracts/IDeviceHubClient.cs ================================================================================ using ClassNotify.Shared.Models; namespace ClassNotify.Shared.Contracts; /// /// 教室端 (Windows Service) 接收来自服务端的强类型 SignalR 契约 /// public interface IDeviceHubClient { /// /// 接收呼叫/通知指令 /// Task ReceiveNotification(NotificationDto notification); /// /// 接收服务端下发的端到端受控运维指令 (SelfCheck, RestartClient, Reconnect, RefreshConfig) /// Task ReceiveRemoteCommand(DeviceCommandDto command); /// /// 接收服务端下达的撤回/提前关闭通知指令 /// Task CancelNotification(string notificationId); /// /// 接收配置更新 /// Task ReceiveConfigUpdate(string configJson); /// /// 接收服务端下达的技术诊断包采集命令 (P2.5 RC1-3 Support Bundle) /// Task GenerateSupportBundle(GenerateSupportBundleCommand command); } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Contracts/ITeacherHubClient.cs ================================================================================ using ClassNotify.Shared.Models; namespace ClassNotify.Shared.Contracts; /// /// 教师控制端 (Web / Android) 接收来自服务端的强类型 SignalR 契约 /// public interface ITeacherHubClient { /// /// 设备在线状态变更通知 (上线/离线/心跳刷新) /// Task OnDeviceStatusChanged(DeviceStatusDto status); /// /// 消息回执更新 (已送达、学生已点击【我知道了】、超时关闭) /// Task OnAckReceiptReceived(AckReceiptDto receipt); /// /// 收到教室端健康自检体检报告 /// Task OnHealthReportReceived(DeviceHealthReportDto report); /// /// 新消息广播 /// Task OnNewNotificationBroadcast(NotificationDto notification); /// /// 远程运维命令状态变更 (Pending -> Dispatched -> Succeeded / Failed / TimedOut / Expired) /// Task OnDeviceCommandStatusChanged(DeviceCommandResultDto result); /// /// 通知撤回/提前关闭广播 /// Task OnNotificationCancelled(string notificationId); } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Enums/AckStatus.cs ================================================================================ namespace ClassNotify.Shared.Enums; /// /// 消息状态与回执阶段 /// public enum AckStatus { /// /// 已提交至云端服务器 /// Sent = 0, /// /// 教室端大屏/后台已成功接收 /// Delivered = 1, /// /// 学生或值日生点击了【我知道了】 /// Acknowledged = 2, /// /// 倒计时结束,窗口自动淡出关闭 /// Timeout = 3, /// /// 设备离线或投递失败 /// Failed = 4 } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Enums/DeviceOnlineState.cs ================================================================================ namespace ClassNotify.Shared.Enums; /// /// 设备在线与健康状态 /// public enum DeviceOnlineState { /// /// 离线(无心跳连接) /// Offline = 0, /// /// 正常在线 /// Online = 1, /// /// 降级运行(如后台在线但 UI 进程异常或 TTS 不可用) /// Degraded = 2 } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Enums/FleetVersionStatus.cs ================================================================================ using System.Text.Json.Serialization; namespace ClassNotify.Shared.Enums; [JsonConverter(typeof(JsonStringEnumConverter))] public enum FleetVersionStatus { Unknown, Current, Outdated, Unsupported } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Enums/NotificationType.cs ================================================================================ namespace ClassNotify.Shared.Enums; /// /// 通知类别 /// public enum NotificationType { /// /// 老师呼叫(默认蓝色,高优先级) /// Call = 0, /// /// 班级常规通知(绿色) /// Notice = 1, /// /// 紧急/重要提醒(红色,全屏强调) /// Urgent = 2 } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Ipc/IpcMessage.cs ================================================================================ namespace ClassNotify.Shared.Ipc; /// /// Windows Service 与 WinUI 3 前台进程之间的命名管道 IPC 消息类型 /// public enum IpcCommandType { Ping = 0, Pong = 1, ShowNotification = 2, CloseNotification = 3, ReportAck = 4, HealthCheck = 5, Hello = 6, TtsCheck = 7, TtsCheckResult = 8, ReportVisualReceipt = 9 } /// /// 命名管道传输帧 /// public class IpcMessage { public IpcCommandType Type { get; set; } public string? CorrelationId { get; set; } = Guid.NewGuid().ToString("N"); public string? PayloadJson { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/AckReceiptDto.cs ================================================================================ using ClassNotify.Shared.Enums; namespace ClassNotify.Shared.Models; /// /// 教室端确认与回执数据对象 /// public class AckReceiptDto { /// /// 对应的消息 ID /// public string MessageId { get; set; } = string.Empty; /// /// 班级编号 /// public string ClassId { get; set; } = string.Empty; /// /// 当前回执状态(Delivered / Acknowledged / Timeout) /// public AckStatus Status { get; set; } = AckStatus.Delivered; /// /// 触发时间戳 /// public DateTimeOffset Timestamp { get; set; } = DateTimeOffset.UtcNow; /// /// 备注信息(如“值日生张三确认”) /// public string? Remark { get; set; } /// /// 全链路业务追踪 ID (32 位小写 Hex) /// public string? CorrelationId { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/AdminDtos.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 全局平台统计指标 (超级管理员大盘) /// public class AdminMetricsDto { public int TotalTenants { get; set; } public int TotalClassrooms { get; set; } public int TotalDevices { get; set; } public int OnlineDevices { get; set; } public int OfflineDevices => Math.Max(0, TotalDevices - OnlineDevices); public int TodayNotifications { get; set; } public int AbnormalDevices { get; set; } } /// /// 设备明细与实时状态 DTO /// public class DeviceAdminDto { public string DeviceId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string TenantName { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string ClassroomName { get; set; } = string.Empty; public string? Hostname { get; set; } public bool IsOnline { get; set; } public DateTimeOffset? LastHeartbeat { get; set; } public string? ClientVersion { get; set; } public string? ServiceVersion { get; set; } public int? ProtocolVersion { get; set; } public string? OsVersion { get; set; } public string? Architecture { get; set; } public string VersionStatus { get; set; } = "Current"; public string? RemoteIp { get; set; } public bool ServiceRunning { get; set; } = true; public bool ClientRunning { get; set; } = true; } /// /// 学校/租户大盘 DTO /// public class TenantAdminDto { public string Id { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; public int ClassroomCount { get; set; } public int DeviceCount { get; set; } public int OnlineCount { get; set; } public bool IsActive { get; set; } = true; public DateTimeOffset CreatedAt { get; set; } } /// /// 激活码详情 DTO /// public class ActivationCodeDto { public string Code { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string TenantName { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string ClassroomName { get; set; } = string.Empty; public DateTimeOffset ExpiresAt { get; set; } public bool IsUsed { get; set; } public DateTimeOffset? UsedAt { get; set; } public string? UsedByDeviceId { get; set; } } /// /// 远程指令下发请求 /// public class RemoteCommandRequestDto { public string Command { get; set; } = string.Empty; // "ping", "restart_client", "refresh_config" public string? Parameters { get; set; } } /// /// 创建班级请求 /// public class CreateClassroomDto { public string Id { get; set; } = string.Empty; public string DisplayName { get; set; } = string.Empty; public string? Grade { get; set; } public string? RoomNumber { get; set; } } /// /// 创建教师账号请求 /// public class CreateTeacherDto { public string Username { get; set; } = string.Empty; public string Password { get; set; } = string.Empty; public string FullName { get; set; } = string.Empty; public string Role { get; set; } = "Teacher"; // Teacher, SchoolAdmin } /// /// 消息历史记录与回执 /// public class NotificationRecordDto { public string Id { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string ClassId { get; set; } = string.Empty; public string ClassName { get; set; } = string.Empty; public string SenderName { get; set; } = string.Empty; public string Message { get; set; } = string.Empty; public string Priority { get; set; } = "Normal"; public DateTimeOffset CreatedAt { get; set; } public string Status { get; set; } = "Sent"; // Sent, Delivered, Acknowledged, Timeout, Failed, Cancelled public bool IsCancelled { get; set; } public DateTimeOffset? CancelledAt { get; set; } public string? CancelledBy { get; set; } public DateTimeOffset? ConfirmedAt { get; set; } public DateTimeOffset? ExpiresAt { get; set; } public List Receipts { get; set; } = new(); } public class UserAdminDto { public string Id { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string TenantName { get; set; } = string.Empty; public string Username { get; set; } = string.Empty; public string FullName { get; set; } = string.Empty; public string Role { get; set; } = string.Empty; public bool IsLocked { get; set; } public DateTimeOffset CreatedAt { get; set; } public DateTimeOffset? LastLoginAt { get; set; } } public class CreateUserAdminRequest { public string TenantId { get; set; } = string.Empty; public string Username { get; set; } = string.Empty; public string Password { get; set; } = string.Empty; public string FullName { get; set; } = string.Empty; public string Role { get; set; } = "SchoolAdmin"; // SchoolAdmin, Teacher } public class ResetPasswordRequest { public string NewPassword { get; set; } = string.Empty; } public class LockUserRequest { public bool IsLocked { get; set; } = true; } public class CreateTenantRequest { public string Id { get; set; } = string.Empty; public string Name { get; set; } = string.Empty; } public class UpdateTenantRequest { public string Name { get; set; } = string.Empty; public bool IsActive { get; set; } = true; } public class UpdateDeviceRequest { public string? Hostname { get; set; } public string? ClassroomId { get; set; } } public class EmergencyBroadcastRequest { public string? TenantId { get; set; } // null or empty = all schools public string Title { get; set; } = "⚠️ 全校紧急通知"; public string Message { get; set; } = string.Empty; public bool Voice { get; set; } = true; public bool Shake { get; set; } = true; public int DurationSeconds { get; set; } = 30; } public class SystemHealthDto { public string Status { get; set; } = "Healthy"; public bool DatabaseConnected { get; set; } = true; public double DatabaseLatencyMs { get; set; } public int ActiveSignalRConnections { get; set; } public int OnlineDevices { get; set; } public string ServerTime { get; set; } = string.Empty; public string Uptime { get; set; } = string.Empty; public long MemoryUsedBytes { get; set; } } public class AdminAuditLogDto { public string Id { get; set; } = string.Empty; public DateTimeOffset OccurredAt { get; set; } public string ActorUsername { get; set; } = string.Empty; public string ActorRole { get; set; } = string.Empty; public string Action { get; set; } = string.Empty; public string TargetType { get; set; } = string.Empty; public string TargetId { get; set; } = string.Empty; public string? Details { get; set; } public string? IpAddress { get; set; } } public sealed class BroadcastReceiptSummaryDto { public string BroadcastId { get; set; } = string.Empty; public int TargetSchools { get; set; } public int TargetClassrooms { get; set; } public int TargetDevices { get; set; } public int Displayed { get; set; } public int Pending { get; set; } public int Cancelled { get; set; } public int Failed { get; set; } public bool Completed => Pending == 0; public DateTimeOffset? CreatedAt { get; set; } } public sealed record CancelNotificationResult( string NotificationId, string TenantId, string ClassroomId, bool AlreadyCancelled, DateTimeOffset? CancelledAt, string? CancelledBy); ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceActivationRequestDto.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 教室设备首次激活请求 DTO /// public class DeviceActivationRequestDto { /// /// 一次性设备激活码 (例如: H8K4-29DP) /// public string ActivationCode { get; set; } = string.Empty; /// /// 教室电脑主机名 /// public string Hostname { get; set; } = Environment.MachineName; /// /// 客户端版本号 /// public string ClientVersion { get; set; } = "2.1.0"; /// /// 安装实例唯一标识符 (例如: inst_550e8400-e29b-41d4-a716-446655440000) /// public string InstallationId { get; set; } = string.Empty; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceActivationResultDto.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 教室设备激活响应 DTO /// public class DeviceActivationResultDto { public bool Success { get; set; } public string? DeviceId { get; set; } public string? DeviceToken { get; set; } public string? TenantId { get; set; } public string? ClassId { get; set; } public string? ClassDisplayName { get; set; } public string? ErrorMessage { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceCommandDto.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 远程维护命令类型常量 /// public static class DeviceCommandTypes { public const string SelfCheck = "SelfCheck"; public const string RestartClient = "RestartClient"; public const string Reconnect = "Reconnect"; public const string RefreshConfig = "RefreshConfig"; public static readonly string[] AllSupported = [SelfCheck, RestartClient, Reconnect, RefreshConfig]; public static bool IsSupported(string? commandType) { if (string.IsNullOrWhiteSpace(commandType)) return false; return AllSupported.Contains(commandType, StringComparer.OrdinalIgnoreCase); } /// /// 获取命令类型的默认安全 TTL(生命周期) /// 严禁长期补发,过期即弃 /// public static TimeSpan GetDefaultTtl(string commandType) { return commandType?.ToLowerInvariant() switch { "restartclient" or "restart_client" => TimeSpan.FromMinutes(2), "reconnect" => TimeSpan.FromMinutes(2), "refreshconfig" or "refresh_config" => TimeSpan.FromMinutes(5), "selfcheck" or "self_check" => TimeSpan.FromMinutes(5), _ => TimeSpan.FromMinutes(2) }; } } /// /// 远程维护命令状态常量 /// public static class DeviceCommandStatuses { public const string Pending = "Pending"; public const string Dispatched = "Dispatched"; public const string Succeeded = "Succeeded"; public const string Failed = "Failed"; public const string TimedOut = "TimedOut"; public const string Expired = "Expired"; public static bool IsTerminal(string status) => status is Succeeded or Failed or TimedOut or Expired; } /// /// 远程运维命令传输对象 /// 全链路统一 CommandId (cmd_xxxxx),从创建到最终上报不可篡改 /// public class DeviceCommandDto { public string CommandId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string CommandType { get; set; } = string.Empty; public string? Parameters { get; set; } public string CreatedBy { get; set; } = string.Empty; public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; public DateTimeOffset ExpiresAt { get; set; } public string Status { get; set; } = DeviceCommandStatuses.Pending; public DateTimeOffset? StartedAt { get; set; } public DateTimeOffset? CompletedAt { get; set; } public long? DurationMs { get; set; } public int? ResultCode { get; set; } public string? ResultMessage { get; set; } } /// /// 终端设备执行远程命令后回传的结果报文 /// public class DeviceCommandResultDto { public string CommandId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string Status { get; set; } = DeviceCommandStatuses.Succeeded; public int ResultCode { get; set; } = 0; public string? ResultMessage { get; set; } public long ExecutionDurationMs { get; set; } public DateTimeOffset Timestamp { get; set; } = DateTimeOffset.UtcNow; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceCredentials.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 教室本地保存的永久设备凭证 (存储于 C:\ProgramData\ClassNotify\device_credentials.json) /// public class DeviceCredentials { public string DeviceId { get; set; } = string.Empty; public string DeviceToken { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string ClassId { get; set; } = string.Empty; public string ClassDisplayName { get; set; } = string.Empty; public DateTimeOffset ActivatedAt { get; set; } = DateTimeOffset.UtcNow; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceHealthReportDto.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 教室设备详细健康自检报告 /// public class DeviceHealthReportDto { public string DeviceId { get; set; } = string.Empty; public string ClassId { get; set; } = string.Empty; public DateTimeOffset Timestamp { get; set; } = DateTimeOffset.UtcNow; // Detailed health indicators public bool ServiceRunning { get; set; } = true; public bool ClientConnected { get; set; } public int ClientHeartbeatAgeSeconds { get; set; } = -1; public bool DnsOk { get; set; } public bool HttpsOk { get; set; } public bool SignalROk { get; set; } public bool CredentialsOk { get; set; } public bool DataDirectoryWritable { get; set; } public bool PipeOk { get; set; } public bool TtsOk { get; set; } public string OverallStatus { get; set; } = "Offline"; // Healthy, Degraded, Offline public DateTimeOffset CheckedAtUtc { get; set; } = DateTimeOffset.UtcNow; /// /// Windows SAPI / WinRT TTS 语音引擎是否可用 /// public bool IsTtsAvailable { get => TtsOk; set => TtsOk = value; } /// /// WinUI 3 前台 UI 进程是否处于就绪/健康状态 /// public bool IsUiProcessRunning { get => ClientConnected; set => ClientConnected = value; } /// /// 互联网与云端连接是否正常 /// public bool IsNetworkReachable { get => HttpsOk; set => HttpsOk = value; } /// /// 域名 DNS 解析是否正常 /// public bool IsDnsResolved { get => DnsOk; set => DnsOk = value; } /// /// 诊断详情信息 /// public string DiagnosticMessage { get; set; } = "All checks passed."; } public class TtsCheckResultDto { public bool Available { get; set; } public int VoiceCount { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceHeartbeatDto.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 教室终端健康心跳与运行状态 DTO (扩展版本感知与环境指标) /// public class DeviceHeartbeatDto { public string? DeviceId { get; set; } public string? ClassId { get; set; } public string? CorrelationId { get; set; } public DateTimeOffset SentAtUtc { get; set; } = DateTimeOffset.UtcNow; /// /// Windows Service 守护进程版本号 (如 "2.5.0") /// public string ServiceVersion { get; set; } = string.Empty; /// /// WPF / 前台显示客户端版本号 (如 "2.5.0") /// public string ClientVersion { get; set; } = string.Empty; /// /// 终端协议版本 (默认 1) /// public int ProtocolVersion { get; set; } = 1; /// /// 操作系统版本信息 (如 "Microsoft Windows 10.0.19045") /// public string OsVersion { get; set; } = string.Empty; /// /// 操作系统与处理器架构 (如 "X64", "Arm64") /// public string Architecture { get; set; } = string.Empty; /// /// WPF 界面主进程是否正常运行并处于 IPC 连接状态 /// public bool ClientProcessAvailable { get; set; } = true; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceSelfCheckBatchDtos.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 终端自检批次流程运行状态 (RunState) /// 严格独立于健康状态 (OverallStatus) /// public static class SelfCheckRunStates { public const string PendingDispatch = "PendingDispatch"; public const string Dispatched = "Dispatched"; public const string Completed = "Completed"; public const string Unreachable = "Unreachable"; public const string TimedOut = "TimedOut"; public static readonly string[] All = [PendingDispatch, Dispatched, Completed, Unreachable, TimedOut]; public static bool IsTerminal(string state) => state is Completed or Unreachable or TimedOut; } /// /// 7 项标准探针键规范化与映射 /// public static class SelfCheckProbeKeys { public const string Service = "service"; public const string SignalR = "signalr"; public const string HttpsPing = "https_ping"; public const string ClockOffset = "clock_offset"; public const string IpcPipe = "ipc_pipe"; public const string WpfClient = "wpf_client"; public const string TtsEngine = "tts_engine"; public static readonly string[] All = [ Service, SignalR, HttpsPing, ClockOffset, IpcPipe, WpfClient, TtsEngine ]; public static string Normalize(string probeName) { if (string.IsNullOrWhiteSpace(probeName)) return string.Empty; var p = probeName.Trim().ToLowerInvariant().Replace(" ", "_").Replace("-", "_"); return p switch { "service" => Service, "signalr" => SignalR, "https" or "https_ping" or "httpsping" => HttpsPing, "clock" or "clock_offset" or "clockoffset" => ClockOffset, "ipc" or "ipc_pipe" or "named_pipe" or "pipe" => IpcPipe, "wpf" or "wpf_client" or "wpfclient" or "client" => WpfClient, "tts" or "tts_engine" or "ttsengine" => TtsEngine, _ => p }; } } /// /// 发起批量设备自检请求载荷 /// public class CreateSelfCheckBatchRequest { public string ClientRequestId { get; set; } = string.Empty; public List DeviceIds { get; set; } = new(); } /// /// 批量自检创建成功返回 DTO /// public class SelfCheckBatchCreatedDto { public string BatchId { get; set; } = string.Empty; public string Status { get; set; } = "Running"; public int TargetDeviceCount { get; set; } public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } } /// /// 批次总体健康与完成度统计(纯内存聚合计算,严格守恒) /// public class SelfCheckBatchSummaryDto { public string BatchId { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; public int Target { get; set; } public int Pending { get; set; } public int Completed { get; set; } public int Healthy { get; set; } public int Warning { get; set; } public int Failed { get; set; } public int Unreachable { get; set; } public int TimedOut { get; set; } public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } } /// /// 单项探针故障聚合统计 /// public class ProbeFailureCountDto { public string Probe { get; set; } = string.Empty; public int WarningCount { get; set; } public int FailedCount { get; set; } } /// /// 批次详情响应载荷 /// public class SelfCheckBatchDetailDto { public string BatchId { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public SelfCheckBatchSummaryDto Summary { get; set; } = new(); public List ProbeFailures { get; set; } = new(); } /// /// 批次下设备自检运行项目简要信息 /// public class SelfCheckBatchDeviceItemDto { public string RunId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string SchoolName { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string ClassroomName { get; set; } = string.Empty; public string Hostname { get; set; } = string.Empty; public bool IsOnline { get; set; } public string? ServiceVersion { get; set; } public string? ClientVersion { get; set; } public string RunState { get; set; } = string.Empty; public string? OverallStatus { get; set; } public List Checks { get; set; } = new(); public DateTimeOffset RequestedAtUtc { get; set; } public DateTimeOffset? DispatchedAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public string CorrelationId { get; set; } = string.Empty; } /// /// 设备明细过滤与分页查询参数 /// public class SelfCheckBatchDeviceQuery { public string? Health { get; set; } // Healthy, Warning, Failed, Unreachable, TimedOut, Pending public string? Probe { get; set; } // ipc_pipe, clock_offset, etc. public string? TenantId { get; set; } public string? Q { get; set; } public int Page { get; set; } = 1; public int PageSize { get; set; } = 50; } /// /// 设备明细分页返回结果 /// public class SelfCheckBatchDevicePagedResultDto { public int Total { get; set; } public int Page { get; set; } public int PageSize { get; set; } public List Items { get; set; } = new(); } /// /// 下发到终端的批量自检指令载荷 /// public class DeviceSelfCheckCommandDto { public string SelfCheckId { get; set; } = string.Empty; public string BatchId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public DateTimeOffset RequestedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceSelfCheckModels.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 设备自检项状态语义 /// public enum SelfCheckStatus { Healthy = 0, Warning = 1, Failed = 2, Skipped = 3 } /// /// 单项自检详细结果 /// public class SelfCheckItemDto { /// /// 自检项名称 (Service, WPF, SignalR, HTTPS, Clock, IPC, TTS) /// public string Name { get; set; } = string.Empty; /// /// 诊断结论 /// public SelfCheckStatus Status { get; set; } = SelfCheckStatus.Healthy; /// /// 状态机器可读代码 (如 "SERVICE_RUNNING", "CLOCK_OFFSET_HIGH") /// public string Code { get; set; } = string.Empty; /// /// 人类可读简要说明 /// public string Summary { get; set; } = string.Empty; /// /// 测算的通讯/执行延迟 (毫秒,可选) /// public long? LatencyMs { get; set; } } /// /// 发起远程自检指令数据载荷 /// public class DeviceSelfCheckRequestDto { public string SelfCheckId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public DateTimeOffset RequestedAtUtc { get; set; } = DateTimeOffset.UtcNow; public int TimeoutSeconds { get; set; } = 15; } /// /// 终端完成并上报的结构化自检报告 /// public class DeviceSelfCheckResultDto { public string SelfCheckId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public DateTimeOffset StartedAtUtc { get; set; } public DateTimeOffset CompletedAtUtc { get; set; } = DateTimeOffset.UtcNow; /// /// 综合诊断状态: Healthy, Warning, Failed /// public SelfCheckStatus OverallStatus { get; set; } = SelfCheckStatus.Healthy; /// /// 7 项核心诊断明细 /// public List Checks { get; set; } = new(); } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/DeviceStatusDto.cs ================================================================================ using ClassNotify.Shared.Enums; namespace ClassNotify.Shared.Models; /// /// 教室设备简要在线状态模型 /// public class DeviceStatusDto { public string DeviceId { get; set; } = string.Empty; public string ClassId { get; set; } = string.Empty; public string ClassName { get; set; } = string.Empty; public string? Hostname { get; set; } public DeviceOnlineState State { get; set; } = DeviceOnlineState.Offline; public DateTimeOffset LastHeartbeat { get; set; } = DateTimeOffset.UtcNow; public string AgentVersion { get; set; } = "2.0.0"; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/FleetVersionDtos.cs ================================================================================ using ClassNotify.Shared.Enums; namespace ClassNotify.Shared.Models; public sealed class DeviceVersionPolicyViewDto { public string MinimumServiceVersion { get; set; } = "2.4.0"; public string RecommendedServiceVersion { get; set; } = "2.5.0"; public string MinimumClientVersion { get; set; } = "2.4.0"; public string RecommendedClientVersion { get; set; } = "2.5.0"; public int MinimumProtocolVersion { get; set; } = 2; } public sealed class FleetVersionSummaryDto { public int Total { get; set; } public int Current { get; set; } public int Outdated { get; set; } public int Unsupported { get; set; } public int Unknown { get; set; } public DateTimeOffset GeneratedAtUtc { get; set; } public DeviceVersionPolicyViewDto Policy { get; set; } = new(); } public sealed class FleetDeviceVersionDto { public string DeviceId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string TenantName { get; set; } = string.Empty; public string ClassroomId { get; set; } = string.Empty; public string ClassroomName { get; set; } = string.Empty; public string? Hostname { get; set; } public bool IsOnline { get; set; } public DateTimeOffset? LastHeartbeatAt { get; set; } public string? ServiceVersion { get; set; } public string? ClientVersion { get; set; } public int? ProtocolVersion { get; set; } public string? OsVersion { get; set; } public string? Architecture { get; set; } public FleetVersionStatus VersionStatus { get; set; } = FleetVersionStatus.Unknown; public List Reasons { get; set; } = new(); } public sealed class FleetDeviceVersionQuery { public string? Status { get; set; } public string? TenantId { get; set; } public bool? Online { get; set; } public string? Q { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/NotificationDto.cs ================================================================================ using ClassNotify.Shared.Enums; namespace ClassNotify.Shared.Models; /// /// 通知消息传输对象 (DTO) /// public class NotificationDto { /// /// 唯一消息 ID (如 msg_20260920_xxxx) /// public string Id { get; set; } = Guid.NewGuid().ToString("N"); /// /// 所属学校/租户 ID (如 "t_beijing_no4") /// public string TenantId { get; set; } = string.Empty; /// /// 目标班级编号 (如 "cls_801") /// public string ClassId { get; set; } = string.Empty; /// /// 呼叫的目标学生姓名(可选,如 "张三") /// public string? StudentName { get; set; } /// /// 弹窗标题 /// public string Title { get; set; } = "🔔 老师呼叫"; /// /// 通知正文内容 /// public string Message { get; set; } = string.Empty; /// /// 通知类型 /// public NotificationType Type { get; set; } = NotificationType.Call; /// /// 是否开启 Windows TTS 中文语音朗读 /// public bool Voice { get; set; } = true; /// /// 是否开启窗口抖动震颤 /// public bool Shake { get; set; } = true; /// /// 展示持续时长(秒),超时后自动关闭 /// public int DurationSeconds { get; set; } = 15; /// /// 教师端发送时间戳 /// public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow; /// /// 消息过期时间(UTC),超过此时间不再向离线设备补发 /// public DateTimeOffset? ExpiresAt { get; set; } /// /// 全局应急广播关联 ID(可选) /// public string? BroadcastId { get; set; } /// /// 全链路业务追踪 ID (32 位小写 Hex) /// public string CorrelationId { get; set; } = string.Empty; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/NotificationReceiptStatuses.cs ================================================================================ namespace ClassNotify.Shared.Models; public static class NotificationReceiptStatuses { public const string Sent = "Sent"; public const string DeviceReceived = "DeviceReceived"; public const string Displayed = "Displayed"; public const string Acknowledged = "Acknowledged"; public const string Cancelled = "Cancelled"; public const string Failed = "Failed"; public const string Timeout = "Timeout"; public const string Expired = "Expired"; public static bool IsDisplayed(string status) => status == Displayed || status == Acknowledged; public static bool IsPending(string status) => status == Sent || status == DeviceReceived; public static bool IsFailed(string status) => status == Failed || status == Timeout || status == Expired; } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/SupportBundleModels.cs ================================================================================ using System; using System.Linq; namespace ClassNotify.Shared.Models; /// /// 设备技术诊断包状态枚举定义 (P2.5 RC1-3 Support Bundle) /// 严格冻结为 6 个状态,禁止擅自扩充 /// public static class SupportBundleStatuses { public const string PendingDispatch = "PendingDispatch"; public const string Collecting = "Collecting"; public const string Available = "Available"; public const string Failed = "Failed"; public const string TimedOut = "TimedOut"; public const string Expired = "Expired"; public static readonly string[] All = [ PendingDispatch, Collecting, Available, Failed, TimedOut, Expired ]; public static bool IsValid(string? status) => !string.IsNullOrEmpty(status) && All.Contains(status); public static bool IsTerminal(string? status) => status == Available || status == Failed || status == TimedOut || status == Expired; } /// /// 创建诊断包请求载荷 /// public class CreateSupportBundleRequest { public string? ClientRequestId { get; set; } } /// /// 诊断包创建响应载荷 (HTTP 202 Accepted) /// public class SupportBundleCreatedDto { public string SupportBundleId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } public string CorrelationId { get; set; } = string.Empty; } /// /// SignalR 发送至终端的诊断包生成命令契约 (FormatVersion = 1) /// 目标通道:t:{tenantId}:d:{deviceId} /// public sealed class GenerateSupportBundleCommand { public int FormatVersion { get; set; } = 1; public string SupportBundleId { get; set; } = string.Empty; public string CorrelationId { get; set; } = string.Empty; public DateTimeOffset RequestedAtUtc { get; set; } public DateTimeOffset DeadlineAtUtc { get; set; } public long MaxSizeBytes { get; set; } = 5 * 1024 * 1024; } /// /// 诊断包元数据清单 (manifest.json 结构,FormatVersion = 1) /// public sealed class SupportBundleManifestV1 { public int FormatVersion { get; set; } = 1; public string SupportBundleId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public DateTimeOffset CreatedAtUtc { get; set; } public string ServiceVersion { get; set; } = string.Empty; public string? ClientVersion { get; set; } public string ProtocolVersion { get; set; } = string.Empty; } /// /// 诊断包运行期环境快照 (runtime.json 结构) /// 严格白名单结构化字段,杜绝环境与注册表 Dump /// public sealed class SupportRuntimeSnapshotV1 { public string ServiceVersion { get; set; } = string.Empty; public string? ClientVersion { get; set; } public string OsVersion { get; set; } = string.Empty; public string Architecture { get; set; } = string.Empty; public long ServiceUptimeSeconds { get; set; } public bool WpfProcessAvailable { get; set; } public string SignalRState { get; set; } = string.Empty; public DateTimeOffset? LastSignalRConnectedAtUtc { get; set; } public DateTimeOffset? LastSignalRDisconnectedAtUtc { get; set; } public int? HttpsPingLatencyMs { get; set; } public long? ClockOffsetMs { get; set; } public string IpcState { get; set; } = string.Empty; public string TtsState { get; set; } = string.Empty; } /// /// 结构化诊断事件记录 (events.ndjson 逐行载荷) /// 杜绝明文异常堆栈与通知正文,采用白名单 EventCode /// public sealed record SupportDiagnosticEvent( DateTimeOffset TimestampUtc, string Level, string Component, string EventCode, string? CorrelationId, string? ErrorCode, long? DurationMs); /// /// 终端上报诊断采集失败请求 /// public sealed class SupportBundleFailureReportDto { public string ErrorCode { get; set; } = SupportBundleErrorCodes.CollectionFailure; } /// /// 诊断包标准错误代号字典 /// public static class SupportBundleErrorCodes { public const string BundleTooLarge = "BundleTooLarge"; public const string InvalidZip = "InvalidZip"; public const string InvalidManifest = "InvalidManifest"; public const string UnexpectedEntry = "UnexpectedEntry"; public const string ExpandedSizeExceeded = "ExpandedSizeExceeded"; public const string StorageFailure = "StorageFailure"; public const string UploadExpired = "UploadExpired"; public const string CollectionFailure = "CollectionFailure"; public const string BundleAlreadyCompleted = "BundleAlreadyCompleted"; public const string BundleNotAcceptingUpload = "BundleNotAcceptingUpload"; public const string DeviceMismatch = "DeviceMismatch"; public const string SupportBundleAlreadyRunning = "SupportBundleAlreadyRunning"; public const string BundleNotReady = "BundleNotReady"; public const string BundleFailed = "BundleFailed"; public const string BundleExpired = "BundleExpired"; public const string SupportBundleNotFound = "SupportBundleNotFound"; public const string SupportBundleFileMissing = "SupportBundleFileMissing"; public const string InvalidStoragePath = "InvalidStoragePath"; } /// /// 管理员端诊断包状态查询 DTO (P2.5 RC1-3 Phase 3) /// 严格白名单结构,杜绝暴露内部物理 StoragePath /// public sealed class SupportBundleStatusDto { public string SupportBundleId { get; set; } = string.Empty; public string DeviceId { get; set; } = string.Empty; public string TenantId { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; public DateTimeOffset CreatedAtUtc { get; set; } public DateTimeOffset? CompletedAtUtc { get; set; } public DateTimeOffset? ExpiresAtUtc { get; set; } public long? SizeBytes { get; set; } public string? Sha256 { get; set; } public bool DownloadAvailable { get; set; } public string? ErrorCode { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/TeacherLoginDto.cs ================================================================================ namespace ClassNotify.Shared.Models; /// /// 教师登录请求 DTO /// public class TeacherLoginDto { public string Username { get; set; } = string.Empty; public string Password { get; set; } = string.Empty; } /// /// 教师登录成功返回包含 Tenant Claims 的 JWT 凭证 /// public class TeacherLoginResultDto { public bool Success { get; set; } public string? Token { get; set; } public string? TenantId { get; set; } public string? UserId { get; set; } public string? FullName { get; set; } public string? Role { get; set; } public string? ErrorMessage { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Models/VisualReceiptModels.cs ================================================================================ using System; namespace ClassNotify.Shared.Models; /// /// IPC 传输的视觉回执数据包 (WPF Client -> Windows Service) /// public sealed class VisualReceiptIpcDto { public string NotificationId { get; set; } = string.Empty; public byte[] JpegBytes { get; set; } = Array.Empty(); } /// /// Web / Server 暴露给前端查看的设备通知回执视图模型 /// public sealed class NotificationReceiptViewDto { public string DeviceId { get; set; } = string.Empty; public string Status { get; set; } = string.Empty; public DateTimeOffset? DisplayedAt { get; set; } /// /// None / Available / Expired /// public string VisualReceiptState { get; set; } = "None"; public DateTimeOffset? VisualReceiptCapturedAt { get; set; } public DateTimeOffset? VisualReceiptExpiresAt { get; set; } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Services/ClientNotificationBuffer.cs ================================================================================ using System.Collections.Concurrent; using ClassNotify.Shared.Models; namespace ClassNotify.Shared.Services; /// /// Thread-safe client notification buffer and FIFO delivery dispatcher for Windows Service. /// Guarantees strict FIFO delivery order, single-concurrent flushing via SemaphoreSlim(1,1), /// and atomic peek-then-dequeue so broken-pipe failures leave the item at the head of the queue. /// When a backlog exists, new live notifications are enqueued to preserve FIFO order and never bypass pending items. /// public class ClientNotificationBuffer { private readonly ConcurrentQueue _pendingQueue = new(); private readonly SemaphoreSlim _flushLock = new(1, 1); public int PendingCount => _pendingQueue.Count; public IReadOnlyCollection GetPendingSnapshot() => _pendingQueue.ToArray(); public void Enqueue(NotificationDto notification) { if (notification == null) return; _pendingQueue.Enqueue(notification); } public void Clear() { while (_pendingQueue.TryDequeue(out _)) { } } /// /// Delivers the notification to the client or safely buffers it. /// If there is an existing backlog, the notification is enqueued to the tail of the backlog /// to preserve strict FIFO ordering, and a flush is triggered if connected. /// If there is no backlog and the client is connected, an immediate live delivery is attempted. /// If delivery fails, the notification is buffered so it can be flushed on reconnect. /// public async Task DeliverOrBufferAsync( NotificationDto notification, Func isClientConnected, Func> sendToClientAsync, int waitAttempts = 0, int delayMsBetweenAttempts = 500) { if (notification == null) return false; await _flushLock.WaitAsync(); try { // Case 1: Existing backlog exists. Must enqueue behind backlog to guarantee FIFO ordering! if (!_pendingQueue.IsEmpty) { _pendingQueue.Enqueue(notification); if (isClientConnected()) { await FlushInternalUnderLockAsync(isClientConnected, sendToClientAsync, DateTimeOffset.UtcNow); } return false; } // Case 2: No backlog. If client is connected, attempt immediate live send. if (isClientConnected()) { bool success = false; try { success = await sendToClientAsync(notification); } catch { success = false; } if (success) { return true; } } // Case 3: Client handshaking / transient wait window for (int i = 0; i < waitAttempts; i++) { if (delayMsBetweenAttempts > 0) { await Task.Delay(delayMsBetweenAttempts); } if (isClientConnected()) { bool success = false; try { success = await sendToClientAsync(notification); } catch { success = false; } if (success) { return true; } } } // Delivery failed or client not connected: buffer notification for next reconnect flush _pendingQueue.Enqueue(notification); return false; } finally { _flushLock.Release(); } } /// /// Flushes pending notifications to the connected client. /// Uses peek-then-dequeue: only dequeues upon verified successful send. /// If send fails or client disconnects, the failed notification remains at the head of the queue, /// flushing stops immediately, and strict FIFO order is naturally preserved. /// public async Task FlushAsync( Func isClientConnected, Func> sendToClientAsync, DateTimeOffset? currentUtc = null) { var now = currentUtc ?? DateTimeOffset.UtcNow; await _flushLock.WaitAsync(); try { return await FlushInternalUnderLockAsync(isClientConnected, sendToClientAsync, now); } finally { _flushLock.Release(); } } private async Task FlushInternalUnderLockAsync( Func isClientConnected, Func> sendToClientAsync, DateTimeOffset now) { int flushed = 0; while (_pendingQueue.TryPeek(out var notif)) { // Drop expired notification while waiting in queue if (notif.ExpiresAt.HasValue && notif.ExpiresAt.Value <= now) { _pendingQueue.TryDequeue(out _); continue; } if (!isClientConnected()) { // Client not connected: halt flush, leave notif at head of queue break; } bool success; try { success = await sendToClientAsync(notif); } catch { success = false; } if (success) { // Dequeue ONLY after successful delivery _pendingQueue.TryDequeue(out _); flushed++; } else { // Send failed (pipe broken mid-send). Do NOT dequeue! // notif remains at the head of the queue. Halt flushing to preserve FIFO order. break; } } return flushed; } public void Remove(string notificationId) { if (string.IsNullOrEmpty(notificationId)) return; _flushLock.Wait(); try { var items = _pendingQueue.ToArray(); while (_pendingQueue.TryDequeue(out _)) { } foreach (var item in items) { if (!string.Equals(item.Id, notificationId, StringComparison.OrdinalIgnoreCase)) { _pendingQueue.Enqueue(item); } } } finally { _flushLock.Release(); } } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Services/ClientNotificationDeduplicator.cs ================================================================================ using System; using System.Collections.Concurrent; using System.Linq; using System.Threading; namespace ClassNotify.Shared.Services; /// /// Client-side idempotent duplicate suppression for at-least-once message delivery. /// Ensures running clients do not display duplicate popups or trigger multiple TTS announcements /// when catching up or receiving retransmitted notifications with the same Notification ID. /// public class ClientNotificationDeduplicator { private readonly ConcurrentDictionary _processedMessageIds = new(); private readonly int _maxCapacity; private readonly TimeSpan _retentionPeriod; private readonly object _cleanupLock = new(); public ClientNotificationDeduplicator(int maxCapacity = 1000, TimeSpan? retentionPeriod = null) { _maxCapacity = maxCapacity; _retentionPeriod = retentionPeriod ?? TimeSpan.FromHours(24); } /// /// Atomically attempts to mark the notification as processed. /// /// The unique notification ID. /// True if this is the first time receiving this ID (allow processing); False if duplicate (suppress presentation). public bool TryProcess(string notificationId) { if (string.IsNullOrWhiteSpace(notificationId)) return false; var now = DateTimeOffset.UtcNow; if (!_processedMessageIds.TryAdd(notificationId, now)) { // Key already exists -> atomic duplicate detection return false; } // Bounded capacity protection if (_processedMessageIds.Count > _maxCapacity) { ThreadPool.QueueUserWorkItem(_ => CleanupStaleEntries()); } return true; } /// /// Checks whether an ID has been seen without mutating deduplication state. /// public bool IsProcessed(string notificationId) { return !string.IsNullOrWhiteSpace(notificationId) && _processedMessageIds.ContainsKey(notificationId); } public int Count => _processedMessageIds.Count; public void Clear() { _processedMessageIds.Clear(); } private void CleanupStaleEntries() { if (!Monitor.TryEnter(_cleanupLock)) return; try { var threshold = DateTimeOffset.UtcNow.Subtract(_retentionPeriod); foreach (var kvp in _processedMessageIds) { if (kvp.Value < threshold) { _processedMessageIds.TryRemove(kvp.Key, out _); } } // If still over capacity after expiry cleanup, purge oldest half if (_processedMessageIds.Count > _maxCapacity) { var removeCount = _processedMessageIds.Count - (_maxCapacity / 2); var oldestKeys = _processedMessageIds .OrderBy(kvp => kvp.Value) .Take(removeCount) .Select(kvp => kvp.Key) .ToList(); foreach (var key in oldestKeys) { _processedMessageIds.TryRemove(key, out _); } } } catch { // Best effort cleanup } finally { Monitor.Exit(_cleanupLock); } } } ================================================================================ FILE: src/Shared/ClassNotify.Shared/Services/DeviceCommandDeduplicator.cs ================================================================================ using System.Collections.Concurrent; using System.Text.Json; using ClassNotify.Shared.Models; namespace ClassNotify.Shared.Services; /// /// 命令认领抢占状态 /// public enum CommandClaimResult { /// 成功抢占并在内存与磁盘物理账本中双重持久化成功 Claimed, /// 命令此前已执行完毕,持有已完成缓存结果 AlreadyCompleted, /// 命令当前正处于执行流中,尚未得出最终结果 InFlight, /// 持久化账本写入失败或本地账本文件已损坏,Fail-Closed 拒绝执行任何副作用 StorageError } /// /// 专用远程命令幂等去重器与持久化本地账本 (Windows Service 端) /// 保证同一 CommandId 在网络抖动、SignalR 重连、重复派发、乃至 Service 崩溃或重启后, /// 严格至多在物理终端执行一次实际副作用,并能安全幂等返回先前的执行结果。 /// 严格遵循 Fail-Closed 原则:当磁盘持久化失败或文件损坏时,决不允许在不具备持久保证的情况下执行副作用。 /// public class DeviceCommandDeduplicator { public class CommandExecutionRecord { public bool IsCompleted { get; set; } public DateTimeOffset Timestamp { get; set; } public DeviceCommandResultDto? Result { get; set; } } private readonly ConcurrentDictionary _records = new(); private readonly TimeSpan _slidingWindow; private readonly int _maxCapacity; private readonly string? _ledgerFilePath; private readonly object _fileLock = new(); private volatile bool _isCorrupted = false; public int Count => _records.Count; public string? LedgerFilePath => _ledgerFilePath; public bool IsCorrupted => _isCorrupted; public DeviceCommandDeduplicator( TimeSpan? slidingWindow = null, int maxCapacity = 1000, string? ledgerFilePath = null) { _slidingWindow = slidingWindow ?? TimeSpan.FromHours(1); _maxCapacity = maxCapacity; _ledgerFilePath = ledgerFilePath; LoadLedgerFromDisk(); } /// /// 尝试以持久化 Fail-Closed 保证抢占执行锁。 /// 只有在内存认领成功 且 磁盘持久化写入原子成功时,才返回 Claimed; /// 若账本损坏或持久化失败,立即回滚内存状态并返回 StorageError,阻断副作用执行。 /// public CommandClaimResult TryDurablyClaim(string commandId, DateTimeOffset? nowUtc = null) { if (string.IsNullOrWhiteSpace(commandId)) return CommandClaimResult.StorageError; if (_isCorrupted) return CommandClaimResult.StorageError; var now = nowUtc ?? DateTimeOffset.UtcNow; PruneIfNeeded(now); if (_records.TryGetValue(commandId, out var existing)) { return existing.IsCompleted ? CommandClaimResult.AlreadyCompleted : CommandClaimResult.InFlight; } var record = new CommandExecutionRecord { IsCompleted = false, Timestamp = now }; if (!_records.TryAdd(commandId, record)) { return _records.TryGetValue(commandId, out var r) && r.IsCompleted ? CommandClaimResult.AlreadyCompleted : CommandClaimResult.InFlight; } try { SaveLedgerToDisk(); return CommandClaimResult.Claimed; } catch { // Fail-closed: 回滚内存记录,确保没有虚假的 InFlight 状态残留在内存中 _records.TryRemove(commandId, out _); return CommandClaimResult.StorageError; } } /// /// 尝试抢占执行锁(兼容既有布尔接口,底层严格遵循 TryDurablyClaim 的 Fail-Closed 保证)。 /// public bool TryBeginExecution(string commandId, DateTimeOffset? nowUtc = null) { return TryDurablyClaim(commandId, nowUtc) == CommandClaimResult.Claimed; } /// /// 命令执行完毕后记录最终执行结果并持久化至磁盘 /// public void CompleteExecution(string commandId, DeviceCommandResultDto result, DateTimeOffset? nowUtc = null) { if (string.IsNullOrWhiteSpace(commandId)) return; var now = nowUtc ?? DateTimeOffset.UtcNow; if (_records.TryGetValue(commandId, out var record)) { record.IsCompleted = true; record.Timestamp = now; record.Result = result; } else { _records[commandId] = new CommandExecutionRecord { IsCompleted = true, Timestamp = now, Result = result }; } try { SaveLedgerToDisk(); } catch { // 写入失败时保留内存记录 } } /// /// 查询已完成命令的历史缓存结果(用于重复到达时直接返回原结果) /// public bool TryGetCachedResult(string commandId, out DeviceCommandResultDto? result) { result = null; if (string.IsNullOrWhiteSpace(commandId)) return false; if (_records.TryGetValue(commandId, out var record) && record.IsCompleted && record.Result != null) { result = record.Result; return true; } return false; } public void Clear() { _records.Clear(); _isCorrupted = false; try { SaveLedgerToDisk(); } catch { } } private void PruneIfNeeded(DateTimeOffset now) { bool pruned = false; var cutoff = now.Subtract(_slidingWindow); if (_records.Count > _maxCapacity) { foreach (var kvp in _records) { if (kvp.Value.Timestamp < cutoff) { if (_records.TryRemove(kvp.Key, out _)) { pruned = true; } } } } if (pruned) { try { SaveLedgerToDisk(); } catch { } } } private void LoadLedgerFromDisk() { if (string.IsNullOrWhiteSpace(_ledgerFilePath)) return; try { lock (_fileLock) { if (!File.Exists(_ledgerFilePath)) return; var json = File.ReadAllText(_ledgerFilePath); if (string.IsNullOrWhiteSpace(json)) { // 存在但为空,视同损坏文件以防读取非预期状态 _isCorrupted = true; return; } var data = JsonSerializer.Deserialize>(json); if (data != null) { var now = DateTimeOffset.UtcNow; var cutoff = now.Subtract(_slidingWindow); foreach (var (k, v) in data) { if (v.Timestamp >= cutoff) { _records[k] = v; } } } else { _isCorrupted = true; } } } catch { // Fail-closed: 遇到反序列化异常或文件损坏时标记 Corrupted,阻止无保护的执行 _isCorrupted = true; } } private void SaveLedgerToDisk() { if (string.IsNullOrWhiteSpace(_ledgerFilePath)) return; lock (_fileLock) { var dir = Path.GetDirectoryName(_ledgerFilePath); if (!string.IsNullOrEmpty(dir) && !Directory.Exists(dir)) { Directory.CreateDirectory(dir); } var snapshot = _records.ToDictionary(k => k.Key, v => v.Value); var json = JsonSerializer.Serialize(snapshot, new JsonSerializerOptions { WriteIndented = true }); var tmp = _ledgerFilePath + $".{Guid.NewGuid():N}.tmp"; File.WriteAllText(tmp, json); File.Move(tmp, _ledgerFilePath, overwrite: true); } } } ================================================================================ FILE: src/Web/ClassNotify.Web/index.html ================================================================================ ClassNotify 智慧教室通知与集控平台
================================================================================ FILE: src/Web/ClassNotify.Web/package.json ================================================================================ { "name": "classnotify-web", "private": true, "version": "2.1.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", "test": "vitest run" }, "dependencies": { "@microsoft/signalr": "^8.0.7", "clsx": "^2.1.1", "lucide-react": "^0.475.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "^6.28.0", "tailwind-merge": "^2.6.0" }, "devDependencies": { "@testing-library/jest-dom": "^7.0.1", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.7", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vitejs/plugin-react": "^4.3.4", "autoprefixer": "^10.4.20", "jsdom": "^30.1.0", "playwright": "^1.63.0", "postcss": "^8.4.49", "tailwindcss": "^3.4.17", "typescript": "~5.6.2", "vite": "^6.0.1", "vitest": "^5.0.1" } } ================================================================================ FILE: src/Web/ClassNotify.Web/package-lock.json ================================================================================ { "name": "classnotify-web", "version": "2.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "classnotify-web", "version": "2.1.0", "dependencies": { "@microsoft/signalr": "^8.0.7", "clsx": "^2.1.1", "lucide-react": "^0.475.0", "react": "^18.3.1", "react-dom": "^18.3.1", "react-router-dom": "^6.28.0", "tailwind-merge": "^2.6.0" }, "devDependencies": { "@testing-library/jest-dom": "^7.0.1", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.7", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vitejs/plugin-react": "^4.3.4", "autoprefixer": "^10.4.20", "jsdom": "^30.1.0", "playwright": "^1.63.0", "postcss": "^8.4.49", "tailwindcss": "^3.4.17", "typescript": "~5.6.2", "vite": "^6.0.1", "vitest": "^5.0.1" } }, "node_modules/@adobe/css-tools": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.5.0.tgz", "integrity": "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==", "dev": true, "license": "MIT" }, "node_modules/@alloc/quick-lru": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", "dev": true, "license": "MIT", "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/@asamuzakjp/css-color": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-7.0.1.tgz", "integrity": "sha512-C9duntabagkBZ1LebM7FKmphR4Q1pBclLxVbZETQV0akkFjV0ooFxo8FlvAQyKj9F6l8rEnmidgcTlpyxFYizg==", "dev": true, "license": "MIT", "dependencies": { "@csstools/css-calc": "^3.4.0", "@csstools/css-color-parser": "^4.2.3", "@csstools/css-parser-algorithms": "^4.0.0", "@csstools/css-tokenizer": "^4.0.1", "lru-cache": "^11.5.3" }, "engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" } }, "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": { "version": "11.5.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" } }, "node_modules/@asamuzakjp/dom-selector": { "version": "9.2.1", "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-9.2.1.tgz", "integrity": "sha512-NT4s3yZLjovPpliRpTvdsdzyPjqRqiCZj9MxnarBihbaY5MbAG7DWAJcrLlhmC7xKTNCXsTELcqB8YsqpLnUFQ==", "dev": true, "license": "MIT", "dependencies": { "bidi-js": "^1.1.0", "css-tree": "^3.2.1", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.5.3" }, "engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" } }, "node_modules/@asamuzakjp/dom-selector/node_modules/lru-cache": { "version": "11.5.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" } }, "node_modules/@babel/code-frame": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-module-transforms": "^7.29.7", "@babel/helpers": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/template": "^7.29.7", "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", "json5": "^2.2.3", "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/babel" } }, "node_modules/@babel/generator": { "version": "7.29.8", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.29.8", "@babel/types": "^7.29.8", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.29.7", "@babel/helper-validator-option": "^7.29.7", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-globals": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", "dev": true, "license": "MIT", "dependencies": { "@babel/traverse": "^7.29.7", "@babel/types": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7", "@babel/traverse": "^7.29.7" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-plugin-utils": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.29.7", "@babel/types": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { "version": "7.29.9", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.29.8" }, "bin": { "parser": "bin/babel-parser.js" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@babel/plugin-transform-react-jsx-self": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.29.7" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "node_modules/@babel/plugin-transform-react-jsx-source": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.29.7" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "node_modules/@babel/runtime": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/template": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/parser": "^7.29.7", "@babel/types": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { "version": "7.29.8", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", "@babel/generator": "^7.29.8", "@babel/helper-globals": "^7.29.7", "@babel/parser": "^7.29.8", "@babel/template": "^7.29.7", "@babel/types": "^7.29.8", "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { "version": "7.29.8", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", "dev": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@bramus/specificity": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz", "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==", "dev": true, "license": "MIT", "dependencies": { "css-tree": "^3.0.0" }, "bin": { "specificity": "bin/cli.js" } }, "node_modules/@csstools/color-helpers": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.1.tgz", "integrity": "sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/csstools" }, { "type": "opencollective", "url": "https://opencollective.com/csstools" } ], "license": "MIT-0", "engines": { "node": ">=20.19.0" } }, "node_modules/@csstools/css-calc": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.0.tgz", "integrity": "sha512-XQKj5B7QiZcHiegCOCAzcAOJdhGgWOHbbu62h5e5mkHnn8lWcfiJhllkqWmxu5zWR9jucPHuo1iTB56P033hcg==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/csstools" }, { "type": "opencollective", "url": "https://opencollective.com/csstools" } ], "license": "MIT", "engines": { "node": ">=20.19.0" }, "peerDependencies": { "@csstools/css-parser-algorithms": "^4.0.0", "@csstools/css-tokenizer": "^4.0.0" } }, "node_modules/@csstools/css-color-parser": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.3.tgz", "integrity": "sha512-y4LpL+lmpuyKDiEFq2PnZUVFdAjsoB/qQJod79yLNokXyW7jewi+/WJ69EfItj8A2unWtxXnGjw6LYXgXu5ZjA==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/csstools" }, { "type": "opencollective", "url": "https://opencollective.com/csstools" } ], "license": "MIT", "dependencies": { "@csstools/color-helpers": "^6.1.1", "@csstools/css-calc": "^3.4.0" }, "engines": { "node": ">=20.19.0" }, "peerDependencies": { "@csstools/css-parser-algorithms": "^4.0.0", "@csstools/css-tokenizer": "^4.0.0" } }, "node_modules/@csstools/css-parser-algorithms": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz", "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/csstools" }, { "type": "opencollective", "url": "https://opencollective.com/csstools" } ], "license": "MIT", "engines": { "node": ">=20.19.0" }, "peerDependencies": { "@csstools/css-tokenizer": "^4.0.0" } }, "node_modules/@csstools/css-syntax-patches-for-csstree": { "version": "1.1.14", "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.14.tgz", "integrity": "sha512-HpbVXyrofRXpHpgkNIjU/3EWR4WJvOkO3emNK/L6X/mTJU7bGUI3AkkpoTNXznQLp0KRjLHELTGeKI5dIkI9JQ==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/csstools" }, { "type": "opencollective", "url": "https://opencollective.com/csstools" } ], "license": "MIT-0", "peerDependencies": { "css-tree": "^3.2.1" }, "peerDependenciesMeta": { "css-tree": { "optional": true } } }, "node_modules/@csstools/css-tokenizer": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.1.tgz", "integrity": "sha512-bPlN9S9O1A0euCpEWE4qnvB5YDuyYVsUTrxSgmAM1Is0j4tICHoVyOVAXfWMP/kS9ZrjvyIXWV2PmomiAXXqOw==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/csstools" }, { "type": "opencollective", "url": "https://opencollective.com/csstools" } ], "license": "MIT", "engines": { "node": ">=20.19.0" } }, "node_modules/@esbuild/aix-ppc64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", "cpu": [ "ppc64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "aix" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/android-arm": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", "cpu": [ "arm" ], "dev": true, "license": "MIT", "optional": true, "os": [ "android" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/android-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "android" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/android-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "android" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/darwin-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/darwin-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/freebsd-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "freebsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/freebsd-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "freebsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-arm": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", "cpu": [ "arm" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-ia32": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", "cpu": [ "ia32" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-loong64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", "cpu": [ "loong64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-mips64el": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", "cpu": [ "mips64el" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-ppc64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", "cpu": [ "ppc64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-riscv64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", "cpu": [ "riscv64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-s390x": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", "cpu": [ "s390x" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/linux-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/netbsd-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "netbsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/netbsd-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "netbsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/openbsd-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "openbsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/openbsd-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "openbsd" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/openharmony-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "openharmony" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/sunos-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "sunos" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/win32-arm64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/win32-ia32": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", "cpu": [ "ia32" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { "node": ">=18" } }, "node_modules/@esbuild/win32-x64": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { "node": ">=18" } }, "node_modules/@exodus/bytes": { "version": "1.15.1", "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.1.tgz", "integrity": "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==", "dev": true, "license": "MIT", "engines": { "node": "^20.19.0 || ^22.12.0 || >=24.0.0" }, "peerDependencies": { "@noble/hashes": "^1.8.0 || ^2.0.0" }, "peerDependenciesMeta": { "@noble/hashes": { "optional": true } } }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "node_modules/@jridgewell/remapping": { "version": "2.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.31", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@microsoft/signalr": { "version": "8.0.29", "resolved": "https://registry.npmjs.org/@microsoft/signalr/-/signalr-8.0.29.tgz", "integrity": "sha512-yzszFiTAuRxHm3qxNaSan3YzN8dffLqQcc3ZNJD2tn9eInCBBi7u2xCJ6AVNXjw19RDoBc+NPWfYN43K1HcjdA==", "license": "MIT", "dependencies": { "abort-controller": "^3.0.0", "eventsource": "^2.0.2", "fetch-cookie": "^2.0.3", "node-fetch": "^2.6.7", "ws": "^7.5.10" } }, "node_modules/@napi-rs/lzma-linux-x64-gnu": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==", "cpu": [ "x64" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { "node": "^22.20 || ^24.12 || >=25" } }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" }, "engines": { "node": ">= 8" } }, "node_modules/@nodelib/fs.stat": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/@nodelib/fs.walk": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" }, "engines": { "node": ">= 8" } }, "node_modules/@remix-run/router": { "version": "1.23.4", "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.4.tgz", "integrity": "sha512-q7j5geK7xs3UJSdm9/iytUNclBnLmYx1EnSeCFXHPeutdqgIMeFeHtUZgS3EhlKxdBEAu8OwtJCwmLrEzpSs7Q==", "license": "MIT", "engines": { "node": ">=14.0.0" } }, "node_modules/@rolldown/pluginutils": { "version": "1.0.0-beta.27", "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", "dev": true, "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.4.tgz", "integrity": "sha512-I+BSHzTAhKN2n7ZwGZsegGcZjDpLqFOMAtJz/u6uFGe0pUFbq56dEHjqJV/ZUdRJtNXNxA+hREUatZBvMR3Oiw==", "cpu": [ "arm" ], "dev": true, "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-android-arm64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.4.tgz", "integrity": "sha512-pu3BdjS2LtEzRu2elmGzS3fIeWSZy4BMDIaLNwjorO76+k2d0LMluijhsDx3KQyQBQ/lLUZCQA9/s6csvUfuhw==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "android" ] }, "node_modules/@rollup/rollup-darwin-arm64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.4.tgz", "integrity": "sha512-xfSrj9MHnWK9GaSqT9U0ImHtH/N8WZlHLx4cZHiuLcqs640hvZ3hLPd5UR2AZS57FaE8HrRUSpltbZdWRxHiDA==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-darwin-x64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.4.tgz", "integrity": "sha512-bqU99PLJb/dqb3S0GIMdeuyAEETSUgZBoqXYd3Sd+WCsV+MmPhnN6JrotWyir31+QgH7EvvE5/mwGJlEoci8Fw==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "darwin" ] }, "node_modules/@rollup/rollup-freebsd-arm64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.4.tgz", "integrity": "sha512-JinsFZ5G40oXQb+sUuiA5x689vhr6dDYK0H0NL+rwKdL6CqnmYN8PE4ZwfRSoIjrCxqTQG/SLfTtSvHeGxoVlw==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "freebsd" ] }, "node_modules/@rollup/rollup-freebsd-x64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.4.tgz", "integrity": "sha512-GAdA4UxpiNm27cLHr2GqXBpAD0x9FqwYBY7/YSP0Ss0/PNi4k8gbviqpIpYbVSRBaS2ZcegXEzgTQMbRNCwxCw==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "freebsd" ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.4.tgz", "integrity": "sha512-qDd6NoA1znaLjp4jR5U/KWCdLAKDJNB8W9ChbbDaKbo0xA+Atln5HK6LFCZ4oJQpemtRZA288DCirFRjrspptw==", "cpu": [ "arm" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.4.tgz", "integrity": "sha512-WtB5Tz5KTNINb8ZA+8sQ7bmjuS1JrRT7YverYIhUGdWWDlpzVWmIwuZE+jidkEXUn1l0zrEkaIMa8dHF3NGcsA==", "cpu": [ "arm" ], "dev": true, "libc": [ "musl" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.4.tgz", "integrity": "sha512-VcQ3L1tjnkKzWjryAVaFhHEWcqOfICX9uxVVoDzm2t0DpgKRHd2zOpVrJc0xsWeBZcBFyYROCIBdyR/fS174pg==", "cpu": [ "arm64" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.4.tgz", "integrity": "sha512-6+ZQX6P5s0cMDN2Ypb8Lbm2+/sZYmZjdaYny992ujUU9UKi/4CWoJWsl1pNvjWJHNHGK51m+jKGLlh1ylb2ifQ==", "cpu": [ "arm64" ], "dev": true, "libc": [ "musl" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.4.tgz", "integrity": "sha512-D72ZnvkFkBXOfzMMQLcwfPLyGkKb7HZ9/mf97B7v6/P5Lbv4oFOtSY/uHbS8lH6uKUOxoKiuokdb50XZSzzbJw==", "cpu": [ "loong64" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.4.tgz", "integrity": "sha512-piU6BxeqA3O9KSu3kRCIQQtNqFFaTu21SEV4FwaRZowpnj3bLaWPZHw+xFqCs0XlJ+aOH3PTRWGoglH+mKA/OA==", "cpu": [ "loong64" ], "dev": true, "libc": [ "musl" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.4.tgz", "integrity": "sha512-/5PGpHwqt2EEEOUs1XwzubE/ucr0dWDQ+to3zqi4Ds7EWpwtQ79wXc4JBoxqj/OwpawTsKWzJxHfSuBOq3DrWA==", "cpu": [ "ppc64" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.4.tgz", "integrity": "sha512-cX3beZDLWt7G2oJF+nhChiT+qtaihs+S2xi7ziGmVB+2pwPng6D0Ed0HmElQOgv2UsUmSJJLGwpBao/3TDx3VA==", "cpu": [ "ppc64" ], "dev": true, "libc": [ "musl" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.4.tgz", "integrity": "sha512-1uz2mGWHyptR7DgHHrlbdRAjXK7v7elGZ9lMja910/RP+ZYbX6xAmCiU9UZSX4hqmgtHMv6lr5l3kq1HIOpcag==", "cpu": [ "riscv64" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.4.tgz", "integrity": "sha512-nLS8topojxyz7SRpKR2IODRpQ0XPZ+xaOXvT3+hqK/Uy8Lo5HFgkkIBiIrCu5tL5YqzTvgovGw55PwpahTAGig==", "cpu": [ "riscv64" ], "dev": true, "libc": [ "musl" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.4.tgz", "integrity": "sha512-gs7DRKotr3l3q+jGPQBjH0ng1FjlEDm5ueQrkw5JtQvtLyEIcLASqAEaor56BhkKRzk+IcQzrcanBdb/bBQn8g==", "cpu": [ "s390x" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.4.tgz", "integrity": "sha512-791ET7W17NnScOZM7h4dX5hYspxE28htPFsb1awY/NRR8+PRNkS53e475rDdxXXDrP+kwnCcNWg9CX5ztn/Aqw==", "cpu": [ "x64" ], "dev": true, "libc": [ "glibc" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-linux-x64-musl": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.4.tgz", "integrity": "sha512-iwZQRcmj7g88g3tzefIrQY7qvmuA/cfYwhrDtTBhsmukO4U2huVO5W+86XacUMRvdSFVAc6kZUZy21JaRwiB9w==", "cpu": [ "x64" ], "dev": true, "libc": [ "musl" ], "license": "MIT", "optional": true, "os": [ "linux" ] }, "node_modules/@rollup/rollup-openbsd-x64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.4.tgz", "integrity": "sha512-dVHFp9gRWrdTpnqQuGfCwd7hOQDatK1VCP2iWhLY/cGrOQs/ucFzJ6A5SRqbXX12ZDI8EUuejSM5kwg+ja7Png==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "openbsd" ] }, "node_modules/@rollup/rollup-openharmony-arm64": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.4.tgz", "integrity": "sha512-t3NlauOW6gxZVVFcBEnO62Cb4wbyDFL416gTg1uFI/2tgqYQlf69FbSE115Ajre9I+c26Lk4mcmdFUsS/DGifQ==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "openharmony" ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.4.tgz", "integrity": "sha512-xWuIaSye5FWZF8+UYtVEcHtRJDN5kN9Kfgxx3Kq8XIov9KSKbc1fiqQCm90SKrgQbUXZelbnUhnlUJmfSE7P9A==", "cpu": [ "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.4.tgz", "integrity": "sha512-9ALJJUOg/ZflMJepVo2PlgsGxSaxN7SQ4Z8GoZfVlarWr6r3rkHUNsd/zAio7p4YMtChSMXPionxej4Hkf6CXQ==", "cpu": [ "ia32" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.4.tgz", "integrity": "sha512-blj9z5qx/Pv4WU0W1NMFDB97e0JH5ed+aZGywW8WCvp/NhWX/4PFAq5uu6Q0AebNn+Vo6KzUYDT++JzTT5ojlQ==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.4.tgz", "integrity": "sha512-Erx822VRBwLa124shbj+wNXe//BOgMEctDV0m1aqTQdNO1S69DgNUCFKC1RCeZfixs1J31l6igk1ziyXErbigQ==", "cpu": [ "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" ] }, "node_modules/@testing-library/dom": { "version": "10.4.2", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.2.tgz", "integrity": "sha512-yzr2S9HyAIdhz2/6qHgbs665Q7PKVcDF05vsOlHPxG1mo36gKVesdYVeDLnXgfjJ03CrKRk08knc6+E/9m8v2Q==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "@babel/code-frame": "^7.10.4", "@babel/runtime": "^7.12.5", "@types/aria-query": "^5.0.1", "aria-query": "5.3.0", "dom-accessibility-api": "^0.5.9", "lz-string": "^1.5.0", "picocolors": "1.1.1", "pretty-format": "^27.0.2" }, "engines": { "node": ">=18" } }, "node_modules/@testing-library/jest-dom": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", "dev": true, "license": "MIT", "dependencies": { "@adobe/css-tools": "^4.4.0", "aria-query": "^5.0.0", "css.escape": "^1.5.1", "dom-accessibility-api": "^0.6.3", "picocolors": "^1.1.1", "redent": "^3.0.0" }, "engines": { "node": ">=22", "npm": ">=6", "yarn": ">=1" }, "peerDependencies": { "@testing-library/dom": ">=10 <11", "vitest": ">= 0.32" }, "peerDependenciesMeta": { "vitest": { "optional": true } } }, "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", "dev": true, "license": "MIT" }, "node_modules/@testing-library/react": { "version": "16.3.3", "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.3.tgz", "integrity": "sha512-Uo193NgQbPMz6lrrhtRQQFcMC6Re/ELLFbbuVL30WDlZxlpZf9/lMHTAVxPRLw1q1iu9OJmR1c2BLiENRstdBg==", "dev": true, "license": "MIT", "dependencies": { "@babel/runtime": "^7.12.5" }, "engines": { "node": ">=18" }, "peerDependencies": { "@testing-library/dom": "^10.0.0", "@types/react": "^18.0.0 || ^19.0.0", "@types/react-dom": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, "@types/react-dom": { "optional": true } } }, "node_modules/@testing-library/user-event": { "version": "14.6.7", "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.7.tgz", "integrity": "sha512-MPCpX8bxe8zS+JmmTwLp8jd0dy1rAm60Te/SL8JrQM3qvQJcBOs1d7IefJMyZzqM3EWBrDn/LWDt1BCGu4ASfg==", "dev": true, "license": "MIT", "engines": { "node": ">=12", "npm": ">=6" }, "peerDependencies": { "@testing-library/dom": ">=7.21.4" } }, "node_modules/@types/aria-query": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true, "license": "MIT", "peer": true }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "node_modules/@types/babel__generator": { "version": "7.27.0", "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { "version": "7.4.4", "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__traverse": { "version": "7.28.0", "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.28.2" } }, "node_modules/@types/chai": { "version": "5.2.3", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", "dev": true, "license": "MIT", "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "node_modules/@types/deep-eql": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", "dev": true, "license": "MIT" }, "node_modules/@types/estree": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", "dev": true, "license": "MIT" }, "node_modules/@types/prop-types": { "version": "15.7.15", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", "dev": true, "license": "MIT" }, "node_modules/@types/react": { "version": "18.3.31", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz", "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", "dev": true, "license": "MIT", "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" } }, "node_modules/@types/react-dom": { "version": "18.3.7", "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", "dev": true, "license": "MIT", "peerDependencies": { "@types/react": "^18.0.0" } }, "node_modules/@vitejs/plugin-react": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "engines": { "node": "^14.18.0 || >=16.0.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "node_modules/@vitest/mocker": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.1.tgz", "integrity": "sha512-6K1DoBNAPGvuOcSsGA4D6x+5zEEff/KmOOP3uetT2TrGpVfI+HRHRnJJfKi5ib/g1vx8IYHQD8s0pbJz8WQI7Q==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/trace-mapping": "0.3.31", "@vitest/spy": "5.0.1", "estree-walker": "^3.0.3", "magic-string": "^1.2.3" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "msw": { "optional": true }, "vite": { "optional": true } } }, "node_modules/@vitest/spy": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.1.tgz", "integrity": "sha512-rbto/mF/SGERxEgYOek7Xm6B9b+y+mVoo+f4b2LymYO8zM1b7uB5nHuhVMTP2hxdzgxvGiZYGxGIaMvL5y180Q==", "dev": true, "license": "MIT", "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", "license": "MIT", "dependencies": { "event-target-shim": "^5.0.0" }, "engines": { "node": ">=6.5" } }, "node_modules/ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=8" } }, "node_modules/ansi-styles": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", "peer": true, "engines": { "node": ">=10" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", "dev": true, "license": "MIT" }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" }, "engines": { "node": ">= 8" } }, "node_modules/arg": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", "dev": true, "license": "MIT" }, "node_modules/aria-query": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, "license": "Apache-2.0", "dependencies": { "dequal": "^2.0.3" } }, "node_modules/assertion-error": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", "dev": true, "license": "MIT", "engines": { "node": ">=12" } }, "node_modules/autoprefixer": { "version": "10.6.1", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.6.1.tgz", "integrity": "sha512-cL1Qz6ADZhcEbny/8HPfe99J6HhNoYtpX2LFLIbhgGE7Q1hlQVkYFdetDN7Id3KiQxhDrHwzlHr/YQCnZ8+xSA==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/postcss/" }, { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/autoprefixer" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "browserslist": "^4.28.9", "caniuse-lite": "^1.0.30001810", "fraction.js": "^5.3.4", "picocolors": "^1.1.1", "postcss-value-parser": "^4.2.0" }, "bin": { "autoprefixer": "bin/autoprefixer" }, "engines": { "node": "^10 || ^12 || >=14" }, "peerDependencies": { "postcss": "^8.1.0" } }, "node_modules/baseline-browser-mapping": { "version": "2.11.25", "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.25.tgz", "integrity": "sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==", "dev": true, "license": "Apache-2.0", "bin": { "baseline-browser-mapping": "dist/cli.cjs" }, "engines": { "node": ">=6.0.0" } }, "node_modules/bidi-js": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz", "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==", "dev": true, "license": "MIT", "dependencies": { "require-from-string": "^2.0.2" } }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, "license": "MIT", "engines": { "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, "node_modules/browserslist": { "version": "4.29.0", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz", "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/browserslist" }, { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "baseline-browser-mapping": "^2.11.23", "caniuse-lite": "^1.0.30001810", "electron-to-chromium": "^1.5.427", "node-releases": "^2.0.55", "update-browserslist-db": "^1.3.3" }, "bin": { "browserslist": "cli.js" }, "engines": { "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, "node_modules/camelcase-css": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", "dev": true, "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/caniuse-lite": { "version": "1.0.30001810", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/browserslist" }, { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "CC-BY-4.0" }, "node_modules/chai": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", "dev": true, "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "engines": { "node": ">= 8.10.0" }, "funding": { "url": "https://paulmillr.com/funding/" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "node_modules/chokidar/node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, "engines": { "node": ">= 6" } }, "node_modules/clsx": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/commander": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", "dev": true, "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true, "license": "MIT" }, "node_modules/css-tree": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", "dev": true, "license": "MIT", "dependencies": { "mdn-data": "2.27.1", "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" } }, "node_modules/css.escape": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==", "dev": true, "license": "MIT" }, "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "dev": true, "license": "MIT", "bin": { "cssesc": "bin/cssesc" }, "engines": { "node": ">=4" } }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "dev": true, "license": "MIT" }, "node_modules/data-urls": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", "dev": true, "license": "MIT", "dependencies": { "whatwg-mimetype": "^5.0.0", "whatwg-url": "^16.0.0" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, "node_modules/data-urls/node_modules/tr46": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", "dev": true, "license": "MIT", "dependencies": { "punycode": "^2.3.1" }, "engines": { "node": ">=20" } }, "node_modules/data-urls/node_modules/webidl-conversions": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=20" } }, "node_modules/data-urls/node_modules/whatwg-url": { "version": "16.0.1", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz", "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==", "dev": true, "license": "MIT", "dependencies": { "@exodus/bytes": "^1.11.0", "tr46": "^6.0.0", "webidl-conversions": "^8.0.1" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, "node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" }, "engines": { "node": ">=6.0" }, "peerDependenciesMeta": { "supports-color": { "optional": true } } }, "node_modules/decimal.js": { "version": "10.6.0", "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", "dev": true, "license": "MIT" }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", "dev": true, "license": "Apache-2.0" }, "node_modules/dlv": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", "dev": true, "license": "MIT" }, "node_modules/dom-accessibility-api": { "version": "0.5.16", "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true, "license": "MIT", "peer": true }, "node_modules/electron-to-chromium": { "version": "1.5.433", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.433.tgz", "integrity": "sha512-5lCAbyZBjtmUt/RAGHRqrL2q0oEFRThDAsZHHDn9XHa89Qw7gMYOeSicBTy+AHfvo0r6vwsZvqNJTQIQy1BLzA==", "dev": true, "license": "ISC" }, "node_modules/entities": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=20.19.0" }, "funding": { "url": "https://github.com/fb55/entities?sponsor=1" } }, "node_modules/es-errors": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/es-module-lexer": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", "dev": true, "license": "MIT" }, "node_modules/esbuild": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", "dev": true, "hasInstallScript": true, "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, "engines": { "node": ">=18" }, "optionalDependencies": { "@esbuild/aix-ppc64": "0.25.12", "@esbuild/android-arm": "0.25.12", "@esbuild/android-arm64": "0.25.12", "@esbuild/android-x64": "0.25.12", "@esbuild/darwin-arm64": "0.25.12", "@esbuild/darwin-x64": "0.25.12", "@esbuild/freebsd-arm64": "0.25.12", "@esbuild/freebsd-x64": "0.25.12", "@esbuild/linux-arm": "0.25.12", "@esbuild/linux-arm64": "0.25.12", "@esbuild/linux-ia32": "0.25.12", "@esbuild/linux-loong64": "0.25.12", "@esbuild/linux-mips64el": "0.25.12", "@esbuild/linux-ppc64": "0.25.12", "@esbuild/linux-riscv64": "0.25.12", "@esbuild/linux-s390x": "0.25.12", "@esbuild/linux-x64": "0.25.12", "@esbuild/netbsd-arm64": "0.25.12", "@esbuild/netbsd-x64": "0.25.12", "@esbuild/openbsd-arm64": "0.25.12", "@esbuild/openbsd-x64": "0.25.12", "@esbuild/openharmony-arm64": "0.25.12", "@esbuild/sunos-x64": "0.25.12", "@esbuild/win32-arm64": "0.25.12", "@esbuild/win32-ia32": "0.25.12", "@esbuild/win32-x64": "0.25.12" } }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/estree-walker": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", "dev": true, "license": "MIT", "dependencies": { "@types/estree": "^1.0.0" } }, "node_modules/event-target-shim": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/eventsource": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-2.0.2.tgz", "integrity": "sha512-IzUmBGPR3+oUG9dUeXynyNmf91/3zUSJg1lCktzKw47OXuhco54U3r9B7O4XX+Rb1Itm9OZ2b0RkTs10bICOxA==", "license": "MIT", "engines": { "node": ">=12.0.0" } }, "node_modules/expect-type": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=12.0.0" } }, "node_modules/fast-glob": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" }, "engines": { "node": ">=8.6.0" } }, "node_modules/fast-glob/node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, "engines": { "node": ">= 6" } }, "node_modules/fastq": { "version": "1.20.3", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", "dev": true, "license": "ISC", "dependencies": { "reusify": "^1.0.4" } }, "node_modules/fetch-cookie": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-2.2.0.tgz", "integrity": "sha512-h9AgfjURuCgA2+2ISl8GbavpUdR+WGAM2McW/ovn4tVccegp8ZqCKWSBR8uRdM8dDNlx5WdKRWxBYUwteLDCNQ==", "license": "Unlicense", "dependencies": { "set-cookie-parser": "^2.4.8", "tough-cookie": "^4.0.0" } }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, "engines": { "node": ">=8" } }, "node_modules/fraction.js": { "version": "5.3.4", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz", "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", "dev": true, "license": "MIT", "engines": { "node": "*" }, "funding": { "type": "github", "url": "https://github.com/sponsors/rawify" } }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, "engines": { "node": ">=10.13.0" } }, "node_modules/hasown": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, "engines": { "node": ">= 0.4" } }, "node_modules/html-encoding-sniffer": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", "dev": true, "license": "MIT", "dependencies": { "@exodus/bytes": "^1.6.0" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", "dev": true, "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, "engines": { "node": ">=8" } }, "node_modules/is-core-module": { "version": "2.17.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", "dev": true, "license": "MIT", "dependencies": { "hasown": "^2.0.4" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, "engines": { "node": ">=0.10.0" } }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" } }, "node_modules/is-potential-custom-element-name": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", "dev": true, "license": "MIT" }, "node_modules/jiti": { "version": "1.21.7", "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", "dev": true, "license": "MIT", "bin": { "jiti": "bin/jiti.js" } }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "license": "MIT" }, "node_modules/jsdom": { "version": "30.1.0", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-30.1.0.tgz", "integrity": "sha512-h/Q+H+KmlGf49ITw3TrykSVbg04S75S2O7ZtJc9gMGOWBrQRZmx5AJIKLtJ01e6Kszl+/tpFthCVqxNifxhoqg==", "dev": true, "license": "MIT", "dependencies": { "@asamuzakjp/css-color": "^7.0.0", "@asamuzakjp/dom-selector": "^9.1.2", "@bramus/specificity": "^2.4.2", "@csstools/css-syntax-patches-for-csstree": "^1.1.13", "@exodus/bytes": "^1.15.1", "css-tree": "^3.2.1", "data-urls": "^7.0.0", "decimal.js": "^10.6.0", "html-encoding-sniffer": "^6.0.0", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.5.2", "parse5": "^8.0.1", "saxes": "^6.0.0", "tough-cookie": "^6.0.2", "undici": "^8.10.2", "w3c-xmlserializer": "^5.0.0", "webidl-conversions": "^8.0.1", "whatwg-mimetype": "^5.0.0", "whatwg-url": "^17.1.1", "xml-name-validator": "^5.0.0" }, "engines": { "node": "^22.22.2 || ^24.15.0 || >=26.0.0" }, "peerDependencies": { "canvas": "^3.2.3" }, "peerDependenciesMeta": { "canvas": { "optional": true } } }, "node_modules/jsdom/node_modules/lru-cache": { "version": "11.5.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" } }, "node_modules/jsdom/node_modules/tough-cookie": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz", "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { "tldts": "^7.0.5" }, "engines": { "node": ">=16" } }, "node_modules/jsdom/node_modules/tr46": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", "dev": true, "license": "MIT", "dependencies": { "punycode": "^2.3.1" }, "engines": { "node": ">=20" } }, "node_modules/jsdom/node_modules/webidl-conversions": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=20" } }, "node_modules/jsdom/node_modules/whatwg-url": { "version": "17.1.2", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.1.2.tgz", "integrity": "sha512-TEZA+Zqxin7Jjsm2cjRohCmen5awh+hT6Zi3VZdqZlNRk7zvOI/9WpBFg/DWlA56bWnzwm6DuB8NS0EsxQH9uQ==", "dev": true, "license": "MIT", "dependencies": { "@exodus/bytes": "^1.15.1", "tr46": "^6.0.0", "webidl-conversions": "^8.0.1" }, "engines": { "node": "^22.14.0 || >=24.0.0" } }, "node_modules/jsesc": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { "node": ">=6" } }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "license": "MIT", "bin": { "json5": "lib/cli.js" }, "engines": { "node": ">=6" } }, "node_modules/lilconfig": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", "dev": true, "license": "MIT", "engines": { "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/antonk52" } }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true, "license": "MIT" }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "license": "MIT", "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "license": "ISC", "dependencies": { "yallist": "^3.0.2" } }, "node_modules/lucide-react": { "version": "0.475.0", "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.475.0.tgz", "integrity": "sha512-NJzvVu1HwFVeZ+Gwq2q00KygM1aBhy/ZrhY9FsAgJtpB+E4R7uxRk9M2iKvHa6/vNxZydIB59htha4c2vvwvVg==", "license": "ISC", "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "node_modules/lz-string": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", "dev": true, "license": "MIT", "peer": true, "bin": { "lz-string": "bin/bin.js" } }, "node_modules/magic-string": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.1.tgz", "integrity": "sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.6.0" } }, "node_modules/mdn-data": { "version": "2.27.1", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", "dev": true, "license": "CC0-1.0" }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, "license": "MIT", "engines": { "node": ">= 8" } }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" } }, "node_modules/min-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", "dev": true, "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true, "license": "MIT" }, "node_modules/mz": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", "dev": true, "license": "MIT", "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "node_modules/nanoid": { "version": "3.3.19", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, "engines": { "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "license": "MIT", "dependencies": { "whatwg-url": "^5.0.0" }, "engines": { "node": "4.x || >=6.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "peerDependenciesMeta": { "encoding": { "optional": true } } }, "node_modules/node-releases": { "version": "2.0.56", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.56.tgz", "integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==", "dev": true, "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-hash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true, "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/obug": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz", "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==", "dev": true, "funding": [ "https://github.com/sponsors/sxzz", "https://opencollective.com/debug" ], "license": "MIT", "engines": { "node": ">=12.20.0" } }, "node_modules/parse5": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", "dev": true, "license": "MIT", "dependencies": { "entities": "^8.0.0" }, "funding": { "url": "https://github.com/inikulin/parse5?sponsor=1" } }, "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true, "license": "MIT" }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true, "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", "dev": true, "license": "MIT", "engines": { "node": ">=8.6" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/pirates": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/playwright": { "version": "1.63.0", "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.63.0.tgz", "integrity": "sha512-+7ziBLidS4NaNCdt57SUDT+wYmmd5fmiQejUic/kb+YsYSCPyOOE9sebzMjNmQrsnNpDJqd4WHvV/8lfKfUDUg==", "dev": true, "license": "Apache-2.0", "dependencies": { "playwright-core": "1.63.0" }, "bin": { "playwright": "cli.js" }, "engines": { "node": ">=20" } }, "node_modules/playwright-core": { "version": "1.63.0", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz", "integrity": "sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==", "dev": true, "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, "engines": { "node": ">=20" } }, "node_modules/postcss": { "version": "8.5.28", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/postcss/" }, { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/postcss" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "nanoid": "^3.3.18", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" } }, "node_modules/postcss-import": { "version": "15.1.0", "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", "dev": true, "license": "MIT", "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", "resolve": "^1.1.7" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { "postcss": "^8.0.0" } }, "node_modules/postcss-js": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/postcss/" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "camelcase-css": "^2.0.1" }, "engines": { "node": "^12 || ^14 || >= 16" }, "peerDependencies": { "postcss": "^8.4.21" } }, "node_modules/postcss-load-config": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/postcss/" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "lilconfig": "^3.1.1" }, "engines": { "node": ">= 18" }, "peerDependencies": { "jiti": ">=1.21.0", "postcss": ">=8.0.9", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "peerDependenciesMeta": { "jiti": { "optional": true }, "postcss": { "optional": true }, "tsx": { "optional": true }, "yaml": { "optional": true } } }, "node_modules/postcss-nested": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/postcss/" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.1.1" }, "engines": { "node": ">=12.0" }, "peerDependencies": { "postcss": "^8.2.14" } }, "node_modules/postcss-selector-parser": { "version": "6.1.4", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", "dev": true, "license": "MIT", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" }, "engines": { "node": ">=4" } }, "node_modules/postcss-value-parser": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true, "license": "MIT" }, "node_modules/pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "license": "MIT", "peer": true, "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", "react-is": "^17.0.1" }, "engines": { "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, "node_modules/psl": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", "license": "MIT", "dependencies": { "punycode": "^2.3.1" }, "funding": { "url": "https://github.com/sponsors/lupomontero" } }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", "license": "MIT" }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "MIT" }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" }, "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "license": "MIT", "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" }, "peerDependencies": { "react": "^18.3.1" } }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true, "license": "MIT", "peer": true }, "node_modules/react-refresh": { "version": "0.17.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/react-router": { "version": "6.30.6", "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.6.tgz", "integrity": "sha512-5HfK7k5im7LTOB0EqCQmfvy4C13G92Ssj1VTmouTK3AJvyjKTnFuCV0vcMAD/JS+JC4DvDIBRrlAeJIFjh5VWg==", "license": "MIT", "dependencies": { "@remix-run/router": "1.23.4" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { "react": ">=16.8" } }, "node_modules/react-router-dom": { "version": "6.30.6", "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.6.tgz", "integrity": "sha512-0RHKZz7wwffvkU+2MFVT2NnjK44ssLEV+m0CAJaS2Ksmorrwj7WxH00jO0SOCW26/tINUnJHToXblDs33I38YQ==", "license": "MIT", "dependencies": { "@remix-run/router": "1.23.4", "react-router": "6.30.6" }, "engines": { "node": ">=14.0.0" }, "peerDependencies": { "react": ">=16.8", "react-dom": ">=16.8" } }, "node_modules/read-cache": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz", "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==", "dev": true, "license": "MIT" }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, "engines": { "node": ">=8.10.0" } }, "node_modules/redent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", "dev": true, "license": "MIT", "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" }, "engines": { "node": ">=8" } }, "node_modules/require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", "license": "MIT" }, "node_modules/resolve": { "version": "1.22.12", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", "dev": true, "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/reusify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", "dev": true, "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" } }, "node_modules/rollup": { "version": "4.63.4", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.63.4.tgz", "integrity": "sha512-4U0liVayNIoLp3GFl1FcI8561WepLnZ1rqfraGh7S9B3Ur5F9S283y8Futii7RUU2C/97tOBmBy7nYvhoiOpbQ==", "dev": true, "license": "MIT", "dependencies": { "@types/estree": "1.0.9" }, "bin": { "rollup": "dist/bin/rollup" }, "engines": { "node": ">=18.0.0", "npm": ">=8.0.0" }, "optionalDependencies": { "@napi-rs/lzma-linux-x64-gnu": "1.5.1", "@rollup/rollup-android-arm-eabi": "4.63.4", "@rollup/rollup-android-arm64": "4.63.4", "@rollup/rollup-darwin-arm64": "4.63.4", "@rollup/rollup-darwin-x64": "4.63.4", "@rollup/rollup-freebsd-arm64": "4.63.4", "@rollup/rollup-freebsd-x64": "4.63.4", "@rollup/rollup-linux-arm-gnueabihf": "4.63.4", "@rollup/rollup-linux-arm-musleabihf": "4.63.4", "@rollup/rollup-linux-arm64-gnu": "4.63.4", "@rollup/rollup-linux-arm64-musl": "4.63.4", "@rollup/rollup-linux-loong64-gnu": "4.63.4", "@rollup/rollup-linux-loong64-musl": "4.63.4", "@rollup/rollup-linux-ppc64-gnu": "4.63.4", "@rollup/rollup-linux-ppc64-musl": "4.63.4", "@rollup/rollup-linux-riscv64-gnu": "4.63.4", "@rollup/rollup-linux-riscv64-musl": "4.63.4", "@rollup/rollup-linux-s390x-gnu": "4.63.4", "@rollup/rollup-linux-x64-gnu": "4.63.4", "@rollup/rollup-linux-x64-musl": "4.63.4", "@rollup/rollup-openbsd-x64": "4.63.4", "@rollup/rollup-openharmony-arm64": "4.63.4", "@rollup/rollup-win32-arm64-msvc": "4.63.4", "@rollup/rollup-win32-ia32-msvc": "4.63.4", "@rollup/rollup-win32-x64-gnu": "4.63.4", "@rollup/rollup-win32-x64-msvc": "4.63.4", "fsevents": "~2.3.2" } }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "dev": true, "funding": [ { "type": "github", "url": "https://github.com/sponsors/feross" }, { "type": "patreon", "url": "https://www.patreon.com/feross" }, { "type": "consulting", "url": "https://feross.org/support" } ], "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } }, "node_modules/saxes": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", "dev": true, "license": "ISC", "dependencies": { "xmlchars": "^2.2.0" }, "engines": { "node": ">=v12.22.7" } }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", "license": "MIT", "dependencies": { "loose-envify": "^1.1.0" } }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" } }, "node_modules/set-cookie-parser": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", "license": "MIT" }, "node_modules/siginfo": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", "dev": true, "license": "ISC" }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/stackback": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", "dev": true, "license": "MIT" }, "node_modules/std-env": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", "dev": true, "license": "MIT" }, "node_modules/strip-indent": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", "dev": true, "license": "MIT", "dependencies": { "min-indent": "^1.0.0" }, "engines": { "node": ">=8" } }, "node_modules/sucrase": { "version": "3.35.1", "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", "dev": true, "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", "lines-and-columns": "^1.1.6", "mz": "^2.7.0", "pirates": "^4.0.1", "tinyglobby": "^0.2.11", "ts-interface-checker": "^0.1.9" }, "bin": { "sucrase": "bin/sucrase", "sucrase-node": "bin/sucrase-node" }, "engines": { "node": ">=16 || 14 >=14.17" } }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, "license": "MIT", "engines": { "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/tailwind-merge": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.6.1.tgz", "integrity": "sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==", "license": "MIT", "funding": { "type": "github", "url": "https://github.com/sponsors/dcastil" } }, "node_modules/tailwindcss": { "version": "3.4.19", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz", "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==", "dev": true, "license": "MIT", "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.6.0", "didyoumean": "^1.2.2", "dlv": "^1.1.3", "fast-glob": "^3.3.2", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", "jiti": "^1.21.7", "lilconfig": "^3.1.3", "micromatch": "^4.0.8", "normalize-path": "^3.0.0", "object-hash": "^3.0.0", "picocolors": "^1.1.1", "postcss": "^8.4.47", "postcss-import": "^15.1.0", "postcss-js": "^4.0.1", "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", "postcss-nested": "^6.2.0", "postcss-selector-parser": "^6.1.2", "resolve": "^1.22.8", "sucrase": "^3.35.0" }, "bin": { "tailwind": "lib/cli.js", "tailwindcss": "lib/cli.js" }, "engines": { "node": ">=14.0.0" } }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", "dev": true, "license": "MIT", "dependencies": { "any-promise": "^1.0.0" } }, "node_modules/thenify-all": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", "dev": true, "license": "MIT", "dependencies": { "thenify": ">= 3.1.0 < 4" }, "engines": { "node": ">=0.8" } }, "node_modules/tinybench": { "version": "6.1.4", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz", "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==", "dev": true, "license": "MIT", "engines": { "node": ">=20.0.0" } }, "node_modules/tinyexec": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz", "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==", "dev": true, "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" }, "engines": { "node": ">=12.0.0" }, "funding": { "url": "https://github.com/sponsors/SuperchupuDev" } }, "node_modules/tinyglobby/node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, "license": "MIT", "engines": { "node": ">=12.0.0" }, "peerDependencies": { "picomatch": "^3 || ^4" }, "peerDependenciesMeta": { "picomatch": { "optional": true } } }, "node_modules/tinyglobby/node_modules/picomatch": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/tldts": { "version": "7.4.13", "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.13.tgz", "integrity": "sha512-iHtaIWWIbMDkCeJdTBzZFGgbluE5J+oHlb2g7+oAz1S1gpuVpabRZdQyd471Vl8UUkcz2vXSL8xZH2kyCe8tfA==", "dev": true, "license": "MIT", "dependencies": { "tldts-core": "^7.4.13" }, "bin": { "tldts": "bin/cli.js" } }, "node_modules/tldts-core": { "version": "7.4.13", "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.13.tgz", "integrity": "sha512-mbYsrih5FRtGxs3Usvl/PqwJsNpp+jsmrdFviiK02teHDG0/HebBG/pqCylje3kzgXYzuLoHJF/0mz9W53t8Xg==", "dev": true, "license": "MIT" }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, "engines": { "node": ">=8.0" } }, "node_modules/tough-cookie": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.33", "punycode": "^2.1.1", "universalify": "^0.2.0", "url-parse": "^1.5.3" }, "engines": { "node": ">=6" } }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "license": "MIT" }, "node_modules/ts-interface-checker": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true, "license": "Apache-2.0" }, "node_modules/typescript": { "version": "5.6.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { "node": ">=14.17" } }, "node_modules/undici": { "version": "8.10.2", "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.2.tgz", "integrity": "sha512-/y4/bH9YNU5hi9NIrpOuvGXFcxrj3CMrV+/AYpowAYTpHn8gX/XPFjNy766FPoYY0miQhdW977JFWKGNhBdwyQ==", "dev": true, "license": "MIT", "engines": { "node": ">=22.19.0" } }, "node_modules/universalify": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", "license": "MIT", "engines": { "node": ">= 4.0.0" } }, "node_modules/update-browserslist-db": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", "dev": true, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/browserslist" }, { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" }, { "type": "github", "url": "https://github.com/sponsors/ai" } ], "license": "MIT", "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "bin": { "update-browserslist-db": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" } }, "node_modules/url-parse": { "version": "1.5.10", "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", "license": "MIT", "dependencies": { "querystringify": "^2.1.1", "requires-port": "^1.0.0" } }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true, "license": "MIT" }, "node_modules/vite": { "version": "6.4.3", "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz", "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==", "dev": true, "license": "MIT", "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", "picomatch": "^4.0.2", "postcss": "^8.5.3", "rollup": "^4.34.9", "tinyglobby": "^0.2.13" }, "bin": { "vite": "bin/vite.js" }, "engines": { "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, "jiti": { "optional": true }, "less": { "optional": true }, "lightningcss": { "optional": true }, "sass": { "optional": true }, "sass-embedded": { "optional": true }, "stylus": { "optional": true }, "sugarss": { "optional": true }, "terser": { "optional": true }, "tsx": { "optional": true }, "yaml": { "optional": true } } }, "node_modules/vite/node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, "license": "MIT", "engines": { "node": ">=12.0.0" }, "peerDependencies": { "picomatch": "^3 || ^4" }, "peerDependenciesMeta": { "picomatch": { "optional": true } } }, "node_modules/vite/node_modules/picomatch": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/vitest": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.1.tgz", "integrity": "sha512-iA95lQbKEkvrtTkdAgnWbXfbipWiiWe/hDl2P5tMi6WFwD76G0NxXAGp/M9EOcYupeGJRr6wppMc7CoA41TQjg==", "dev": true, "license": "MIT", "dependencies": { "@types/chai": "^5.2.2", "@vitest/mocker": "5.0.1", "chai": "^6.2.2", "es-module-lexer": "^2.3.2", "expect-type": "^1.4.0", "magic-string": "^1.2.3", "obug": "^2.1.4", "picomatch": "^4.0.7", "std-env": "^4.2.0", "tinybench": "6.1.4", "tinyexec": "1.3.0", "tinyglobby": "^0.2.17", "why-is-node-running": "^2.3.0" }, "bin": { "vitest": "vitest.mjs" }, "engines": { "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "5.0.1", "@vitest/browser-preview": "5.0.1", "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", "@vitest/coverage-istanbul": "5.0.1", "@vitest/coverage-v8": "5.0.1", "@vitest/ui": "5.0.1", "happy-dom": "*", "jsdom": "*", "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { "optional": true }, "@opentelemetry/api": { "optional": true }, "@types/node": { "optional": true }, "@vitest/browser-playwright": { "optional": true }, "@vitest/browser-preview": { "optional": true }, "@vitest/browser-webdriverio": { "optional": true }, "@vitest/coverage-istanbul": { "optional": true }, "@vitest/coverage-v8": { "optional": true }, "@vitest/ui": { "optional": true }, "happy-dom": { "optional": true }, "jsdom": { "optional": true }, "vite": { "optional": false } } }, "node_modules/vitest/node_modules/picomatch": { "version": "4.0.7", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/w3c-xmlserializer": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", "dev": true, "license": "MIT", "dependencies": { "xml-name-validator": "^5.0.0" }, "engines": { "node": ">=18" } }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", "license": "BSD-2-Clause" }, "node_modules/whatwg-mimetype": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", "dev": true, "license": "MIT", "engines": { "node": ">=20" } }, "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "license": "MIT", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "node_modules/why-is-node-running": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", "dev": true, "license": "MIT", "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" }, "bin": { "why-is-node-running": "cli.js" }, "engines": { "node": ">=8" } }, "node_modules/ws": { "version": "7.5.13", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.13.tgz", "integrity": "sha512-rsKI6xDBFVf4r/x8XyChGK04QR/XHroxs/jUcoWvtEZM8TPU/X/uIY9B1CsSzYws9ZJb/6bbBu7dPhFW00CAoA==", "license": "MIT", "engines": { "node": ">=8.3.0" }, "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "peerDependenciesMeta": { "bufferutil": { "optional": true }, "utf-8-validate": { "optional": true } } }, "node_modules/xml-name-validator": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=18" } }, "node_modules/xmlchars": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true, "license": "MIT" }, "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true, "license": "ISC" } } } ================================================================================ FILE: src/Web/ClassNotify.Web/postcss.config.js ================================================================================ export default { plugins: { tailwindcss: {}, autoprefixer: {}, }, } ================================================================================ FILE: src/Web/ClassNotify.Web/run_web_ack_e2e.mjs ================================================================================ import { chromium } from 'playwright'; import { spawn } from 'child_process'; import path from 'path'; import fs from 'fs'; const PROD_URL = 'https://classnotify.paradise.eu.org'; async function runE2E() { console.log('=========================================================='); console.log(' ClassNotify Web ACK Realtime E2E Test Starting '); console.log('=========================================================='); const browser = await chromium.launch({ channel: 'msedge', headless: true, }); const context = await browser.newContext(); const page = await context.newPage(); let initialLoadDone = false; let historyRequestsDuringInitial = 0; let historyRequestsAfterInitial = 0; page.on('request', (req) => { const url = req.url(); if (url.includes('/api/notification/history')) { if (!initialLoadDone) { historyRequestsDuringInitial++; console.log('[Initial Load] Request to /api/notification/history:', url); } else { historyRequestsAfterInitial++; console.error('[POLL DETECTED] Forbidden request to /api/notification/history:', url); } } }); try { // 1. Login console.log('\n[1/6] Navigating to login page...'); await page.goto(`${PROD_URL}/login`, { waitUntil: 'networkidle' }); const username = process.env.CLASSNOTIFY_E2E_USERNAME; const password = process.env.CLASSNOTIFY_E2E_PASSWORD; if (!username || !password) { throw new Error('E2E credentials are not configured. Please set CLASSNOTIFY_E2E_USERNAME and CLASSNOTIFY_E2E_PASSWORD.'); } console.log(`Logging in with E2E user [${username}]...`); await page.waitForSelector('input[type="text"]', { timeout: 10000 }); await page.fill('input[type="text"]', username); await page.fill('input[type="password"]', password); await page.click('button[type="submit"]'); console.log('Waiting for navigation to /teacher...'); await page.waitForURL('**/teacher', { timeout: 10000 }); // 2. Wait for initial load and SignalR connection to establish console.log('\n[2/6] Waiting for Teacher Console initial data & SignalR connection...'); await page.waitForSelector('text=八年级(2)班', { timeout: 10000 }); await page.waitForSelector('text=云端已连接', { timeout: 10000 }); await page.waitForTimeout(2000); // Allow any initial load promises to settle initialLoadDone = true; console.log(`Initial load complete. Initial history requests: ${historyRequestsDuringInitial}`); // 3. Select class 八年级(2)班 (cls_802) console.log('\n[3/6] Selecting target class: 八年级(2)班 (cls_802)...'); const classBtn = page.locator('button', { hasText: '八年级(2)班' }); await classBtn.click(); // 4. Fill in notification content const testTag = '【Web Realtime Final E2E】'; const timestamp = new Date().toISOString(); const messageText = `${testTag} 实时全链路ACK验证时间 ${timestamp}`; console.log(`Setting notification content: "${messageText}"`); const textarea = page.locator('textarea[placeholder*="请输入需要大屏弹窗展示并朗读的内容"]'); await textarea.fill(messageText); // Make sure student name is cleared for class broadcast const studentInput = page.locator('input[placeholder*="如:张三"]'); await studentInput.fill(''); // 5. Start Windows Client UI Automation watcher in parallel console.log('\n[4/6] Launching Windows Client UI Automation watcher...'); const psScriptPath = 'C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/wait_and_click_ack.ps1'; let psResolve, psReject; const psPromise = new Promise((resolve, reject) => { psResolve = resolve; psReject = reject; }); const psProc = spawn('powershell.exe', [ '-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', psScriptPath, '-TimeoutSeconds', '30' ]); let psStdout = ''; let psStderr = ''; psProc.stdout.on('data', (d) => { psStdout += d.toString(); }); psProc.stderr.on('data', (d) => { psStderr += d.toString(); }); psProc.on('close', (code) => { if (code === 0) { try { const parsed = JSON.parse(psStdout.trim()); psResolve(parsed); } catch (e) { psReject(new Error(`Failed to parse PS output: ${psStdout}, err: ${e.message}`)); } } else { psReject(new Error(`PS process exited with code ${code}: ${psStderr || psStdout}`)); } }); // 6. Send notification from Web Teacher Console console.log('\n[5/6] Sending notification from Web Teacher Console...'); const sendResponsePromise = page.waitForResponse( (res) => res.url().includes('/api/notification/send') && res.status() === 200, { timeout: 10000 } ); const sendStartTime = new Date(); await page.click('button[type="submit"]'); const sendResponse = await sendResponsePromise; const sendResult = await sendResponse.json(); const sendEndTime = new Date(); const messageId = sendResult.messageId; console.log(` Notification sent! MessageId: ${messageId}`); console.log(` Send API duration: ${sendEndTime.getTime() - sendStartTime.getTime()}ms`); // 7. Wait for Windows Client UI Automation to click ACK console.log('\nWaiting for Windows Client popup and ACK click...'); const psResult = await psPromise; console.log(' Windows Client Automation Result:', JSON.stringify(psResult)); // 8. Wait for Web Teacher Console card to update to "学生已点击确认" console.log('\n[6/6] Waiting for Web Teacher Console to reflect "学生已点击确认" via SignalR...'); const cardLocator = page.locator('.glass-card', { hasText: testTag }).first(); await cardLocator.waitFor({ state: 'visible', timeout: 10000 }); const ackBadgeLocator = cardLocator.locator('text=学生已点击确认'); await ackBadgeLocator.waitFor({ state: 'visible', timeout: 15000 }); const webAckReceivedTime = new Date(); console.log(' Web UI updated to "学生已点击确认" successfully!'); // Timestamps and Latency Calculations const tSend = sendStartTime.toISOString(); const tDetect = psResult.windowDetectTime; const tAckClick = psResult.ackClickedTime; const tWebAck = webAckReceivedTime.toISOString(); const latencyAckToWebMs = Math.max(0, webAckReceivedTime.getTime() - new Date(tAckClick).getTime()); const totalRoundTripMs = webAckReceivedTime.getTime() - sendStartTime.getTime(); const report = { success: true, messageId: messageId, notificationMessage: messageText, targetClass: '八年级(2)班 (cls_802)', timestamps: { webSendTime: tSend, clientWindowDetectTime: tDetect, clientAckClickTime: tAckClick, webAckReceivedTime: tWebAck, }, latencies: { sendToClientDetectMs: Math.max(0, new Date(tDetect).getTime() - sendStartTime.getTime()), clientDetectToClickMs: psResult.clickLatencyMs, ackClickToWebRenderMs: latencyAckToWebMs, totalRoundTripMs: totalRoundTripMs, }, zeroPollingVerified: historyRequestsAfterInitial === 0, postSendHistoryRequestCount: historyRequestsAfterInitial, }; console.log('\n=========================================================='); console.log(' Web ACK E2E Verification PASSED! '); console.log('=========================================================='); console.log(JSON.stringify(report, null, 2)); fs.writeFileSync( 'C:/Users/Administrator/.gemini/antigravity/scratch/ClassNotify/web_ack_e2e_result.json', JSON.stringify(report, null, 2), 'utf-8' ); return report; } finally { await browser.close(); } } runE2E().catch((err) => { console.error('\n[E2E FAILED]:', err); process.exit(1); }); ================================================================================ FILE: src/Web/ClassNotify.Web/src/api/client.ts ================================================================================ import { AdminMetrics, TenantAdmin, DeviceAdmin, ActivationCode, Classroom, TeacherUser, NotificationRecord, SendNotificationPayload, LoginResult, CurrentUser, UserAdmin, CreateUserAdminRequest, CreateTenantRequest, UpdateTenantRequest, UpdateDeviceRequest, EmergencyBroadcastRequest, SystemHealth, AdminAuditLog, BroadcastReceiptSummary, FleetVersionSummary, FleetDeviceVersion, FleetDeviceVersionQuery, SelfCheckBatchCreated, SelfCheckBatchSummary, SelfCheckBatchDetail, SelfCheckBatchDevicePagedResult, SelfCheckBatchDeviceItem, SelfCheckBatchDeviceQuery, SupportBundleStatus, SupportBundleCreated } from '../types'; import { sessionManager } from '../realtime/SessionManager'; const API_BASE = '/api'; export function getToken(): string | null { return localStorage.getItem('classnotify_token'); } export function setToken(token: string) { localStorage.setItem('classnotify_token', token); } export function clearToken() { localStorage.removeItem('classnotify_token'); localStorage.removeItem('classnotify_user'); } export function createCorrelationId(): string { const ts = Date.now().toString(36); const rand = Math.random().toString(36).substring(2, 8); return `web_${ts}_${rand}`; } async function request(endpoint: string, options: RequestInit = {}): Promise { const token = getToken(); const headers: Record = { 'Content-Type': 'application/json', 'X-Correlation-Id': createCorrelationId(), ...(options.headers as Record), }; if (token) { headers['Authorization'] = `Bearer ${token}`; } const res = await fetch(`${API_BASE}${endpoint}`, { ...options, headers, }); if (res.status === 401) { clearToken(); sessionManager.notifySessionExpired('未授权或登录已过期,请重新登录'); throw new Error('未授权或登录已过期,请重新登录'); } if (!res.ok) { let errorMsg = `请求失败 (${res.status})`; try { const err = await res.json(); errorMsg = err.message || err.errorMessage || errorMsg; } catch { // ignore json parse error } throw new Error(errorMsg); } return res.json() as Promise; } export const api = { // Auth login: (username: string, password: string): Promise => request('/auth/login', { method: 'POST', body: JSON.stringify({ username, password }), }), getMe: (): Promise => request('/auth/me'), // SuperAdmin getAdminMetrics: (): Promise => request('/admin/metrics'), getTenants: (): Promise => request('/admin/tenants'), getAllDevices: (): Promise => request('/admin/devices'), sendDeviceCommand: (deviceId: string, command: string, parameters?: string) => request<{ success: boolean; message: string }>(`/admin/devices/${deviceId}/command`, { method: 'POST', body: JSON.stringify({ command, parameters }), }), triggerDeviceSelfCheck: (deviceId: string) => request<{ success: boolean; selfCheckId: string; correlationId: string; message: string }>(`/admin/devices/${deviceId}/self-check`, { method: 'POST', }), getDeviceSelfChecks: (deviceId: string) => request(`/admin/devices/${deviceId}/self-checks`), getDeviceSelfCheckDetails: (selfCheckId: string) => request(`/admin/devices/self-checks/${selfCheckId}`), getOperationalHealthDiagnostics: () => request('/health/diagnostics'), getAdminActivationCodes: (): Promise => request('/admin/activation-codes'), getAdminClasses: (tenantId: string): Promise => request(`/admin/classes?tenantId=${encodeURIComponent(tenantId)}`), generateAdminCode: (tenantId: string, classId: string) => request<{ success: boolean; code: string; message: string }>( `/admin/activation-codes?tenantId=${encodeURIComponent(tenantId)}&classId=${encodeURIComponent(classId)}`, { method: 'POST' } ), getAdminNotifications: (limit = 50): Promise => request(`/admin/notifications?limit=${limit}`), // Tenant Management createTenant: (dto: CreateTenantRequest): Promise => request('/admin/tenants', { method: 'POST', body: JSON.stringify(dto), }), updateTenant: (tenantId: string, dto: UpdateTenantRequest): Promise => request(`/admin/tenants/${encodeURIComponent(tenantId)}`, { method: 'PATCH', body: JSON.stringify(dto), }), // User Management getUsers: (tenantId?: string, role?: string): Promise => { const params = new URLSearchParams(); if (tenantId) params.append('tenantId', tenantId); if (role) params.append('role', role); const qs = params.toString(); return request(`/admin/users${qs ? `?${qs}` : ''}`); }, createUser: (dto: CreateUserAdminRequest): Promise => request('/admin/users', { method: 'POST', body: JSON.stringify(dto), }), resetPassword: (userId: string, newPassword: string) => request<{ success: boolean; message: string }>(`/admin/users/${encodeURIComponent(userId)}/reset-password`, { method: 'POST', body: JSON.stringify({ newPassword }), }), setUserLock: (userId: string, isLocked: boolean) => request<{ success: boolean; isLocked: boolean; message: string }>(`/admin/users/${encodeURIComponent(userId)}/lock`, { method: 'POST', body: JSON.stringify({ isLocked }), }), deleteUser: (userId: string) => request<{ success: boolean; message: string }>(`/admin/users/${encodeURIComponent(userId)}`, { method: 'DELETE', }), // Device Extensions updateDevice: (deviceId: string, dto: UpdateDeviceRequest) => request<{ success: boolean; message: string }>(`/admin/devices/${encodeURIComponent(deviceId)}`, { method: 'PATCH', body: JSON.stringify(dto), }), decommissionDevice: (deviceId: string) => request<{ success: boolean; message: string }>(`/admin/devices/${encodeURIComponent(deviceId)}/decommission`, { method: 'POST', }), // Activation Code Management deleteActivationCode: (code: string) => request<{ success: boolean; message: string }>(`/admin/activation-codes/${encodeURIComponent(code)}`, { method: 'DELETE', }), // Emergency Broadcast sendEmergencyBroadcast: (dto: EmergencyBroadcastRequest) => request<{ success: boolean; broadcastId: string; dispatchedCount: number; targetSchools: number; message: string }>('/admin/broadcasts', { method: 'POST', body: JSON.stringify(dto), }), getBroadcastReceiptSummary: (broadcastId: string): Promise => request(`/admin/broadcasts/${encodeURIComponent(broadcastId)}/receipt-summary`), // System Health & Audit getSystemHealth: (): Promise => request('/admin/system/health'), getAuditLogs: (limit = 100): Promise => request(`/admin/audit-logs?limit=${limit}`), // School Admin getSchoolOverview: (): Promise<{ tenantId: string; tenantName: string; classCount: number; deviceCount: number; onlineCount: number; teacherCount: number; }> => request('/school-admin/overview'), getSchoolClasses: (): Promise => request('/school-admin/classes'), createSchoolClass: (dto: { id: string; displayName: string; grade?: string; roomNumber?: string }) => request<{ success: boolean; message: string }>('/school-admin/classes', { method: 'POST', body: JSON.stringify(dto), }), getSchoolTeachers: (): Promise => request('/school-admin/teachers'), createSchoolTeacher: (dto: { username: string; password: string; fullName: string; role: string }) => request<{ success: boolean; message: string }>('/school-admin/teachers', { method: 'POST', body: JSON.stringify(dto), }), resetSchoolTeacherPassword: (userId: string, newPassword: string) => request<{ success: boolean; message: string }>(`/school-admin/teachers/${encodeURIComponent(userId)}/reset-password`, { method: 'POST', body: JSON.stringify({ newPassword }), }), setSchoolTeacherLock: (userId: string, isLocked: boolean) => request<{ success: boolean; message: string }>(`/school-admin/teachers/${encodeURIComponent(userId)}/lock`, { method: 'POST', body: JSON.stringify({ isLocked }), }), getSchoolDevices: (): Promise => request('/school-admin/devices'), getSchoolCodes: (): Promise => request('/school-admin/activation-codes'), generateSchoolCode: (classId: string) => request<{ success: boolean; code: string; message: string }>( `/school-admin/activation-codes?classId=${encodeURIComponent(classId)}`, { method: 'POST' } ), // Teacher getTeacherClasses: (): Promise => request('/notification/classes'), sendNotification: (payload: SendNotificationPayload) => request<{ success: boolean; messageId: string; className: string; message: string }>( '/notification/send', { method: 'POST', body: JSON.stringify(payload), } ), cancelNotification: (notificationId: string) => request<{ success: boolean; message: string }>( `/notifications/${encodeURIComponent(notificationId)}/cancel`, { method: 'POST' } ), getTeacherHistory: (classId?: string, limit = 50): Promise => request( `/notification/history?${classId ? `classId=${encodeURIComponent(classId)}&` : ''}limit=${limit}` ), getVisualReceiptBlob: async (notificationId: string, deviceId: string): Promise => { const token = getToken(); const res = await fetch(`${API_BASE}/notifications/${encodeURIComponent(notificationId)}/receipts/${encodeURIComponent(deviceId)}/visual-receipt`, { headers: token ? { Authorization: `Bearer ${token}` } : {}, }); if (res.status === 410) { throw new Error('视觉回执已按24小时保存策略自动销毁'); } if (res.status === 404) { throw new Error('未找到该通知的视觉回执'); } if (!res.ok) { throw new Error(`获取视觉回执失败 (${res.status})`); } return res.blob(); }, // Fleet Version (P2.5 RC-1) getFleetVersionSummary: (): Promise => request('/admin/fleet/version-summary'), getFleetDevices: (query?: FleetDeviceVersionQuery): Promise => { const params = new URLSearchParams(); if (query?.status) params.set('status', query.status); if (query?.tenantId) params.set('tenantId', query.tenantId); if (query?.online !== undefined) params.set('online', String(query.online)); if (query?.q) params.set('q', query.q); const qs = params.toString(); return request(`/admin/fleet/devices${qs ? `?${qs}` : ''}`); }, // SelfCheck Fleet Operations (P2.5 RC1-2) createSelfCheckBatch: (clientRequestId: string, deviceIds: string[]): Promise => request('/admin/self-check-batches', { method: 'POST', body: JSON.stringify({ clientRequestId, deviceIds }), }), getSelfCheckBatches: (status?: string, take = 20): Promise => { const params = new URLSearchParams(); if (status) params.set('status', status); if (take) params.set('take', String(take)); const qs = params.toString(); return request(`/admin/self-check-batches${qs ? `?${qs}` : ''}`); }, getSelfCheckBatch: (batchId: string): Promise => request(`/admin/self-check-batches/${encodeURIComponent(batchId)}`), getSelfCheckBatchDevices: ( batchId: string, query?: SelfCheckBatchDeviceQuery ): Promise => { const params = new URLSearchParams(); if (query?.health) params.set('health', query.health); if (query?.probe) params.set('probe', query.probe); if (query?.tenantId) params.set('tenantId', query.tenantId); if (query?.q) params.set('q', query.q); if (query?.page) params.set('page', String(query.page)); if (query?.pageSize) params.set('pageSize', String(query.pageSize)); const qs = params.toString(); return request( `/admin/self-check-batches/${encodeURIComponent(batchId)}/devices${qs ? `?${qs}` : ''}` ); }, getSelfCheckBatchDeviceRun: (batchId: string, runId: string): Promise => request( `/admin/self-check-batches/${encodeURIComponent(batchId)}/runs/${encodeURIComponent(runId)}` ), // Support Bundle (P2.5 RC1-3) createSupportBundle: (deviceId: string, clientRequestId?: string): Promise => request(`/admin/devices/${encodeURIComponent(deviceId)}/support-bundles`, { method: 'POST', body: JSON.stringify({ clientRequestId }), }), getSupportBundle: (bundleId: string): Promise => request(`/admin/support-bundles/${encodeURIComponent(bundleId)}`), getDeviceSupportBundles: (deviceId: string, take = 5): Promise => request(`/admin/devices/${encodeURIComponent(deviceId)}/support-bundles?take=${take}`), downloadSupportBundle: async (bundleId: string, filename?: string): Promise => { const token = getToken(); const res = await fetch(`${API_BASE}/admin/support-bundles/${encodeURIComponent(bundleId)}/download`, { headers: token ? { Authorization: `Bearer ${token}` } : {}, }); if (res.status === 410) { throw new Error('诊断包已过期并已自动清理'); } if (res.status === 409) { throw new Error('诊断包尚未就绪或生成失败'); } if (res.status === 403) { throw new Error('无权下载该学校终端的诊断包'); } if (!res.ok) { throw new Error(`下载诊断包失败 (${res.status})`); } const blob = await res.blob(); const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = filename || `support-bundle-${bundleId}.zip`; document.body.appendChild(a); a.click(); document.body.removeChild(a); window.URL.revokeObjectURL(url); }, }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/App.tsx ================================================================================ import React from 'react'; import { BrowserRouter, Routes, Route, Navigate, Outlet } from 'react-router-dom'; import { AuthProvider, useAuth } from './context/AuthContext'; import { Navbar } from './components/Navbar'; import { RoleRoute } from './components/RoleRoute'; import { Login } from './pages/Login'; // SuperAdmin import { AdminDashboard } from './pages/admin/AdminDashboard'; import { DeviceManagement } from './pages/admin/DeviceManagement'; import { AdminActivationCodes } from './pages/admin/ActivationCodes'; import { HistoryAudit } from './pages/admin/HistoryAudit'; import { TenantManagement } from './pages/admin/TenantManagement'; import { UserManagement } from './pages/admin/UserManagement'; import { EmergencyBroadcast } from './pages/admin/EmergencyBroadcast'; import { FleetVersionDashboard } from './pages/admin/FleetVersionDashboard'; import { SelfCheckBatchDetail } from './pages/admin/SelfCheckBatchDetail'; import { SelfCheckBatchHistory } from './pages/admin/SelfCheckBatchHistory'; // SchoolAdmin import { SchoolDashboard } from './pages/school/SchoolDashboard'; import { ClassManagement } from './pages/school/ClassManagement'; import { TeacherManagement } from './pages/school/TeacherManagement'; import { SchoolActivationCodes } from './pages/school/SchoolActivationCodes'; // Teacher import { TeacherConsole } from './pages/teacher/TeacherConsole'; // Role Guard Component export const ProtectedLayout: React.FC = () => { const { user, isLoading } = useAuth(); if (isLoading) { return (
正在验证用户身份...
); } if (!user) { return ; } return (
); }; export const RootRedirect: React.FC = () => { const { user, isLoading } = useAuth(); if (isLoading) { return (
正在初始化...
); } if (!user) return ; if (user.role === 'SuperAdmin') return ; if (user.role === 'SchoolAdmin') return ; return ; }; export const AppRoutes: React.FC = () => { return ( } /> } /> {/* Authenticated Layout */} }> {/* SuperAdmin Routes */} }> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> {/* SchoolAdmin Routes */} }> } /> } /> } /> } /> {/* Teacher Routes */} }> } /> {/* Fallback */} } /> ); }; export const App: React.FC = () => { return ( ); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/Navbar.tsx ================================================================================ import React, { useState, useEffect } from 'react'; import { Link, useLocation } from 'react-router-dom'; import { useAuth } from '../context/AuthContext'; import { Bell, Monitor, KeyRound, History, School, Users, Layers, LogOut, ShieldCheck, GraduationCap, Building2, Radio, Menu, X, Cpu, Activity } from 'lucide-react'; import { RealtimeStatusBadge } from './RealtimeStatusBadge'; export const Navbar: React.FC = () => { const { user, logout } = useAuth(); const location = useLocation(); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); // Close mobile menu on route change useEffect(() => { setMobileMenuOpen(false); }, [location.pathname]); if (!user) return null; const isActive = (path: string) => location.pathname === path; return (
{/* Brand & Role */}
ClassNotify {user.role === 'SuperAdmin' && ( <> 超级运维后台 )} {user.role === 'SchoolAdmin' && ( <> 学校管理后台 )} {user.role === 'Teacher' && ( <> 教师工作台 )}
{/* Navigation Links */} {/* User profile & Logout */}
{user.name} {user.tenantId === 'global' ? '全平台' : user.tenantId}
{/* Mobile menu toggle button */}
{/* Mobile Navigation Drawer */} {mobileMenuOpen && (
{user.role === 'SuperAdmin' && ( <>
总览大盘
设备激活码生成与管理 重点
学校租户
用户中枢
设备集控
终端版本
批量自检
全校应急广播
审计历史
)} {user.role === 'SchoolAdmin' && ( <> 学校概览 班级管理 教师账号 本校激活码 )} {user.role === 'Teacher' && ( 呼叫与回执 )}
)}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/RealtimeStatusBadge.tsx ================================================================================ import React, { useEffect, useState } from 'react'; import { teacherRealtime, RealtimeState } from '../realtime/TeacherRealtime'; export const RealtimeStatusBadge: React.FC = () => { const [state, setState] = useState(teacherRealtime.getState()); useEffect(() => { return teacherRealtime.onStateChange(setState); }, []); if (state === 'Connected') { return ( 云端正常 ); } if (state === 'Reconnecting') { return ( 正在重连… ); } if (state === 'Connecting') { return ( 正在连接… ); } return ( 云端离线 ); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/RoleRoute.tsx ================================================================================ import React from 'react'; import { Navigate, Outlet } from 'react-router-dom'; import { useAuth } from '../context/AuthContext'; import { UserRole } from '../types'; interface RoleRouteProps { allowedRoles: UserRole[]; children?: React.ReactNode; } export const RoleRoute: React.FC = ({ allowedRoles, children }) => { const { user, isLoading } = useAuth(); if (isLoading) { return (
正在验证用户权限...
); } if (!user) { return ; } if (!allowedRoles.includes(user.role)) { if (user.role === 'SuperAdmin') return ; if (user.role === 'SchoolAdmin') return ; return ; } return children ? <>{children} : ; }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/CopyButton.tsx ================================================================================ import React, { useState } from 'react'; import { Copy, Check } from 'lucide-react'; interface CopyButtonProps { text: string; label?: string; className?: string; } export const CopyButton: React.FC = ({ text, label = '复制', className = '', }) => { const [copied, setCopied] = useState(false); const handleCopy = async (e: React.MouseEvent) => { e.stopPropagation(); try { await navigator.clipboard.writeText(text); setCopied(true); setTimeout(() => setCopied(false), 1500); } catch { // fallback const textarea = document.createElement('textarea'); textarea.value = text; document.body.appendChild(textarea); textarea.select(); document.execCommand('copy'); document.body.removeChild(textarea); setCopied(true); setTimeout(() => setCopied(false), 1500); } }; return ( ); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/index.ts ================================================================================ export * from './StatusBadge'; export * from './PageHeader'; export * from './StatusTabs'; export * from './SearchInput'; export * from './RowActionMenu'; export * from './CopyButton'; export * from './StatCard'; export * from './Modal'; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/Modal.tsx ================================================================================ import React, { useEffect } from 'react'; import { X, AlertTriangle } from 'lucide-react'; interface ModalProps { isOpen: boolean; onClose: () => void; title: string; children: React.ReactNode; maxWidth?: string; preventClose?: boolean; } export const Modal: React.FC = ({ isOpen, onClose, title, children, maxWidth = 'max-w-md', preventClose = false, }) => { useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape' && !preventClose) onClose(); }; if (isOpen) { document.addEventListener('keydown', handleKeyDown); } return () => document.removeEventListener('keydown', handleKeyDown); }, [isOpen, onClose, preventClose]); if (!isOpen) return null; return (
e.stopPropagation()} >

{title}

{children}
); }; interface DangerConfirmModalProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; title: string; description: string; targetName?: string; confirmLabel?: string; loading?: boolean; } export const DangerConfirmModal: React.FC = ({ isOpen, onClose, onConfirm, title, description, targetName, confirmLabel = '确认执行', loading = false, }) => { if (!isOpen) return null; return (
{targetName && 【{targetName}】} {description}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/PageHeader.tsx ================================================================================ import React from 'react'; interface PageHeaderProps { title: string; description?: string; badge?: React.ReactNode; action?: React.ReactNode; className?: string; } export const PageHeader: React.FC = ({ title, description, badge, action, className = '', }) => { return (

{title}

{badge}
{description && (

{description}

)}
{action && (
{action}
)}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/RowActionMenu.tsx ================================================================================ import React, { useState, useRef, useEffect } from 'react'; import { MoreHorizontal } from 'lucide-react'; export interface ActionMenuItem { label: string; icon?: React.ReactNode; onClick: () => void; danger?: boolean; disabled?: boolean; } interface RowActionMenuProps { items: ActionMenuItem[]; className?: string; } export const RowActionMenu: React.FC = ({ items, className = '' }) => { const [open, setOpen] = useState(false); const menuRef = useRef(null); useEffect(() => { const handleDocClick = (e: MouseEvent) => { if (menuRef.current && !menuRef.current.contains(e.target as Node)) { setOpen(false); } }; const handleKeyDown = (e: KeyboardEvent) => { if (e.key === 'Escape') { setOpen(false); } }; if (open) { document.addEventListener('mousedown', handleDocClick); document.addEventListener('keydown', handleKeyDown); } return () => { document.removeEventListener('mousedown', handleDocClick); document.removeEventListener('keydown', handleKeyDown); }; }, [open]); return (
{open && (
{items.map((item, idx) => ( ))}
)}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/SearchInput.tsx ================================================================================ import React from 'react'; import { Search, X } from 'lucide-react'; interface SearchInputProps { value: string; onChange: (val: string) => void; placeholder?: string; className?: string; } export const SearchInput: React.FC = ({ value, onChange, placeholder = '搜索...', className = '', }) => { return (
onChange(e.target.value)} placeholder={placeholder} className="w-full bg-slate-900 border border-slate-800 rounded-xl pl-9 pr-8 py-2 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/30 transition-colors" /> {value && ( )}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/StatCard.tsx ================================================================================ import React from 'react'; interface StatCardProps { title: string; value: string | number; subtitle?: string; icon?: React.ReactNode; badge?: React.ReactNode; className?: string; } export const StatCard: React.FC = ({ title, value, subtitle, icon, badge, className = '', }) => { return (
{title} {icon &&
{icon}
}
{value}
{badge}
{subtitle &&

{subtitle}

}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/StatusBadge.tsx ================================================================================ import React from 'react'; export type BadgeVariant = 'emerald' | 'amber' | 'rose' | 'sky' | 'slate' | 'indigo'; interface StatusBadgeProps { label: string; variant?: BadgeVariant; dot?: boolean; className?: string; } export const StatusBadge: React.FC = ({ label, variant = 'slate', dot = true, className = '', }) => { const variantStyles: Record = { emerald: { bg: 'bg-emerald-500/10', text: 'text-emerald-400', border: 'border-emerald-500/20', dotColor: 'bg-emerald-400', }, amber: { bg: 'bg-amber-500/10', text: 'text-amber-400', border: 'border-amber-500/20', dotColor: 'bg-amber-400', }, rose: { bg: 'bg-rose-500/10', text: 'text-rose-400', border: 'border-rose-500/20', dotColor: 'bg-rose-400', }, sky: { bg: 'bg-sky-500/10', text: 'text-sky-400', border: 'border-sky-500/20', dotColor: 'bg-sky-400', }, slate: { bg: 'bg-slate-800/60', text: 'text-slate-400', border: 'border-slate-700/50', dotColor: 'bg-slate-400', }, indigo: { bg: 'bg-indigo-500/10', text: 'text-indigo-400', border: 'border-indigo-500/20', dotColor: 'bg-indigo-400', }, }; const current = variantStyles[variant] || variantStyles.slate; return ( {dot && } {label} ); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/components/ui/StatusTabs.tsx ================================================================================ import React from 'react'; export interface TabItem { id: string; label: string; count?: number; } interface StatusTabsProps { tabs: TabItem[]; activeId: string; onChange: (id: string) => void; className?: string; } export const StatusTabs: React.FC = ({ tabs, activeId, onChange, className = '', }) => { return (
{tabs.map((tab) => { const isActive = tab.id === activeId; return ( ); })}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/context/AuthContext.tsx ================================================================================ import React, { createContext, useContext, useState, useEffect } from 'react'; import { CurrentUser, UserRole } from '../types'; import { api, setToken, clearToken, getToken } from '../api/client'; import { teacherRealtime } from '../realtime/TeacherRealtime'; import { sessionManager } from '../realtime/SessionManager'; interface AuthContextType { user: CurrentUser | null; token: string | null; login: (username: string, password: string) => Promise; logout: () => void; isLoading: boolean; } const AuthContext = createContext(undefined); export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => { const [user, setUser] = useState(() => { try { const cached = localStorage.getItem('classnotify_user'); return cached ? JSON.parse(cached) : null; } catch { return null; } }); const [token, setTokenState] = useState(getToken()); const [isLoading, setIsLoading] = useState(true); // Subscribe to 401 session expiration useEffect(() => { const unsubscribe = sessionManager.subscribe(() => { teacherRealtime.stop(); clearToken(); setTokenState(null); setUser(null); }); return () => unsubscribe(); }, []); useEffect(() => { const initAuth = async () => { const savedToken = getToken(); if (savedToken) { try { const me = await api.getMe(); setUser(me); localStorage.setItem('classnotify_user', JSON.stringify(me)); sessionManager.reset(); // Start SignalR for authenticated users teacherRealtime.start(); } catch (err: any) { // If 401, sessionManager already handled it. // If network error / 502 / timeout, keep existing cached session and do NOT clear token! if (err?.message?.includes('未授权') || err?.message?.includes('401')) { clearToken(); setTokenState(null); setUser(null); } } } else { clearToken(); setUser(null); setTokenState(null); } setIsLoading(false); }; initAuth(); }, []); const login = async (username: string, password: string): Promise => { const res = await api.login(username, password); if (!res.success || !res.token || !res.role) { throw new Error(res.errorMessage || '登录失败'); } setToken(res.token); setTokenState(res.token); const currentUser: CurrentUser = { userId: res.userId || '', name: res.fullName || username, role: res.role, tenantId: res.tenantId || '', }; setUser(currentUser); localStorage.setItem('classnotify_user', JSON.stringify(currentUser)); sessionManager.reset(); // Start SignalR on login teacherRealtime.start(); return res.role; }; const logout = () => { teacherRealtime.stop(); clearToken(); setTokenState(null); setUser(null); sessionManager.reset(); }; return ( {children} ); }; export const useAuth = () => { const ctx = useContext(AuthContext); if (!ctx) { let cachedUser: CurrentUser | null = null; try { const c = localStorage.getItem('classnotify_user'); if (c) cachedUser = JSON.parse(c); } catch {} return { user: cachedUser, token: getToken(), login: async () => 'Teacher' as UserRole, logout: () => {}, isLoading: false, }; } return ctx; }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/index.css ================================================================================ @tailwind base; @tailwind components; @tailwind utilities; @layer base { body { @apply bg-slate-950 text-slate-100 min-h-screen selection:bg-indigo-500 selection:text-white; } } /* Glassmorphic card styling */ .glass-panel { @apply bg-slate-900/70 backdrop-blur-xl border border-slate-800/80 rounded-2xl shadow-xl; } .glass-card { @apply bg-slate-800/40 backdrop-blur-md border border-slate-700/50 rounded-xl transition-all duration-200 hover:border-slate-600/70 hover:bg-slate-800/60; } ================================================================================ FILE: src/Web/ClassNotify.Web/src/main.tsx ================================================================================ import React from 'react'; import ReactDOM from 'react-dom/client'; import { App } from './App'; import './index.css'; ReactDOM.createRoot(document.getElementById('root')!).render( ); ================================================================================ FILE: src/Web/ClassNotify.Web/src/pages/admin/ActivationCodes.tsx ================================================================================ import React, { useEffect, useState } from 'react'; import { useSearchParams, Link } from 'react-router-dom'; import { api } from '../../api/client'; import { ActivationCode, TenantAdmin, Classroom } from '../../types'; import { KeyRound, Plus, Copy, Check, Clock, CheckCircle2, Trash2, RefreshCw, Search, Building2, Layers, Sparkles, AlertCircle } from 'lucide-react'; export const AdminActivationCodes: React.FC = () => { const [searchParams] = useSearchParams(); const [codes, setCodes] = useState([]); const [tenants, setTenants] = useState([]); const [loading, setLoading] = useState(true); const [copiedCode, setCopiedCode] = useState(null); const [search, setSearch] = useState(''); const [selectedFilterTenant, setSelectedFilterTenant] = useState(''); // Modal state const [showModal, setShowModal] = useState(false); const [selectedTenant, setSelectedTenant] = useState(''); const [classes, setClasses] = useState([]); const [loadingClasses, setLoadingClasses] = useState(false); const [selectedClassId, setSelectedClassId] = useState(''); const [isCustomClass, setIsCustomClass] = useState(false); const [customClassId, setCustomClassId] = useState(''); const [generating, setGenerating] = useState(false); const [generatedResult, setGeneratedResult] = useState<{ code: string; schoolName: string; className: string } | null>(null); const loadData = async () => { try { const [c, t] = await Promise.all([api.getAdminActivationCodes(), api.getTenants()]); setCodes(c); setTenants(t); if (t.length > 0 && !selectedTenant) { setSelectedTenant(t[0].id); } } catch (err) { console.error('Failed to load activation codes', err); } finally { setLoading(false); } }; useEffect(() => { loadData(); }, []); // Handle URL search params useEffect(() => { const urlTenant = searchParams.get('tenantId'); const autoOpen = searchParams.get('openGenerate') === 'true'; if (urlTenant) { setSelectedFilterTenant(urlTenant); setSelectedTenant(urlTenant); if (autoOpen) setShowModal(true); } }, [searchParams]); // Load classrooms when selectedTenant changes useEffect(() => { if (!selectedTenant) return; setLoadingClasses(true); api.getAdminClasses(selectedTenant) .then((cls) => { setClasses(cls); if (cls.length > 0) { setSelectedClassId(cls[0].id); setIsCustomClass(false); } else { setSelectedClassId(''); setIsCustomClass(true); } }) .catch((err) => { console.warn('Could not load classes for tenant:', selectedTenant, err); setClasses([]); setIsCustomClass(true); }) .finally(() => setLoadingClasses(false)); }, [selectedTenant]); const copyToClipboard = (code: string) => { navigator.clipboard.writeText(code); setCopiedCode(code); setTimeout(() => setCopiedCode(null), 2000); }; const handleGenerate = async (e: React.FormEvent) => { e.preventDefault(); const finalClassId = isCustomClass ? customClassId.trim() : selectedClassId.trim(); if (!selectedTenant || !finalClassId) { alert('请选择学校及目标班级'); return; } setGenerating(true); try { const res = await api.generateAdminCode(selectedTenant, finalClassId); const schoolObj = tenants.find((t) => t.id === selectedTenant); const classObj = classes.find((c) => c.id === finalClassId); setGeneratedResult({ code: res.code, schoolName: schoolObj?.name || selectedTenant, className: classObj?.displayName || finalClassId, }); setShowModal(false); setCustomClassId(''); loadData(); } catch (err: any) { alert(err.message || '生成激活码失败'); } finally { setGenerating(false); } }; const handleDelete = async (code: string) => { if (!window.confirm(`确定要废弃/删除激活码 [${code}] 吗?废弃后将无法用于设备初始化绑定。`)) { return; } try { await api.deleteActivationCode(code); loadData(); } catch (err: any) { alert(err.message || '删除激活码失败'); } }; const filteredCodes = codes.filter((c) => { const matchesTenant = !selectedFilterTenant || c.tenantId === selectedFilterTenant; const matchesSearch = c.code.toLowerCase().includes(search.toLowerCase()) || c.classroomName.toLowerCase().includes(search.toLowerCase()) || c.tenantName.toLowerCase().includes(search.toLowerCase()); return matchesTenant && matchesSearch; }); return (
{/* Top Banner & Action */}

全网设备激活码大盘

生成与管理各学校教室电脑安装所需的 8 位一次性硬件绑定激活码,支持过期清理与强制废除

{/* Generated Success Callout */} {generatedResult && (
激活码生成成功!
归属:{generatedResult.schoolName} / {generatedResult.className}(有效期 7 天,一次性硬件绑定)
{generatedResult.code}
)} {/* Filter Toolbar */}
setSearch(e.target.value)} placeholder="搜索激活码、班级或学校..." className="bg-transparent border-none text-xs text-white placeholder-slate-500 focus:outline-none w-full" />
共 {filteredCodes.length} 个激活码
{/* Codes Table */}
{filteredCodes.length === 0 ? ( ) : ( filteredCodes.map((c) => ( {/* Code */} {/* School / Class */} {/* Status */} {/* Device info */} {/* Expiry */} {/* Actions */} )) )}
激活码 绑定学校 / 班级 使用状态 激活设备 有效期限 操作
{loading ? '正在读取激活码...' : '暂无匹配的激活码'}
点击右上角“生成新激活码”即可为任意学校教室开通绑定码
{c.code}
{c.classroomName}
{c.tenantName}
{c.isUsed ? ( 已激活绑定 ) : ( 等待激活 )} {c.usedByDeviceId ? ( {c.usedByDeviceId} ) : ( - )} {new Date(c.expiresAt).toLocaleDateString()} {new Date(c.expiresAt).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })}
{/* Generate Code Modal */} {showModal && (

生成班级设备激活码

{/* Select School */}
{/* Select Classroom */}
{loadingClasses ? (
正在读取该校班级列表...
) : isCustomClass ? ( setCustomClassId(e.target.value)} placeholder="输入班级编号,如 cls_801" className="w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none" required /> ) : classes.length > 0 ? ( ) : (
该校暂无预设班级,请手动输入班级代码:
setCustomClassId(e.target.value)} placeholder="如 cls_801 或 cls_new" className="w-full px-3 py-2.5 rounded-xl bg-slate-950 border border-slate-700 text-white text-sm focus:ring-2 focus:ring-amber-500 focus:outline-none" required />
)}
💡 使用说明:
1. 激活码生成后有效期为 7 天;
2. 在教室电脑上运行 ClassNotify 安装程序,输入此激活码即可完成班级与屏幕绑定。
)}
); }; export const ActivationCodes = AdminActivationCodes; ================================================================================ FILE: src/Web/ClassNotify.Web/src/pages/admin/AdminDashboard.tsx ================================================================================ import React, { useEffect, useState } from 'react'; import { Link } from 'react-router-dom'; import { api } from '../../api/client'; import { AdminMetrics, TenantAdmin, NotificationRecord, SystemHealth, AdminAuditLog, FleetVersionSummary } from '../../types'; import { Building2, Monitor, Bell, Activity, CheckCircle2, Clock, Radio, Users, KeyRound, ShieldCheck, AlertTriangle, ArrowRight, Shield, Layers, FileText, Cpu } from 'lucide-react'; import { PageHeader, StatCard, StatusBadge } from '../../components/ui'; export const AdminDashboard: React.FC = () => { const [metrics, setMetrics] = useState(null); const [tenants, setTenants] = useState([]); const [recentNotifs, setRecentNotifs] = useState([]); const [health, setHealth] = useState(null); const [auditLogs, setAuditLogs] = useState([]); const [fleetSummary, setFleetSummary] = useState(null); const [loading, setLoading] = useState(true); const loadData = async () => { try { const [m, t, n, h, a, fs] = await Promise.all([ api.getAdminMetrics(), api.getTenants(), api.getAdminNotifications(6), api.getSystemHealth?.().catch(() => null) ?? Promise.resolve(null), api.getAuditLogs?.(6).catch(() => []) ?? Promise.resolve([]), api.getFleetVersionSummary?.().catch(() => null) ?? Promise.resolve(null), ]); setMetrics(m); setTenants(t); setRecentNotifs(n); if (h) setHealth(h); if (a) setAuditLogs(a); if (fs) setFleetSummary(fs); } catch (err) { console.error('Failed to load admin dashboard data', err); } finally { setLoading(false); } }; useEffect(() => { loadData(); const timer = setInterval(loadData, 10000); return () => clearInterval(timer); }, []); const totalDevs = metrics?.totalDevices ?? 0; const onlineDevs = health?.onlineDevices ?? metrics?.onlineDevices ?? 0; const offlineDevs = metrics?.offlineDevices ?? Math.max(0, totalDevs - onlineDevs); const onlineRate = totalDevs > 0 ? Math.round((onlineDevs / totalDevs) * 100) : 100; return (
{/* Header */} 激活码管理 全域应急广播
} /> {/* 4 Core Top Metrics */}
{/* Metric 1: Online Rate with restrained circular ring */}
大屏在线率
{onlineRate}%
{onlineDevs} / {totalDevs} 台在线
{/* Restrained SVG circle */}
{/* Metric 2: Offline Devices */} 0 ? '建议督促校区排查网络' : '全网终端运行畅通'} icon={ 0 ? 'text-amber-400' : 'text-slate-400'}`} />} badge={offlineDevs > 0 ? : } /> {/* Metric 3: Today Notifications */} } /> {/* Metric 4: Tenants */} } />
{/* Main Grid: Left Control Modules + Right Attention / Audit */}
{/* Left Column (7 cols): System Modules & Quick Access */}
{/* Quick Access Grid */}

核心管控模块

学校租户
校区开通、参数与冻结
用户中枢
多角色账号与密码管控
设备集控
心跳、远程指令与清退
终端版本
资产基线、兼容性与版本看板
应急广播
全网最高优先极速强插
{/* School Tenants Status Summary */}

入驻校区简况

管理全部校区
{tenants.slice(0, 4).map((t) => (
{t.name}
{t.id} · {t.classroomCount} 班级
{t.deviceCount} 设备
))}
{/* Right Column (5 cols): Attention & High-risk Audits */}
{/* Requires Attention (离线 / 待关注设备 / 版本落后) */}

需要关注

异常终端优先浮出
{offlineDevs === 0 && (fleetSummary?.unsupported ?? 0) === 0 && (fleetSummary?.outdated ?? 0) === 0 ? (
全网各校区终端运行良好,版本全部合规,无异常阻断
) : (
{/* 1. Unsupported Devices (Section 16) */} {(fleetSummary?.unsupported ?? 0) > 0 && (
{fleetSummary?.unsupported} 台终端版本不受支持
查看 →
低于最低运行版本基线,建议统筹升级规划。
)} {/* 2. Outdated Devices (Section 16) */} {(fleetSummary?.outdated ?? 0) > 0 && (
{fleetSummary?.outdated} 台终端版本落后
查看 →
当前可正常收发通知,建议升级至推荐版本 {fleetSummary?.policy?.recommendedServiceVersion || '2.5.0'}。
)} {/* 3. Offline Devices */} {offlineDevs > 0 && (
检测到 {offlineDevs} 台大屏终端离线
前往排查 →
未接收到周期心跳包,可能由于关机或校内网络断开导致。
)}
)}
{/* Recent Security Audits */}

最近安全审计流水

完整流水
{auditLogs.length === 0 ? (
暂无审计记录
) : ( auditLogs.map((log) => (
{log.action} {new Date(log.occurredAt).toLocaleTimeString()}
{log.actorUsername || '系统'} · {log.targetType} {log.targetId}
)) )}
); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/pages/admin/DeviceManagement.tsx ================================================================================ import React, { useEffect, useState } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { api } from '../../api/client'; import { Monitor, RefreshCw, RotateCcw, Activity, CheckCircle2, AlertCircle, Edit3, Trash2, Clock, KeyRound, CheckSquare, Square, FileText, Download, Loader2 } from 'lucide-react'; import { DeviceAdmin, SupportBundleStatus } from '../../types'; import { PageHeader, StatusBadge, StatusTabs, SearchInput, RowActionMenu, Modal, DangerConfirmModal, TabItem } from '../../components/ui'; export const DeviceManagement: React.FC = () => { const navigate = useNavigate(); const [devices, setDevices] = useState([]); const [loading, setLoading] = useState(true); const [search, setSearch] = useState(''); const [statusFilter, setStatusFilter] = useState<'all' | 'online' | 'offline'>('all'); const [commandResult, setCommandResult] = useState<{ deviceId: string; message: string; success: boolean; } | null>(null); // Bulk Actions State const [selectedDeviceIds, setSelectedDeviceIds] = useState([]); const [bulkLoading, setBulkLoading] = useState(false); // Edit Device State const [editingDevice, setEditingDevice] = useState(null); const [editHostname, setEditHostname] = useState(''); const [editClassroomId, setEditClassroomId] = useState(''); const [editLoading, setEditLoading] = useState(false); // Decommission State const [decommissionTarget, setDecommissionTarget] = useState(null); const [decommissionLoading, setDecommissionLoading] = useState(false); // Support Bundle State (P2.5 RC1-3 Phase 3) const [bundleDevice, setBundleDevice] = useState(null); const [bundleStatus, setBundleStatus] = useState(null); const [bundleLoading, setBundleLoading] = useState(false); const [bundleError, setBundleError] = useState(null); const [downloading, setDownloading] = useState(false); const openBundleModal = async (device: DeviceAdmin) => { setBundleDevice(device); setBundleStatus(null); setBundleError(null); setBundleLoading(true); try { // Step 27 / P3-11: 页面恢复检查,查询该设备最近诊断包 const history = await api.getDeviceSupportBundles(device.deviceId, 1); if (history.length > 0) { const latest = history[0]; if (latest.status === 'PendingDispatch' || latest.status === 'Collecting' || latest.status === 'Available') { setBundleStatus(latest); } } } catch (err: any) { console.warn('Failed to load bundle history', err); } finally { setBundleLoading(false); } }; const handleCreateBundle = async () => { if (!bundleDevice) return; setBundleLoading(true); setBundleError(null); try { const clientRequestId = `req_${Date.now()}_${Math.random().toString(36).substring(2, 8)}`; const res = await api.createSupportBundle(bundleDevice.deviceId, clientRequestId); setBundleStatus({ supportBundleId: res.supportBundleId, deviceId: res.deviceId, tenantId: bundleDevice.tenantId, status: res.status as any, createdAtUtc: res.createdAtUtc, downloadAvailable: false, }); } catch (err: any) { setBundleError(err.message || '发起生成诊断包失败'); } finally { setBundleLoading(false); } }; const handleDownloadBundle = async () => { if (!bundleStatus) return; setDownloading(true); try { const filename = `classnotify-support-${bundleStatus.deviceId}.zip`; await api.downloadSupportBundle(bundleStatus.supportBundleId, filename); } catch (err: any) { setBundleError(err.message || '下载诊断包失败'); } finally { setDownloading(false); } }; // Support Bundle 2s Polling effect for PendingDispatch / Collecting states useEffect(() => { if (!bundleStatus || !bundleDevice) return; if (bundleStatus.status !== 'PendingDispatch' && bundleStatus.status !== 'Collecting') { return; } const interval = setInterval(async () => { try { const updated = await api.getSupportBundle(bundleStatus.supportBundleId); setBundleStatus(updated); } catch (err: any) { console.warn('Failed to poll bundle status', err); } }, 2000); return () => clearInterval(interval); }, [bundleStatus?.status, bundleStatus?.supportBundleId, bundleDevice]); const getSafeBundleErrorMessage = (code?: string) => { switch (code) { case 'CollectionFailure': return '设备采集失败'; case 'BundleTooLarge': return '诊断包体积超过上限 (5 MiB)'; case 'InvalidZip': case 'InvalidManifest': case 'UnexpectedEntry': return '诊断包格式验证未通过'; case 'SupportBundleFileMissing': return '诊断包文件在存储中缺失'; default: return '诊断包生成异常,请重试'; } }; const formatBundleTimeRemaining = (expiresAtUtc?: string) => { if (!expiresAtUtc) return '24 小时'; const diff = new Date(expiresAtUtc).getTime() - Date.now(); if (diff <= 0) return '已过期'; const hours = Math.floor(diff / (1000 * 60 * 60)); const mins = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60)); return `${hours}小时${mins}分钟`; }; const loadDevices = async () => { try { const data = await api.getAllDevices(); setDevices(data); } catch (err) { console.error('Failed to load devices', err); } finally { setLoading(false); } }; useEffect(() => { loadDevices(); const interval = setInterval(loadDevices, 5000); // Live poll return () => clearInterval(interval); }, []); const handleCommand = async (deviceId: string, cmd: string, params?: string) => { setCommandResult(null); try { const res = await api.sendDeviceCommand(deviceId, cmd, params); setCommandResult({ deviceId, message: res.message, success: true, }); loadDevices(); } catch (err: any) { setCommandResult({ deviceId, message: err.message || '远程指令下发失败', success: false, }); } }; const handleBulkCommand = async (cmd: 'self_check' | 'refresh_config') => { if (selectedDeviceIds.length === 0) return; setBulkLoading(true); if (cmd === 'self_check') { try { const clientRequestId = `req_${Date.now()}_${Math.random().toString(36).substring(2, 8)}`; const batch = await api.createSelfCheckBatch(clientRequestId, selectedDeviceIds); setSelectedDeviceIds([]); setBulkLoading(false); navigate(`/admin/self-check-batches/${batch.batchId}`); return; } catch (err: any) { setCommandResult({ deviceId: `已选 ${selectedDeviceIds.length} 台`, message: err.message || '发起批量自检失败', success: false, }); setBulkLoading(false); return; } } let okCount = 0; for (const id of selectedDeviceIds) { try { await api.sendDeviceCommand(id, cmd); okCount++; } catch {} } const label = '批量刷新配置'; setCommandResult({ deviceId: `已选 ${selectedDeviceIds.length} 台`, message: `${label}指令已成功下发至 ${okCount} 台大屏终端`, success: true, }); setSelectedDeviceIds([]); setBulkLoading(false); loadDevices(); }; const toggleSelect = (id: string) => { setSelectedDeviceIds((prev) => prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id] ); }; const toggleSelectAll = (currentFiltered: DeviceAdmin[]) => { if (selectedDeviceIds.length === currentFiltered.length) { setSelectedDeviceIds([]); } else { setSelectedDeviceIds(currentFiltered.map((d) => d.deviceId)); } }; const openEdit = (d: DeviceAdmin) => { setEditingDevice(d); setEditHostname(d.hostname || ''); setEditClassroomId(d.classroomId || ''); }; const handleSaveEdit = async (e: React.FormEvent) => { e.preventDefault(); if (!editingDevice) return; setEditLoading(true); try { await api.updateDevice(editingDevice.deviceId, { hostname: editHostname.trim() || undefined, classroomId: editClassroomId.trim() || undefined, }); setCommandResult({ deviceId: editingDevice.deviceId, message: '设备信息更新成功', success: true, }); setEditingDevice(null); loadDevices(); } catch (err: any) { setCommandResult({ deviceId: editingDevice.deviceId, message: err.message || '更新设备失败', success: false, }); } finally { setEditLoading(false); } }; const handleDecommissionConfirm = async () => { if (!decommissionTarget) return; setDecommissionLoading(true); try { await api.decommissionDevice(decommissionTarget.deviceId); setCommandResult({ deviceId: decommissionTarget.deviceId, message: '设备已成功清退并注销', success: true, }); setDecommissionTarget(null); loadDevices(); } catch (err: any) { setCommandResult({ deviceId: decommissionTarget.deviceId, message: err.message || '清退设备失败', success: false, }); } finally { setDecommissionLoading(false); } }; const formatHeartbeat = (timeStr?: string) => { if (!timeStr) return '从无心跳'; const diff = Math.floor((Date.now() - new Date(timeStr).getTime()) / 1000); if (diff < 10) return '刚刚'; if (diff < 60) return `${diff} 秒前`; if (diff < 3600) return `${Math.floor(diff / 60)} 分钟前`; return `${Math.floor(diff / 3600)} 小时前`; }; const deviceTabs: TabItem[] = [ { id: 'all', label: '全部设备', count: devices.length }, { id: 'online', label: '在线正常', count: devices.filter((d) => d.isOnline).length }, { id: 'offline', label: '离线需关注', count: devices.filter((d) => !d.isOnline).length }, ]; const filteredDevices = devices.filter((d) => { if (statusFilter === 'online' && !d.isOnline) return false; if (statusFilter === 'offline' && d.isOnline) return false; if (search.trim()) { const q = search.toLowerCase(); const matchSchool = d.tenantName.toLowerCase().includes(q); const matchClass = d.classroomName.toLowerCase().includes(q); const matchId = d.deviceId.toLowerCase().includes(q); const matchHost = d.hostname && d.hostname.toLowerCase().includes(q); if (!matchSchool && !matchClass && !matchId && !matchHost) return false; } return true; }); return (
{/* Header */} 自检批次看板 生成激活码
} /> {/* Command Result Banner */} {commandResult && (
{commandResult.success ? ( ) : ( )} [{commandResult.deviceId}] {commandResult.message}
)} {/* Status Tabs & Search Filter */}
{ setStatusFilter(id as any); setSelectedDeviceIds([]); }} />
{/* Safe Bulk Action Bar (When devices are selected) */} {selectedDeviceIds.length > 0 && (
已勾选 {selectedDeviceIds.length} 台教室大屏终端
)} {/* Devices Table */}
{filteredDevices.length === 0 ? ( ) : ( filteredDevices.map((d) => { const isSelected = selectedDeviceIds.includes(d.deviceId); return ( {/* Checkbox */} {/* School / Class */} {/* Device ID / Hostname */} {/* Status */} {/* Last Heartbeat */} {/* Version */} {/* Operations */} ); }) )}
0 && selectedDeviceIds.length === filteredDevices.length} onChange={() => toggleSelectAll(filteredDevices)} className="rounded bg-slate-950 border-slate-700 text-blue-600 focus:ring-0 cursor-pointer" title="全选当前列表" /> 学校 / 班级 设备编号 / 主机名 运行状态 心跳与 IP 版本 操作
{loading ? '正在同步设备状态...' : '暂无匹配的设备'}
toggleSelect(d.deviceId)} className="rounded bg-slate-950 border-slate-700 text-blue-600 focus:ring-0 cursor-pointer" />
{d.classroomName}
{d.tenantName}
{d.deviceId}
{d.hostname || 'Classroom-PC'}
{formatHeartbeat(d.lastHeartbeat)}
{d.remoteIp || '127.0.0.1'}
v{d.clientVersion || '2.1.0'} , onClick: () => handleCommand(d.deviceId, 'self_check'), }, { label: '生成诊断包', icon: , onClick: () => openBundleModal(d), }, { label: '刷新配置', icon: , onClick: () => handleCommand(d.deviceId, 'refresh_config'), }, { label: '重启客户端', icon: , onClick: () => handleCommand(d.deviceId, 'restart_client'), }, { label: '编辑信息', icon: , onClick: () => openEdit(d), }, { label: '清退设备', icon: , onClick: () => setDecommissionTarget(d), danger: true, }, ]} />
{/* Edit Metadata Modal */} {editingDevice && ( setEditingDevice(null)} title={`编辑设备: ${editingDevice.deviceId}`} preventClose={editLoading} >
setEditHostname(e.target.value)} placeholder="例如:ROOM-801-PC" className="w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500" />
setEditClassroomId(e.target.value)} placeholder="例如:class-801" className="w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-white text-xs focus:outline-none focus:border-blue-500 font-mono" />
)} {/* Danger Confirm Modal for Decommission */} setDecommissionTarget(null)} onConfirm={handleDecommissionConfirm} title="确认清退大屏设备" targetName={decommissionTarget ? `${decommissionTarget.classroomName} (${decommissionTarget.deviceId})` : undefined} description="清退后该大屏终端将注销授权,无法接收通知与指令,需重新生成激活码方可绑定。" confirmLabel="确认注销清退" loading={decommissionLoading} /> {/* Support Bundle Modal (P2.5 RC1-3 Phase 3) */} {bundleDevice && ( { if (bundleStatus?.status !== 'PendingDispatch' && bundleStatus?.status !== 'Collecting') { setBundleDevice(null); setBundleStatus(null); } else { setBundleDevice(null); } }} title={`设备技术诊断包: ${bundleDevice.classroomName} (${bundleDevice.deviceId})`} >
{bundleError && (
{bundleError}
)} {/* Initial Prompt State */} {!bundleStatus && (

即将向该终端下发诊断采集指令,收集系统关键指标用于排查故障。

将收集:
版本与运行状态
最近一次自检结果
网络 / SignalR / IPC / WPF / TTS 状态
安全诊断事件
)} {/* PendingDispatch State */} {bundleStatus?.status === 'PendingDispatch' && (
正在请求设备…
正在通过安全专线唤醒大屏终端,等待响应中
)} {/* Collecting State */} {bundleStatus?.status === 'Collecting' && (
正在生成诊断包…
终端正在打包系统环境、运行快照与自检指标 (每 2 秒同步)
)} {/* Available State */} {bundleStatus?.status === 'Available' && (
诊断包已生成
安全校验与哈希完整性校验已全部通过
文件体积 {((bundleStatus.sizeBytes || 0) / 1024).toFixed(1)} KB
剩余有效期 {formatBundleTimeRemaining(bundleStatus.expiresAtUtc)}
{bundleStatus.sha256 && (
SHA256 校验和 {bundleStatus.sha256.substring(0, 16)}...
)}
)} {/* Failed State */} {bundleStatus?.status === 'Failed' && (
诊断包生成失败
原因:{getSafeBundleErrorMessage(bundleStatus.errorCode)}
)} {/* TimedOut State */} {bundleStatus?.status === 'TimedOut' && (
生成超时
设备未能在规定时间内完成诊断包生成。
)} {/* Expired State */} {bundleStatus?.status === 'Expired' && (
诊断包已过期
为了节省服务器空间,诊断文件已自动删除。
)}
)} ); }; ================================================================================ FILE: src/Web/ClassNotify.Web/src/pages/admin/EmergencyBroadcast.tsx ================================================================================ import React, { useEffect, useState } from 'react'; import { api } from '../../api/client'; import { TenantAdmin, EmergencyBroadcastRequest, NotificationRecord, BroadcastReceiptSummary } from '../../types'; import { Radio, AlertTriangle, Send, Volume2, Clock, Building2, CheckCircle2, ShieldAlert, Flame, CloudRain, Users, Megaphone, Loader2, X, History, Activity, Check } from 'lucide-react'; import { PageHeader, StatusBadge, Modal } from '../../components/ui'; export const EmergencyBroadcast: React.FC = () => { const [tenants, setTenants] = useState([]); const [loadingTenants, setLoadingTenants] = useState(true); const [recentBroadcasts, setRecentBroadcasts] = useState([]); const [loadingHistory, setLoadingHistory] = useState(false); const [form, setForm] = useState({ tenantId: '', title: '⚠️ 全校紧急预警通报', message: '', voice: true, shake: true, durationSeconds: 30, }); const [showConfirmModal, setShowConfirmModal] = useState(false); const [submitting, setSubmitting] = useState(false); const [activeBroadcastId, setActiveBroadcastId] = useState(null); const [receiptSummary, setReceiptSummary] = useState(null); const [result, setResult] = useState<{ dispatchedCount: number; targetSchools: number; message: string; success: boolean; timestamp: string; } | null>(null); const templates = [ { title: '消防紧急疏散演练', content: '全体师生请注意:现在进行全校紧急消防演练,请任课老师组织学生按预定疏散路线迅速有序撤离至操场!', duration: 60, shake: true, voice: true, icon: Flame, }, { title: '恶劣天气避险通报', content: '气象台发布雷电暴雨黄色预警,请各班立即紧闭门窗,切断教室非必要电器电源,严禁前往室外!', duration: 45, shake: true, voice: true, icon: CloudRain, }, { title: '临时紧急调度会议', content: '请全体班主任与班长立即到行政楼二楼报告厅参加紧急安全调度会议,其余同学教室内自习。', duration: 30, shake: false, voice: true, icon: Users, }, { title: '作息调整离校通知', content: '因突发教学安排,今天下午放学时间临时调整为 16:30,请任课老师提醒学生整理个人物品按时离校。', duration: 30, shake: false, voice: true, icon: Megaphone, }, ]; const fetchTenants = async () => { try { const data = await api.getTenants(); setTenants(data); } catch (err) { console.error('Failed to load tenants', err); } finally { setLoadingTenants(false); } }; const fetchRecentBroadcasts = async () => { setLoadingHistory(true); try { const data = await api.getAdminNotifications(15); setRecentBroadcasts(data); } catch (err) { console.error('Failed to load recent broadcasts', err); } finally { setLoadingHistory(false); } }; useEffect(() => { fetchTenants(); fetchRecentBroadcasts(); }, []); const handleApplyTemplate = (tpl: typeof templates[0]) => { setForm((prev) => ({ ...prev, title: `⚠️ ${tpl.title}`, message: tpl.content, durationSeconds: tpl.duration, shake: tpl.shake, voice: tpl.voice, })); }; const handlePreBroadcast = (e: React.FormEvent) => { e.preventDefault(); if (!form.message.trim()) { alert('请输入广播通知正文'); return; } setShowConfirmModal(true); }; useEffect(() => { if (!activeBroadcastId) return; let stopped = false; let timer: number | undefined; const startTime = Date.now(); const poll = async () => { try { const summary = await api.getBroadcastReceiptSummary(activeBroadcastId); if (stopped) return; setReceiptSummary(summary); if (!summary.completed && Date.now() - startTime < 60000) { timer = window.setTimeout(poll, 2000); } } catch { if (!stopped && Date.now() - startTime < 60000) { timer = window.setTimeout(poll, 3000); } } }; poll(); return () => { stopped = true; if (timer) clearTimeout(timer); }; }, [activeBroadcastId]); const handleExecuteBroadcast = async () => { setSubmitting(true); try { const res = await api.sendEmergencyBroadcast({ ...form, tenantId: form.tenantId || undefined, }); if (res.broadcastId) { setActiveBroadcastId(res.broadcastId); } setResult({ dispatchedCount: res.dispatchedCount, targetSchools: res.targetSchools, message: res.message, success: true, timestamp: new Date().toLocaleTimeString(), }); setShowConfirmModal(false); setForm((prev) => ({ ...prev, message: '' })); fetchRecentBroadcasts(); } catch (err: any) { setResult({ dispatchedCount: 0, targetSchools: 0, message: err.message || '应急广播下发失败', success: false, timestamp: new Date().toLocaleTimeString(), }); setShowConfirmModal(false); } finally { setSubmitting(false); } }; const selectedTenant = tenants.find((t) => t.id === form.tenantId); const totalClassesTargeted = selectedTenant ? selectedTenant.classroomCount : tenants.reduce((acc, t) => acc + (t.classroomCount || 0), 0); const totalDevicesTargeted = selectedTenant ? selectedTenant.deviceCount : tenants.reduce((acc, t) => acc + (t.deviceCount || 0), 0); // Display Rate calculation strictly based on real receipt aggregation const totalTargetDevices = receiptSummary?.targetDevices ?? null; const displayedDevices = receiptSummary?.displayed ?? 0; const pendingDevices = receiptSummary?.pending ?? null; const displayPercent = (receiptSummary && receiptSummary.targetDevices > 0) ? Math.min(100, Math.round((displayedDevices / receiptSummary.targetDevices) * 100)) : 0; return (
{/* Header */} } /> {/* Broadcast Result & Progress Visualization */} {result && (
{result.success ? (
) : (
)}

{result.success ? '紧急广播指令已成功下发至目标教室大屏' : '广播下发失败'}

{result.message}

{/* Progress ring + metrics */} {result.success && (
{displayPercent}%
大屏显示达成率
{receiptSummary ? `${displayedDevices} / ${totalTargetDevices} 台大屏已完成现场弹窗` : `广播已调度下发至 ${result.dispatchedCount || 0} 个目标班级,正在等待终端回执...`}
{/* Status Breakdown Chips */}
{displayedDevices}
已显示
{pendingDevices !== null ? pendingDevices : '—'}
{receiptSummary ? '等待回执' : '等待统计'}
{receiptSummary?.failed ?? '—'}
失败/离线
)} {/* School breakdown table */} {result.success && tenants.length > 0 && (
目标校区下达详情
{tenants.map((t) => { const isSelectedSchool = !form.tenantId || form.tenantId === t.id; if (!isSelectedSchool) return null; return (
{t.name}
{t.classroomCount} 间教室 · {t.deviceCount} 台大屏
已调度下发
); })}
)}
)} {/* Quick Preset Templates */}
{templates.map((tpl, i) => { const Icon = tpl.icon; return ( ); })}
{/* Main Broadcast Form */}
setForm({ ...form, title: e.target.value })} className="w-full px-3 py-2 rounded-xl bg-slate-950 border border-slate-800 text-xs text-white focus:outline-none focus:border-blue-500 transition-colors" placeholder="例如: ⚠️ 全校紧急避险预警" />