From 89eedf5522ab34d0a27bef877c2d6c60c58b2957 Mon Sep 17 00:00:00 2001 From: Andrew Zambazos Date: Sun, 15 Feb 2026 22:52:35 +1300 Subject: [PATCH] Add Nebula Shell v0 prototype and redesign Introduce a working v0 Nebula Shell prototype (Tauri frontend) and redesign docs. Adds a complete frontend under src/ (views: home, lock, library, settings, overlays), core adapters (input, nav, passkey, router, state), global styles and shell guidelines, and view-specific HTML/CSS/JS. Update README with prototype notes, install/run/build instructions and controller testing tips. Update package.json to add dev/build scripts and add @nebulaproject/core as a dependency. Also include a detailed REDESIGN_DOCUMENTATION.md describing the Xbox-inspired horizontal dashboard, component patterns, and developer notes. --- README.md | 106 +- REDESIGN_DOCUMENTATION.md | 382 +++ package-lock.json | 241 ++ package.json | 5 + src-tauri/Cargo.lock | 5307 +++++++++++++++++++++++++++++ src/core/input.js | 318 ++ src/core/nav.js | 192 ++ src/core/passkey.js | 173 + src/core/router.js | 34 + src/core/state.js | 141 + src/index.html | 58 +- src/main.js | 165 +- src/styles/base.css | 262 ++ src/styles/components.css | 164 + src/styles/shell-guidelines.md | 53 + src/styles/theme.css | 41 + src/views/home/home.css | 90 + src/views/home/home.html | 60 + src/views/home/home.js | 132 + src/views/library/library.css | 10 + src/views/library/library.html | 22 + src/views/library/library.js | 48 + src/views/lock/lock.css | 233 ++ src/views/lock/lock.html | 39 + src/views/lock/lock.js | 385 +++ src/views/overlays/powerMenu.css | 34 + src/views/overlays/powerMenu.html | 12 + src/views/overlays/powerMenu.js | 107 + src/views/settings/settings.css | 181 + src/views/settings/settings.html | 48 + src/views/settings/settings.js | 241 ++ 31 files changed, 9242 insertions(+), 42 deletions(-) create mode 100644 REDESIGN_DOCUMENTATION.md create mode 100644 package-lock.json create mode 100644 src-tauri/Cargo.lock create mode 100644 src/core/input.js create mode 100644 src/core/nav.js create mode 100644 src/core/passkey.js create mode 100644 src/core/router.js create mode 100644 src/core/state.js create mode 100644 src/styles/base.css create mode 100644 src/styles/components.css create mode 100644 src/styles/shell-guidelines.md create mode 100644 src/styles/theme.css create mode 100644 src/views/home/home.css create mode 100644 src/views/home/home.html create mode 100644 src/views/home/home.js create mode 100644 src/views/library/library.css create mode 100644 src/views/library/library.html create mode 100644 src/views/library/library.js create mode 100644 src/views/lock/lock.css create mode 100644 src/views/lock/lock.html create mode 100644 src/views/lock/lock.js create mode 100644 src/views/overlays/powerMenu.css create mode 100644 src/views/overlays/powerMenu.html create mode 100644 src/views/overlays/powerMenu.js create mode 100644 src/views/settings/settings.css create mode 100644 src/views/settings/settings.html create mode 100644 src/views/settings/settings.js diff --git a/README.md b/README.md index d433441..cc6307c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,106 @@ # Nebula OS v0 – Windows-first Development Plan +## Nebula Shell Prototype (Current) + +This repository now includes a working v0 Nebula Shell prototype in the Tauri frontend (`src/`) with: + +- Lock Screen with controller/keyboard PIN keypad (`1234` for v0) +- Home dashboard tile grid (Library, Settings, Power) +- Settings split-pane stub (category list + content panel) +- Library stub view with controller back behavior +- Start/Menu power overlay that traps focus and closes with Back +- Unified input actions (`up/down/left/right/accept/back/menu`) from keyboard + gamepad + +### Dashboard refresh (Xbox-inspired Nebula) + +The shell now uses a premium horizontal dashboard language inspired by console UI patterns: + +- Left-aligned horizontal app tile rail (Library, Settings, Power) +- Dynamic nebula background stack (gradient, starfield, fog, vignette) +- Shared top bar with reactive accent line and profile/time status +- Layered tile focus states (scale, cyan glow, ripple, elevation) +- Smooth page/focus transitions with cubic-bezier motion curves +- Immersive lock screen with large clock/date and input-revealed PIN panel +- Settings redesign with top category rail + card-based content panel + +Animation and component architecture notes are in [src/styles/shell-guidelines.md](src/styles/shell-guidelines.md). + +### Install + +```bash +npm install +``` + +### Run (Windows dev) + +```bash +npm run dev +``` + +### Build + +```bash +npm run build +``` + +### Controller testing notes (Windows) + +- Connect an Xbox-compatible controller before launching dev mode. +- Navigation: D-pad or left stick. +- Actions: `A` = Accept, `B` = Back, `Start` = Menu. +- Keyboard mirror for development: arrow keys, Enter, Escape/Backspace. + +### Nebula Core integration status + +`@nebulaproject/core` is installed and used through runtime adapters in: + +- `src/core/input.js` +- `src/core/nav.js` +- `src/core/state.js` + +If Nebula Core exports are available, the shell uses them for input/navigation/glyphs/theme. +If not, local fallback adapters keep the shell fully functional. + +### Local Nebula Core development (Windows-safe) + +Current npm package `@nebulaproject/core@0.1.3` re-exports internal `@nebula/*` packages that are not published, so local linking is recommended for active core development. + +1. Clone Nebula Core monorepo next to this repo. +2. Build Nebula Core packages. +3. Link from the core repo and consume in this repo: + +```bash +# In Nebula-Core repo +npm link + +# In Nebula-OS repo +npm link @nebulaproject/core +``` + +Alternative (more deterministic): use `file:` dependency in `package.json`: + +```json +{ + "dependencies": { + "@nebulaproject/core": "file:../Nebula-Core/packages/core" + } +} +``` + +Then run: + +```bash +npm install +``` + +### Linux VM build (high-level) + +- Install Rust, Node.js, and Tauri Linux prerequisites in the VM. +- Clone this repo in Linux VM. +- Run `npm install`. +- Run `npm run dev` for integration checks in Linux session. +- Run `npm run build` to produce Linux artifacts. + ## Vision Nebula OS is a **controller-first, open source operating system experience** built on Linux. @@ -14,7 +115,7 @@ It is an independent UI layer that: * Acts as the primary **controller-first shell** for the OS * Provides a unified Home experience for **games, apps, and media** -* Ships with core Nebula apps such as **Nebula Browser** +* Integrates first-install Nebula apps such as **Nebula Browser** and **Nebula Launcher** * Exposes **system settings** through controller-friendly panels * Manages game libraries directly (Steam, GOG, Epic, and others) @@ -78,7 +179,6 @@ Game UI Mode contains: * Lock screen with controller PIN entry * Nebula Home dashboard -* Nebula Browser * Nebula Library * Controller-friendly Settings * Power and session controls @@ -147,7 +247,7 @@ It is the primary interface in Game UI Mode and should feel like a console dashb Nebula Shell responsibilities: * Home dashboard (games, apps, recent activity) -* App launcher for Nebula apps (Nebula Browser, Nebula Library, Settings) +* App launcher for integrated Nebula apps (Nebula Browser, Nebula Launcher, Nebula Library, Settings) * System navigation (network, audio, display, storage, accounts) * Power menu and session switching (Game UI ↔ Desktop) * Notifications and downloads (later) diff --git a/REDESIGN_DOCUMENTATION.md b/REDESIGN_DOCUMENTATION.md new file mode 100644 index 0000000..ab3e6e8 --- /dev/null +++ b/REDESIGN_DOCUMENTATION.md @@ -0,0 +1,382 @@ +# Nebula OS - Xbox Series X Inspired Redesign Documentation + +## Overview +Nebula OS has been redesigned with inspiration from the Xbox Series X dashboard while maintaining its unique space-themed identity. The result is a horizontal, content-first dashboard with large tiles, smooth motion, layered depth, and a premium, console-native feel. + +--- + +## Core Layout Changes + +### 1. Home Dashboard Structure +- **Layout**: Left-aligned horizontal tile grid with smooth scrolling +- **Tiles**: 4 primary apps (Library, Browser, Settings, Power) +- **Navigation**: Horizontal controller input (left/right) with smooth transitions +- **Focus Effects**: + - Tiles scale to 1.06x on focus + - Cyan glow and accent bar appears on focused tile + - Smooth parallax depth between layers + +### 2. Dynamic Background System +The background now features multiple animated layers for depth and immersion: + +#### Gradient Layer +- Deep navy → midnight blue → subtle purple gradient +- Animated drift with rotation for dynamic feel +- Duration: 28s +- Multiple radial gradients for light sources + +#### Starfield Layer +- Three layers of stars with varying sizes and colors +- Creates sense of depth and space +- Slow parallax movement +- Duration: 45s linear + +#### Fog Layer +- Soft drifting nebula clouds +- Heavy blur (52px) for ethereal effect +- Multiple elliptical gradients +- Duration: 34s + +#### Vignette Layer +- Subtle darkening at edges +- Focuses attention on center content +- Static overlay + +### 3. Top Bar (Nebula Style) +- **Left**: "Nebula OS" brand with cyan glow effect +- **Right**: User avatar (with glow) + system time +- **Accent Line**: Animated line that moves with focus +- **Structure**: Flexbox with `.shell-topbar-content` wrapper + +### 4. Tile Design +Tiles now feature Xbox-inspired rectangular design with depth: + +#### Visual Layers +1. **Background**: Layered gradient with soft radial accent +2. **Content**: Icon, title, and subtitle flexbox layout +3. **Accent Bar**: Bottom highlight that animates on focus +4. **Hover Glow**: Radial gradient overlay on focus + +#### On Focus Effects +- Scale: 1.06x transform +- Border: Cyan outline with glow +- Shadow: Enhanced depth shadow +- Text: Subtle translateX(3px) animation +- Icon: Scale 1.08 + translateY(-2px) + +### 5. Controller Navigation Feedback +- **Focus Transitions**: 180ms smooth animations +- **Movement**: Animated position changes, not instant jumps +- **Press Animation**: Scale down to 0.96 then back +- **Easing**: Custom console-style cubic-bezier curves +- **Sound Hooks**: Structure in place for UI audio (not implemented) + +### 6. Lock Screen Redesign +A more immersive authentication experience: + +#### Time Display +- Large gradient-filled text (96-160px) +- Cyan glow shadow +- Modern weight (760) +- Gradient from white to light blue + +#### PIN Keypad +- **Design**: Circular buttons (50% border-radius) +- **Size**: Aspect ratio 1:1, min 92px +- **Material**: Radial gradient with inner/outer shadows +- **Focus**: Scale 1.08 with cyan border and glow +- **Press**: Scale 0.95 feedback + +#### PIN Dots +- Larger design (18px) +- Cyan border that fills on input +- Glowing effect when filled + +### 7. Settings Page Redesign +Horizontal category navigation with card-based content: + +#### Category Bar +- Horizontal list at top +- Active category gets: + - Color change to cyan + - Bottom accent bar with glow + - Scale animation +- Smooth underline animation + +#### Content Panel +- Large panel with layered background +- Card-based settings layout +- Responsive grid (auto-fit) +- Cards scale 1.04x on focus + +### 8. Animation Style +All animations follow these principles: + +#### Easing Functions +```css +--nebula-ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1) +--nebula-ease-console: cubic-bezier(0.19, 0.82, 0.18, 1) +--nebula-ease-snap: cubic-bezier(0.32, 0.94, 0.18, 1) +``` + +#### Timing +- Fast: 120ms (micro-interactions) +- Nav: 180ms (focus transitions) +- Slow: 340ms (page transitions) + +#### Performance +- Use `transform` instead of position changes +- Avoid heavy shadow stacking +- GPU-accelerated with `translateZ(0)` +- `will-change` on focusable elements + +--- + +## Component Breakdown + +### TopBar Component +**Location**: `.shell-topbar` + +**Structure**: +```html +
+
+

Nebula OS

+
+ +

+
+
+
+
+``` + +**Features**: +- Brand glow effect +- Avatar with cyan border glow +- Animated accent line that follows focus +- Responsive layout + +--- + +### TileRow Component +**Location**: `.tile-rail` + +**Structure**: +```html +
+ +
+``` + +**Features**: +- Horizontal scroll with hidden scrollbar +- Smooth scroll behavior +- Parallax transform on navigation +- Flexible gap spacing + +--- + +### Tile Component +**Location**: `.tile.dashboard-tile` + +**Variants**: +- `.tile-large` - Larger featured tile +- Standard - Default size + +**Structure**: +```html + +``` + +**States**: +- Default +- `.is-focused` - Scale, glow, accent bar +- `.is-pressed` - Press animation + +--- + +### BackgroundLayer Component +**Location**: `#nebula-background` + +**Layers**: +1. `.nebula-layer.gradient` - Base gradient +2. `.nebula-layer.starfield` - Animated stars +3. `.nebula-layer.fog` - Blurred nebula clouds +4. `.nebula-layer.vignette` - Edge darkening + +**Features**: +- Independent animations per layer +- Parallax on navigation +- Smooth transitions + +--- + +### FocusManager +**Location**: `.focusable` class + +**Features**: +- Automatic border/shadow on focus +- Radial gradient ripple effect +- Press pulse animation +- Smooth transitions between states + +**States**: +- `.is-focused` - Cyan border, glow, scaled +- `.is-pressed` - Animation pulse + +--- + +## Design Language + +### Colors +- **Accent**: Nebula cyan (#4fd8ff) +- **Background**: Deep space blue (#050a17 → #1a1342) +- **Text**: Off-white (#f2f7ff) +- **Muted**: Light blue-gray (#a8bdd8) + +### Typography +- **Modern, clean sans-serif** (Segoe UI) +- **Weights**: 600-760 range for premium feel +- **Sizes**: Responsive with clamp() +- **Spacing**: Slightly bold for console readability + +### Depth & Layers +- **Multiple shadow layers** on focus +- **Inset shadows** for inner depth +- **Gradient overlays** for material feel +- **Backdrop blur** for depth separation + +### Premium Feel +- **No flat design** - everything has depth +- **Smooth animations** throughout +- **Glow effects** on accents +- **Inner/outer shadows** for dimensions + +--- + +## Files Modified + +### View Files +- `src/views/home/home.html` +- `src/views/home/home.js` +- `src/views/home/home.css` +- `src/views/lock/lock.html` +- `src/views/lock/lock.js` +- `src/views/lock/lock.css` +- `src/views/settings/settings.html` +- `src/views/settings/settings.js` +- `src/views/settings/settings.css` +- `src/views/library/library.html` +- `src/views/library/library.js` + +### Core Style Files +- `src/styles/theme.css` - Design tokens +- `src/styles/base.css` - Background, topbar, animations +- `src/styles/components.css` - Tiles, focus system + +--- + +## Navigation Grid Changes + +### Home View +- Changed from 3 columns to 4 columns +- Added Browser tile +- Updated tile sizing for better proportions + +### Settings View +- 5 horizontal categories (Network, Audio, Display, Storage, System) +- Card grid with auto-fit responsive layout +- 2-row navigation (categories + cards) + +### Lock Screen +- 4x3 keypad grid +- Circular button design +- Center-focused layout + +--- + +## Performance Optimizations + +1. **Transform-based animations** - No layout recalculation +2. **will-change hints** - GPU acceleration where needed +3. **Selective backdrop-filter** - Only on depth blur layer +4. **CSS containment** - Component isolation +5. **Efficient selectors** - Class-based, minimal nesting + +--- + +## Future Enhancements + +### Audio System +Structure is in place for UI sound hooks: +- Focus change sounds +- Press/click sounds +- Navigation swoosh +- Error/success tones + +### Additional Animations +- Page slide transitions between views +- Content fade-in on load +- Tile stagger animations on home view entry + +### Advanced Features +- Dynamic tile backgrounds (game art) +- Video backgrounds for featured content +- Achievement/notification popups +- Quick resume tiles with screenshots + +--- + +## Console-First Design Principles + +1. **Large hit targets** - Easy to navigate with controller +2. **Clear focus states** - Always visible what's selected +3. **Smooth motion** - No jarring transitions +4. **Depth perception** - Layered UI for spatial understanding +5. **Content first** - Minimal chrome, maximum content +6. **Premium materials** - Glows, shadows, gradients for quality feel + +--- + +## Developer Notes + +### Adding New Tiles +1. Add button to `.tile-rail` in home.js +2. Update `data-row` and `data-col` attributes +3. Update navigation contract cols count +4. Ensure proper `data-target` attribute + +### Adding New Settings Categories +1. Add button to `.settings-category-bar` +2. Add to CATEGORIES object in settings.js +3. Update navigation contract +4. Create category content panel + +### Customizing Animations +All animation timings are in CSS variables in `theme.css`: +- `--nebula-duration-fast` +- `--nebula-duration-nav` +- `--nebula-duration-slow` + +Easing curves are also variables: +- `--nebula-ease-standard` +- `--nebula-ease-console` +- `--nebula-ease-snap` + +--- + +## Conclusion + +The redesign transforms Nebula OS into a premium, console-first experience that feels fast, immersive, and modern. The Xbox Series X dashboard inspiration is clear in the horizontal layout, large tiles, and smooth animations, while the space-themed "Nebula" identity is maintained through the cyan accent colors, starfield backgrounds, and cosmic naming. + +**Result**: "Xbox Series X dashboard reimagined for a space-themed, controller-first OS." ✨ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..a0ae44a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,241 @@ +{ + "name": "nebula-os", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "nebula-os", + "version": "0.1.0", + "dependencies": { + "@nebulaproject/core": "^0.1.3" + }, + "devDependencies": { + "@tauri-apps/cli": "^2" + } + }, + "node_modules/@nebulaproject/core": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@nebulaproject/core/-/core-0.1.3.tgz", + "integrity": "sha512-sOjH10J1qSyqRNNi0yM3GAhkQk6lLGgmPPoyEljGfPC2Ty3iBoY44ML0sfepiiedVtedbkeDPpDcyx/UbVis6g==", + "license": "MIT" + }, + "node_modules/@tauri-apps/cli": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.10.0.tgz", + "integrity": "sha512-ZwT0T+7bw4+DPCSWzmviwq5XbXlM0cNoleDKOYPFYqcZqeKY31KlpoMW/MOON/tOFBPgi31a2v3w9gliqwL2+Q==", + "dev": true, + "license": "Apache-2.0 OR MIT", + "bin": { + "tauri": "tauri.js" + }, + "engines": { + "node": ">= 10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/tauri" + }, + "optionalDependencies": { + "@tauri-apps/cli-darwin-arm64": "2.10.0", + "@tauri-apps/cli-darwin-x64": "2.10.0", + "@tauri-apps/cli-linux-arm-gnueabihf": "2.10.0", + "@tauri-apps/cli-linux-arm64-gnu": "2.10.0", + "@tauri-apps/cli-linux-arm64-musl": "2.10.0", + "@tauri-apps/cli-linux-riscv64-gnu": "2.10.0", + "@tauri-apps/cli-linux-x64-gnu": "2.10.0", + "@tauri-apps/cli-linux-x64-musl": "2.10.0", + "@tauri-apps/cli-win32-arm64-msvc": "2.10.0", + "@tauri-apps/cli-win32-ia32-msvc": "2.10.0", + "@tauri-apps/cli-win32-x64-msvc": "2.10.0" + } + }, + "node_modules/@tauri-apps/cli-darwin-arm64": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.10.0.tgz", + "integrity": "sha512-avqHD4HRjrMamE/7R/kzJPcAJnZs0IIS+1nkDP5b+TNBn3py7N2aIo9LIpy+VQq0AkN8G5dDpZtOOBkmWt/zjA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-darwin-x64": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.10.0.tgz", + "integrity": "sha512-keDmlvJRStzVFjZTd0xYkBONLtgBC9eMTpmXnBXzsHuawV2q9PvDo2x6D5mhuoMVrJ9QWjgaPKBBCFks4dK71Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.10.0.tgz", + "integrity": "sha512-e5u0VfLZsMAC9iHaOEANumgl6lfnJx0Dtjkd8IJpysZ8jp0tJ6wrIkto2OzQgzcYyRCKgX72aKE0PFgZputA8g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-gnu": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.10.0.tgz", + "integrity": "sha512-YrYYk2dfmBs5m+OIMCrb+JH/oo+4FtlpcrTCgiFYc7vcs6m3QDd1TTyWu0u01ewsCtK2kOdluhr/zKku+KP7HA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-arm64-musl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.10.0.tgz", + "integrity": "sha512-GUoPdVJmrJRIXFfW3Rkt+eGK9ygOdyISACZfC/bCSfOnGt8kNdQIQr5WRH9QUaTVFIwxMlQyV3m+yXYP+xhSVA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-riscv64-gnu": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.10.0.tgz", + "integrity": "sha512-JO7s3TlSxshwsoKNCDkyvsx5gw2QAs/Y2GbR5UE2d5kkU138ATKoPOtxn8G1fFT1aDW4LH0rYAAfBpGkDyJJnw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-gnu": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.10.0.tgz", + "integrity": "sha512-Uvh4SUUp4A6DVRSMWjelww0GnZI3PlVy7VS+DRF5napKuIehVjGl9XD0uKoCoxwAQBLctvipyEK+pDXpJeoHng==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-linux-x64-musl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.10.0.tgz", + "integrity": "sha512-AP0KRK6bJuTpQ8kMNWvhIpKUkQJfcPFeba7QshOQZjJ8wOS6emwTN4K5g/d3AbCMo0RRdnZWwu67MlmtJyxC1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-arm64-msvc": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.10.0.tgz", + "integrity": "sha512-97DXVU3dJystrq7W41IX+82JEorLNY+3+ECYxvXWqkq7DBN6FsA08x/EFGE8N/b0LTOui9X2dvpGGoeZKKV08g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-ia32-msvc": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.10.0.tgz", + "integrity": "sha512-EHyQ1iwrWy1CwMalEm9z2a6L5isQ121pe7FcA2xe4VWMJp+GHSDDGvbTv/OPdkt2Lyr7DAZBpZHM6nvlHXEc4A==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tauri-apps/cli-win32-x64-msvc": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.10.0.tgz", + "integrity": "sha512-NTpyQxkpzGmU6ceWBTY2xRIEaS0ZLbVx1HE1zTA3TY/pV3+cPoPPOs+7YScr4IMzXMtOw7tLw5LEXo5oIG3qaQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + } + } +} diff --git a/package.json b/package.json index 665ecf5..959aeaf 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,14 @@ "version": "0.1.0", "type": "module", "scripts": { + "dev": "tauri dev", + "build": "tauri build", "tauri": "tauri" }, "devDependencies": { "@tauri-apps/cli": "^2" + }, + "dependencies": { + "@nebulaproject/core": "^0.1.3" } } diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock new file mode 100644 index 0000000..2f536fa --- /dev/null +++ b/src-tauri/Cargo.lock @@ -0,0 +1,5307 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.101" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea" + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "497c00e0fd83a72a79a39fcbd8e3e2f055d6f6c7e025f3b3d91f4f8e76527fb8" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "async-signal" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "brotli" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bumpalo" +version = "3.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.11.0", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.2.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" +dependencies = [ + "bitflags 2.11.0", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.11.0", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.29.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "matches", + "phf 0.10.1", + "proc-macro2", + "quote", + "smallvec", + "syn 1.0.109", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.115", +] + +[[package]] +name = "ctor" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501" +dependencies = [ + "quote", + "syn 2.0.115", +] + +[[package]] +name = "darling" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.115", +] + +[[package]] +name = "darling_macro" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "deranged" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc3dc5ad92c2e2d1c193bbbbdf2ea477cb81331de4f3103f267ca18368b988c4" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derive_more" +version = "0.99.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.115", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dispatch2" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec" +dependencies = [ + "bitflags 2.11.0", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55a075fc573c64510038d7ee9abc7990635863992f83ebc52c8b433b8411a02e" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 0.9.12+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89e8918065695684b2b0702da20382d5ae6065cf3327bc2d6436bd49a71ce9f3" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" +dependencies = [ + "mac", + "new_debug_unreachable", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", + "wasip3", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.11.0", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c" +dependencies = [ + "log", + "mac", + "markup5ever", + "match_token", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "iri-string" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "js-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.11.0", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "kuchikiki" +version = "0.8.8-speedreader" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2" +dependencies = [ + "cssparser", + "html5ever", + "indexmap 2.13.0", + "selectors", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.182" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616" +dependencies = [ + "bitflags 2.11.0", + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + +[[package]] +name = "markup5ever" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a7213d12e1864c0f002f52c2923d4556935a43dec5e71355c2760e0f6e7a18" +dependencies = [ + "log", + "phf 0.11.3", + "phf_codegen 0.11.3", + "string_cache", + "string_cache_codegen", + "tendril", +] + +[[package]] +name = "match_token" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c1738382f66ed56b3b9c8119e794a2e23148ac8ea214eda86622d4cb9d415a" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.18", + "windows-sys 0.60.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.0", + "jni-sys", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys", +] + +[[package]] +name = "nebula-os" +version = "0.1.0" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-opener", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1207a7e20ad57b847bbddc6776b968420d38292bbfe2089accff5e19e82454c" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff32365de1b6743cb203b710788263c44a03de03802daf96092f2da4fe6ba4d7" +dependencies = [ + "proc-macro-crate 3.4.0", + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "objc2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.11.0", + "block2", + "libc", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-text", + "objc2-core-video", + "objc2-foundation", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.11.0", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.11.0", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-core-video" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-io-surface", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.11.0", + "block2", + "libc", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-javascript-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a1e6550c4caed348956ce3370c9ffeca70bb1dbed4fa96112e7c6170e074586" +dependencies = [ + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-security" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-javascript-core", + "objc2-security", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "open" +version = "5.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43bb73a7fa3799b198970490a51174027ba0d4ec504b03cd08caf513d40024bc" +dependencies = [ + "dunce", + "is-wsl", + "libc", + "pathdiff", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" +dependencies = [ + "phf_shared 0.8.0", +] + +[[package]] +name = "phf" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +dependencies = [ + "phf_macros 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", +] + +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_macros 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf_codegen" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", +] + +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf_generator" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" +dependencies = [ + "phf_shared 0.8.0", + "rand 0.7.3", +] + +[[package]] +name = "phf_generator" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" +dependencies = [ + "phf_shared 0.10.0", + "rand 0.8.5", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared 0.11.3", + "rand 0.8.5", +] + +[[package]] +name = "phf_macros" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" +dependencies = [ + "phf_generator 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "phf_macros" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "phf_shared" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher 1.0.2", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "piper" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "plist" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07" +dependencies = [ + "base64 0.22.1", + "indexmap 2.13.0", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.115", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983" +dependencies = [ + "toml_edit 0.23.10+spec-1.0.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.38.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", + "rand_pcg", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.11.0", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c" + +[[package]] +name = "reqwest" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3f43e3283ab1488b624b44b0e988d0acea0b3214e694730a055cb6b2efa801" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" +dependencies = [ + "bitflags 2.11.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.115", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416" +dependencies = [ + "bitflags 1.3.2", + "cssparser", + "derive_more", + "fxhash", + "log", + "phf 0.8.0", + "phf_codegen 0.8.0", + "precomputed-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7" +dependencies = [ + "base64 0.22.1", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.13.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "servo_arc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741" +dependencies = [ + "nodrop", + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "siphasher" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.11.3", + "precomputed-hash", + "serde", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.115" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e614ed320ac28113fa64972c4262d5dbc89deacdfd00c34a3e4cea073243c12" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.34.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a753bdc39c07b192151523a3f77cd0394aa75413802c883a0f6f6a0e5ee2e7" +dependencies = [ + "bitflags 2.11.0", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dispatch", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "lazy_static", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "once_cell", + "parking_lot", + "raw-window-handle", + "scopeguard", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "463ae8677aa6d0f063a900b9c41ecd4ac2b7ca82f0b058cc4491540e55b20129" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.18", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca7bd893329425df750813e95bd2b643d5369d929438da96d5bbb7cc2c918f74" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "toml 0.9.12+spec-1.1.0", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac423e5859d9f9ccdd32e3cf6a5866a15bedbf25aa6630bcb2acde9468f6ae3" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.115", + "tauri-utils", + "thiserror 2.0.18", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b6a1bd2861ff0c8766b1d38b32a6a410f6dc6532d4ef534c47cfb2236092f59" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.115", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "692a77abd8b8773e107a42ec0e05b767b8d2b7ece76ab36c6c3947e34df9f53f" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "toml 0.9.12+spec-1.1.0", + "walkdir", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc624469b06f59f5a29f874bbc61a2ed737c0f9c23ef09855a292c389c42e83f" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "url", + "windows", + "zbus", +] + +[[package]] +name = "tauri-runtime" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b885ffeac82b00f1f6fd292b6e5aabfa7435d537cef57d11e38a489956535651" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5204682391625e867d16584fedc83fc292fb998814c9f7918605c789cd876314" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcd169fccdff05eff2c1033210b9b94acd07a47e6fa9a3431cf09cfd4f01c87e" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dunce", + "glob", + "html5ever", + "http", + "infer", + "json-patch", + "kuchikiki", + "log", + "memchr", + "phf 0.11.3", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.18", + "toml 0.9.12+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1087b111fe2b005e42dbdc1990fc18593234238d47453b0c99b7de1c9ab2c1e0" +dependencies = [ + "dunce", + "embed-resource", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0136791f7c95b1f6dd99f9cc786b91bb81c3800b639b3478e561ddb7be95e5f1" +dependencies = [ + "fastrand", + "getrandom 0.4.1", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" +dependencies = [ + "futf", + "mac", + "utf-8", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.13.0", + "serde_core", + "serde_spanned 1.0.4", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.14", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.13.0", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.13.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.23.10+spec-1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" +dependencies = [ + "indexmap 2.13.0", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "winnow 0.7.14", +] + +[[package]] +name = "toml_parser" +version = "1.0.8+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0742ff5ff03ea7e67c8ae6c93cac239e0d9784833362da3f9a9c1da8dfefcbdc" +dependencies = [ + "winnow 0.7.14", +] + +[[package]] +name = "toml_writer" +version = "1.0.6+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags 2.11.0", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.18", + "windows-sys 0.60.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "uds_windows" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9" +dependencies = [ + "memoffset", + "tempfile", + "winapi", +] + +[[package]] +name = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b672338555252d43fd2240c714dc444b8c6fb0a5c5335e65a07bba7742735ddb" +dependencies = [ + "getrandom 0.4.1", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a6e77fd0ae8029c9ea0063f87c46fde723e7d887703d74ad2616d792e51e6f" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.115", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.13.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.0", + "hashbrown 0.15.5", + "indexmap 2.13.0", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement", + "windows-interface", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.18", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.55.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +dependencies = [ + "cfg-if", + "windows-sys 0.59.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.13.0", + "prettyplease", + "syn 2.0.115", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.115", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.0", + "indexmap 2.13.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.13.0", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "wry" +version = "0.54.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb26159b420aa77684589a744ae9a9461a95395b848764ad12290a14d960a11a" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dpi", + "dunce", + "gdkx11", + "gtk", + "html5ever", + "http", + "javascriptcore-rs", + "jni", + "kuchikiki", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfeff997a0aaa3eb20c4652baf788d2dfa6d2839a0ead0b3ff69ce2f9c4bdd1" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 0.7.14", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bbd5a90dbe8feee5b13def448427ae314ccd26a49cac47905cafefb9ff846f1" +dependencies = [ + "proc-macro-crate 3.4.0", + "proc-macro2", + "quote", + "syn 2.0.115", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffd8af6d5b78619bab301ff3c560a5bd22426150253db278f164d6cf3b72c50f" +dependencies = [ + "serde", + "winnow 0.7.14", + "zvariant", +] + +[[package]] +name = "zerocopy" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.115", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zvariant" +version = "5.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68b64ef4f40c7951337ddc7023dd03528a57a3ce3408ee9da5e948bd29b232c4" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 0.7.14", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "484d5d975eb7afb52cc6b929c13d3719a20ad650fea4120e6310de3fc55e415c" +dependencies = [ + "proc-macro-crate 3.4.0", + "proc-macro2", + "quote", + "syn 2.0.115", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75c23a64ef8f40f13a6989991e643554d9bef1d682a281160cf0c1bc389c5e9" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.115", + "winnow 0.7.14", +] diff --git a/src/core/input.js b/src/core/input.js new file mode 100644 index 0000000..4f0ce12 --- /dev/null +++ b/src/core/input.js @@ -0,0 +1,318 @@ +const KEYBOARD_MAP = { + ArrowUp: "up", + ArrowDown: "down", + ArrowLeft: "left", + ArrowRight: "right", + KeyY: "y", + KeyX: "clear", + KeyQ: "l1", + KeyE: "r1", + KeyZ: "l2", + KeyC: "r2", + Enter: "accept", + Escape: "back", + Backspace: "back", +}; + +const BUTTON_MAP = { + 0: "accept", + 1: "back", + 2: "clear", + 3: "y", + 8: "menu", + 9: "menu", + 4: "l1", + 5: "r1", + 6: "l2", + 7: "r2", + 12: "up", + 13: "down", + 14: "left", + 15: "right", +}; + +const createFallbackEmitter = () => { + const listeners = new Set(); + return { + emit: (payload) => listeners.forEach((listener) => listener(payload)), + on: (listener) => { + listeners.add(listener); + return () => listeners.delete(listener); + }, + }; +}; + +export const createInputManager = ({ onAction, actions }) => { + const heldButtons = new Set(); + const heldVirtual = new Set(); + let rafId = 0; + let mapper = null; + let unsubscribeMapper = null; + let axisLatched = false; + let lastAxisEmitAt = 0; + let active = false; + + const emitter = createFallbackEmitter(); + + const emitAction = (action) => { + if (!actions.includes(action)) { + return; + } + onAction(action); + emitter.emit(action); + }; + + const mapKeyboard = async () => { + try { + const coreInput = await import("@nebulaproject/core/input"); + if (typeof coreInput.createActionMapper !== "function") { + return; + } + + mapper = coreInput.createActionMapper({ + bindings: { + up: [ + { source: "keyboard", control: "ArrowUp" }, + { source: "gamepad", control: "dpad-up" }, + { source: "gamepad", control: "axis-up" }, + ], + down: [ + { source: "keyboard", control: "ArrowDown" }, + { source: "gamepad", control: "dpad-down" }, + { source: "gamepad", control: "axis-down" }, + ], + left: [ + { source: "keyboard", control: "ArrowLeft" }, + { source: "gamepad", control: "dpad-left" }, + { source: "gamepad", control: "axis-left" }, + ], + right: [ + { source: "keyboard", control: "ArrowRight" }, + { source: "gamepad", control: "dpad-right" }, + { source: "gamepad", control: "axis-right" }, + ], + accept: [ + { source: "keyboard", control: "Enter" }, + { source: "gamepad", control: "a" }, + ], + back: [ + { source: "keyboard", control: "Escape" }, + { source: "keyboard", control: "Backspace" }, + { source: "gamepad", control: "b" }, + ], + menu: [ + { source: "keyboard", control: "KeyM" }, + { source: "gamepad", control: "start" }, + ], + clear: [ + { source: "keyboard", control: "KeyX" }, + { source: "gamepad", control: "x" }, + ], + y: [ + { source: "keyboard", control: "KeyY" }, + { source: "gamepad", control: "y" }, + ], + l1: [{ source: "gamepad", control: "lb" }], + r1: [{ source: "gamepad", control: "rb" }], + l2: [ + { source: "keyboard", control: "KeyZ" }, + { source: "gamepad", control: "lt" }, + ], + r2: [ + { source: "keyboard", control: "KeyC" }, + { source: "gamepad", control: "rt" }, + ], + }, + }); + + unsubscribeMapper = mapper.onAction((update) => { + if (update?.active && update.action) { + emitAction(update.action); + } + }); + } catch (_error) { + mapper = null; + } + }; + + const mapEventToMapper = (event) => { + mapper?.mapEvent?.(event); + }; + + const onKeyDown = (event) => { + const action = KEYBOARD_MAP[event.code] ?? (event.code === "KeyM" ? "menu" : null); + if (!action) { + return; + } + event.preventDefault(); + + if (mapper) { + mapEventToMapper({ + source: "keyboard", + control: event.code, + type: "pressed", + value: 1, + }); + } else if (!heldVirtual.has(event.code)) { + heldVirtual.add(event.code); + emitAction(action); + } + }; + + const onKeyUp = (event) => { + if (mapper) { + mapEventToMapper({ + source: "keyboard", + control: event.code, + type: "released", + value: 0, + }); + } + heldVirtual.delete(event.code); + }; + + const processAxis = (axisX, axisY) => { + const threshold = 0.6; + const now = performance.now(); + let axisAction = null; + + if (Math.abs(axisX) > Math.abs(axisY)) { + if (axisX <= -threshold) axisAction = "left"; + if (axisX >= threshold) axisAction = "right"; + } else { + if (axisY <= -threshold) axisAction = "up"; + if (axisY >= threshold) axisAction = "down"; + } + + if (!axisAction) { + axisLatched = false; + return; + } + + if (axisLatched || now - lastAxisEmitAt < 120) { + return; + } + + if (mapper) { + mapEventToMapper({ + source: "gamepad", + control: `axis-${axisAction}`, + type: "axis", + value: 1, + }); + } else { + emitAction(axisAction); + } + + axisLatched = true; + lastAxisEmitAt = now; + }; + + const pollGamepad = () => { + if (!active) { + return; + } + + const [pad] = navigator.getGamepads?.() ?? []; + if (pad) { + pad.buttons.forEach((button, index) => { + const action = BUTTON_MAP[index]; + if (!action) { + return; + } + + if (button.pressed && !heldButtons.has(index)) { + heldButtons.add(index); + + if (mapper) { + const controlMap = { + accept: "a", + back: "b", + clear: "x", + y: "y", + menu: "start", + l1: "lb", + r1: "rb", + l2: "lt", + r2: "rt", + up: "dpad-up", + down: "dpad-down", + left: "dpad-left", + right: "dpad-right", + }; + + mapEventToMapper({ + source: "gamepad", + control: controlMap[action] ?? action, + type: "pressed", + value: 1, + }); + } else { + emitAction(action); + } + } + + if (!button.pressed && heldButtons.has(index)) { + heldButtons.delete(index); + if (mapper) { + const releaseControlMap = { + accept: "a", + back: "b", + clear: "x", + y: "y", + menu: "start", + l1: "lb", + r1: "rb", + l2: "lt", + r2: "rt", + up: "dpad-up", + down: "dpad-down", + left: "dpad-left", + right: "dpad-right", + }; + + mapEventToMapper({ + source: "gamepad", + control: releaseControlMap[action] ?? action, + type: "released", + value: 0, + }); + } + } + }); + + processAxis(pad.axes?.[0] ?? 0, pad.axes?.[1] ?? 0); + } + + rafId = requestAnimationFrame(pollGamepad); + }; + + const start = async () => { + if (active) { + return; + } + active = true; + await mapKeyboard(); + window.addEventListener("keydown", onKeyDown); + window.addEventListener("keyup", onKeyUp); + rafId = requestAnimationFrame(pollGamepad); + }; + + const stop = () => { + active = false; + window.removeEventListener("keydown", onKeyDown); + window.removeEventListener("keyup", onKeyUp); + if (rafId) { + cancelAnimationFrame(rafId); + rafId = 0; + } + unsubscribeMapper?.(); + unsubscribeMapper = null; + }; + + return { + start, + stop, + onAction: emitter.on, + }; +}; diff --git a/src/core/nav.js b/src/core/nav.js new file mode 100644 index 0000000..331a5bb --- /dev/null +++ b/src/core/nav.js @@ -0,0 +1,192 @@ +const getRect = (element) => { + const rect = element.getBoundingClientRect(); + return { + x: rect.left, + y: rect.top, + width: rect.width, + height: rect.height, + }; +}; + +const scoreCandidate = (source, target, direction) => { + const horizontal = target.col - source.col; + const vertical = target.row - source.row; + + if (direction === "up" && vertical >= 0) return Number.POSITIVE_INFINITY; + if (direction === "down" && vertical <= 0) return Number.POSITIVE_INFINITY; + if (direction === "left" && horizontal >= 0) return Number.POSITIVE_INFINITY; + if (direction === "right" && horizontal <= 0) return Number.POSITIVE_INFINITY; + + const primary = direction === "up" || direction === "down" ? Math.abs(vertical) : Math.abs(horizontal); + const secondary = direction === "up" || direction === "down" ? Math.abs(horizontal) : Math.abs(vertical); + return primary * 100 + secondary; +}; + +export const createNavigationManager = () => { + let contract = null; + let focusables = []; + let focusedIndex = -1; + + const decorateFocusable = (element) => { + element.classList.remove("is-focused"); + element.tabIndex = -1; + }; + + const applyFocus = (index) => { + if (!focusables.length) { + focusedIndex = -1; + return; + } + + const clamped = Math.max(0, Math.min(index, focusables.length - 1)); + + focusables.forEach((focusable) => { + focusable.element.classList.remove("is-focused"); + focusable.element.setAttribute("aria-selected", "false"); + }); + + focusedIndex = clamped; + const focused = focusables[focusedIndex]?.element; + if (focused) { + focused.classList.add("is-focused"); + focused.setAttribute("aria-selected", "true"); + focused.focus({ preventScroll: true }); + + const col = Number(focused.dataset.col ?? 0); + const row = Number(focused.dataset.row ?? 0); + document.documentElement.style.setProperty("--nebula-accent-line-x", `${20 + col * 110}px`); + document.documentElement.style.setProperty("--nebula-focus-strength", "1"); + + window.dispatchEvent( + new CustomEvent("nebula-focus-change", { + detail: { + key: focused.dataset.focusKey ?? null, + row, + col, + }, + }), + ); + } + }; + + const buildFocusables = () => { + if (!contract?.focusRoot) { + focusables = []; + return; + } + + const nodes = Array.from(contract.focusRoot.querySelectorAll("[data-focusable='true']")); + + focusables = nodes + .map((element, index) => { + decorateFocusable(element); + return { + index, + element, + row: Number(element.dataset.row ?? 0), + col: Number(element.dataset.col ?? 0), + key: element.dataset.focusKey ?? String(index), + }; + }) + .sort((left, right) => { + if (left.row === right.row) { + return left.col - right.col; + } + return left.row - right.row; + }); + }; + + const resolveDefaultFocus = () => { + if (!focusables.length) { + return -1; + } + + if (contract?.defaultFocus) { + const defaultIndex = focusables.findIndex((focusable) => focusable.element === contract.defaultFocus); + if (defaultIndex >= 0) { + return defaultIndex; + } + } + + return 0; + }; + + const moveWithNebula = (direction) => { + const picker = contract?.nebulaNavigation?.pickBestCandidate; + if (typeof picker !== "function") { + return null; + } + + const source = focusables[focusedIndex]; + if (!source) { + return null; + } + + const sourceRect = getRect(source.element); + const candidates = focusables + .filter((item) => item.index !== source.index) + .map((item) => ({ + id: item.key, + ...getRect(item.element), + })); + + const picked = picker( + { id: source.key, ...sourceRect }, + candidates, + direction, + ); + + if (!picked?.id) { + return null; + } + + const nextIndex = focusables.findIndex((item) => item.key === picked.id); + return nextIndex >= 0 ? nextIndex : null; + }; + + const move = (direction) => { + if (!focusables.length || focusedIndex < 0) { + return; + } + + const nebulaIndex = moveWithNebula(direction); + if (nebulaIndex !== null) { + applyFocus(nebulaIndex); + return; + } + + const source = focusables[focusedIndex]; + let bestIndex = focusedIndex; + let bestScore = Number.POSITIVE_INFINITY; + + focusables.forEach((candidate, index) => { + if (index === focusedIndex) { + return; + } + + const score = scoreCandidate(source, candidate, direction); + if (score < bestScore) { + bestScore = score; + bestIndex = index; + } + }); + + if (bestIndex !== focusedIndex) { + applyFocus(bestIndex); + } + }; + + const mount = (nextContract) => { + contract = nextContract; + buildFocusables(); + applyFocus(resolveDefaultFocus()); + }; + + const getFocusedElement = () => focusables[focusedIndex]?.element ?? null; + + return { + mount, + move, + getFocusedElement, + }; +}; diff --git a/src/core/passkey.js b/src/core/passkey.js new file mode 100644 index 0000000..8bebaee --- /dev/null +++ b/src/core/passkey.js @@ -0,0 +1,173 @@ +const PASSKEY_STORAGE_KEY = "nebula.passkey.v1"; +const PASSKEY_VERSION = 1; + +const clamp = (value, min, max) => Math.max(min, Math.min(max, value)); + +const FALLBACK_CONFIG = { + enabled: true, + length: 6, + requireConfirm: false, + keyboardSupport: true, + maxAttempts: 5, + cooldownSeconds: 30, + animationSpeed: "normal", + highContrast: false, + hash: "", + salt: "", +}; + +const arrayToHex = (bytes) => + Array.from(bytes) + .map((value) => value.toString(16).padStart(2, "0")) + .join(""); + +const createSalt = () => { + const bytes = new Uint8Array(16); + crypto.getRandomValues(bytes); + return arrayToHex(bytes); +}; + +const normalizeSequence = (sequence) => sequence.join("|"); + +export const hashPasskeySequence = async (sequence, salt) => { + const source = `${salt}::${normalizeSequence(sequence)}`; + const encoded = new TextEncoder().encode(source); + const digest = await crypto.subtle.digest("SHA-256", encoded); + return arrayToHex(new Uint8Array(digest)); +}; + +export const loadPasskeyConfig = () => { + try { + const raw = window.localStorage.getItem(PASSKEY_STORAGE_KEY); + if (!raw) { + return { + ...FALLBACK_CONFIG, + }; + } + + const parsed = JSON.parse(raw); + return { + ...FALLBACK_CONFIG, + ...parsed, + length: clamp(Number(parsed.length ?? FALLBACK_CONFIG.length), 4, 8), + maxAttempts: clamp(Number(parsed.maxAttempts ?? FALLBACK_CONFIG.maxAttempts), 1, 10), + cooldownSeconds: clamp(Number(parsed.cooldownSeconds ?? FALLBACK_CONFIG.cooldownSeconds), 5, 120), + requireConfirm: Boolean(parsed.requireConfirm ?? FALLBACK_CONFIG.requireConfirm), + keyboardSupport: Boolean(parsed.keyboardSupport ?? FALLBACK_CONFIG.keyboardSupport), + enabled: Boolean(parsed.enabled ?? FALLBACK_CONFIG.enabled), + highContrast: Boolean(parsed.highContrast ?? FALLBACK_CONFIG.highContrast), + animationSpeed: ["slow", "normal", "fast"].includes(parsed.animationSpeed) + ? parsed.animationSpeed + : FALLBACK_CONFIG.animationSpeed, + hash: typeof parsed.hash === "string" ? parsed.hash : "", + salt: typeof parsed.salt === "string" ? parsed.salt : "", + version: PASSKEY_VERSION, + }; + } catch (_error) { + return { + ...FALLBACK_CONFIG, + version: PASSKEY_VERSION, + }; + } +}; + +export const savePasskeyConfig = (config) => { + const safeConfig = { + ...FALLBACK_CONFIG, + ...config, + version: PASSKEY_VERSION, + length: clamp(Number(config.length ?? FALLBACK_CONFIG.length), 4, 8), + maxAttempts: clamp(Number(config.maxAttempts ?? FALLBACK_CONFIG.maxAttempts), 1, 10), + cooldownSeconds: clamp(Number(config.cooldownSeconds ?? FALLBACK_CONFIG.cooldownSeconds), 5, 120), + }; + + window.localStorage.setItem(PASSKEY_STORAGE_KEY, JSON.stringify(safeConfig)); + return safeConfig; +}; + +export const createPasskeyController = () => { + const config = loadPasskeyConfig(); + let failedAttempts = 0; + let lockoutUntil = 0; + + const persist = () => savePasskeyConfig(config); + + const inLockout = () => Date.now() < lockoutUntil; + + const getLockoutRemainingMs = () => Math.max(0, lockoutUntil - Date.now()); + + const verifySequence = async (sequence) => { + if (!config.enabled) { + return { ok: true, reason: "disabled" }; + } + + if (inLockout()) { + return { + ok: false, + reason: "lockout", + lockoutRemainingMs: getLockoutRemainingMs(), + }; + } + + if (!config.hash || !config.salt) { + return { ok: false, reason: "setup-required" }; + } + + const hash = await hashPasskeySequence(sequence, config.salt); + if (hash === config.hash) { + failedAttempts = 0; + return { ok: true, reason: "match" }; + } + + failedAttempts += 1; + const attemptsLeft = Math.max(0, config.maxAttempts - failedAttempts); + if (attemptsLeft <= 0) { + lockoutUntil = Date.now() + config.cooldownSeconds * 1000; + failedAttempts = 0; + return { + ok: false, + reason: "lockout", + lockoutRemainingMs: getLockoutRemainingMs(), + }; + } + + return { + ok: false, + reason: "mismatch", + attemptsLeft, + }; + }; + + const setSequence = async (sequence) => { + const nextSalt = createSalt(); + const nextHash = await hashPasskeySequence(sequence, nextSalt); + config.salt = nextSalt; + config.hash = nextHash; + failedAttempts = 0; + lockoutUntil = 0; + persist(); + }; + + const updateConfig = (partial) => { + Object.assign(config, partial); + config.length = clamp(Number(config.length), 4, 8); + config.maxAttempts = clamp(Number(config.maxAttempts), 1, 10); + config.cooldownSeconds = clamp(Number(config.cooldownSeconds), 5, 120); + persist(); + return { ...config }; + }; + + const getConfig = () => ({ ...config }); + + return { + getConfig, + updateConfig, + verifySequence, + setSequence, + inLockout, + getLockoutRemainingMs, + hasPasskey: () => Boolean(config.hash && config.salt), + }; +}; + +export const PASSKEY_ACTIONS = ["up", "down", "left", "right", "l1", "r1", "l2", "r2"]; diff --git a/src/core/router.js b/src/core/router.js new file mode 100644 index 0000000..e0cc765 --- /dev/null +++ b/src/core/router.js @@ -0,0 +1,34 @@ +export const createRouter = (outlet) => { + const views = new Map(); + let current = null; + + const register = (view) => { + views.set(view.id, view); + }; + + const navigate = (id) => { + const view = views.get(id); + if (!view) { + throw new Error(`Unknown view: ${id}`); + } + + current = id; + outlet.innerHTML = view.render(); + const nextView = outlet.querySelector(".view"); + if (nextView) { + requestAnimationFrame(() => { + nextView.classList.add("view-entered"); + }); + } + view.mount?.(outlet); + return view.getNavigationContract(); + }; + + const getCurrent = () => current; + + return { + register, + navigate, + getCurrent, + }; +}; diff --git a/src/core/state.js b/src/core/state.js new file mode 100644 index 0000000..4b95736 --- /dev/null +++ b/src/core/state.js @@ -0,0 +1,141 @@ +import { createPasskeyController } from "./passkey.js"; + +const FALLBACK_THEME = { + colors: { + bg: "#0b1020", + panel: "#141c33", + panelAlt: "#1b2747", + text: "#eef4ff", + muted: "#9eb1d3", + accent: "#50d6ff", + danger: "#ff6b88", + success: "#7dff9e", + focus: "#50d6ff", + overlay: "rgba(5, 8, 18, 0.78)", + }, + spacing: { + xs: 6, + sm: 10, + md: 16, + lg: 24, + xl: 36, + }, + radius: { + sm: 10, + md: 16, + lg: 22, + }, + typography: { + body: 18, + title: 24, + display: 34, + }, +}; + +const FALLBACK_GLYPHS = { + accept: "A", + back: "B", + menu: "≡", + up: "↑", + down: "↓", + left: "←", + right: "→", + l1: "LB", + r1: "RB", + l2: "LT", + r2: "RT", + y: "Y", +}; + +export const createAppState = () => { + const passkey = createPasskeyController(); + const state = { + passkey, + locked: true, + activeView: "lock", + nebula: { + coreReady: false, + source: "local-fallback", + navigation: null, + input: null, + glyphs: null, + theme: null, + ui: null, + }, + theme: FALLBACK_THEME, + glyphs: { ...FALLBACK_GLYPHS }, + settingsCategory: "system", + settingsValues: { + network: true, + audio: true, + display: false, + storage: true, + system: false, + }, + passkeySetupRequired: !passkey.hasPasskey(), + }; + + const applyThemeToDocument = () => { + const root = document.documentElement; + const { colors, spacing, radius, typography } = state.theme; + + Object.entries(colors).forEach(([key, value]) => root.style.setProperty(`--nebula-color-${key}`, value)); + Object.entries(spacing).forEach(([key, value]) => root.style.setProperty(`--nebula-spacing-${key}`, `${value}px`)); + Object.entries(radius).forEach(([key, value]) => root.style.setProperty(`--nebula-radius-${key}`, `${value}px`)); + Object.entries(typography).forEach(([key, value]) => root.style.setProperty(`--nebula-type-${key}`, `${value}px`)); + }; + + const initializeNebulaCore = async () => { + try { + const [input, navigation, glyphs, theme, ui] = await Promise.all([ + import("@nebulaproject/core/input"), + import("@nebulaproject/core/navigation"), + import("@nebulaproject/core/glyphs"), + import("@nebulaproject/core/theme"), + import("@nebulaproject/core/ui"), + ]); + + state.nebula = { + coreReady: true, + source: "@nebulaproject/core", + input, + navigation, + glyphs, + theme, + ui, + }; + + state.theme = typeof theme.createTheme === "function" ? theme.createTheme({}) : FALLBACK_THEME; + + if (typeof glyphs.getGlyph === "function") { + state.glyphs = { + accept: glyphs.getGlyph("xbox", "confirm") ?? FALLBACK_GLYPHS.accept, + back: glyphs.getGlyph("xbox", "back") ?? FALLBACK_GLYPHS.back, + menu: glyphs.getGlyph("xbox", "menu") ?? FALLBACK_GLYPHS.menu, + up: glyphs.getGlyph("xbox", "dpad-up") ?? FALLBACK_GLYPHS.up, + down: glyphs.getGlyph("xbox", "dpad-down") ?? FALLBACK_GLYPHS.down, + left: glyphs.getGlyph("xbox", "dpad-left") ?? FALLBACK_GLYPHS.left, + right: glyphs.getGlyph("xbox", "dpad-right") ?? FALLBACK_GLYPHS.right, + l1: glyphs.getGlyph("xbox", "lb") ?? FALLBACK_GLYPHS.l1, + r1: glyphs.getGlyph("xbox", "rb") ?? FALLBACK_GLYPHS.r1, + l2: glyphs.getGlyph("xbox", "lt") ?? FALLBACK_GLYPHS.l2, + r2: glyphs.getGlyph("xbox", "rt") ?? FALLBACK_GLYPHS.r2, + y: glyphs.getGlyph("xbox", "y") ?? FALLBACK_GLYPHS.y, + }; + } + } catch (_error) { + state.nebula = { + ...state.nebula, + coreReady: false, + source: "local-fallback", + }; + state.theme = FALLBACK_THEME; + state.glyphs = { ...FALLBACK_GLYPHS }; + } + + applyThemeToDocument(); + }; + + state.initializeNebulaCore = initializeNebulaCore; + return state; +}; diff --git a/src/index.html b/src/index.html index aefce2a..ca13fac 100644 --- a/src/index.html +++ b/src/index.html @@ -2,38 +2,46 @@ - + + + + + + + + - Tauri App + Nebula Shell -
-

Welcome to Tauri

+ + +
+
+
-
- - - - - - + -
- - -
-

-
+ diff --git a/src/main.js b/src/main.js index 55d5f93..a257e09 100644 --- a/src/main.js +++ b/src/main.js @@ -1,18 +1,155 @@ -const { invoke } = window.__TAURI__.core; +import { createInputManager } from "./core/input.js"; +import { createNavigationManager } from "./core/nav.js"; +import { createRouter } from "./core/router.js"; +import { createAppState } from "./core/state.js"; +import { createHomeView } from "./views/home/home.js"; +import { createLibraryView } from "./views/library/library.js"; +import { createLockView } from "./views/lock/lock.js"; +import { createPowerMenuOverlay } from "./views/overlays/powerMenu.js"; +import { createSettingsView } from "./views/settings/settings.js"; -let greetInputEl; -let greetMsgEl; +const appRoot = document.querySelector("#app"); +const overlayRoot = document.querySelector("#overlay-root"); +const footer = document.querySelector("#app-footer"); -async function greet() { - // Learn more about Tauri commands at https://tauri.app/develop/calling-rust/ - greetMsgEl.textContent = await invoke("greet", { name: greetInputEl.value }); -} +const state = createAppState(); +const nav = createNavigationManager(); +const router = createRouter(appRoot); +const powerMenu = createPowerMenuOverlay({ mountRoot: overlayRoot, state }); -window.addEventListener("DOMContentLoaded", () => { - greetInputEl = document.querySelector("#greet-input"); - greetMsgEl = document.querySelector("#greet-msg"); - document.querySelector("#greet-form").addEventListener("submit", (e) => { - e.preventDefault(); - greet(); +let currentViewContract = null; + +const emitUiHook = (type, payload = {}) => { + window.dispatchEvent( + new CustomEvent("nebula-ui-hook", { + detail: { type, ...payload }, + }), + ); +}; + +const setFooterHints = (templateId, glyphs) => { + const template = document.querySelector(templateId); + if (!template) { + footer.innerHTML = ""; + return; + } + footer.innerHTML = template.innerHTML; + footer.querySelectorAll("[data-glyph]").forEach((element) => { + const action = element.dataset.glyph; + element.textContent = glyphs[action] ?? action; }); -}); +}; + +const updateClockLabels = () => { + const now = new Date(); + const formattedTime = now.toLocaleTimeString([], { + hour: "2-digit", + minute: "2-digit", + }); + const formattedDate = now.toLocaleDateString([], { + weekday: "short", + month: "short", + day: "numeric", + year: "numeric", + }); + document.querySelectorAll("[data-clock]").forEach((clock) => { + clock.textContent = formattedTime; + }); + document.querySelectorAll("[data-date]").forEach((date) => { + date.textContent = formattedDate; + }); +}; + +const renderView = (viewId) => { + const contract = router.navigate(viewId); + currentViewContract = contract; + if (!contract) { + return; + } + nav.mount(contract); + setFooterHints(contract.hintsTemplate ?? "#global-hints-template", state.glyphs); + updateClockLabels(); +}; + +const registerViews = () => { + const context = { state, renderView, powerMenu, openPowerMenu }; + router.register(createLockView(context)); + router.register(createHomeView(context)); + router.register(createSettingsView(context)); + router.register(createLibraryView(context)); +}; + +const openPowerMenu = () => { + powerMenu.open({ + onClose: () => { + nav.mount(currentViewContract); + setFooterHints(currentViewContract?.hintsTemplate ?? "#global-hints-template", state.glyphs); + }, + }); +}; + +const handleAction = (action) => { + if (powerMenu.isOpen()) { + powerMenu.handleAction(action); + return; + } + + if (!currentViewContract) { + return; + } + + if (action === "menu") { + const handled = currentViewContract.onMenu?.(); + if (handled !== false) { + openPowerMenu(); + } + return; + } + + if (action === "up" || action === "down" || action === "left" || action === "right") { + if (currentViewContract.captureDirectionalInput) { + const handled = currentViewContract.onAction?.(action, nav.getFocusedElement()); + if (handled) { + return; + } + } + + nav.move(action); + emitUiHook("move", { action }); + return; + } + + if (action === "accept") { + const focused = nav.getFocusedElement(); + focused?.classList.add("is-pressed"); + window.setTimeout(() => focused?.classList.remove("is-pressed"), 180); + emitUiHook("accept", { focusKey: focused?.dataset.focusKey ?? null }); + currentViewContract.onAccept?.(focused); + return; + } + + if (action === "back") { + emitUiHook("back"); + currentViewContract.onBack?.(); + return; + } + + currentViewContract.onAction?.(action, nav.getFocusedElement()); +}; + +const initialize = async () => { + await state.initializeNebulaCore(); + registerViews(); + renderView("lock"); + updateClockLabels(); + window.setInterval(updateClockLabels, 1000); + + const input = createInputManager({ + onAction: handleAction, + actions: ["up", "down", "left", "right", "accept", "back", "menu", "clear", "y", "l1", "r1", "l2", "r2"], + }); + + input.start(); +}; + +initialize(); diff --git a/src/styles/base.css b/src/styles/base.css new file mode 100644 index 0000000..e51a092 --- /dev/null +++ b/src/styles/base.css @@ -0,0 +1,262 @@ +* { + box-sizing: border-box; +} + +html, +body { + margin: 0; + width: 100%; + height: 100%; + background: var(--nebula-color-bg); + color: var(--nebula-color-text); + font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; +} + +body { + display: grid; + grid-template-rows: 1fr auto; + overflow: hidden; + position: relative; + isolation: isolate; +} + +#nebula-background { + position: fixed; + inset: 0; + z-index: -2; + overflow: hidden; + transform: translate3d(var(--bg-parallax-x, 0px), 0, 0); + transition: transform var(--nebula-duration-slow) var(--nebula-ease-standard); +} + +.nebula-layer { + position: absolute; + inset: -6%; + will-change: transform, opacity, filter; +} + +.nebula-layer.gradient { + background: + radial-gradient(circle at 16% 12%, rgba(82, 116, 218, 0.26), transparent 48%), + radial-gradient(circle at 82% 76%, rgba(147, 79, 188, 0.22), transparent 46%), + radial-gradient(circle at 48% 88%, rgba(79, 216, 255, 0.14), transparent 38%), + linear-gradient(135deg, #050a17 0%, #090f28 24%, #0d1435 48%, #1a1542 78%, #23173c 100%); + animation: nebulaGradientDrift 28s var(--nebula-ease-standard) infinite alternate; +} + +.nebula-layer.starfield { + background-image: + radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.8px, transparent 1.6px), + radial-gradient(circle, rgba(79, 216, 255, 0.6) 0.6px, transparent 1.4px), + radial-gradient(circle, rgba(147, 79, 188, 0.5) 1px, transparent 1.8px); + background-size: 180px 180px, 260px 260px, 320px 320px; + background-position: 0 0, 140px 110px, 60px 180px; + opacity: 0.24; + animation: starfieldShift 45s linear infinite; +} + +.nebula-layer.fog { + background: + radial-gradient(ellipse at 28% 72%, rgba(82, 182, 255, 0.22), transparent 52%), + radial-gradient(ellipse at 72% 28%, rgba(147, 77, 203, 0.22), transparent 48%), + radial-gradient(ellipse at 45% 50%, rgba(79, 216, 255, 0.16), transparent 46%); + filter: blur(52px); + opacity: 0.76; + animation: fogDrift 34s var(--nebula-ease-standard) infinite alternate; +} + +.nebula-layer.vignette { + background: radial-gradient(circle at center, transparent 45%, rgba(2, 6, 20, 0.55) 100%); + inset: 0; +} + +.shell-chrome { + position: fixed; + inset: 0; + z-index: 0; + pointer-events: none; +} + +.shell-depth-blur { + position: absolute; + inset: 80px 40px 120px; + backdrop-filter: blur(calc(8px + var(--nebula-focus-strength, 0) * 6px)); + opacity: calc(0.22 + var(--nebula-focus-strength, 0) * 0.35); + border-radius: 32px; + transition: + opacity var(--nebula-duration-nav) var(--nebula-ease-console), + backdrop-filter var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.app-shell { + position: relative; + z-index: 2; + width: 100%; + height: 100%; + padding: 24px var(--nebula-spacing-xl) 0; + overflow: hidden; +} + +.view { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + gap: var(--nebula-spacing-lg); + opacity: 0; + transform: translateX(32px); +} + +.view.view-entered { + opacity: 1; + transform: translateX(0); + transition: + transform var(--nebula-duration-slow) var(--nebula-ease-console), + opacity var(--nebula-duration-nav) var(--nebula-ease-standard); +} + +.view-header { + display: flex; + align-items: center; + justify-content: space-between; +} + +.shell-topbar { + display: flex; + flex-direction: column; + min-height: 64px; + padding-bottom: var(--nebula-spacing-sm); + position: relative; +} + +.shell-topbar-content { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; +} + +.shell-brand { + margin: 0; + letter-spacing: 0.12em; + text-transform: uppercase; + font-size: 15px; + font-weight: 680; + color: color-mix(in srgb, var(--nebula-color-text) 92%, var(--nebula-color-accent)); + text-shadow: 0 0 24px rgba(79, 216, 255, 0.38), 0 0 6px rgba(79, 216, 255, 0.2); +} + +.shell-status { + display: inline-flex; + align-items: center; + gap: var(--nebula-spacing-md); +} + +.shell-time { + letter-spacing: 0.05em; + font-size: 16px; + font-weight: 560; + color: color-mix(in srgb, var(--nebula-color-text) 90%, var(--nebula-color-muted)); +} + +.shell-avatar { + width: 32px; + height: 32px; + border-radius: var(--nebula-radius-pill); + border: 2px solid rgba(79, 216, 255, 0.4); + background: + radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 46%), + linear-gradient(145deg, rgba(108, 180, 255, 0.7), rgba(75, 81, 155, 0.6)); + box-shadow: + 0 0 12px rgba(79, 216, 255, 0.25), + 0 2px 8px rgba(0, 0, 0, 0.3); +} + +.shell-accent-line { + position: absolute; + inset: auto 0 0; + height: 3px; + overflow: hidden; + background: linear-gradient(90deg, + transparent, + rgba(79, 216, 255, 0.12) 25%, + rgba(79, 216, 255, 0.08) 75%, + transparent + ); +} + +.shell-accent-line::after { + content: ""; + position: absolute; + top: 0; + left: 0; + width: clamp(120px, 14vw, 200px); + height: 100%; + background: linear-gradient(90deg, + transparent, + rgba(79, 216, 255, 0.6) 30%, + var(--nebula-color-accent) 50%, + rgba(79, 216, 255, 0.6) 70%, + transparent + ); + box-shadow: 0 0 16px rgba(79, 216, 255, 0.5); + transform: translateX(var(--nebula-accent-line-x, 0px)); + transition: transform var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.view-title { + margin: 0; + font-size: var(--nebula-type-display); + line-height: 1.15; + letter-spacing: 0.01em; +} + +.muted { + color: var(--nebula-color-muted); +} + +.app-footer { + min-height: 56px; + padding: 0 var(--nebula-spacing-xl) var(--nebula-spacing-md); +} + +.hint-row { + display: flex; + align-items: center; + gap: var(--nebula-spacing-lg); + color: var(--nebula-color-muted); +} + +.hint { + display: inline-flex; + gap: var(--nebula-spacing-xs); + align-items: center; + font-size: 15px; +} + +@keyframes nebulaGradientDrift { + 0% { + transform: translate3d(-2%, -1.5%, 0) scale(1.03) rotate(0deg); + } + 100% { + transform: translate3d(1.5%, 2%, 0) scale(1.05) rotate(0.5deg); + } +} + +@keyframes starfieldShift { + 0% { + transform: translate3d(0, 0, 0); + } + 100% { + transform: translate3d(-140px, -110px, 0); + } +} + +@keyframes fogDrift { + 0% { + transform: translate3d(-2%, 1.2%, 0) scale(1.02); + } + 100% { + transform: translate3d(2.2%, -1.4%, 0) scale(1.04); + } +} diff --git a/src/styles/components.css b/src/styles/components.css new file mode 100644 index 0000000..bba1a32 --- /dev/null +++ b/src/styles/components.css @@ -0,0 +1,164 @@ +.panel { + background: var(--nebula-color-panel); + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: var(--nebula-radius-md); + padding: var(--nebula-spacing-lg); + box-shadow: var(--nebula-depth-shadow); + backdrop-filter: blur(12px); +} + +.focusable { + border: 1px solid transparent; + border-radius: var(--nebula-radius-md); + outline: none; + position: relative; + overflow: hidden; + will-change: transform, box-shadow, border-color; + transform: translateZ(0); + transition: + transform var(--nebula-duration-nav) var(--nebula-ease-console), + border-color var(--nebula-duration-nav) var(--nebula-ease-console), + box-shadow var(--nebula-duration-nav) var(--nebula-ease-console), + background-color var(--nebula-duration-nav) var(--nebula-ease-standard); +} + +.focusable.is-focused { + border-color: rgba(79, 216, 255, 0.5); + box-shadow: + 0 0 0 2px color-mix(in srgb, var(--nebula-color-focus) 45%, transparent), + 0 0 28px color-mix(in srgb, var(--nebula-color-focus) 35%, transparent), + 0 4px 16px rgba(2, 6, 18, 0.3), + var(--nebula-depth-shadow-focus); +} + +.focusable::before { + content: ""; + position: absolute; + inset: 0; + border-radius: inherit; + background: radial-gradient( + circle at var(--ripple-x, 50%) var(--ripple-y, 50%), + rgba(79, 216, 255, 0.28), + rgba(79, 216, 255, 0.12) 40%, + transparent 65% + ); + opacity: 0; + transform: scale(0.75); + transition: + opacity var(--nebula-duration-nav) var(--nebula-ease-console), + transform var(--nebula-duration-slow) var(--nebula-ease-console); + pointer-events: none; +} + +.focusable.is-focused::before { + opacity: 1; + transform: scale(1.12); +} + +.focusable.is-pressed { + animation: uiPressPulse var(--nebula-duration-fast) var(--nebula-ease-snap); +} + +.tile { + min-height: 188px; + min-width: 320px; + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: var(--nebula-spacing-xs); + background: + linear-gradient(160deg, rgba(65, 108, 189, 0.32), rgba(24, 36, 72, 0.90)), + radial-gradient(circle at 75% 25%, rgba(79, 216, 255, 0.12), transparent 48%), + var(--nebula-color-panelAlt); + color: var(--nebula-color-text); + border-radius: var(--nebula-radius-md); + padding: var(--nebula-spacing-lg); + transform-origin: center; + box-shadow: + 0 8px 24px rgba(2, 6, 18, 0.35), + inset 0 1px 0 rgba(255, 255, 255, 0.08); + position: relative; + overflow: hidden; +} + +.tile::after { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient(135deg, rgba(79, 216, 255, 0.08), transparent 60%); + opacity: 0; + transition: opacity var(--nebula-duration-nav) var(--nebula-ease-console); + pointer-events: none; +} + +.tile.is-focused::after { + opacity: 1; +} + +.tile-icon { + font-size: 42px; + line-height: 1; + opacity: 0.94; + filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32)); + transition: transform var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.tile.is-focused .tile-icon { + transform: scale(1.08) translateY(-2px); +} + +.tile-label { + margin: 0; + font-size: clamp(22px, 2vw, 28px); + font-weight: 720; + letter-spacing: -0.01em; + z-index: 1; + transition: transform var(--nebula-duration-fast) var(--nebula-ease-console); +} + +.tile.is-focused .tile-label { + transform: translateX(3px); +} + +.tile-meta { + margin: 0; + font-size: 15px; + color: var(--nebula-color-muted); + z-index: 1; + opacity: 0.88; + transition: + transform var(--nebula-duration-fast) var(--nebula-ease-console), + opacity var(--nebula-duration-fast) var(--nebula-ease-console); +} + +.tile.is-focused .tile-meta { + transform: translateX(3px); + opacity: 1; +} + +.tile.is-focused { + transform: scale(1.06) translateZ(0); + box-shadow: + 0 16px 40px rgba(2, 6, 18, 0.5), + 0 0 0 2px rgba(79, 216, 255, 0.15), + inset 0 1px 0 rgba(255, 255, 255, 0.12); +} + +.button-like { + background: var(--nebula-color-panelAlt); + color: var(--nebula-color-text); + padding: var(--nebula-spacing-md) var(--nebula-spacing-lg); + border-radius: var(--nebula-radius-sm); +} + +@keyframes uiPressPulse { + 0% { + transform: scale(1); + } + 40% { + transform: scale(0.96); + } + 100% { + transform: scale(1); + } +} diff --git a/src/styles/shell-guidelines.md b/src/styles/shell-guidelines.md new file mode 100644 index 0000000..384ac58 --- /dev/null +++ b/src/styles/shell-guidelines.md @@ -0,0 +1,53 @@ +# Nebula Shell UI Guidelines (Dashboard Refresh) + +## Layout Structure +- Home uses a left-aligned horizontal tile rail (`.tile-rail`) with one primary row of large app tiles. +- Top bar is shared across shell views with brand left and time/profile right. +- Settings uses a horizontal category bar at top and card panel content below. +- Lock screen keeps immersive centered time/date and reveals PIN panel on first input. + +## Animation Guidelines +- Use cubic-bezier curves only: + - `--nebula-ease-console`: focus travel and panel transitions. + - `--nebula-ease-standard`: opacity and ambient motion. + - `--nebula-ease-snap`: press pulse feedback. +- Focus transitions target `120ms–180ms` (`--nebula-duration-fast` / `--nebula-duration-nav`). +- Use transform/opacity for movement and avoid layout-triggering transitions. +- Page changes use `.view` to `.view-entered` slide-in transitions. +- Press feedback uses `.is-pressed` and `uiPressPulse` keyframes. + +## Component Breakdown + +### TopBar +- Class roots: `.shell-topbar`, `.shell-brand`, `.shell-status`, `.shell-time`, `.shell-avatar`, `.shell-accent-line`. +- Purpose: persistent identity + status + navigation-reactive accent line. +- Reactive token: `--nebula-accent-line-x` updates from focus manager. + +### TileRow +- Class root: `.tile-rail`. +- Purpose: horizontal app rail with controller-first left/right travel and smooth scroll. +- Behavior: focus auto-centers via `scrollTo` and updates parallax variables. + +### Tile +- Class roots: `.tile`, `.dashboard-tile`, `.tile-icon`, `.tile-label`, `.tile-meta`. +- Focus state: `.is-focused` scales tile and adds cyan glow outline. +- Press state: `.is-pressed` triggers pulse animation and hook events. + +### BackgroundLayer +- DOM root: `#nebula-background` with `.nebula-layer` children (`gradient`, `starfield`, `fog`, `vignette`). +- Purpose: animated nebula depth stack with subtle star motion and fog drift. +- Parallax token: `--bg-parallax-x` supports focus-driven depth shift. + +### FocusManager +- Implementation root: `src/core/nav.js`. +- Responsibilities: + - Maintain focused element and directional navigation. + - Apply `.is-focused` state and `aria-selected`. + - Publish focus telemetry events (`nebula-focus-change`). + - Update CSS vars (`--nebula-accent-line-x`, `--nebula-focus-strength`). + +## UI Hook Contract (No Audio Implementation) +- `window` `CustomEvent("nebula-ui-hook")` details: + - `type: "focus" | "move" | "accept" | "back"` + - Optional metadata (`target`, `action`, `focusKey`) +- Intended use: external UI audio/haptics bridge without coupling shell visuals to playback. diff --git a/src/styles/theme.css b/src/styles/theme.css new file mode 100644 index 0000000..d2c98c5 --- /dev/null +++ b/src/styles/theme.css @@ -0,0 +1,41 @@ +:root { + --nebula-color-bg: #050a17; + --nebula-color-bg-deep: #0a1028; + --nebula-color-bg-purple: #1a1342; + --nebula-color-panel: rgba(18, 30, 58, 0.75); + --nebula-color-panelAlt: rgba(26, 43, 82, 0.88); + --nebula-color-text: #f2f7ff; + --nebula-color-muted: #a8bdd8; + --nebula-color-accent: #4fd8ff; + --nebula-color-accent-soft: rgba(79, 216, 255, 0.4); + --nebula-color-danger: #ff6b88; + --nebula-color-success: #7dff9e; + --nebula-color-focus: #4fd8ff; + --nebula-color-overlay: rgba(5, 8, 20, 0.82); + + --nebula-spacing-xs: 6px; + --nebula-spacing-sm: 10px; + --nebula-spacing-md: 16px; + --nebula-spacing-lg: 24px; + --nebula-spacing-xl: 36px; + + --nebula-radius-sm: 10px; + --nebula-radius-md: 14px; + --nebula-radius-lg: 20px; + --nebula-radius-pill: 999px; + + --nebula-type-body: 18px; + --nebula-type-title: 24px; + --nebula-type-display: 34px; + + --nebula-ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1); + --nebula-ease-console: cubic-bezier(0.19, 0.82, 0.18, 1); + --nebula-ease-snap: cubic-bezier(0.32, 0.94, 0.18, 1); + + --nebula-duration-fast: 120ms; + --nebula-duration-nav: 180ms; + --nebula-duration-slow: 340ms; + + --nebula-depth-shadow: 0 12px 32px rgba(2, 6, 20, 0.48); + --nebula-depth-shadow-focus: 0 20px 48px rgba(2, 12, 38, 0.62), 0 8px 16px rgba(2, 6, 20, 0.3); +} diff --git a/src/views/home/home.css b/src/views/home/home.css new file mode 100644 index 0000000..1597ce8 --- /dev/null +++ b/src/views/home/home.css @@ -0,0 +1,90 @@ +.home-view { + justify-content: flex-start; + gap: var(--nebula-spacing-xl); + padding-left: 0; +} + +.home-hero { + display: grid; + gap: var(--nebula-spacing-xs); + padding-left: var(--nebula-spacing-xl); +} + +.home-hero .muted { + margin: 0; + text-transform: uppercase; + letter-spacing: 0.14em; + font-size: 14px; + font-weight: 600; + opacity: 0.72; +} + +.home-hero .view-title { + font-size: clamp(32px, 3.2vw, 44px); + font-weight: 700; + letter-spacing: -0.02em; +} + +.tile-rail { + display: flex; + gap: var(--nebula-spacing-lg); + overflow-x: auto; + overflow-y: hidden; + padding: 10px var(--nebula-spacing-xl) 18px; + scroll-behavior: smooth; + scrollbar-width: none; + transform: translate3d(var(--home-parallax-x, 0px), 0, 0); + transition: transform var(--nebula-duration-slow) var(--nebula-ease-console); +} + +.tile-rail::-webkit-scrollbar { + display: none; +} + +.dashboard-tile { + flex: 0 0 clamp(280px, 22vw, 340px); + min-height: clamp(200px, 18vh, 240px); + position: relative; + overflow: visible; +} + +.dashboard-tile.tile-large { + flex: 0 0 clamp(360px, 28vw, 440px); + min-height: clamp(240px, 22vh, 300px); +} + +.tile-content { + display: flex; + flex-direction: column; + justify-content: space-between; + height: 100%; + gap: var(--nebula-spacing-md); + position: relative; + z-index: 2; +} + +.tile-text { + display: flex; + flex-direction: column; + gap: 4px; +} + +.tile-accent-bar { + position: absolute; + left: 0; + bottom: 0; + right: 0; + height: 4px; + background: linear-gradient(90deg, var(--nebula-color-accent), transparent); + opacity: 0; + transform: scaleX(0); + transform-origin: left center; + transition: + opacity var(--nebula-duration-nav) var(--nebula-ease-console), + transform var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.dashboard-tile.is-focused .tile-accent-bar { + opacity: 1; + transform: scaleX(1); +} diff --git a/src/views/home/home.html b/src/views/home/home.html new file mode 100644 index 0000000..ad2deec --- /dev/null +++ b/src/views/home/home.html @@ -0,0 +1,60 @@ +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+ +
+

Dashboard

+

Jump back in

+
+ +
+ + + + +
+
diff --git a/src/views/home/home.js b/src/views/home/home.js new file mode 100644 index 0000000..41ba7c7 --- /dev/null +++ b/src/views/home/home.js @@ -0,0 +1,132 @@ +const HOME_TEMPLATE = ` +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+ +
+

Dashboard

+

Jump back in

+
+ +
+ + + + +
+
+`; + +export const createHomeView = ({ state, renderView, openPowerMenu }) => ({ + id: "home", + render: () => HOME_TEMPLATE, + mount: () => { + const rail = document.querySelector("[data-home-rail]"); + const background = document.querySelector("#nebula-background"); + if (!rail) { + return; + } + + const focusTile = (tile) => { + if (!tile) { + return; + } + + const targetScroll = tile.offsetLeft - rail.clientWidth * 0.22; + rail.scrollTo({ + left: Math.max(0, targetScroll), + behavior: "smooth", + }); + + const focusColumn = Number(tile.dataset.col ?? 0); + document.documentElement.style.setProperty("--nebula-focus-strength", "1"); + document.documentElement.style.setProperty("--nebula-accent-line-x", `${20 + focusColumn * 112}px`); + rail.style.setProperty("--home-parallax-x", `${focusColumn * -10}px`); + background?.style.setProperty("--bg-parallax-x", `${focusColumn * -6}px`); + }; + + rail.addEventListener("focusin", (event) => { + const tile = event.target.closest("[data-focusable='true']"); + focusTile(tile); + if (tile) { + window.dispatchEvent( + new CustomEvent("nebula-ui-hook", { + detail: { type: "focus", target: tile.dataset.target }, + }), + ); + } + }); + }, + getNavigationContract: () => { + const root = document.querySelector("[data-home-rail]"); + return { + focusRoot: root, + defaultFocus: root?.querySelector("[data-target='library']") ?? null, + layout: { type: "grid", cols: 4, rows: 1 }, + hintsTemplate: "#global-hints-template", + nebulaNavigation: state.nebula.navigation, + onAccept: (element) => { + if (!element) { + return; + } + const target = element.dataset.target; + if (target === "power") { + openPowerMenu(); + return; + } + state.activeView = target; + renderView(target); + }, + onBack: () => { + state.locked = true; + state.activeView = "lock"; + renderView("lock"); + }, + onMenu: () => {}, + }; + }, +}); diff --git a/src/views/library/library.css b/src/views/library/library.css new file mode 100644 index 0000000..a7ade77 --- /dev/null +++ b/src/views/library/library.css @@ -0,0 +1,10 @@ +.stub-view { + justify-content: center; +} + +.stub-panel { + max-width: 720px; + display: flex; + flex-direction: column; + gap: var(--nebula-spacing-md); +} diff --git a/src/views/library/library.html b/src/views/library/library.html new file mode 100644 index 0000000..53d1747 --- /dev/null +++ b/src/views/library/library.html @@ -0,0 +1,22 @@ +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+
+
+

Nebula App

+

Library

+
+
+
+ +

Library integration stub for v0 shell navigation.

+
+
diff --git a/src/views/library/library.js b/src/views/library/library.js new file mode 100644 index 0000000..b0d92ad --- /dev/null +++ b/src/views/library/library.js @@ -0,0 +1,48 @@ +const LIBRARY_TEMPLATE = ` +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+
+
+

Nebula App

+

Library

+
+
+
+ +

Library integration stub for v0 shell navigation.

+
+
+`; + +export const createLibraryView = ({ state, renderView }) => ({ + id: "library", + render: () => LIBRARY_TEMPLATE, + getNavigationContract: () => { + const root = document.querySelector("[data-focus-root]"); + return { + focusRoot: root, + defaultFocus: root?.querySelector("[data-action='back']") ?? null, + layout: { type: "list", rows: 1 }, + hintsTemplate: "#minimal-hints-template", + nebulaNavigation: state.nebula.navigation, + onAccept: () => { + state.activeView = "home"; + renderView("home"); + }, + onBack: () => { + state.activeView = "home"; + renderView("home"); + }, + onMenu: () => {}, + }; + }, +}); diff --git a/src/views/lock/lock.css b/src/views/lock/lock.css new file mode 100644 index 0000000..c7b4691 --- /dev/null +++ b/src/views/lock/lock.css @@ -0,0 +1,233 @@ +.lock-view { + justify-content: center; + align-items: center; + background: radial-gradient(circle at 55% 48%, rgba(79, 216, 255, 0.1), transparent 62%); +} + +.lock-layout { + width: min(1240px, 96vw); + min-height: min(720px, 82vh); + display: grid; + grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px); + gap: clamp(24px, 4vw, 58px); + background: + linear-gradient(165deg, rgba(56, 82, 128, 0.18), rgba(19, 30, 56, 0.74)), + radial-gradient(circle at 65% 35%, rgba(79, 216, 255, 0.08), transparent 52%), + rgba(13, 18, 31, 0.78); + border-radius: 20px; + border: 1px solid rgba(255, 255, 255, 0.08); + box-shadow: + 0 24px 62px rgba(0, 0, 0, 0.38), + inset 0 1px 0 rgba(255, 255, 255, 0.12); + backdrop-filter: blur(14px); + padding: clamp(28px, 4vw, 48px); +} + +.lock-view.is-success .lock-layout { + box-shadow: + 0 0 0 1px rgba(79, 216, 255, 0.3), + 0 24px 62px rgba(0, 0, 0, 0.38), + 0 0 48px rgba(79, 216, 255, 0.24); +} + +.lock-left { + display: flex; + flex-direction: column; + justify-content: center; + gap: var(--nebula-spacing-lg); +} + +.lock-user { + display: inline-flex; + align-items: center; + gap: 12px; +} + +.lock-avatar { + width: 42px; + height: 42px; + border-radius: 999px; + border: 2px solid rgba(79, 216, 255, 0.44); + background: + radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), transparent 45%), + linear-gradient(145deg, rgba(112, 189, 255, 0.66), rgba(66, 78, 142, 0.8)); +} + +.lock-username { + margin: 0; + font-weight: 640; + font-size: 18px; +} + +.lock-title { + margin: 0; + font-size: clamp(36px, 5vw, 52px); + font-weight: 540; + letter-spacing: -0.01em; +} + +.lock-copy { + margin: 0; + color: var(--nebula-color-muted); + font-size: 20px; + line-height: 1.45; + max-width: 540px; +} + +.lock-dots { + display: flex; + align-items: center; + gap: clamp(14px, 1.6vw, 22px); + min-height: 30px; + transition: transform var(--nebula-duration-fast) var(--nebula-ease-console); +} + +.lock-dot { + width: 22px; + height: 22px; + border-radius: 999px; + border: 2px solid rgba(191, 206, 230, 0.38); + background: rgba(255, 255, 255, 0.05); + opacity: 0.75; + transform: scale(0.92); + transition: + transform var(--nebula-duration-fast) var(--nebula-ease-console), + border-color var(--nebula-duration-fast) var(--nebula-ease-console), + background-color var(--nebula-duration-fast) var(--nebula-ease-console), + box-shadow var(--nebula-duration-fast) var(--nebula-ease-console); +} + +.lock-dot.active { + border-color: rgba(79, 216, 255, 0.72); + box-shadow: 0 0 16px rgba(79, 216, 255, 0.34); +} + +.lock-dot.filled { + background: rgba(215, 230, 255, 0.9); + border-color: rgba(215, 230, 255, 0.95); + transform: scale(1); + animation: dotFill var(--nebula-duration-fast) var(--nebula-ease-console); +} + +.lock-dots.is-success .lock-dot.filled { + border-color: rgba(79, 216, 255, 0.95); + background: rgba(79, 216, 255, 0.9); + box-shadow: 0 0 20px rgba(79, 216, 255, 0.58); +} + +.lock-dots.is-error .lock-dot { + border-color: color-mix(in srgb, var(--nebula-color-danger) 72%, rgba(255, 255, 255, 0.3)); + box-shadow: 0 0 20px color-mix(in srgb, var(--nebula-color-danger) 38%, transparent); +} + +.lock-dots.is-shaking { + animation: dotsShake 420ms var(--nebula-ease-console); +} + +.lock-status { + margin: 0; + min-height: 24px; + font-size: 16px; + color: var(--nebula-color-muted); +} + +.lock-status.is-danger { + color: var(--nebula-color-danger); +} + +.lock-right { + align-self: center; + display: grid; + grid-template-columns: repeat(3, minmax(96px, 1fr)); + gap: clamp(10px, 1.4vw, 18px); + justify-items: center; + background: rgba(15, 24, 45, 0.6); + border: 1px solid rgba(255, 255, 255, 0.08); +} + +.lock-num { + width: clamp(82px, 7.3vw, 112px); + height: clamp(82px, 7.3vw, 112px); + border: none; + border-radius: 18px; + font-size: clamp(42px, 3.8vw, 68px); + font-weight: 330; + line-height: 1; + color: color-mix(in srgb, var(--nebula-color-text) 95%, rgba(215, 230, 255, 0.94)); + background: + radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 55%), + linear-gradient(162deg, rgba(61, 90, 140, 0.18), rgba(15, 23, 43, 0.6)); + box-shadow: + 0 10px 22px rgba(0, 0, 0, 0.24), + inset 0 1px 0 rgba(255, 255, 255, 0.08); + transition: + transform var(--nebula-duration-nav) var(--nebula-ease-console), + box-shadow var(--nebula-duration-nav) var(--nebula-ease-console), + border-color var(--nebula-duration-nav) var(--nebula-ease-console); + display: inline-flex; + align-items: baseline; + justify-content: center; + gap: 8px; +} + +.lock-num.is-zero { + grid-column: 2; +} + +.lock-num.is-focused { + transform: scale(1.1); + box-shadow: + 0 0 0 2px rgba(79, 216, 255, 0.5), + 0 0 28px rgba(79, 216, 255, 0.36), + 0 12px 30px rgba(0, 0, 0, 0.28); +} + +.lock-map { + font-size: 13px; + font-weight: 650; + letter-spacing: 0.02em; + color: color-mix(in srgb, var(--nebula-color-muted) 80%, #fff); + transform: translateY(-8px); +} + +.lock-num.is-focused .lock-map { + color: color-mix(in srgb, var(--nebula-color-accent) 85%, #fff); +} + +@keyframes dotFill { + 0% { + opacity: 0.35; + transform: scale(0.62); + } + + 100% { + opacity: 1; + transform: scale(1); + } +} + +@keyframes dotsShake { + 0% { + transform: translateX(0); + } + + 20% { + transform: translateX(-9px); + } + + 40% { + transform: translateX(8px); + } + + 60% { + transform: translateX(-6px); + } + + 80% { + transform: translateX(4px); + } + + 100% { + transform: translateX(0); + } +} diff --git a/src/views/lock/lock.html b/src/views/lock/lock.html new file mode 100644 index 0000000..0db89fc --- /dev/null +++ b/src/views/lock/lock.html @@ -0,0 +1,39 @@ +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+ +
+

--:--

+

-- --- ----

+

Press any key to unlock

+
+ +
+

Enter Security PIN

+
+
+ + + + + + + + + + + + +
+

Default v0 PIN: 1234

+

+
+
diff --git a/src/views/lock/lock.js b/src/views/lock/lock.js new file mode 100644 index 0000000..2667328 --- /dev/null +++ b/src/views/lock/lock.js @@ -0,0 +1,385 @@ +const LOCK_TEMPLATE = ` +
+
+
+
+ +

Nebula User

+
+

Enter your passkey

+

Using your controller, enter your 6-digit passkey.

+
+

+
+ +
+ + + + + + + + + + + + + +
+
+
+`; + +export const createLockView = ({ state, renderView }) => { + const ENTRY_DEBOUNCE_MS = 120; + const FAIL_CLEAR_MS = 600; + + let digits = []; + let setupDigits = []; + let setupPhase = "create"; + let busy = false; + let lastEntryAt = 0; + let keyboardListener = null; + + const config = () => state.passkey.getConfig(); + + const ACTION_TO_DIGIT = { + up: "1", + left: "2", + down: "3", + right: "4", + l2: "5", + r2: "6", + l1: "7", + r1: "8", + y: "9", + clear: "0", + }; + + const playTone = (frequency = 860, durationMs = 34, gainValue = 0.03) => { + const AudioContextClass = window.AudioContext ?? window.webkitAudioContext; + if (!AudioContextClass) { + return; + } + + try { + const ctx = new AudioContextClass(); + const oscillator = ctx.createOscillator(); + const gain = ctx.createGain(); + oscillator.type = "triangle"; + oscillator.frequency.value = frequency; + gain.gain.value = gainValue; + oscillator.connect(gain); + gain.connect(ctx.destination); + oscillator.start(); + + window.setTimeout(() => { + oscillator.stop(); + ctx.close(); + }, durationMs); + } catch (_error) { + // no-op + } + }; + + const pulseHaptic = (ms = 10) => { + navigator.vibrate?.(ms); + }; + + const setStatus = (text = "", danger = false) => { + const status = document.querySelector("[data-status]"); + if (!status) { + return; + } + + status.textContent = text; + status.classList.toggle("is-danger", danger); + }; + + const updateCopy = () => { + const copy = document.querySelector("[data-copy]"); + if (!copy) { + return; + } + + const length = config().length; + if (state.passkeySetupRequired) { + copy.textContent = setupPhase === "confirm" + ? `Re-enter the same ${length}-digit passkey to confirm.` + : `Use Xbox passkey controls to enter your ${length}-digit passkey.`; + return; + } + + if (config().requireConfirm) { + copy.textContent = `Use Xbox passkey controls to enter ${length} digits, then press Start.`; + return; + } + + copy.textContent = `Use Xbox passkey controls to enter your ${length}-digit passkey.`; + }; + + const updateMapLabels = () => { + document.querySelectorAll("[data-map]").forEach((element) => { + const action = element.dataset.map; + element.textContent = state.glyphs[action] ?? action?.toUpperCase?.() ?? ""; + }); + }; + + const renderDots = (stateClass = "") => { + const dots = document.querySelector("[data-passkey-dots]"); + if (!dots) { + return; + } + + dots.className = `lock-dots ${stateClass}`.trim(); + dots.innerHTML = ""; + + for (let index = 0; index < config().length; index += 1) { + const dot = document.createElement("span"); + dot.className = "lock-dot"; + + if (index < digits.length) { + dot.classList.add("filled"); + } + if (index === digits.length && digits.length < config().length) { + dot.classList.add("active"); + } + + dots.append(dot); + } + }; + + const clearDigits = () => { + digits = []; + renderDots(); + }; + + const lockoutText = (remainingMs) => `Too many attempts. Retry in ${Math.ceil(remainingMs / 1000)}s.`; + + const applyFailure = (text) => { + setStatus(text, true); + renderDots("is-error is-shaking"); + playTone(220, 84, 0.05); + + window.setTimeout(() => { + clearDigits(); + }, FAIL_CLEAR_MS); + }; + + const applySuccess = () => { + const view = document.querySelector(".lock-view"); + setStatus("", false); + renderDots("is-success"); + view?.classList.add("is-success"); + playTone(1200, 66, 0.04); + pulseHaptic(24); + + window.setTimeout(() => { + state.locked = false; + state.activeView = "home"; + renderView("home"); + }, 240); + }; + + const submitDigits = async () => { + if (busy) { + return; + } + + if (digits.length !== config().length) { + setStatus(`Enter ${config().length} digits.`, true); + return; + } + + busy = true; + + if (!config().enabled) { + applySuccess(); + busy = false; + return; + } + + if (state.passkeySetupRequired) { + if (setupPhase === "create") { + setupDigits = [...digits]; + clearDigits(); + setupPhase = "confirm"; + updateCopy(); + setStatus("Confirm your new passkey."); + busy = false; + return; + } + + const same = setupDigits.length === digits.length && setupDigits.every((digit, index) => digit === digits[index]); + if (!same) { + setupPhase = "create"; + setupDigits = []; + updateCopy(); + applyFailure("Passkeys did not match. Try again."); + busy = false; + return; + } + + await state.passkey.setSequence(setupDigits); + state.passkeySetupRequired = false; + applySuccess(); + busy = false; + return; + } + + const result = await state.passkey.verifySequence(digits); + if (result.ok) { + applySuccess(); + busy = false; + return; + } + + if (result.reason === "lockout") { + applyFailure(lockoutText(result.lockoutRemainingMs ?? state.passkey.getLockoutRemainingMs())); + busy = false; + return; + } + + if (result.reason === "setup-required") { + state.passkeySetupRequired = true; + setupPhase = "create"; + setupDigits = []; + updateCopy(); + applyFailure("Passkey setup required."); + busy = false; + return; + } + + applyFailure(`Incorrect passkey. ${result.attemptsLeft ?? 0} attempts left.`); + busy = false; + }; + + const pushDigit = (digit) => { + if (busy || state.passkey.inLockout()) { + if (state.passkey.inLockout()) { + setStatus(lockoutText(state.passkey.getLockoutRemainingMs()), true); + } + return; + } + + const now = performance.now(); + if (now - lastEntryAt < ENTRY_DEBOUNCE_MS) { + return; + } + lastEntryAt = now; + + if (digits.length >= config().length) { + return; + } + + digits.push(String(digit)); + renderDots(); + setStatus(""); + playTone(); + pulseHaptic(8); + + if (digits.length === config().length && !config().requireConfirm) { + submitDigits(); + } else if (digits.length === config().length && config().requireConfirm) { + setStatus("Press Start to confirm."); + } + }; + + const deleteLast = () => { + if (!digits.length || busy) { + return; + } + digits = digits.slice(0, -1); + renderDots(); + setStatus(""); + }; + + const clearAll = () => { + if (!digits.length || busy) { + return; + } + clearDigits(); + setStatus(""); + }; + + const handleNumberKey = (event) => { + if (!config().keyboardSupport || !state.locked) { + return; + } + + const digitMatch = event.code.match(/^(Digit|Numpad)(\d)$/); + if (!digitMatch) { + return; + } + + event.preventDefault(); + pushDigit(digitMatch[2]); + }; + + return { + id: "lock", + render: () => LOCK_TEMPLATE, + mount: () => { + setupPhase = "create"; + setupDigits = []; + clearDigits(); + updateCopy(); + setStatus(""); + + const username = document.querySelector("[data-username]"); + if (username) { + username.textContent = state.profileName ?? "Nebula User"; + } + + document.documentElement.style.setProperty("--nebula-focus-strength", "1"); + document.documentElement.dataset.animSpeed = config().animationSpeed; + document.documentElement.classList.toggle("high-contrast", config().highContrast); + updateMapLabels(); + + if (keyboardListener) { + window.removeEventListener("keydown", keyboardListener); + } + keyboardListener = handleNumberKey; + window.addEventListener("keydown", keyboardListener); + }, + getNavigationContract: () => { + const root = document.querySelector("[data-focus-root]"); + const defaultFocus = root?.querySelector("[data-digit='5']") ?? root?.querySelector("[data-digit='1']") ?? null; + + return { + focusRoot: root, + defaultFocus, + layout: { type: "grid", cols: 3, rows: 4 }, + hintsTemplate: "#global-hints-template", + nebulaNavigation: state.nebula.navigation, + captureDirectionalInput: true, + onAccept: (element) => { + const digit = element?.dataset.digit; + if (!digit) { + return; + } + pushDigit(digit); + }, + onBack: () => { + deleteLast(); + }, + onMenu: () => { + if (digits.length === config().length) { + submitDigits(); + } + return false; + }, + onAction: (action) => { + const mappedDigit = ACTION_TO_DIGIT[action]; + if (mappedDigit) { + pushDigit(mappedDigit); + return true; + } + + return false; + }, + }; + }, + }; +}; diff --git a/src/views/overlays/powerMenu.css b/src/views/overlays/powerMenu.css new file mode 100644 index 0000000..224ff2f --- /dev/null +++ b/src/views/overlays/powerMenu.css @@ -0,0 +1,34 @@ +.power-overlay { + position: fixed; + inset: 0; + z-index: 20; + display: grid; + place-items: center; + background: var(--nebula-color-overlay); +} + +.power-overlay[hidden] { + display: none !important; +} + +.power-panel { + width: min(520px, 92vw); +} + +.power-title { + margin: 0 0 var(--nebula-spacing-md); +} + +.power-options { + display: grid; + gap: var(--nebula-spacing-sm); +} + +.power-option { + min-height: 62px; + border: none; + background: var(--nebula-color-panelAlt); + color: var(--nebula-color-text); + text-align: left; + padding: var(--nebula-spacing-md); +} diff --git a/src/views/overlays/powerMenu.html b/src/views/overlays/powerMenu.html new file mode 100644 index 0000000..b13bafa --- /dev/null +++ b/src/views/overlays/powerMenu.html @@ -0,0 +1,12 @@ + diff --git a/src/views/overlays/powerMenu.js b/src/views/overlays/powerMenu.js new file mode 100644 index 0000000..b217e96 --- /dev/null +++ b/src/views/overlays/powerMenu.js @@ -0,0 +1,107 @@ +const POWER_MENU_TEMPLATE = ` + +`; + +const ACTION_LOG = { + suspend: "Suspend requested (stub)", + restart: "Restart requested (stub)", + shutdown: "Shutdown requested (stub)", + desktop: "Switch to Desktop requested (stub)", +}; + +export const createPowerMenuOverlay = ({ mountRoot }) => { + mountRoot.innerHTML = POWER_MENU_TEMPLATE; + + const overlay = mountRoot.querySelector("[data-power-overlay]"); + const focusables = Array.from(mountRoot.querySelectorAll("[data-focusable='true']")); + let focusedIndex = 0; + let openState = false; + let onClose = null; + + if (overlay) { + overlay.hidden = true; + } + + const focusAt = (index) => { + focusables.forEach((element) => { + element.classList.remove("is-focused"); + element.setAttribute("aria-selected", "false"); + }); + + focusedIndex = Math.max(0, Math.min(index, focusables.length - 1)); + const target = focusables[focusedIndex]; + target.classList.add("is-focused"); + target.setAttribute("aria-selected", "true"); + target.focus({ preventScroll: true }); + }; + + const close = () => { + openState = false; + overlay.hidden = true; + onClose?.(); + onClose = null; + }; + + const open = (options = {}) => { + openState = true; + onClose = options.onClose ?? null; + overlay.hidden = false; + focusAt(0); + }; + + const runAction = (action) => { + if (action === "cancel") { + close(); + return; + } + + if (ACTION_LOG[action]) { + console.log(`[PowerMenu] ${ACTION_LOG[action]}`); + close(); + } + }; + + const handleAction = (action) => { + if (!openState) { + return; + } + + if (action === "up") { + focusAt(focusedIndex - 1); + return; + } + + if (action === "down") { + focusAt(focusedIndex + 1); + return; + } + + if (action === "accept") { + const current = focusables[focusedIndex]; + runAction(current?.dataset.action ?? "cancel"); + return; + } + + if (action === "back" || action === "menu") { + close(); + } + }; + + return { + open, + close, + isOpen: () => openState, + handleAction, + }; +}; diff --git a/src/views/settings/settings.css b/src/views/settings/settings.css new file mode 100644 index 0000000..6cc4074 --- /dev/null +++ b/src/views/settings/settings.css @@ -0,0 +1,181 @@ +.settings-view { + gap: var(--nebula-spacing-xl); +} + +.settings-header-copy { + display: grid; + gap: var(--nebula-spacing-xs); + padding-left: var(--nebula-spacing-xl); +} + +.settings-header-copy .muted { + margin: 0; + letter-spacing: 0.14em; + text-transform: uppercase; + font-size: 14px; + font-weight: 600; + opacity: 0.72; +} + +.settings-header-copy .view-title { + font-size: clamp(32px, 3.2vw, 44px); + font-weight: 700; + letter-spacing: -0.02em; +} + +.settings-body { + display: grid; + gap: var(--nebula-spacing-lg); + padding: 0 var(--nebula-spacing-xl); +} + +.settings-category-bar { + display: flex; + gap: 10px; + padding-bottom: var(--nebula-spacing-md); + border-bottom: 2px solid rgba(79, 216, 255, 0.15); + position: relative; +} + +.settings-category { + min-height: 56px; + padding: 0 24px; + border-radius: var(--nebula-radius-sm); + border: none; + background: rgba(24, 38, 68, 0.5); + font-weight: 660; + font-size: 16px; + position: relative; + transition: + background-color var(--nebula-duration-nav) var(--nebula-ease-console), + color var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.settings-category.is-focused { + background: rgba(38, 58, 98, 0.7); +} + +.settings-category.is-active { + background: rgba(50, 78, 128, 0.8); + color: var(--nebula-color-accent); +} + +.settings-category::after { + content: ""; + position: absolute; + left: 12px; + right: 12px; + bottom: -14px; + height: 3px; + background: linear-gradient(90deg, var(--nebula-color-accent), rgba(79, 216, 255, 0.6)); + border-radius: 2px 2px 0 0; + box-shadow: 0 0 12px rgba(79, 216, 255, 0.6); + transform: scaleX(0); + transform-origin: center; + transition: transform var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.settings-category.is-active::after { + transform: scaleX(1); +} + +.settings-panel { + display: flex; + flex-direction: column; + gap: var(--nebula-spacing-lg); + min-height: 440px; + background: + linear-gradient(160deg, rgba(65, 108, 189, 0.18), rgba(24, 36, 72, 0.65)), + radial-gradient(circle at 75% 25%, rgba(79, 216, 255, 0.08), transparent 48%), + var(--nebula-color-panel); + border-radius: var(--nebula-radius-md); + padding: var(--nebula-spacing-lg); + box-shadow: + 0 8px 24px rgba(2, 6, 18, 0.35), + inset 0 1px 0 rgba(255, 255, 255, 0.08); +} + +.settings-panel-head { + display: grid; + gap: 8px; + padding-bottom: var(--nebula-spacing-md); + border-bottom: 1px solid rgba(79, 216, 255, 0.12); +} + +.settings-panel-title { + margin: 0; + font-size: 28px; + font-weight: 720; + letter-spacing: -0.01em; +} + +.settings-card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: var(--nebula-spacing-md); +} + +.settings-card { + border: 1px solid rgba(79, 216, 255, 0.15); + border-radius: var(--nebula-radius-md); + padding: var(--nebula-spacing-lg); + min-height: 180px; + background: + linear-gradient(165deg, rgba(70, 108, 186, 0.28), rgba(22, 34, 68, 0.88)); + text-align: left; + display: grid; + align-content: space-between; + position: relative; + overflow: hidden; + transition: + transform var(--nebula-duration-nav) var(--nebula-ease-console), + border-color var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.settings-card::before { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient(135deg, rgba(79, 216, 255, 0.12), transparent 60%); + opacity: 0; + transition: opacity var(--nebula-duration-nav) var(--nebula-ease-console); +} + +.settings-card.is-focused { + transform: scale(1.04); + border-color: rgba(79, 216, 255, 0.5); +} + +.settings-card.is-focused::before { + opacity: 1; +} + +.settings-card-title { + margin: 0; + font-size: 20px; + font-weight: 680; + letter-spacing: -0.01em; + position: relative; + z-index: 1; +} + +.settings-card p { + margin: 0; + position: relative; + z-index: 1; +} + +.settings-card-info { + border-style: dashed; + opacity: 0.85; +} + +.settings-card.is-disabled { + opacity: 0.55; + border-style: dashed; + filter: grayscale(0.15); +} + +.settings-card.is-disabled.is-focused { + transform: none; +} diff --git a/src/views/settings/settings.html b/src/views/settings/settings.html new file mode 100644 index 0000000..e36e1e0 --- /dev/null +++ b/src/views/settings/settings.html @@ -0,0 +1,48 @@ +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+ +
+

System

+

Settings

+
+ +
+
+ + + + + +
+ +
+
+

Network

+

Optimize connection and online routing.

+
+
+ + +
+

Status

+

Applying Nebula profile

+
+
+
+
+
diff --git a/src/views/settings/settings.js b/src/views/settings/settings.js new file mode 100644 index 0000000..25e4094 --- /dev/null +++ b/src/views/settings/settings.js @@ -0,0 +1,241 @@ +const SETTINGS_TEMPLATE = ` +
+
+
+

Nebula OS

+
+ +

--:--

+
+
+
+
+ +
+

System

+

Settings

+
+ +
+
+ + + + + +
+ +
+
+

Network

+

Optimize connection and online routing.

+
+
+ + + + + +
+

Status

+

Applying Nebula profile

+
+
+
+
+
+`; + +const CATEGORIES = { + network: "Network", + audio: "Audio", + display: "Display", + storage: "Storage", + system: "System", +}; + +export const createSettingsView = ({ state, renderView }) => { + const updatePasskey = (partial) => { + state.passkey.updateConfig(partial); + refreshPanel(); + }; + + const refreshPanel = () => { + const title = document.querySelector("[data-panel-title]"); + const copy = document.querySelector("[data-panel-copy]"); + const passkeyEnabled = document.querySelector("[data-passkey-enabled]"); + const passkeyLength = document.querySelector("[data-passkey-length]"); + const passkeyConfirm = document.querySelector("[data-passkey-confirm]"); + const passkeyKeyboard = document.querySelector("[data-passkey-keyboard]"); + const status = document.querySelector("[data-status-note]"); + const passkeyConfig = state.passkey.getConfig(); + + document.querySelectorAll(".settings-category").forEach((button) => { + button.classList.toggle("is-active", button.dataset.cat === state.settingsCategory); + }); + + if (title) { + title.textContent = CATEGORIES[state.settingsCategory] ?? "Settings"; + } + if (copy) { + if (state.settingsCategory === "system") { + copy.textContent = "Configure passkey security and controller login behavior."; + } else { + copy.textContent = `Tune ${CATEGORIES[state.settingsCategory] ?? "system"} options with controller-first cards.`; + } + } + if (passkeyEnabled) { + passkeyEnabled.textContent = passkeyConfig.enabled ? "Enabled" : "Disabled"; + } + if (passkeyLength) { + passkeyLength.textContent = `${passkeyConfig.length} digits`; + } + if (passkeyConfirm) { + passkeyConfirm.textContent = passkeyConfig.requireConfirm ? "Enabled" : "Disabled"; + } + if (passkeyKeyboard) { + passkeyKeyboard.textContent = passkeyConfig.keyboardSupport ? "Enabled" : "Disabled"; + } + if (status) { + status.textContent = state.settingsCategory === "system" + ? `Attempts: ${passkeyConfig.maxAttempts}, cooldown: ${passkeyConfig.cooldownSeconds}s` + : `${CATEGORIES[state.settingsCategory] ?? "System"} profile synced`; + } + + document.querySelectorAll("[data-toggle^='passkey']").forEach((button) => { + button.classList.toggle("is-disabled", state.settingsCategory !== "system"); + button.setAttribute("aria-disabled", state.settingsCategory === "system" ? "false" : "true"); + }); + }; + + const toggleCurrent = (suffix = "") => { + const key = suffix ? `${state.settingsCategory}_${suffix}` : state.settingsCategory; + state.settingsValues[key] = !Boolean(state.settingsValues[key]); + refreshPanel(); + }; + + return { + id: "settings", + render: () => SETTINGS_TEMPLATE, + mount: () => { + const root = document.querySelector("[data-focus-root]"); + root?.addEventListener("focusin", (event) => { + const focused = event.target.closest("[data-focusable='true']"); + const col = Number(focused?.dataset.col ?? 0); + document.documentElement.style.setProperty("--nebula-accent-line-x", `${24 + col * 110}px`); + }); + refreshPanel(); + document.documentElement.style.setProperty("--nebula-focus-strength", "1"); + }, + getNavigationContract: () => { + const root = document.querySelector("[data-focus-root]"); + return { + focusRoot: root, + defaultFocus: root?.querySelector("[data-cat='network']") ?? null, + layout: { type: "grid", cols: 5, rows: 2 }, + hintsTemplate: "#global-hints-template", + nebulaNavigation: state.nebula.navigation, + onAccept: (element) => { + if (!element) { + return; + } + + const category = element.dataset.cat; + const toggle = element.dataset.toggle; + + if (category) { + state.settingsCategory = category; + refreshPanel(); + return; + } + + if (toggle === "primary") { + toggleCurrent(); + return; + } + + if (toggle === "secondary") { + toggleCurrent("secondary"); + return; + } + + if (state.settingsCategory !== "system") { + return; + } + + if (toggle === "passkey-enabled") { + updatePasskey({ enabled: !state.passkey.getConfig().enabled }); + return; + } + + if (toggle === "passkey-change") { + state.passkeySetupRequired = true; + state.locked = true; + state.activeView = "lock"; + renderView("lock"); + return; + } + + if (toggle === "passkey-length") { + const current = state.passkey.getConfig().length; + updatePasskey({ length: current >= 8 ? 4 : current + 1 }); + return; + } + + if (toggle === "passkey-confirm") { + updatePasskey({ requireConfirm: !state.passkey.getConfig().requireConfirm }); + return; + } + + if (toggle === "passkey-keyboard") { + updatePasskey({ keyboardSupport: !state.passkey.getConfig().keyboardSupport }); + } + }, + onBack: () => { + state.activeView = "home"; + renderView("home"); + }, + onMenu: () => {}, + onAction: (action, element) => { + if (state.settingsCategory !== "system") { + return false; + } + + if (element?.dataset.toggle !== "passkey-length") { + return false; + } + + if (action === "l1") { + const next = state.passkey.getConfig().length - 1; + updatePasskey({ length: next < 4 ? 8 : next }); + return true; + } + + if (action === "r1") { + const next = state.passkey.getConfig().length + 1; + updatePasskey({ length: next > 8 ? 4 : next }); + return true; + } + + return false; + }, + }; + }, + }; +};