diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000000000000000000000000000000000000..8398920c9a4391c81272ca95341ba0898aade85f
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,24 @@
+# OpenAI inference (backend only)
+OPENAI_API_KEY=your_openai_api_key_here
+LLM_BASE_URL=https://api.openai.com/v1
+LLM_MODEL=gpt-6-luna
+EMBEDDING_MODEL=text-embedding-3-small
+
+# Email / IMAP
+EMAIL_HOST=imap.gmail.com
+EMAIL_PORT=993
+SMTP_HOST=smtp.gmail.com
+SMTP_PORT=587
+EMAIL_USERNAME=
+EMAIL_PASSWORD=
+
+# Persistence (Supabase)
+SUPABASE_URL=
+SUPABASE_KEY=
+
+# Backend authentication: set a strong secret before deployment
+API_TOKEN=
+
+# Application
+APP_ENV=development
+LOG_LEVEL=DEBUG
diff --git a/.github/workflows/sync-to-hub.yml b/.github/workflows/sync-to-hub.yml
new file mode 100644
index 0000000000000000000000000000000000000000..2c590fff6f4b3e7781bbdad5f28e226a8a6209f4
--- /dev/null
+++ b/.github/workflows/sync-to-hub.yml
@@ -0,0 +1,28 @@
+name: Sync to Hugging Face Hub
+on:
+ push:
+ branches: [main]
+ # Allow manual trigger from the Actions tab
+ workflow_dispatch:
+
+jobs:
+ sync:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ lfs: true
+ - name: Push to hub
+ env:
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
+ run: |
+ rm -rf .git
+ git init
+ git branch -M main
+ git config user.name "github-actions"
+ git config user.email "github-actions@github.com"
+ git add .
+ git commit -m "Initial sync to Hugging Face"
+ git remote add origin "https://mrmayankmathurorg:$HF_TOKEN@huggingface.co/spaces/mrmayankmathurorg/Customer-EMAIL-Agent"
+ git push --force origin main
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..27c1339445ed0ede82892a005d78c678a0425fa2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,55 @@
+# Environment
+.env
+.env.*
+!.env.example
+
+# Python
+__pycache__/
+*.py[cod]
+*$py.class
+*.egg-info/
+dist/
+build/
+.eggs/
+
+# Virtual environments
+venv/
+.venv/
+env/
+
+# IDE
+.idea/
+.vscode/
+*.swp
+*.swo
+*~
+
+# OS
+.DS_Store
+Thumbs.db
+
+# Logs
+*.log
+logs/
+
+# Testing
+.pytest_cache/
+.coverage
+htmlcov/
+
+# Node / Frontend
+node_modules/
+frontend/dist/
+frontend/dist-ssr/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+*.local
+
+# Data / State
+data_store.json
+*.sqlite3
+*.db
+*.faiss
+
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
new file mode 100644
index 0000000000000000000000000000000000000000..be2ca69163d1c94c7ec02ba0966e7d1719498b3b
--- /dev/null
+++ b/ARCHITECTURE.md
@@ -0,0 +1,77 @@
+# System Architecture
+
+## Architecture Flow Diagram
+
+Below is the architectural flow diagram representing the Customer Support Email Agent system, mapping how the Frontend, Backend, AI Pipeline, and External Services interact.
+
+```mermaid
+graph TD
+ %% Subsystems definition
+ subgraph Frontend ["Frontend (React / Vite) - Hosted on Vercel"]
+ UI_Compose["Compose UI (Compose.tsx)"]
+ UI_Dash["Dashboard UI (Dashboard.tsx)"]
+ UI_Ticket["Detailed View (DetailedView.tsx)"]
+ State["Zustand Global Store"]
+ end
+
+ subgraph Backend ["Backend (FastAPI) - Hosted on Hugging Face Spaces"]
+ API["FastAPI Routing (/api/v1)"]
+
+ subgraph Pipeline ["LangGraph Agent Pipeline (SupportPipeline)"]
+ Node1["1. classify_email"]
+ Node2["2. retrieve_context"]
+ Node3["3. generate_response"]
+ Node4["4. check_escalation"]
+ Node5["5. send_email_reply"]
+ Node6["6. check_follow_up"]
+ end
+
+ FAISS[("FAISS Vector Store\n(docs/knowledge base)")]
+ end
+
+ subgraph Services ["External Services"]
+ LLM["OpenAI Inference"]
+ Database[("Supabase (PostgreSQL)")]
+ SMTP["SMTP Server (Gmail/Resend)"]
+ end
+
+ %% --- Core Frontend to Backend APIs ---
+ UI_Compose -- "POST /process-email\n(X-API-Token)" --> API
+ UI_Dash -- "GET /kpis\nGET /emails/recent" --> API
+ UI_Ticket -- "GET /emails/{ticket_id}" --> API
+
+ %% --- Backend Database Operations ---
+ API -- "Write/Read Tickets Data\n(supabase-py)" --> Database
+
+ %% --- Pipeline Execution Flow ---
+ API -- "initiates workflow" --> Node1
+ Node1 --> Node2
+ Node2 --> Node3
+ Node3 --> Node4
+
+ Node4 -- "if Confidence < 0.7 or Sensitive\n(Escalated)" --> PipelineEnd((End Pipeline))
+ Node4 -- "if Confident\n(Auto-reply)" --> Node5
+
+ Node5 --> Node6
+ Node6 --> PipelineEnd
+
+ PipelineEnd -. "return result to API router" .-> API
+
+ %% --- LLM and Service Interactions ---
+ Node1 -. "LLM Prompt (JSON)" .-> LLM
+ Node2 -. "fetch similar docs" .-> FAISS
+ Node2 -. "embed query" .-> LLM
+ Node3 -. "draft reasoning" .-> LLM
+ Node4 -. "evaluate draft" .-> LLM
+ Node5 -. "dispatch SMTP" .-> SMTP
+ Node6 -. "LLM Prompt" .-> LLM
+```
+
+## Key Components
+
+1. **Frontend**: A React SPA built with Vite. It interacts with the backend strictly through REST APIs and manages state via `zustand`. It leverages `recharts` for the dashboard and `reactflow` for pipeline visualization.
+2. **Backend**: A FastAPI Python backend acting as the orchestrator. It manages the authentication (`X-API-Token`) and database persistence (`supabase-py`).
+3. **LangGraph Pipeline**: The core AI logic resides here as a Directed Acyclic Graph (DAG) state machine. It handles classification, context retrieval (RAG via FAISS), response generation, autonomous escalation scoring, and conditionally dispatching outbound SMTP emails.
+4. **External Services**:
+ - **OpenAI**: Provides the embedding (`text-embedding-3-small`) and LLM text generation capabilities for the intelligent nodes.
+ - **Supabase**: Serves as the primary operational database, storing tickets, statuses, extracted categorization, and execution metadata.
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000000000000000000000000000000000000..8cf7e530597006dc7bde5d25713606c6f3d74727
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,41 @@
+# Use an official Python runtime as a parent image
+FROM python:3.11-slim
+
+# Set environment variables
+ENV PYTHONDONTWRITEBYTECODE 1
+ENV PYTHONUNBUFFERED 1
+ENV PORT 7860
+
+# Set the working directory in the container
+WORKDIR /app
+
+# Install system dependencies
+RUN apt-get update && apt-get install -y \
+ build-essential \
+ curl \
+ git \
+ && rm -rf /var/lib/apt/lists/*
+
+# Copy the requirements file into the container
+COPY requirements.txt .
+
+# Install any needed packages specified in requirements.txt
+RUN pip install --no-cache-dir -r requirements.txt
+
+# Copy the rest of the application code into the container
+COPY . .
+
+# Create a non-root user and switch to it for better security on HF
+RUN useradd -m -u 1000 user
+USER user
+ENV HOME=/home/user \
+ PATH=/home/user/.local/bin:$PATH
+
+# Make sure the static directory exists
+RUN mkdir -p /app/static
+
+# Expose the port the app runs on
+EXPOSE 7860
+
+# Run the application
+CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..73ad350777d8ecdb649017ee025b6585de710b7b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,127 @@
+---
+title: Customer EMAIL Agent
+emoji: π§
+colorFrom: blue
+colorTo: indigo
+sdk: docker
+pinned: false
+---
+
+# π§ Customer Support Email Agent
+
+An AI-powered customer support email agent built with **LangGraph**, **LangChain**, and **FastAPI**.
+
+The agent automatically classifies incoming support emails, retrieves relevant knowledge, drafts responses, and optionally escalates complex issues β all orchestrated as a stateful LangGraph workflow.
+
+## Architecture
+
+```
+Incoming Email
+ β
+ βΌ
+βββββββββββββββ
+β Classifier β β Categorizes intent (billing, technical, general, etc.)
+ββββββββ¬βββββββ
+ β
+ βΌ
+βββββββββββββββ
+β Retriever β β Fetches relevant knowledge base articles
+ββββββββ¬βββββββ
+ β
+ βΌ
+βββββββββββββββ
+β Responder β β Drafts a reply using context + LLM
+ββββββββ¬βββββββ
+ β
+ βΌ
+βββββββββββββββ
+β Escalation β β Routes to human agent if confidence is low
+βββββββββββββββ
+```
+
+## Project Structure
+
+```
+cust_support_system/
+βββ src/
+β βββ main.py # FastAPI application entry point
+β βββ api/ # API routes & dependencies
+β βββ core/ # Config, logging, constants
+β βββ graph/ # LangGraph workflow definition
+β βββ nodes/ # Individual graph nodes
+β βββ schemas/ # Pydantic models
+β βββ services/ # Email & LLM services
+β βββ prompts/ # Prompt templates
+β βββ utils/ # Helper utilities
+βββ knowledge_base/ # Support articles & FAQ docs
+βββ tests/ # Pytest test suite
+βββ requirements.txt
+βββ .env.example # Credential-free configuration template
+βββ README.md
+```
+
+## Setup
+
+```bash
+# 1. Create & activate a virtual environment (Python 3.12)
+python3.12 -m venv venv
+source venv/bin/activate
+
+# 2. Install dependencies
+pip install -r requirements.txt
+
+# 3. Configure environment variables
+cp .env.example .env # then fill in your keys
+
+# 4. Run the server
+uvicorn src.main:app --reload
+```
+
+### OpenAI inference configuration
+
+Chat and knowledge-base embeddings use the backend-only `OPENAI_API_KEY`:
+
+```dotenv
+OPENAI_API_KEY=your-openai-api-key
+LLM_BASE_URL=https://api.openai.com/v1
+LLM_MODEL=gpt-6-luna
+EMBEDDING_MODEL=text-embedding-3-small
+```
+
+The chat model ID `gpt-6-luna` is passed through exactly as configured.
+Its availability and API compatibility have not been verified; it must be
+accessible on your OpenAI account. The application no longer uses `GITHUB_TOKEN`
+for inference. Do not use a GitHub token as an OpenAI key or expose provider keys
+in frontend `VITE_*` variables.
+
+For an existing installation, update the provider entries in `.env` rather than
+replacing the file and losing unrelated credentials. Environment variables take
+precedence over `.env`, which takes precedence over the code defaults. On your
+backend host (for example, Hugging Face Spaces), set `OPENAI_API_KEY` as a secret
+and update or remove stale `LLM_BASE_URL`, `LLM_MODEL`, and `EMBEDDING_MODEL`
+overrides. Restart the backend after configuration changes. `/config` reports
+the effective chat model; it does not modify inference settings.
+
+Embeddings remain on the `text-embedding-3-small` model family with default
+dimensions. The migration does not rebuild the FAISS index. If the old index used
+a different embedding model or dimensions, rebuild it explicitly with
+`python -m src.services.kb_service` after setting a valid key; that command makes
+billable embedding requests.
+
+### Backend API authentication
+
+Set `API_TOKEN` in the backend environment to a long random value. Production
+startup fails when `APP_ENV=production` and the token is missing. For local
+development, the frontend sends the same value from `frontend/.env` as
+`VITE_API_TOKEN`; this value is visible to browser users and should not be
+treated as a production-grade user authentication secret.
+
+## Tech Stack
+
+| Layer | Technology |
+| ------------- | --------------------- |
+| LLM | OpenAI (`gpt-6-luna`) |
+| Orchestration | LangGraph + LangChain |
+| API | FastAPI |
+| Validation | Pydantic v2 |
+| Language | Python 3.12 |
diff --git a/frontend/index.html b/frontend/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..405aaaa9e7cd3a14510d964d10e66f09b45ac810
--- /dev/null
+++ b/frontend/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+ Customer Support System Dashboard
+
+
+
+
+
+
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
new file mode 100644
index 0000000000000000000000000000000000000000..3cd9b18e321e7cfb4ae85f2d090109d3db3b5c16
--- /dev/null
+++ b/frontend/package-lock.json
@@ -0,0 +1,5460 @@
+{
+ "name": "support-agent-frontend",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "support-agent-frontend",
+ "version": "0.1.0",
+ "dependencies": {
+ "@supabase/supabase-js": "^2.104.0",
+ "axios": "^1.7.7",
+ "clsx": "^2.1.1",
+ "lucide-react": "^0.453.0",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
+ "react-router-dom": "^6.27.0",
+ "reactflow": "^11.11.4",
+ "recharts": "^2.13.0",
+ "tailwind-merge": "^2.5.4",
+ "zustand": "^5.0.0"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.13.0",
+ "@types/react": "^18.3.11",
+ "@types/react-dom": "^18.3.1",
+ "@vitejs/plugin-react": "^4.3.3",
+ "autoprefixer": "^10.4.20",
+ "eslint": "^9.13.0",
+ "eslint-plugin-react-hooks": "^5.0.0",
+ "eslint-plugin-react-refresh": "^0.4.13",
+ "globals": "^15.11.0",
+ "postcss": "^8.4.47",
+ "tailwindcss": "^3.4.14",
+ "typescript": "~5.6.2",
+ "typescript-eslint": "^8.10.0",
+ "vite": "^5.4.9"
+ }
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.28.5",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",
+ "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.0",
+ "@babel/generator": "^7.29.0",
+ "@babel/helper-compilation-targets": "^7.28.6",
+ "@babel/helper-module-transforms": "^7.28.6",
+ "@babel/helpers": "^7.28.6",
+ "@babel/parser": "^7.29.0",
+ "@babel/template": "^7.28.6",
+ "@babel/traverse": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.1",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
+ "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.28.6",
+ "@babel/helper-validator-option": "^7.27.1",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.28.6",
+ "@babel/types": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.28.6",
+ "@babel/helper-validator-identifier": "^7.28.5",
+ "@babel/traverse": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",
+ "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.28.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
+ "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.28.6",
+ "@babel/types": "^7.29.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",
+ "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.0"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",
+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",
+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",
+ "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.28.6",
+ "@babel/parser": "^7.28.6",
+ "@babel/types": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.0",
+ "@babel/generator": "^7.29.0",
+ "@babel/helper-globals": "^7.28.0",
+ "@babel/parser": "^7.29.0",
+ "@babel/template": "^7.28.6",
+ "@babel/types": "^7.29.0",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.28.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.9.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",
+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.2",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",
+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.2",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz",
+ "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.7",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.5"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.4.2",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",
+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",
+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.3.5",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz",
+ "integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.14.0",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.1",
+ "minimatch": "^3.1.5",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.39.4",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz",
+ "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",
+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",
+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.17.0",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.1",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.7",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",
+ "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.1",
+ "@humanwhocodes/retry": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@reactflow/background": {
+ "version": "11.3.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/background/-/background-11.3.14.tgz",
+ "integrity": "sha512-Gewd7blEVT5Lh6jqrvOgd4G6Qk17eGKQfsDXgyRSqM+CTwDqRldG2LsWN4sNeno6sbqVIC2fZ+rAUBFA9ZEUDA==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.3",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/background/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@reactflow/controls": {
+ "version": "11.2.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/controls/-/controls-11.2.14.tgz",
+ "integrity": "sha512-MiJp5VldFD7FrqaBNIrQ85dxChrG6ivuZ+dcFhPQUwOK3HfYgX2RHdBua+gx+40p5Vw5It3dVNp/my4Z3jF0dw==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.3",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/controls/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@reactflow/core": {
+ "version": "11.11.4",
+ "resolved": "https://registry.npmjs.org/@reactflow/core/-/core-11.11.4.tgz",
+ "integrity": "sha512-H4vODklsjAq3AMq6Np4LE12i1I4Ta9PrDHuBR9GmL8uzTt2l2jh4CiQbEMpvMDcp7xi4be0hgXj+Ysodde/i7Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3": "^7.4.0",
+ "@types/d3-drag": "^3.0.1",
+ "@types/d3-selection": "^3.0.3",
+ "@types/d3-zoom": "^3.0.1",
+ "classcat": "^5.0.3",
+ "d3-drag": "^3.0.0",
+ "d3-selection": "^3.0.0",
+ "d3-zoom": "^3.0.0",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/core/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@reactflow/minimap": {
+ "version": "11.7.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/minimap/-/minimap-11.7.14.tgz",
+ "integrity": "sha512-mpwLKKrEAofgFJdkhwR5UQ1JYWlcAAL/ZU/bctBkuNTT1yqV+y0buoNVImsRehVYhJwffSWeSHaBR5/GJjlCSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "@types/d3-selection": "^3.0.3",
+ "@types/d3-zoom": "^3.0.1",
+ "classcat": "^5.0.3",
+ "d3-selection": "^3.0.0",
+ "d3-zoom": "^3.0.0",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/minimap/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@reactflow/node-resizer": {
+ "version": "2.2.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/node-resizer/-/node-resizer-2.2.14.tgz",
+ "integrity": "sha512-fwqnks83jUlYr6OHcdFEedumWKChTHRGw/kbCxj0oqBd+ekfs+SIp4ddyNU0pdx96JIm5iNFS0oNrmEiJbbSaA==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.4",
+ "d3-drag": "^3.0.0",
+ "d3-selection": "^3.0.0",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/node-resizer/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@reactflow/node-toolbar": {
+ "version": "1.3.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/node-toolbar/-/node-toolbar-1.3.14.tgz",
+ "integrity": "sha512-rbynXQnH/xFNu4P9H+hVqlEUafDCkEoCy0Dg9mG22Sg+rY/0ck6KkrAQrYrTgXusd+cEJOMK0uOOFCK2/5rSGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.3",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/node-toolbar/node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@remix-run/router": {
+ "version": "1.23.2",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.2.tgz",
+ "integrity": "sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.27",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.1.tgz",
+ "integrity": "sha512-d6FinEBLdIiK+1uACUttJKfgZREXrF0Qc2SmLII7W2AD8FfiZ9Wjd+rD/iRuf5s5dWrr1GgwXCvPqOuDquOowA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.1.tgz",
+ "integrity": "sha512-YjG/EwIDvvYI1YvYbHvDz/BYHtkY4ygUIXHnTdLhG+hKIQFBiosfWiACWortsKPKU/+dUwQQCKQM3qrDe8c9BA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.1.tgz",
+ "integrity": "sha512-mjCpF7GmkRtSJwon+Rq1N8+pI+8l7w5g9Z3vWj4T7abguC4Czwi3Yu/pFaLvA3TTeMVjnu3ctigusqWUfjZzvw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.1.tgz",
+ "integrity": "sha512-haZ7hJ1JT4e9hqkoT9R/19XW2QKqjfJVv+i5AGg57S+nLk9lQnJ1F/eZloRO3o9Scy9CM3wQ9l+dkXtcBgN5Ew==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.1.tgz",
+ "integrity": "sha512-czw90wpQq3ZsAVBlinZjAYTKduOjTywlG7fEeWKUA7oCmpA8xdTkxZZlwNJKWqILlq0wehoZcJYfBvOyhPTQ6w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.1.tgz",
+ "integrity": "sha512-KVB2rqsxTHuBtfOeySEyzEOB7ltlB/ux38iu2rBQzkjbwRVlkhAGIEDiiYnO2kFOkJp+Z7pUXKyrRRFuFUKt+g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.1.tgz",
+ "integrity": "sha512-L+34Qqil+v5uC0zEubW7uByo78WOCIrBvci69E7sFASRl0X7b/MB6Cqd1lky/CtcSVTydWa2WZwFuWexjS5o6g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.1.tgz",
+ "integrity": "sha512-n83O8rt4v34hgFzlkb1ycniJh7IR5RCIqt6mz1VRJD6pmhRi0CXdmfnLu9dIUS6buzh60IvACM842Ffb3xd6Gg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.1.tgz",
+ "integrity": "sha512-Nql7sTeAzhTAja3QXeAI48+/+GjBJ+QmAH13snn0AJSNL50JsDqotyudHyMbO2RbJkskbMbFJfIJKWA6R1LCJQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.1.tgz",
+ "integrity": "sha512-+pUymDhd0ys9GcKZPPWlFiZ67sTWV5UU6zOJat02M1+PiuSGDziyRuI/pPue3hoUwm2uGfxdL+trT6Z9rxnlMA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.1.tgz",
+ "integrity": "sha512-VSvgvQeIcsEvY4bKDHEDWcpW4Yw7BtlKG1GUT4FzBUlEKQK0rWHYBqQt6Fm2taXS+1bXvJT6kICu5ZwqKCnvlQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.1.tgz",
+ "integrity": "sha512-4LqhUomJqwe641gsPp6xLfhqWMbQV04KtPp7/dIp0nzPxAkNY1AbwL5W0MQpcalLYk07vaW9Kp1PBhdpZYYcEw==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.1.tgz",
+ "integrity": "sha512-tLQQ9aPvkBxOc/EUT6j3pyeMD6Hb8QF2BTBnCQWP/uu1lhc9AIrIjKnLYMEroIz/JvtGYgI9dF3AxHZNaEH0rw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.1.tgz",
+ "integrity": "sha512-RMxFhJwc9fSXP6PqmAz4cbv3kAyvD1etJFjTx4ONqFP9DkTkXsAMU4v3Vyc5BgzC+anz7nS/9tp4obsKfqkDHg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.1.tgz",
+ "integrity": "sha512-QKgFl+Yc1eEk6MmOBfRHYF6lTxiiiV3/z/BRrbSiW2I7AFTXoBFvdMEyglohPj//2mZS4hDOqeB0H1ACh3sBbg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.1.tgz",
+ "integrity": "sha512-RAjXjP/8c6ZtzatZcA1RaQr6O1TRhzC+adn8YZDnChliZHviqIjmvFwHcxi4JKPSDAt6Uhf/7vqcBzQJy0PDJg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.1.tgz",
+ "integrity": "sha512-wcuocpaOlaL1COBYiA89O6yfjlp3RwKDeTIA0hM7OpmhR1Bjo9j31G1uQVpDlTvwxGn2nQs65fBFL5UFd76FcQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.1.tgz",
+ "integrity": "sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.1.tgz",
+ "integrity": "sha512-5cIATbk5vynAjqqmyBjlciMJl1+R/CwX9oLk/EyiFXDWd95KpHdrOJT//rnUl4cUcskrd0jCCw3wpZnhIHdD9w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.1.tgz",
+ "integrity": "sha512-cl0w09WsCi17mcmWqqglez9Gk8isgeWvoUZ3WiJFYSR3zjBQc2J5/ihSjpl+VLjPqjQ/1hJRcqBfLjssREQILw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.1.tgz",
+ "integrity": "sha512-4Cv23ZrONRbNtbZa37mLSueXUCtN7MXccChtKpUnQNgF010rjrjfHx3QxkS2PI7LqGT5xXyYs1a7LbzAwT0iCA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.1.tgz",
+ "integrity": "sha512-i1okWYkA4FJICtr7KpYzFpRTHgy5jdDbZiWfvny21iIKky5YExiDXP+zbXzm3dUcFpkEeYNHgQ5fuG236JPq0g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.1.tgz",
+ "integrity": "sha512-u09m3CuwLzShA0EYKMNiFgcjjzwqtUMLmuCJLeZWjjOYA3IT2Di09KaxGBTP9xVztWyIWjVdsB2E9goMjZvTQg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.1.tgz",
+ "integrity": "sha512-k+600V9Zl1CM7eZxJgMyTUzmrmhB/0XZnF4pRypKAlAgxmedUA+1v9R+XOFv56W4SlHEzfeMtzujLJD22Uz5zg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.1.tgz",
+ "integrity": "sha512-lWMnixq/QzxyhTV6NjQJ4SFo1J6PvOX8vUx5Wb4bBPsEb+8xZ89Bz6kOXpfXj9ak9AHTQVQzlgzBEc1SyM27xQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@supabase/auth-js": {
+ "version": "2.104.0",
+ "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.104.0.tgz",
+ "integrity": "sha512-Vs0ndL+s5an7rOmXtS/nbYnGXL8m+KXlCSrPIcw9bR96ma6qyLYILnE6syuM+rpDnf+Tg4PVNxNB2+oDwoy6mA==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/functions-js": {
+ "version": "2.104.0",
+ "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.104.0.tgz",
+ "integrity": "sha512-O8EyEz/RT1kfWhyJNpVc/VbLeBsohHGBVif/CI83zoMB+Iul/t/NIekH1/7RsH6kuO+b2D4wJhfiaW8Qr47sRg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/phoenix": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@supabase/phoenix/-/phoenix-0.4.0.tgz",
+ "integrity": "sha512-RHSx8bHS02xwfHdAbX5Lpbo6PXbgyf7lTaXTlwtFDPwOIw64NnVRwFAXGojHhjtVYI+PEPNSWwkL90f4agN3bw==",
+ "license": "MIT"
+ },
+ "node_modules/@supabase/postgrest-js": {
+ "version": "2.104.0",
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.104.0.tgz",
+ "integrity": "sha512-ynylEq6wduQEycj6pL3P+/yIfDQ+CTnBC5I6p+PzcAO2ybj9coAITVtMfboi+g/dacgMslN5MH73rXsRMB29+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/realtime-js": {
+ "version": "2.104.0",
+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.104.0.tgz",
+ "integrity": "sha512-9fUVDoTVAhn7a79+AmEx+asUlRtf2yBrji7TQckcKn/WK4hvAA9Lia9er+lnhuz3WNiF1x6kkA4x7bRCJrU+KA==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/phoenix": "^0.4.0",
+ "@types/ws": "^8.18.1",
+ "tslib": "2.8.1",
+ "ws": "^8.18.2"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/storage-js": {
+ "version": "2.104.0",
+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.104.0.tgz",
+ "integrity": "sha512-s2NHtuAWb9nldJ/fS62WnJE6edvCWn31rrO+FJKlAohs99qdVgtLegUReTU2H9WnZiQlVqaBtu386wt6/6lrRw==",
+ "license": "MIT",
+ "dependencies": {
+ "iceberg-js": "^0.8.1",
+ "tslib": "2.8.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@supabase/supabase-js": {
+ "version": "2.104.0",
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.104.0.tgz",
+ "integrity": "sha512-hILwhIjCB53G31jlHUe73NDEmrXudcjcYlVRuvNfEhzf0gyFQaFf7j6rd1UGmYZkFMOg//DFE8Iy9ZbNEgosVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/auth-js": "2.104.0",
+ "@supabase/functions-js": "2.104.0",
+ "@supabase/postgrest-js": "2.104.0",
+ "@supabase/realtime-js": "2.104.0",
+ "@supabase/storage-js": "2.104.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/d3": {
+ "version": "7.4.3",
+ "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz",
+ "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-array": "*",
+ "@types/d3-axis": "*",
+ "@types/d3-brush": "*",
+ "@types/d3-chord": "*",
+ "@types/d3-color": "*",
+ "@types/d3-contour": "*",
+ "@types/d3-delaunay": "*",
+ "@types/d3-dispatch": "*",
+ "@types/d3-drag": "*",
+ "@types/d3-dsv": "*",
+ "@types/d3-ease": "*",
+ "@types/d3-fetch": "*",
+ "@types/d3-force": "*",
+ "@types/d3-format": "*",
+ "@types/d3-geo": "*",
+ "@types/d3-hierarchy": "*",
+ "@types/d3-interpolate": "*",
+ "@types/d3-path": "*",
+ "@types/d3-polygon": "*",
+ "@types/d3-quadtree": "*",
+ "@types/d3-random": "*",
+ "@types/d3-scale": "*",
+ "@types/d3-scale-chromatic": "*",
+ "@types/d3-selection": "*",
+ "@types/d3-shape": "*",
+ "@types/d3-time": "*",
+ "@types/d3-time-format": "*",
+ "@types/d3-timer": "*",
+ "@types/d3-transition": "*",
+ "@types/d3-zoom": "*"
+ }
+ },
+ "node_modules/@types/d3-array": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz",
+ "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-axis": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz",
+ "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-brush": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz",
+ "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-chord": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz",
+ "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-color": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",
+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-contour": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz",
+ "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-array": "*",
+ "@types/geojson": "*"
+ }
+ },
+ "node_modules/@types/d3-delaunay": {
+ "version": "6.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz",
+ "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-dispatch": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz",
+ "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-drag": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz",
+ "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-dsv": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz",
+ "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-ease": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz",
+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-fetch": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz",
+ "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-dsv": "*"
+ }
+ },
+ "node_modules/@types/d3-force": {
+ "version": "3.0.10",
+ "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz",
+ "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-format": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz",
+ "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-geo": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz",
+ "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/geojson": "*"
+ }
+ },
+ "node_modules/@types/d3-hierarchy": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz",
+ "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-interpolate": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",
+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-color": "*"
+ }
+ },
+ "node_modules/@types/d3-path": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz",
+ "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-polygon": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz",
+ "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-quadtree": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz",
+ "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-random": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz",
+ "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-scale": {
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",
+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-time": "*"
+ }
+ },
+ "node_modules/@types/d3-scale-chromatic": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",
+ "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-selection": {
+ "version": "3.0.11",
+ "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz",
+ "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-shape": {
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz",
+ "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-path": "*"
+ }
+ },
+ "node_modules/@types/d3-time": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz",
+ "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-time-format": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz",
+ "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-timer": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz",
+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-transition": {
+ "version": "3.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz",
+ "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-zoom": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz",
+ "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-interpolate": "*",
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/geojson": {
+ "version": "7946.0.16",
+ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz",
+ "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "25.6.0",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",
+ "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~7.19.0"
+ }
+ },
+ "node_modules/@types/prop-types": {
+ "version": "15.7.15",
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",
+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "18.3.28",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz",
+ "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/prop-types": "*",
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "18.3.7",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^18.0.0"
+ }
+ },
+ "node_modules/@types/ws": {
+ "version": "8.18.1",
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
+ "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.58.1.tgz",
+ "integrity": "sha512-eSkwoemjo76bdXl2MYqtxg51HNwUSkWfODUOQ3PaTLZGh9uIWWFZIjyjaJnex7wXDu+TRx+ATsnSxdN9YWfRTQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.58.1",
+ "@typescript-eslint/type-utils": "8.58.1",
+ "@typescript-eslint/utils": "8.58.1",
+ "@typescript-eslint/visitor-keys": "8.58.1",
+ "ignore": "^7.0.5",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.58.1",
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.5",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",
+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.58.1.tgz",
+ "integrity": "sha512-gGkiNMPqerb2cJSVcruigx9eHBlLG14fSdPdqMoOcBfh+vvn4iCq2C8MzUB89PrxOXk0y3GZ1yIWb9aOzL93bw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.58.1",
+ "@typescript-eslint/types": "8.58.1",
+ "@typescript-eslint/typescript-estree": "8.58.1",
+ "@typescript-eslint/visitor-keys": "8.58.1",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.58.1.tgz",
+ "integrity": "sha512-gfQ8fk6cxhtptek+/8ZIqw8YrRW5048Gug8Ts5IYcMLCw18iUgrZAEY/D7s4hkI0FxEfGakKuPK/XUMPzPxi5g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.58.1",
+ "@typescript-eslint/types": "^8.58.1",
+ "debug": "^4.4.3"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.58.1.tgz",
+ "integrity": "sha512-TPYUEqJK6avLcEjumWsIuTpuYODTTDAtoMdt8ZZa93uWMTX13Nb8L5leSje1NluammvU+oI3QRr5lLXPgihX3w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.58.1",
+ "@typescript-eslint/visitor-keys": "8.58.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.58.1.tgz",
+ "integrity": "sha512-JAr2hOIct2Q+qk3G+8YFfqkqi7sC86uNryT+2i5HzMa2MPjw4qNFvtjnw1IiA1rP7QhNKVe21mSSLaSjwA1Olw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.58.1.tgz",
+ "integrity": "sha512-HUFxvTJVroT+0rXVJC7eD5zol6ID+Sn5npVPWoFuHGg9Ncq5Q4EYstqR+UOqaNRFXi5TYkpXXkLhoCHe3G0+7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.58.1",
+ "@typescript-eslint/typescript-estree": "8.58.1",
+ "@typescript-eslint/utils": "8.58.1",
+ "debug": "^4.4.3",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.58.1.tgz",
+ "integrity": "sha512-io/dV5Aw5ezwzfPBBWLoT+5QfVtP8O7q4Kftjn5azJ88bYyp/ZMCsyW1lpKK46EXJcaYMZ1JtYj+s/7TdzmQMw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.58.1.tgz",
+ "integrity": "sha512-w4w7WR7GHOjqqPnvAYbazq+Y5oS68b9CzasGtnd6jIeOIeKUzYzupGTB2T4LTPSv4d+WPeccbxuneTFHYgAAWg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.58.1",
+ "@typescript-eslint/tsconfig-utils": "8.58.1",
+ "@typescript-eslint/types": "8.58.1",
+ "@typescript-eslint/visitor-keys": "8.58.1",
+ "debug": "^4.4.3",
+ "minimatch": "^10.2.2",
+ "semver": "^7.7.3",
+ "tinyglobby": "^0.2.15",
+ "ts-api-utils": "^2.5.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz",
+ "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
+ "version": "10.2.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
+ "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.5"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
+ "version": "7.7.4",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.58.1.tgz",
+ "integrity": "sha512-Ln8R0tmWC7pTtLOzgJzYTXSCjJ9rDNHAqTaVONF4FEi2qwce8mD9iSOxOpLFFvWp/wBFlew0mjM1L1ihYWfBdQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.58.1",
+ "@typescript-eslint/types": "8.58.1",
+ "@typescript-eslint/typescript-estree": "8.58.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.58.1.tgz",
+ "integrity": "sha512-y+vH7QE8ycjoa0bWciFg7OpFcipUuem1ujhrdLtq1gByKwfbC7bPeKsiny9e0urg93DqwGcHey+bGRKCnF1nZQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.58.1",
+ "eslint-visitor-keys": "^5.0.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
+ "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-beta.27",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.17.0"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.16.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",
+ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.14.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",
+ "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/arg": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "license": "MIT"
+ },
+ "node_modules/autoprefixer": {
+ "version": "10.4.27",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.27.tgz",
+ "integrity": "sha512-NP9APE+tO+LuJGn7/9+cohklunJsXWiaWEfV3si4Gi/XHDwVNgkwr1J3RQYFIvPy76GmJ9/bW8vyoU1LcxwKHA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.28.1",
+ "caniuse-lite": "^1.0.30001774",
+ "fraction.js": "^5.3.4",
+ "picocolors": "^1.1.1",
+ "postcss-value-parser": "^4.2.0"
+ },
+ "bin": {
+ "autoprefixer": "bin/autoprefixer"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/axios": {
+ "version": "1.15.0",
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.0.tgz",
+ "integrity": "sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==",
+ "license": "MIT",
+ "dependencies": {
+ "follow-redirects": "^1.15.11",
+ "form-data": "^4.0.5",
+ "proxy-from-env": "^2.1.0"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.18",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.18.tgz",
+ "integrity": "sha512-VSnGQAOLtP5mib/DPyg2/t+Tlv65NTBz83BJBJvmLVHHuKJVaDOBvJJykiT5TR++em5nfAySPccDZDa4oSrn8A==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.14.tgz",
+ "integrity": "sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",
+ "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.10.12",
+ "caniuse-lite": "^1.0.30001782",
+ "electron-to-chromium": "^1.5.328",
+ "node-releases": "^2.0.36",
+ "update-browserslist-db": "^1.2.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase-css": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001787",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001787.tgz",
+ "integrity": "sha512-mNcrMN9KeI68u7muanUpEejSLghOKlVhRqS/Za2IeyGllJ9I9otGpR9g3nsw7n4W378TE/LyIteA0+/FOZm4Kg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/classcat": {
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz",
+ "integrity": "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==",
+ "license": "MIT"
+ },
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/d3-array": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
+ "license": "ISC",
+ "dependencies": {
+ "internmap": "1 - 2"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-color": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-dispatch": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz",
+ "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-drag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz",
+ "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-dispatch": "1 - 3",
+ "d3-selection": "3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-ease": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-format": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz",
+ "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-scale": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.10.0 - 3",
+ "d3-format": "1 - 3",
+ "d3-interpolate": "1.2.0 - 3",
+ "d3-time": "2.1.1 - 3",
+ "d3-time-format": "2 - 4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-selection": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz",
+ "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-path": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-time": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-timer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-transition": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz",
+ "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3",
+ "d3-dispatch": "1 - 3",
+ "d3-ease": "1 - 3",
+ "d3-interpolate": "1 - 3",
+ "d3-timer": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "peerDependencies": {
+ "d3-selection": "2 - 3"
+ }
+ },
+ "node_modules/d3-zoom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz",
+ "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-dispatch": "1 - 3",
+ "d3-drag": "2 - 3",
+ "d3-interpolate": "1 - 3",
+ "d3-selection": "2 - 3",
+ "d3-transition": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js-light": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz",
+ "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==",
+ "license": "MIT"
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/didyoumean": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/dlv": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dom-helpers": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",
+ "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.8.7",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.335",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.335.tgz",
+ "integrity": "sha512-q9n5T4BR4Xwa2cwbrwcsDJtHD/enpQ5S1xF1IAtdqf5AAgqDFmR/aakqH3ChFdqd/QXJhS3rnnXFtexU7rax6Q==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.6",
+ "has-tostringtag": "^1.0.2",
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.21.5",
+ "@esbuild/android-arm": "0.21.5",
+ "@esbuild/android-arm64": "0.21.5",
+ "@esbuild/android-x64": "0.21.5",
+ "@esbuild/darwin-arm64": "0.21.5",
+ "@esbuild/darwin-x64": "0.21.5",
+ "@esbuild/freebsd-arm64": "0.21.5",
+ "@esbuild/freebsd-x64": "0.21.5",
+ "@esbuild/linux-arm": "0.21.5",
+ "@esbuild/linux-arm64": "0.21.5",
+ "@esbuild/linux-ia32": "0.21.5",
+ "@esbuild/linux-loong64": "0.21.5",
+ "@esbuild/linux-mips64el": "0.21.5",
+ "@esbuild/linux-ppc64": "0.21.5",
+ "@esbuild/linux-riscv64": "0.21.5",
+ "@esbuild/linux-s390x": "0.21.5",
+ "@esbuild/linux-x64": "0.21.5",
+ "@esbuild/netbsd-x64": "0.21.5",
+ "@esbuild/openbsd-x64": "0.21.5",
+ "@esbuild/sunos-x64": "0.21.5",
+ "@esbuild/win32-arm64": "0.21.5",
+ "@esbuild/win32-ia32": "0.21.5",
+ "@esbuild/win32-x64": "0.21.5"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.39.4",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz",
+ "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.8.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.2",
+ "@eslint/config-helpers": "^0.4.2",
+ "@eslint/core": "^0.17.0",
+ "@eslint/eslintrc": "^3.3.5",
+ "@eslint/js": "9.39.4",
+ "@eslint/plugin-kit": "^0.4.1",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "ajv": "^6.14.0",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.5",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz",
+ "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-react-refresh": {
+ "version": "0.4.26",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz",
+ "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "eslint": ">=8.40"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",
+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/eventemitter3": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
+ "license": "MIT"
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-equals": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.0.tgz",
+ "integrity": "sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.20.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",
+ "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/follow-redirects": {
+ "version": "1.15.11",
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
+ "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://github.com/sponsors/RubenVerborgh"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ },
+ "peerDependenciesMeta": {
+ "debug": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/form-data": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
+ "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "es-set-tostringtag": "^2.1.0",
+ "hasown": "^2.0.2",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fraction.js": {
+ "version": "5.3.4",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",
+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/rawify"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/globals": {
+ "version": "15.15.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz",
+ "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "license": "MIT",
+ "dependencies": {
+ "has-symbols": "^1.0.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/iceberg-js": {
+ "version": "0.8.1",
+ "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz",
+ "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/internmap": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",
+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.16.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/jiti": {
+ "version": "1.21.7",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lilconfig": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.18.1",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
+ "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/lucide-react": {
+ "version": "0.453.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.453.0.tgz",
+ "integrity": "sha512-kL+RGZCcJi9BvJtzg2kshO192Ddy9hv3ij+cPrVPWSRzgCWCVazoQJxOjAwgK53NomL07HB7GPHW120FimjNhQ==",
+ "license": "ISC",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.37",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.37.tgz",
+ "integrity": "sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-hash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.9",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.9.tgz",
+ "integrity": "sha512-7a70Nsot+EMX9fFU3064K/kdHWZqGVY+BADLyXc8Dfv+mTLLVl6JzJpPaCZ2kQL9gIJvKXSLMHhqdRRjwQeFtw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-import": {
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss-value-parser": "^4.0.0",
+ "read-cache": "^1.0.0",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.0.0"
+ }
+ },
+ "node_modules/postcss-js": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",
+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "camelcase-css": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12 || ^14 || >= 16"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.21"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",
+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "lilconfig": "^3.1.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "jiti": ">=1.21.0",
+ "postcss": ">=8.0.9",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-nested": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "postcss-selector-parser": "^6.1.1"
+ },
+ "engines": {
+ "node": ">=12.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.14"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
+ "node_modules/proxy-from-env": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
+ "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
+ "license": "MIT"
+ },
+ "node_modules/react-refresh": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",
+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "6.30.3",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.3.tgz",
+ "integrity": "sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw==",
+ "license": "MIT",
+ "dependencies": {
+ "@remix-run/router": "1.23.2"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8"
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "6.30.3",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.3.tgz",
+ "integrity": "sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag==",
+ "license": "MIT",
+ "dependencies": {
+ "@remix-run/router": "1.23.2",
+ "react-router": "6.30.3"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8",
+ "react-dom": ">=16.8"
+ }
+ },
+ "node_modules/react-smooth": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/react-smooth/-/react-smooth-4.0.4.tgz",
+ "integrity": "sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-equals": "^5.0.1",
+ "prop-types": "^15.8.1",
+ "react-transition-group": "^4.4.5"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/react-transition-group": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
+ "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/runtime": "^7.5.5",
+ "dom-helpers": "^5.0.1",
+ "loose-envify": "^1.4.0",
+ "prop-types": "^15.6.2"
+ },
+ "peerDependencies": {
+ "react": ">=16.6.0",
+ "react-dom": ">=16.6.0"
+ }
+ },
+ "node_modules/reactflow": {
+ "version": "11.11.4",
+ "resolved": "https://registry.npmjs.org/reactflow/-/reactflow-11.11.4.tgz",
+ "integrity": "sha512-70FOtJkUWH3BAOsN+LU9lCrKoKbtOPnz2uq0CV2PLdNSwxTXOhCbsZr50GmZ+Rtw3jx8Uv7/vBFtCGixLfd4Og==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/background": "11.3.14",
+ "@reactflow/controls": "11.2.14",
+ "@reactflow/core": "11.11.4",
+ "@reactflow/minimap": "11.7.14",
+ "@reactflow/node-resizer": "2.2.14",
+ "@reactflow/node-toolbar": "1.3.14"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/read-cache": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^2.3.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/recharts": {
+ "version": "2.15.4",
+ "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.4.tgz",
+ "integrity": "sha512-UT/q6fwS3c1dHbXv2uFgYJ9BMFHu3fwnd7AYZaEQhXuYQ4hgsxLvsUXzGdKeZrW5xopzDCvuA2N41WJ88I7zIw==",
+ "license": "MIT",
+ "dependencies": {
+ "clsx": "^2.0.0",
+ "eventemitter3": "^4.0.1",
+ "lodash": "^4.17.21",
+ "react-is": "^18.3.1",
+ "react-smooth": "^4.0.4",
+ "recharts-scale": "^0.4.4",
+ "tiny-invariant": "^1.3.1",
+ "victory-vendor": "^36.6.8"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/recharts-scale": {
+ "version": "0.4.5",
+ "resolved": "https://registry.npmjs.org/recharts-scale/-/recharts-scale-0.4.5.tgz",
+ "integrity": "sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==",
+ "license": "MIT",
+ "dependencies": {
+ "decimal.js-light": "^2.4.1"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.12",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz",
+ "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.16.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.60.1",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.1.tgz",
+ "integrity": "sha512-VmtB2rFU/GroZ4oL8+ZqXgSA38O6GR8KSIvWmEFv63pQ0G6KaBH9s07PO8XTXP4vI+3UJUEypOfjkGfmSBBR0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.8"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.60.1",
+ "@rollup/rollup-android-arm64": "4.60.1",
+ "@rollup/rollup-darwin-arm64": "4.60.1",
+ "@rollup/rollup-darwin-x64": "4.60.1",
+ "@rollup/rollup-freebsd-arm64": "4.60.1",
+ "@rollup/rollup-freebsd-x64": "4.60.1",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.1",
+ "@rollup/rollup-linux-arm-musleabihf": "4.60.1",
+ "@rollup/rollup-linux-arm64-gnu": "4.60.1",
+ "@rollup/rollup-linux-arm64-musl": "4.60.1",
+ "@rollup/rollup-linux-loong64-gnu": "4.60.1",
+ "@rollup/rollup-linux-loong64-musl": "4.60.1",
+ "@rollup/rollup-linux-ppc64-gnu": "4.60.1",
+ "@rollup/rollup-linux-ppc64-musl": "4.60.1",
+ "@rollup/rollup-linux-riscv64-gnu": "4.60.1",
+ "@rollup/rollup-linux-riscv64-musl": "4.60.1",
+ "@rollup/rollup-linux-s390x-gnu": "4.60.1",
+ "@rollup/rollup-linux-x64-gnu": "4.60.1",
+ "@rollup/rollup-linux-x64-musl": "4.60.1",
+ "@rollup/rollup-openbsd-x64": "4.60.1",
+ "@rollup/rollup-openharmony-arm64": "4.60.1",
+ "@rollup/rollup-win32-arm64-msvc": "4.60.1",
+ "@rollup/rollup-win32-ia32-msvc": "4.60.1",
+ "@rollup/rollup-win32-x64-gnu": "4.60.1",
+ "@rollup/rollup-win32-x64-msvc": "4.60.1",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/sucrase": {
+ "version": "3.35.1",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.2",
+ "commander": "^4.0.0",
+ "lines-and-columns": "^1.1.6",
+ "mz": "^2.7.0",
+ "pirates": "^4.0.1",
+ "tinyglobby": "^0.2.11",
+ "ts-interface-checker": "^0.1.9"
+ },
+ "bin": {
+ "sucrase": "bin/sucrase",
+ "sucrase-node": "bin/sucrase-node"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tailwind-merge": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.6.1.tgz",
+ "integrity": "sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/dcastil"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "3.4.19",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",
+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "arg": "^5.0.2",
+ "chokidar": "^3.6.0",
+ "didyoumean": "^1.2.2",
+ "dlv": "^1.1.3",
+ "fast-glob": "^3.3.2",
+ "glob-parent": "^6.0.2",
+ "is-glob": "^4.0.3",
+ "jiti": "^1.21.7",
+ "lilconfig": "^3.1.3",
+ "micromatch": "^4.0.8",
+ "normalize-path": "^3.0.0",
+ "object-hash": "^3.0.0",
+ "picocolors": "^1.1.1",
+ "postcss": "^8.4.47",
+ "postcss-import": "^15.1.0",
+ "postcss-js": "^4.0.1",
+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",
+ "postcss-nested": "^6.2.0",
+ "postcss-selector-parser": "^6.1.2",
+ "resolve": "^1.22.8",
+ "sucrase": "^3.35.0"
+ },
+ "bin": {
+ "tailwind": "lib/cli.js",
+ "tailwindcss": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.16",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
+ "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyglobby/node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tinyglobby/node_modules/picomatch": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/ts-api-utils": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",
+ "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/ts-interface-checker": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/tslib": {
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.6.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
+ "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.58.1",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.58.1.tgz",
+ "integrity": "sha512-gf6/oHChByg9HJvhMO1iBexJh12AqqTfnuxscMDOVqfJW3htsdRJI/GfPpHTTcyeB8cSTUY2JcZmVgoyPqcrDg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.58.1",
+ "@typescript-eslint/parser": "8.58.1",
+ "@typescript-eslint/typescript-estree": "8.58.1",
+ "@typescript-eslint/utils": "8.58.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
+ "typescript": ">=4.8.4 <6.1.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "7.19.2",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz",
+ "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",
+ "license": "MIT"
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",
+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/victory-vendor": {
+ "version": "36.9.2",
+ "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-36.9.2.tgz",
+ "integrity": "sha512-PnpQQMuxlwYdocC8fIJqVXvkeViHYzotI+NJrCuav0ZYFoq912ZHBk3mCeuj+5/VpodOjPe1z0Fk2ihgzlXqjQ==",
+ "license": "MIT AND ISC",
+ "dependencies": {
+ "@types/d3-array": "^3.0.3",
+ "@types/d3-ease": "^3.0.0",
+ "@types/d3-interpolate": "^3.0.1",
+ "@types/d3-scale": "^4.0.2",
+ "@types/d3-shape": "^3.1.0",
+ "@types/d3-time": "^3.0.0",
+ "@types/d3-timer": "^3.0.0",
+ "d3-array": "^3.1.6",
+ "d3-ease": "^3.0.1",
+ "d3-interpolate": "^3.0.1",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.1.0",
+ "d3-time": "^3.0.0",
+ "d3-timer": "^3.0.1"
+ }
+ },
+ "node_modules/vite": {
+ "version": "5.4.21",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.21.3",
+ "postcss": "^8.4.43",
+ "rollup": "^4.20.0"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ws": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",
+ "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zustand": {
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.12.tgz",
+ "integrity": "sha512-i77ae3aZq4dhMlRhJVCYgMLKuSiZAaUPAct2AksxQ+gOtimhGMdXljRT21P5BNpeT4kXlLIckvkPM029OljD7g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18.0.0",
+ "immer": ">=9.0.6",
+ "react": ">=18.0.0",
+ "use-sync-external-store": ">=1.2.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "use-sync-external-store": {
+ "optional": true
+ }
+ }
+ }
+ }
+}
diff --git a/frontend/package.json b/frontend/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..7c8fc6d6df19172ee7f82eca5b4dfd2f423cfa1d
--- /dev/null
+++ b/frontend/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "support-agent-frontend",
+ "private": true,
+ "version": "0.1.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "lint": "eslint .",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@supabase/supabase-js": "^2.104.0",
+ "axios": "^1.7.7",
+ "clsx": "^2.1.1",
+ "lucide-react": "^0.453.0",
+ "react": "^18.3.1",
+ "react-dom": "^18.3.1",
+ "react-router-dom": "^6.27.0",
+ "reactflow": "^11.11.4",
+ "recharts": "^2.13.0",
+ "tailwind-merge": "^2.5.4",
+ "zustand": "^5.0.0"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.13.0",
+ "@types/react": "^18.3.11",
+ "@types/react-dom": "^18.3.1",
+ "@vitejs/plugin-react": "^4.3.3",
+ "autoprefixer": "^10.4.20",
+ "eslint": "^9.13.0",
+ "eslint-plugin-react-hooks": "^5.0.0",
+ "eslint-plugin-react-refresh": "^0.4.13",
+ "globals": "^15.11.0",
+ "postcss": "^8.4.47",
+ "tailwindcss": "^3.4.14",
+ "typescript": "~5.6.2",
+ "typescript-eslint": "^8.10.0",
+ "vite": "^5.4.9"
+ }
+}
diff --git a/frontend/postcss.config.js b/frontend/postcss.config.js
new file mode 100644
index 0000000000000000000000000000000000000000..2e7af2b7f1a6f391da1631d93968a9d487ba977d
--- /dev/null
+++ b/frontend/postcss.config.js
@@ -0,0 +1,6 @@
+export default {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+}
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..42accdac694cfe5df0b041266e79fb5456cb1f75
--- /dev/null
+++ b/frontend/src/App.tsx
@@ -0,0 +1,31 @@
+import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
+import Sidebar from './components/layout/Sidebar';
+import Dashboard from './pages/Dashboard';
+import DetailedView from './pages/DetailedView';
+import Settings from './pages/Settings';
+import Compose from './pages/Compose';
+import Inbox from './pages/Inbox';
+import ReviewQueue from './pages/ReviewQueue';
+
+function App() {
+ return (
+
+
+
+
+
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+
+
+
+
+ );
+}
+
+export default App;
diff --git a/frontend/src/components/dashboard/RecentActivityTable.tsx b/frontend/src/components/dashboard/RecentActivityTable.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..77b3e82e7a37be96c7d6d1d7c473bfa26c21f647
--- /dev/null
+++ b/frontend/src/components/dashboard/RecentActivityTable.tsx
@@ -0,0 +1,68 @@
+import { Link } from 'react-router-dom';
+import { Ticket } from '../../store';
+
+interface Props {
+ tickets: Ticket[];
+}
+
+export default function RecentActivityTable({ tickets }: Props) {
+ return (
+
+
+
Recent Activity
+
+
+
+
+
+ Ticket ID
+ Sender
+ Subject
+ Category
+ Status
+
+
+
+ {tickets.map((t) => (
+
+
+
+ #{t.ticket_id}
+
+
+ {t.sender || 'Unknown'}
+ {t.subject || '(no subject)'}
+
+
+ {t.category}
+
+
+
+
+ {t.needs_escalation ? 'ESCALATED' : t.status.toUpperCase()}
+
+
+
+ ))}
+ {tickets.length === 0 && (
+
+
+ No recent activity found.
+
+
+ )}
+
+
+
+
+ );
+}
diff --git a/frontend/src/components/dashboard/WorkflowMonitor.tsx b/frontend/src/components/dashboard/WorkflowMonitor.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..7791366b33139204d4873b5b04d1fba0650328f8
--- /dev/null
+++ b/frontend/src/components/dashboard/WorkflowMonitor.tsx
@@ -0,0 +1,68 @@
+import { useEffect, useState } from 'react';
+import ReactFlow, { Background, Controls, Node, Edge } from 'reactflow';
+import 'reactflow/dist/style.css';
+
+const initialNodes: Node[] = [
+ { id: 'start', position: { x: 50, y: 150 }, data: { label: 'π§ Incoming Email' }, type: 'input' },
+ { id: 'classifier', position: { x: 250, y: 150 }, data: { label: 'π§ Classifier' } },
+ { id: 'retriever', position: { x: 450, y: 150 }, data: { label: 'π Retriever' } },
+ { id: 'responder', position: { x: 650, y: 150 }, data: { label: 'βοΈ Responder' } },
+ { id: 'escalation', position: { x: 450, y: 250 }, data: { label: 'β οΈ Escalation' }, type: 'output' },
+];
+
+const initialEdges: Edge[] = [
+ { id: 'e1', source: 'start', target: 'classifier', animated: true },
+ { id: 'e2', source: 'classifier', target: 'retriever', animated: true },
+ { id: 'e3', source: 'retriever', target: 'responder', animated: true },
+ { id: 'e4', source: 'classifier', target: 'escalation', animated: false, style: { stroke: '#EF4444' } },
+];
+
+export default function WorkflowMonitor() {
+ const [nodes, setNodes] = useState(initialNodes);
+ const [edges] = useState(initialEdges);
+
+ // Simulate active node pulsing
+ useEffect(() => {
+ const interval = setInterval(() => {
+ setNodes((nds) =>
+ nds.map((n) => {
+ if (n.id === 'retriever' || n.id === 'responder') {
+ // Fake active pulse
+ return {
+ ...n,
+ style: {
+ background: '#212936',
+ color: '#D1D5DB',
+ border: '2px solid #06B6D4',
+ boxShadow: '0 0 15px rgba(6, 182, 212, 0.4)',
+ borderRadius: '12px',
+ padding: '12px',
+ }
+ };
+ }
+ if (n.id === 'escalation') {
+ return {
+ ...n,
+ style: { background: '#212936', color: '#D1D5DB', border: '2px solid #EF4444', borderRadius: '12px', padding: '12px' }
+ };
+ }
+ return {
+ ...n,
+ style: { background: '#212936', color: '#D1D5DB', border: '1px solid #374151', borderRadius: '12px', padding: '12px' }
+ };
+ })
+ );
+ }, 2000);
+ return () => clearInterval(interval);
+ }, []);
+
+ return (
+
+
Agentic Workflow Monitor
+
+
+
+
+
+ );
+}
diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..fee49fa6bd60a54c34d880026499ce1e6fbb5c17
--- /dev/null
+++ b/frontend/src/components/layout/Sidebar.tsx
@@ -0,0 +1,72 @@
+import { NavLink } from "react-router-dom";
+import {
+ LayoutDashboard,
+ Inbox,
+ MailOpen,
+ ListChecks,
+ Settings,
+ Bot,
+} from "lucide-react";
+import ThemeToggle from "./ThemeToggle";
+
+export default function Sidebar() {
+ const routes = [
+ { name: "Workflow Monitor", path: "/dashboard", icon: LayoutDashboard },
+ { name: "Compose Email", path: "/compose", icon: MailOpen },
+ { name: "Email Inbox", path: "/inbox", icon: Inbox },
+ { name: "Review Queue", path: "/review", icon: ListChecks },
+ { name: "Configuration", path: "/settings", icon: Settings },
+ ];
+
+ return (
+
+ );
+}
diff --git a/frontend/src/components/layout/ThemeToggle.tsx b/frontend/src/components/layout/ThemeToggle.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..966d7eb410b0b63f64ce191cbb3648ff91f60124
--- /dev/null
+++ b/frontend/src/components/layout/ThemeToggle.tsx
@@ -0,0 +1,22 @@
+import { useThemeStore } from '../../store';
+import { Moon, Sun } from 'lucide-react';
+
+export default function ThemeToggle() {
+ const { theme, toggleTheme } = useThemeStore();
+
+ return (
+
+ {theme === 'dark' ? (
+
+ ) : (
+
+ )}
+
+ );
+}
diff --git a/frontend/src/components/shared/KpiCard.tsx b/frontend/src/components/shared/KpiCard.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..32bc8d3af83be57905605ce3e41eeb14f3770dde
--- /dev/null
+++ b/frontend/src/components/shared/KpiCard.tsx
@@ -0,0 +1,65 @@
+import { useMemo } from 'react';
+import { LineChart, Line, ResponsiveContainer } from 'recharts';
+
+interface KpiCardProps {
+ title: string;
+ value: string | number;
+ change: string;
+ trend: 'up' | 'down';
+ type: 'line' | 'progress' | 'gauge';
+ rawData?: number;
+}
+
+export default function KpiCard({ title, value, change, trend, type, rawData }: KpiCardProps) {
+ // Memoize sparkline data so it doesn't regenerate on every render
+ const sparklineData = useMemo(
+ () => Array.from({ length: 15 }, () => ({ val: Math.floor(Math.random() * 50) + 10 })),
+ []
+ );
+
+ const trendColor = trend === 'up' ? 'text-accentCyan' : 'text-accentRed';
+
+ return (
+
+
+
{title}
+
+ {change}
+
+
+
+
+
{value}
+
+
+ {type === 'line' && (
+
+
+
+
+
+ )}
+
+ {type === 'progress' && rawData !== undefined && (
+
+ )}
+
+ {type === 'gauge' && rawData !== undefined && (
+
+ )}
+
+
+
+ );
+}
diff --git a/frontend/src/index.css b/frontend/src/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ce6e0e78bf2a545ae44f6288a27bfc8ed56fbaa7
--- /dev/null
+++ b/frontend/src/index.css
@@ -0,0 +1,18 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ body {
+ @apply antialiased transition-colors duration-200;
+ }
+}
+
+/* React Flow custom node styles */
+.react-flow__node {
+ @apply rounded-xl border transition-all;
+}
+
+.react-flow__handle {
+ @apply w-2 h-2 rounded-full border-none;
+}
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..54c4caab8277a595b461be205dfdbeca1357fe2f
--- /dev/null
+++ b/frontend/src/main.tsx
@@ -0,0 +1,15 @@
+import { StrictMode } from 'react';
+import { createRoot } from 'react-dom/client';
+import axios from 'axios';
+import App from './App.tsx';
+import './index.css';
+
+// Global API configuration
+axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || '';
+axios.defaults.headers.common['X-API-Token'] = import.meta.env.VITE_API_TOKEN || '';
+
+createRoot(document.getElementById('root')!).render(
+
+
+ ,
+);
diff --git a/frontend/src/pages/Compose.tsx b/frontend/src/pages/Compose.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..8a60c8a2ba3b0e15428aff561cc7b061fceb103a
--- /dev/null
+++ b/frontend/src/pages/Compose.tsx
@@ -0,0 +1,139 @@
+import { useState } from 'react';
+import { useNavigate } from 'react-router-dom';
+import axios from 'axios';
+import { Rocket, ClipboardList } from 'lucide-react';
+
+const SAMPLES = [
+ {
+ sender: 'jane.smith@company.com',
+ subject: 'Double charge on my subscription',
+ body: 'Hi,\n\nI just checked my bank statement and it looks like I was charged twice for my Pro subscription this month β once on April 1st and again on April 3rd.\n\nThe amounts are $29.99 each. Can you please look into this and process a refund for the duplicate charge?\n\nThank you,\nJane'
+ },
+ {
+ sender: 'dev.team@startup.io',
+ subject: 'API returning 401 errors after key rotation',
+ body: 'Hello support,\n\nWe rotated our API keys yesterday following your documentation, but all our requests are now returning 401 Unauthorized errors.\n\nWe\'ve confirmed the new key is being sent in the Authorization header correctly. Our integration was working fine before the rotation.\n\nCan you help us debug this? It\'s blocking our production deployment.\n\nBest,\nMike from DevOps'
+ },
+ {
+ sender: 'alex.johnson@email.com',
+ subject: 'Cannot reset my password',
+ body: 'Hi there,\n\nI\'ve been trying to reset my password for the past hour but I never receive the reset email. I\'ve checked my spam folder and everything.\n\nMy account email is alex.johnson@email.com. I need to access my account urgently for a deadline.\n\nPlease help!\nAlex'
+ },
+];
+
+export default function Compose() {
+ const navigate = useNavigate();
+ const [sampleIndex, setSampleIndex] = useState(0);
+ const [loading, setLoading] = useState(false);
+
+ const [formData, setFormData] = useState({
+ sender: '',
+ subject: '',
+ body: ''
+ });
+
+ const handleLoadSample = () => {
+ const sample = SAMPLES[sampleIndex % SAMPLES.length];
+ setFormData(sample);
+ setSampleIndex(prev => prev + 1);
+ };
+
+ const handleSubmit = async (e: React.FormEvent) => {
+ e.preventDefault();
+ if (!formData.sender || !formData.subject || !formData.body) return;
+
+ setLoading(true);
+ try {
+ const response = await axios.post('/api/v1/process-email', formData);
+ // Navigate to DetailedView to watch the nodes
+ navigate(`/ticket/${response.data.ticket_id}`);
+ } catch (err) {
+ console.error(err);
+ alert('Failed to process email. Check console.');
+ setLoading(false);
+ }
+ };
+
+ return (
+
+
+
+
+
+
+ π§ New Test Email
+
+
+
+
+
+
+ );
+}
diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..5b583de478aa1f9dbc85727518c5371c95919216
--- /dev/null
+++ b/frontend/src/pages/Dashboard.tsx
@@ -0,0 +1,174 @@
+import { useEffect } from "react";
+import axios from "axios";
+import { RefreshCw } from "lucide-react";
+import { useAppStore } from "../store";
+import KpiCard from "../components/shared/KpiCard";
+import WorkflowMonitor from "../components/dashboard/WorkflowMonitor";
+import RecentActivityTable from "../components/dashboard/RecentActivityTable";
+
+export default function Dashboard() {
+ const { kpis, setKpis, recentTickets, setRecentTickets } = useAppStore();
+
+ useEffect(() => {
+ // Fetch dashboard data
+ const fetchData = async () => {
+ try {
+ const [kpiRes, ticketsRes] = await Promise.all([
+ axios.get("/api/v1/kpis"),
+ axios.get("/api/v1/emails/recent?limit=8"),
+ ]);
+ setKpis(kpiRes.data);
+ setRecentTickets(ticketsRes.data?.tickets ?? []);
+ } catch (error) {
+ console.error("Failed to fetch dashboard data:", error);
+ }
+ };
+ fetchData();
+ const interval = setInterval(fetchData, 3000);
+ return () => clearInterval(interval);
+ }, [setKpis, setRecentTickets]);
+
+ const handleManualRefresh = () => {
+ axios
+ .get("/api/v1/kpis")
+ .then((res) => setKpis(res.data))
+ .catch((error) => console.error("Failed to refresh KPIs:", error));
+ axios
+ .get("/api/v1/emails/recent?limit=8")
+ .then((res) => setRecentTickets(res.data?.tickets ?? []))
+ .catch((error) => console.error("Failed to refresh tickets:", error));
+ };
+
+ return (
+
+
+
+ {/* KPI Cards */}
+
+
+
+
+
+
+
+
+ {/* Left Column: Flow & System Health */}
+
+
+ {/* System Health Component Inline */}
+
+
+ Agent Quality Health
+
+
+
+
+
+
+ Classifier Confidence
+
+
+ {kpis?.health?.classifier_confidence || "0"}%
+
+
+
+
+
+
+
+
+ Retriever Precision
+
+
+ {kpis?.health?.retriever_precision || "0"}%
+
+
+
+
+
+
+
+
+ Responder Quality
+
+
+ {kpis?.health?.responder_quality || "0"}%
+
+
+
+
+
+
+
+
+ {/* Right Column: Table */}
+
+
+
+ );
+}
diff --git a/frontend/src/pages/DetailedView.tsx b/frontend/src/pages/DetailedView.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..392bd2283ed5cc5ea10dc8d80a41a60b6044f05b
--- /dev/null
+++ b/frontend/src/pages/DetailedView.tsx
@@ -0,0 +1,191 @@
+import { useState, useEffect } from 'react';
+import { useParams, useNavigate } from 'react-router-dom';
+import axios from 'axios';
+import { Check, X, ArrowLeft, RefreshCw, Send, AlertTriangle } from 'lucide-react';
+
+export default function DetailedView() {
+ const { id } = useParams();
+ const navigate = useNavigate();
+ const [ticket, setTicket] = useState(null);
+ const [loading, setLoading] = useState(true);
+
+ // Fallback to latest pending ticket if no ID provided in the route (e.g., clicking on sidebar specific "review queue" equivalent)
+ const isRecentPath = id === 'recent';
+
+ useEffect(() => {
+ const fetchTicket = async () => {
+ setLoading(true);
+ try {
+ if (isRecentPath) {
+ const res = await axios.get('/api/v1/emails/recent?limit=1');
+ if (res.data.tickets.length > 0) setTicket(res.data.tickets[0]);
+ } else {
+ const res = await axios.get(`/api/v1/emails/${id}`);
+ setTicket(res.data);
+ }
+ } catch (e) {
+ console.error(e);
+ } finally {
+ setLoading(false);
+ }
+ };
+ fetchTicket();
+ }, [id, isRecentPath]);
+
+ if (loading) {
+ return
;
+ }
+
+ if (!ticket) {
+ return No ticket found or review queue empty.
;
+ }
+
+ const handleAction = async (action: 'approve' | 'reject') => {
+ try {
+ await axios.post(`/api/v1/review/${ticket.ticket_id}?action=${action}`);
+ navigate('/dashboard');
+ } catch (e) {
+ alert("Failed to process action. Ticket might not be pending review.");
+ }
+ };
+
+ return (
+
+
+
navigate('/dashboard')} className="p-2 bg-lightBg dark:bg-darkCard rounded-xl hover:bg-gray-100 dark:hover:bg-gray-800 transition">
+
+
+
+
Ticket Analysis #{ticket.ticket_id}
+
+
+
+
+ {/* Left Pane: Email Input */}
+
+
+
Input Email
+
+
+
+
From
+
{ticket.sender || 'Unknown'}
+
+
+
Subject
+
{ticket.subject || 'No Subject'}
+
+
+
Body
+
+ {ticket.body || ''}
+
+
+
+
+
+ {/* Center Pane: AI Processing Log (Vertical Flow) */}
+
+
+
AI Processing Log
+
+
+
+ {/* Flow Timeline */}
+
+
+
+
+
Classifier
+
+
+ Predicted Category
+ {ticket.category}
+
+
+ Confidence
+ {ticket.confidence * 100}%
+
+
+
+
+
+
+
Retriever
+
+
Knowledge Base Chunks Retrieved:
+
+ {ticket.context?.map((chunk: string, i: number) => (
+ {chunk.substring(0, 60)}...
+ ))}
+ {(!ticket.context || ticket.context.length === 0) && No specific context fetched. }
+
+
+
+
+
+
+
Escalation Evaluation
+
+ {ticket.needs_escalation ? (
+
+
Escalation Triggered
+
{ticket.escalation_reason}
+
+ ) : (
+
+ Auto-draft Approved by Guards
+
+ )}
+
+
+
+
+
+
+
+ {/* Right Pane: AI Draft & Action (Escalation Focus) */}
+
+
+
+
Draft Review & Action
+
+ {ticket.status.replace('_', ' ')}
+
+
+
+
+
+ {ticket.draft_response || ticket.final_response || No draft available. }
+
+
+
+
+ {ticket.status === 'pending_review' ? (
+
+ handleAction('approve')}
+ className="flex-1 flex items-center justify-center gap-2 bg-accentGreen text-darkBg py-3 rounded-lg font-bold hover:bg-opacity-90 transition"
+ >
+ Send Draft (Auto)
+
+ handleAction('reject')}
+ className="flex-1 flex items-center justify-center gap-2 border border-accentRed text-accentRed py-3 rounded-lg font-bold hover:bg-accentRed/10 transition"
+ >
+ Reject
+
+
+ ) : (
+
+ Action already taken on this ticket.
+
+ )}
+
+
+
+
+
+
+ );
+}
diff --git a/frontend/src/pages/Inbox.tsx b/frontend/src/pages/Inbox.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..0174236b660614b91f3a5e566d5ca77a3117591e
--- /dev/null
+++ b/frontend/src/pages/Inbox.tsx
@@ -0,0 +1,161 @@
+import { useState, useEffect } from 'react';
+import { useNavigate } from 'react-router-dom';
+import axios from 'axios';
+import { Search, Inbox as InboxIcon, RefreshCw } from 'lucide-react';
+import { Ticket } from '../store';
+
+// Helper to format badges based on the theme definitions
+const getCategoryBadgeColor = (cat: string) => {
+ const category = cat.toLowerCase();
+ if (category === 'billing') return 'bg-amber-500/10 text-amber-500 border-amber-500/20';
+ if (category === 'technical') return 'bg-blue-500/10 text-blue-500 border-blue-500/20';
+ if (category === 'account') return 'bg-purple-500/10 text-purple-500 border-purple-500/20';
+ return 'bg-gray-500/10 text-gray-500 border-gray-500/20';
+};
+
+const getStatusBadgeColor = (status: string, needsEscalation: boolean) => {
+ if (needsEscalation && status === 'pending_review') return 'bg-accentRed/10 text-accentRed border-accentRed/20 shadow-glow-red';
+ if (status === 'rejected') return 'bg-accentRed/10 text-accentRed border-accentRed/20';
+ if (status === 'sent' || status === 'approved') return 'bg-accentGreen/10 text-accentGreen border-accentGreen/20';
+ return 'bg-gray-500/10 text-gray-500 border-gray-500/20';
+};
+
+function formatTime(isoString: string) {
+ if (!isoString) return '';
+ const date = new Date(isoString);
+ const now = new Date();
+ const diffMs = now.getTime() - date.getTime();
+ const diffMins = Math.floor(diffMs / 60000);
+
+ if (diffMins < 1) return 'Just now';
+ if (diffMins < 60) return `${diffMins}m ago`;
+
+ const diffHours = Math.floor(diffMins / 60);
+ if (diffHours < 24) return `${diffHours}h ago`;
+
+ return date.toLocaleDateString();
+}
+
+export default function Inbox() {
+ const navigate = useNavigate();
+ const [tickets, setTickets] = useState([]);
+ const [filteredTickets, setFilteredTickets] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [search, setSearch] = useState('');
+
+ const fetchEmails = async () => {
+ setLoading(true);
+ try {
+ const res = await axios.get('/api/v1/emails');
+ setTickets(res.data.tickets || []);
+ setFilteredTickets(res.data.tickets || []);
+ } catch (err) {
+ console.error('Failed to fetch emails', err);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ useEffect(() => {
+ fetchEmails();
+ }, []);
+
+ useEffect(() => {
+ const q = search.toLowerCase();
+ setFilteredTickets(
+ tickets.filter(t =>
+ t.sender?.toLowerCase().includes(q) ||
+ t.subject?.toLowerCase().includes(q) ||
+ t.category.toLowerCase().includes(q)
+ )
+ );
+ }, [search, tickets]);
+
+ return (
+
+
+
+
+ {loading ? (
+
+
+
+ ) : filteredTickets.length === 0 ? (
+
+
+
No emails found
+
We couldn't find any tickets matching your search.
+
+ ) : (
+
+
+
+
+ Sender
+ Subject
+ Category
+ Status
+ Time
+
+
+
+ {filteredTickets.map((t) => (
+ navigate(`/ticket/${t.ticket_id}`)}
+ className="hover:bg-gray-50 dark:hover:bg-[#374151] cursor-pointer transition-colors group"
+ >
+
+ {t.sender || 'Unknown'}
+ #{t.ticket_id}
+
+
+ {t.subject || '(no subject)'}
+
+
+
+ {t.category}
+
+
+
+
+ {t.needs_escalation && t.status === 'pending_review' ? 'ESCALATED' : t.status.replace('_', ' ')}
+
+
+
+ {formatTime(t.created_at)}
+
+
+ ))}
+
+
+
+ )}
+
+
+ );
+}
diff --git a/frontend/src/pages/ReviewQueue.tsx b/frontend/src/pages/ReviewQueue.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..76c14736cb6991fb62675180cc934b704bf981a9
--- /dev/null
+++ b/frontend/src/pages/ReviewQueue.tsx
@@ -0,0 +1,130 @@
+import { useState, useEffect } from 'react';
+import { useNavigate } from 'react-router-dom';
+import axios from 'axios';
+import { ShieldCheck, AlertTriangle, Send, X } from 'lucide-react';
+
+interface ReviewItem {
+ ticket_id: string;
+ category: string;
+ status: string;
+ escalation_reason: string;
+ draft_response: string;
+ sender?: string;
+ subject?: string;
+ body?: string;
+ created_at: string;
+}
+
+export default function ReviewQueue() {
+ const navigate = useNavigate();
+ const [tickets, setTickets] = useState([]);
+ const [loading, setLoading] = useState(true);
+
+ const fetchReviewQueue = async () => {
+ setLoading(true);
+ try {
+ const res = await axios.get('/api/v1/review');
+ setTickets(res.data.tickets || []);
+ } catch (err) {
+ console.error('Failed to fetch review queue', err);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ useEffect(() => {
+ fetchReviewQueue();
+ }, []);
+
+ const handleAction = async (ticketId: string, action: 'approve' | 'reject') => {
+ try {
+ await axios.post(`/api/v1/review/${ticketId}?action=${action}`);
+ // Refetch queue to remove the processed ticket
+ fetchReviewQueue();
+ } catch (e) {
+ alert("Failed to process action.");
+ }
+ };
+
+ return (
+
+
+
+ {loading ? (
+
+
+
+ ) : tickets.length === 0 ? (
+
+
+
+
+
All clear!
+
No emails pending human review right now. The AI is handling everything perfectly.
+
+ ) : (
+
+ {tickets.map((t) => (
+
+
+
+
{t.subject || 'No Subject'}
+ #{t.ticket_id}
+
+
navigate(`/ticket/${t.ticket_id}`)} className="text-xs font-bold text-accentCyan hover:underline uppercase tracking-wider">
+ Full Details
+
+
+
+
+ {/* Left: Esc info */}
+
+
+
From
+
{t.sender || 'Unknown'}
+
+
+
+ Escalation Reason
+
+
+ {t.escalation_reason}
+
+
+
+
+ {/* Right: Draft & Actions */}
+
+
AI Draft Response
+
+ {t.draft_response || No draft available. }
+
+
+
+ handleAction(t.ticket_id, 'approve')}
+ className="flex-1 flex items-center justify-center gap-2 bg-accentGreen text-darkBg py-3 rounded-xl font-bold hover:bg-opacity-90 transition shadow-sm"
+ >
+ Approve AI Draft
+
+ handleAction(t.ticket_id, 'reject')}
+ className="flex items-center justify-center gap-2 border border-accentRed/50 hover:bg-accentRed/10 text-accentRed px-6 py-3 rounded-xl font-bold transition"
+ >
+ Reject
+
+
+
+
+
+ ))}
+
+ )}
+
+ );
+}
diff --git a/frontend/src/pages/Settings.tsx b/frontend/src/pages/Settings.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..7ce41cf5c0f4c063d5ddb03f683a4cf2d57c4e79
--- /dev/null
+++ b/frontend/src/pages/Settings.tsx
@@ -0,0 +1,134 @@
+import { useState, useEffect } from 'react';
+import axios from 'axios';
+import { Database, FileText, Settings as SettingsIcon, Save } from 'lucide-react';
+
+export default function Settings() {
+ const [config, setConfig] = useState(null);
+
+ useEffect(() => {
+ const fetchConfig = async () => {
+ try {
+ const res = await axios.get('/api/v1/config');
+ setConfig(res.data);
+ } catch (e) {
+ console.error(e);
+ }
+ };
+ fetchConfig();
+ }, []);
+
+ if (!config) return Loading configuration...
;
+
+ return (
+
+
+
+
+ {/* Knowledge Base Config */}
+
+
+
+
Knowledge Base Visualizer
+
+
+
+
Data Sources
+
+
+
+
+ ID
+ Title
+ Last Updated
+
+
+
+ {config.knowledge_base.map((kb: any) => (
+
+ {kb.id}
+
+ {kb.title}
+
+ {kb.updated}
+
+ ))}
+
+
+
+
+
Retriever Settings
+
+
+
+ Top K Results
+ {config.settings.top_k_results}
+
+
+
+
+
+ Confidence Threshold
+ {config.settings.confidence_threshold}
+
+
+
+
+
+
+
+ {/* Prompt Management */}
+
+
+
+
+
LLM Prompt Management
+
+
Model: {config.settings.model_selection}
+
+
+
+
+
+
+ Classifier Prompt
+ JSON Structuring
+
+
+
+
+
+ Retriever Prompt
+
+
+
+
+
+ Responder Prompt
+ Final Output Gen
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/frontend/src/store.ts b/frontend/src/store.ts
new file mode 100644
index 0000000000000000000000000000000000000000..8a60b3b3df12139bfa49390d06c5985aaa70cb62
--- /dev/null
+++ b/frontend/src/store.ts
@@ -0,0 +1,72 @@
+import { create } from 'zustand';
+
+interface ThemeState {
+ theme: 'dark' | 'light';
+ toggleTheme: () => void;
+}
+
+export const useThemeStore = create((set) => ({
+ theme: 'dark', // default theme
+ toggleTheme: () =>
+ set((state) => {
+ const newTheme = state.theme === 'dark' ? 'light' : 'dark';
+ // update html class for tailwind dark mode
+ if (newTheme === 'dark') {
+ document.documentElement.classList.add('dark');
+ } else {
+ document.documentElement.classList.remove('dark');
+ }
+ return { theme: newTheme };
+ }),
+}));
+
+// Basic types for the application data
+export interface Ticket {
+ ticket_id: string;
+ category: string;
+ confidence: number;
+ status: string;
+ needs_escalation: boolean;
+ sender?: string;
+ subject?: string;
+ body?: string;
+ created_at: string;
+}
+
+type Trend = 'up' | 'down';
+
+interface KpiMetric {
+ value: string | number;
+ change: string;
+ trend: Trend;
+ raw_value?: number;
+}
+
+export interface KpiResponse {
+ kpis?: {
+ total_emails?: KpiMetric;
+ avg_resolution_time?: KpiMetric;
+ auto_draft_success?: KpiMetric;
+ manual_escalations?: KpiMetric;
+ };
+ health?: {
+ classifier_confidence?: number;
+ retriever_precision?: number;
+ responder_quality?: number;
+ };
+ error?: string;
+}
+
+interface AppState {
+ recentTickets: Ticket[];
+ kpis: KpiResponse | null;
+ setRecentTickets: (tickets: Ticket[]) => void;
+ setKpis: (kpis: KpiResponse | null) => void;
+}
+
+export const useAppStore = create((set) => ({
+ recentTickets: [],
+ kpis: null,
+ setRecentTickets: (tickets) => set({ recentTickets: tickets }),
+ setKpis: (kpis) => set({ kpis }),
+}));
diff --git a/frontend/src/vite-env.d.ts b/frontend/src/vite-env.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..11f02fe2a0061d6e6e1f271b21da95423b448b32
--- /dev/null
+++ b/frontend/src/vite-env.d.ts
@@ -0,0 +1 @@
+///
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
new file mode 100644
index 0000000000000000000000000000000000000000..c7211dbf4129ff10b8d5a095be447b40df24c4ea
--- /dev/null
+++ b/frontend/tailwind.config.js
@@ -0,0 +1,30 @@
+/** @type {import('tailwindcss').Config} */
+export default {
+ content: [
+ "./index.html",
+ "./src/**/*.{js,ts,jsx,tsx}",
+ ],
+ darkMode: 'class',
+ theme: {
+ extend: {
+ colors: {
+ darkBg: '#15191C',
+ darkCard: '#212936',
+ darkText: '#D1D5DB',
+ lightBg: '#FFFFFF',
+ lightSidebar: '#F3F4F6',
+ lightText: '#1F2937',
+ accentCyan: '#06B6D4',
+ accentGreen: '#4ADE80',
+ accentRed: '#EF4444',
+ borderDark: '#374151',
+ borderLight: '#E5E7EB',
+ },
+ boxShadow: {
+ 'glow-cyan': '0 0 15px rgba(6, 182, 212, 0.5)',
+ 'glow-red': '0 0 15px rgba(239, 68, 68, 0.5)',
+ }
+ },
+ },
+ plugins: [],
+}
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..f7af1fc121808229c608561642e5cda36927c7bd
--- /dev/null
+++ b/frontend/tsconfig.json
@@ -0,0 +1,26 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "useDefineForClassFields": true,
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "types": ["vite/client"],
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ },
+ "include": ["src"],
+ "references": [{ "path": "./tsconfig.node.json" }]
+}
diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json
new file mode 100644
index 0000000000000000000000000000000000000000..42872c59f5b01c9155864572bc2fbd5833a7406c
--- /dev/null
+++ b/frontend/tsconfig.node.json
@@ -0,0 +1,10 @@
+{
+ "compilerOptions": {
+ "composite": true,
+ "skipLibCheck": true,
+ "module": "ESNext",
+ "moduleResolution": "bundler",
+ "allowSyntheticDefaultImports": true
+ },
+ "include": ["vite.config.ts"]
+}
diff --git a/frontend/vercel.json b/frontend/vercel.json
new file mode 100644
index 0000000000000000000000000000000000000000..1323cdac34c6ae8f7e1f8a2f3adc299eae7bdcea
--- /dev/null
+++ b/frontend/vercel.json
@@ -0,0 +1,8 @@
+{
+ "rewrites": [
+ {
+ "source": "/(.*)",
+ "destination": "/index.html"
+ }
+ ]
+}
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
new file mode 100644
index 0000000000000000000000000000000000000000..863be3100661252f54d966c18aa0ebf3b1eaafe7
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,16 @@
+import { defineConfig } from "vite";
+import react from "@vitejs/plugin-react";
+
+// https://vite.dev/config/
+export default defineConfig({
+ plugins: [react()],
+ server: {
+ port: 5173,
+ proxy: {
+ "/api": {
+ target: "http://[IP_ADDRESS]",
+ changeOrigin: true,
+ },
+ },
+ },
+});
diff --git a/knowledge_base/README.md b/knowledge_base/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..e45b42ff49a12d4fbfafaf9c9241c1b67328225a
--- /dev/null
+++ b/knowledge_base/README.md
@@ -0,0 +1,11 @@
+# Knowledge Base
+#
+# Place support articles, FAQ documents, and product documentation here.
+# These files will be used by the retriever node to provide context for responses.
+#
+# Suggested structure:
+# knowledge_base/
+# βββ billing/
+# βββ technical/
+# βββ account/
+# βββ general/
diff --git a/knowledge_base/account.md b/knowledge_base/account.md
new file mode 100644
index 0000000000000000000000000000000000000000..d1b3bc9d621d022c188c702b84bbdc6bf8bad979
--- /dev/null
+++ b/knowledge_base/account.md
@@ -0,0 +1,42 @@
+# Account Management β Knowledge Base
+
+## Password Reset
+
+- Customers can reset their password at any time via **Forgot Password** on the login page.
+- A password reset link is sent to the registered email and expires after **1 hour**.
+- Passwords must be at least **12 characters** and include uppercase, lowercase, a number, and a special character.
+- After a password reset, all active sessions are terminated and the customer must log in again.
+
+## Profile Updates
+
+- Profile information (name, phone, timezone) can be updated at **Settings β Profile**.
+- Email address changes require verification of the new address via a confirmation link.
+- Changing the primary email does **not** affect the login email for SSO users β that is managed by the organisation's identity provider.
+
+## Account Deletion
+
+- Customers can request account deletion from **Settings β Account β Delete Account**.
+- Account deletion requires password confirmation and an optional feedback survey.
+- Upon deletion, all data is **permanently removed within 30 days**. This action is irreversible.
+- Organisation admins must transfer ownership before deleting their account if they are the sole admin.
+- A **data export** is recommended before deletion: **Settings β Data β Export All**.
+
+## Two-Factor Authentication (2FA)
+
+- 2FA can be enabled at **Settings β Security β Two-Factor Authentication**.
+- Supported methods: **Authenticator app** (Google Authenticator, Authy) and **SMS** (Pro and Enterprise plans only).
+- During setup, customers receive **10 one-time backup codes**. These should be stored securely.
+- If a customer loses their 2FA device and backup codes, support can disable 2FA after identity verification (government-issued photo ID + verification of billing email).
+
+## Team & Organisation Management
+
+- Organisation admins can invite team members at **Settings β Team β Invite Members**.
+- Roles available: **Admin**, **Editor**, **Viewer**.
+- Admins can manage team member permissions, transfer ownership, and remove members.
+- Removed members lose access immediately but their created content is retained.
+
+## Data Export
+
+- Full data exports are available in **JSON** or **CSV** format.
+- Exports can be requested at **Settings β Data β Export** and typically complete within **1-24 hours** depending on data volume.
+- Export download links expire after **7 days**.
diff --git a/knowledge_base/billing.md b/knowledge_base/billing.md
new file mode 100644
index 0000000000000000000000000000000000000000..c0f29b9e1de7e6a704496f04a58fb8f207873468
--- /dev/null
+++ b/knowledge_base/billing.md
@@ -0,0 +1,47 @@
+# Billing & Payments β Knowledge Base
+
+## Refund Policy
+
+- Customers can request a full refund within **30 days** of purchase.
+- After 30 days, refunds are handled on a case-by-case basis and require manager approval.
+- Refunds are processed back to the original payment method within **5-10 business days**.
+- Partial refunds are available for annual plans if less than 3 months have been used.
+
+## Double-Charge / Duplicate Billing
+
+- If a customer reports being charged twice, verify the transaction in the billing dashboard.
+- Confirm whether one charge is a pre-authorisation hold (these drop off within 3-5 business days).
+- If a genuine duplicate charge is confirmed, issue an immediate refund for the extra charge.
+- Provide the customer with a refund confirmation number.
+
+## Subscription Plans
+
+| Plan | Monthly Price | Annual Price | Features |
+|------------|---------------|--------------|---------------------------------------|
+| Starter | $9/mo | $89/yr | 1 user, 5 GB storage, email support |
+| Pro | $29/mo | $279/yr | 5 users, 50 GB storage, priority support |
+| Enterprise | Custom | Custom | Unlimited users, unlimited storage, dedicated account manager |
+
+- Plan upgrades take effect immediately; the prorated difference is charged.
+- Plan downgrades take effect at the next billing cycle.
+- Customers can switch plans at any time from **Settings β Billing β Change Plan**.
+
+## Invoices & Receipts
+
+- Invoices are emailed automatically after each payment.
+- Past invoices can be downloaded from **Settings β Billing β Invoice History**.
+- If a customer needs a corrected invoice (e.g., updated company name or VAT number), they can update their billing details and regenerate the invoice.
+
+## Payment Methods
+
+- Accepted methods: Visa, Mastercard, American Express, PayPal, and bank transfer (Enterprise only).
+- To update a payment method: **Settings β Billing β Payment Methods β Update**.
+- If a payment fails, the system retries up to 3 times over 7 days before suspending the account.
+- A grace period of **14 days** is given after suspension before data deletion.
+
+## Cancellation
+
+- Accounts can be cancelled at any time from **Settings β Billing β Cancel Subscription**.
+- Cancellation is effective at the end of the current billing period β the customer retains access until then.
+- A **data export** option is available before cancellation under **Settings β Data β Export**.
+- After cancellation, data is retained for **90 days** before permanent deletion.
diff --git a/knowledge_base/faiss_index/index.pkl b/knowledge_base/faiss_index/index.pkl
new file mode 100644
index 0000000000000000000000000000000000000000..d57fd4343d224b25b914e1b553c031557bb73774
Binary files /dev/null and b/knowledge_base/faiss_index/index.pkl differ
diff --git a/knowledge_base/general.md b/knowledge_base/general.md
new file mode 100644
index 0000000000000000000000000000000000000000..f7bae237970d621549d6261e3659d9cc9ff3951e
--- /dev/null
+++ b/knowledge_base/general.md
@@ -0,0 +1,51 @@
+# General Information β Knowledge Base
+
+## Business Hours & Support Availability
+
+- **Email support**: Available 24/7. Response times:
+ - Starter plan: within **24 hours**
+ - Pro plan: within **4 hours**
+ - Enterprise plan: within **1 hour** (with dedicated account manager)
+- **Live chat**: MondayβFriday, 9 AMβ6 PM EST.
+- **Phone support**: Available for Enterprise plan customers only. Contact your account manager for the direct line.
+
+## Contact Channels
+
+- **Email**: support@example.com
+- **Help Centre**: https://help.example.com
+- **Community Forum**: https://community.example.com
+- **Twitter / X**: @ExampleSupport (for non-sensitive enquiries only)
+- **Status Page**: https://status.example.com (for real-time system status and incident updates)
+
+## Service Level Agreements (SLA)
+
+| Severity | Description | Target Response | Target Resolution |
+|------------|----------------------------------------------|-----------------|-------------------|
+| Critical | Service completely down, all users affected | 15 minutes | 4 hours |
+| High | Major feature broken, many users affected | 1 hour | 8 hours |
+| Medium | Feature degraded, workaround available | 4 hours | 24 hours |
+| Low | Minor issue, cosmetic, or feature request | 24 hours | Best effort |
+
+- SLA clock runs during **business hours only** for Starter and Pro plans.
+- Enterprise SLA runs **24/7**.
+
+## Feature Requests
+
+- Customers can submit feature requests at **Help Centre β Feature Requests**.
+- Feature requests are reviewed by the product team on a monthly basis.
+- Popular requests (50+ votes) are fast-tracked for consideration.
+- We do **not** provide ETAs for feature requests but customers are notified when a requested feature ships.
+
+## Privacy & Compliance
+
+- We are **SOC 2 Type II** certified and **GDPR** compliant.
+- Data is encrypted at rest (AES-256) and in transit (TLS 1.3).
+- Customer data is hosted in **AWS US-East-1** (US customers) and **AWS EU-West-1** (EU customers).
+- Data Processing Agreements (DPA) are available for Enterprise customers.
+- For data subject access requests (DSAR), contact privacy@example.com.
+
+## System Requirements
+
+- **Browsers**: Chrome 90+, Firefox 88+, Safari 15+, Edge 90+.
+- **Mobile**: iOS 15+ (Safari), Android 12+ (Chrome).
+- **API**: REST API with JSON payloads. SDKs available for Python, Node.js, Ruby, and Go.
diff --git a/knowledge_base/technical.md b/knowledge_base/technical.md
new file mode 100644
index 0000000000000000000000000000000000000000..b2d02a1ca9caa5343d6aca58f13515d0fc7be406
--- /dev/null
+++ b/knowledge_base/technical.md
@@ -0,0 +1,32 @@
+# Technical Support β Knowledge Base
+
+## Login & Authentication Issues
+
+- **"Invalid credentials" error**: Verify the email address and reset password via **Forgot Password** on the login page.
+- **Account locked**: After 5 failed login attempts, the account is locked for 30 minutes. The customer can unlock it immediately via the email link sent automatically.
+- **Two-factor authentication (2FA) issues**: If the customer has lost their 2FA device, they can use one of the **backup recovery codes** generated during 2FA setup. If all codes are lost, identity verification through support is required (government ID + billing email).
+- **SSO login failures**: Ensure the organisation's SSO provider (Okta, Azure AD, Google Workspace) has the correct callback URL: `https://app.example.com/auth/sso/callback`.
+
+## API Errors
+
+- **401 Unauthorised**: The API key is missing or invalid. Customers can regenerate keys at **Settings β API β Keys**.
+- **403 Forbidden**: The API key does not have the required scope. Scopes can be updated in **Settings β API β Key Permissions**.
+- **429 Too Many Requests**: Rate limit exceeded. Default limits: Starter = 100 req/min, Pro = 1000 req/min, Enterprise = 10,000 req/min.
+- **500 Internal Server Error**: This indicates a server-side issue. Ask the customer to check our status page at `https://status.example.com` and retry after a few minutes. If persistent, escalate to the engineering team.
+
+## Performance Issues
+
+- **Slow dashboard loading**: Ask the customer to clear their browser cache and try an incognito window. Supported browsers: Chrome 90+, Firefox 88+, Safari 15+, Edge 90+.
+- **File upload timeouts**: Maximum file size is **100 MB** for Pro and **500 MB** for Enterprise. Starter plan has a **25 MB** limit. Large files should be uploaded via the API using multipart upload.
+- **Data sync delays**: Real-time sync may experience delays of up to 5 minutes during peak hours. If delays exceed 15 minutes, escalate to the engineering team.
+
+## Integration Setup
+
+- **Slack integration**: Install from **Settings β Integrations β Slack** and authorise the bot. Requires Slack workspace admin permissions.
+- **Webhook configuration**: Webhooks can be configured at **Settings β Integrations β Webhooks**. Supported events: `ticket.created`, `ticket.updated`, `ticket.resolved`. Payloads are signed with HMAC-SHA256.
+- **Zapier / Make (Integromat)**: Pre-built templates are available at `https://zapier.com/apps/example` and `https://make.com/en/integrations/example`.
+
+## Known Issues
+
+- **Safari clipboard bug**: Copy-paste may not work correctly in Safari 16.x. Workaround: use keyboard shortcuts (Cmd+C/Cmd+V) instead of right-click context menu.
+- **Dark mode rendering**: Some chart colours may have low contrast in dark mode. Fix scheduled for v2.5 release.
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 0000000000000000000000000000000000000000..81955d295599a05fefb0cfa3b9399bc88b707304
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,35 @@
+# ===== Core AI / LLM =====
+langchain>=0.3.0
+langchain-openai>=0.3.0
+langchain-community>=0.3.0
+langchain-text-splitters>=0.3.0
+langgraph>=0.4.0
+openai>=1.60.0
+faiss-cpu>=1.9.0
+
+# ===== Web Framework =====
+fastapi>=0.115.0
+uvicorn[standard]>=0.34.0
+
+# ===== Data Validation =====
+pydantic>=2.10.0
+pydantic-settings>=2.7.0
+
+# ===== Database =====
+supabase>=2.12.0
+python-multipart>=0.0.12
+
+# ===== Email Handling =====
+imapclient>=3.0.1
+aiosmtplib>=3.0.0
+
+# ===== Environment & Config =====
+python-dotenv>=1.1.0
+
+# ===== Logging =====
+loguru>=0.7.3
+
+# ===== Testing =====
+pytest>=8.3.0
+pytest-asyncio>=0.25.0
+httpx>=0.28.0
diff --git a/src/__init__.py b/src/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..521670b4db9eb65bf8585e3bdef763ac10efa35d
--- /dev/null
+++ b/src/__init__.py
@@ -0,0 +1 @@
+# src package
diff --git a/src/api/__init__.py b/src/api/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..13d9d226be34b160a0d98dfa66aeae609d8ab67e
--- /dev/null
+++ b/src/api/__init__.py
@@ -0,0 +1 @@
+# api package
diff --git a/src/api/dependencies.py b/src/api/dependencies.py
new file mode 100644
index 0000000000000000000000000000000000000000..154cc047fa68d50d88dc3edf2600162d1654058e
--- /dev/null
+++ b/src/api/dependencies.py
@@ -0,0 +1,10 @@
+"""
+FastAPI dependency injection helpers.
+"""
+
+from src.core.config import Settings, settings
+
+
+def get_settings() -> Settings:
+ """FastAPI dependency that returns the app settings singleton."""
+ return settings
diff --git a/src/api/routes.py b/src/api/routes.py
new file mode 100644
index 0000000000000000000000000000000000000000..e985b536fbe4c42af64c860d9e2586e20861f7f2
--- /dev/null
+++ b/src/api/routes.py
@@ -0,0 +1,420 @@
+"""
+FastAPI routes for the Customer Support Email Agent.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import json
+import os
+import tempfile
+import threading
+import uuid
+from datetime import datetime, timezone
+from typing import Optional
+
+from fastapi import APIRouter, HTTPException, Depends, Header
+from loguru import logger
+
+from src.core.config import settings
+from src.graph.workflow import workflow
+from src.schemas.email import IncomingEmail, OutgoingEmail
+from src.schemas.state import SupportState, TicketStatus
+from src.services.email_service import fetch_new_emails, send_reply
+from src.utils.supabase_client import supabase
+
+router = APIRouter(tags=["support"])
+
+
+async def verify_token(x_api_token: str = Header(...)):
+ """Backend security middleware for private deployments."""
+ if x_api_token != settings.API_TOKEN:
+ raise HTTPException(status_code=403, detail="Invalid API Token")
+
+
+def _redact_email(email_addr: str) -> str:
+ """Redact an email address for logging (e.g. j***@company.com)."""
+ if "@" not in email_addr:
+ return "***"
+ local, domain = email_addr.split("@", 1)
+ return f"{local[0]}***@{domain}" if local else f"***@{domain}"
+
+
+def _generate_ticket_id() -> str:
+ """Generate a collision-resistant ticket ID (full UUID hex)."""
+ return uuid.uuid4().hex
+
+
+def _redact_email(email_addr: str) -> str:
+ """Redact an email address for logging (e.g. j***@company.com)."""
+ if "@" not in email_addr:
+ return "***"
+ local, domain = email_addr.split("@", 1)
+ return f"{local[0]}***@{domain}" if local else f"***@{domain}"
+
+
+async def _persist_ticket(email: IncomingEmail, result: dict) -> dict:
+ """Persist ticket data to Supabase."""
+ ticket_id = _generate_ticket_id()
+
+ # Map pydantic/dict result to DB schema
+ ticket_data = {
+ "ticket_id": ticket_id,
+ "sender": email.sender,
+ "subject": email.subject,
+ "body": email.body,
+ "message_id": email.message_id,
+ "received_at": email.received_at.isoformat(),
+ "category": result.get("category", "unknown"),
+ "confidence": result.get("confidence", 0.0),
+ "draft_response": result.get("draft_response", ""),
+ "final_response": result.get("final_response", ""),
+ "needs_escalation": result.get("needs_escalation", False),
+ "escalation_reason": result.get("escalation_reason", ""),
+ "follow_up_scheduled": result.get("follow_up_scheduled", False),
+ "status": result.get("status", "processing"),
+ "context": result.get("context", []),
+ "metadata": result.get("metadata", {}),
+ "created_at": datetime.now(timezone.utc).isoformat(),
+ }
+
+ try:
+ response = supabase.table("tickets").insert(ticket_data).execute()
+ return ticket_data
+ except Exception as e:
+ logger.error("Supabase insertion failed: {}", e)
+ # Raise HTTP exception so the frontend doesn't redirect to a missing ticket
+ raise HTTPException(status_code=500, detail=f"Database save failed: {str(e)}")
+
+
+
+@router.post("/process-email", dependencies=[Depends(verify_token)])
+async def process_email(email: IncomingEmail) -> dict:
+ """
+ Accept an incoming email and run it through the support agent graph.
+ Returns the agent's response and metadata.
+ """
+ logger.info("Processing email β ticket pipeline initiated")
+
+ initial_state = SupportState(email=email)
+ result = await workflow.ainvoke(initial_state)
+
+ ticket_record = await _persist_ticket(email, result)
+ return ticket_record
+
+
+@router.get("/emails", dependencies=[Depends(verify_token)])
+async def list_all_emails() -> dict:
+ """List all processed emails from Supabase."""
+ try:
+ response = (
+ supabase.table("tickets")
+ .select("*")
+ .order("created_at", desc=True)
+ .execute()
+ )
+ tickets = response.data
+ return {"total": len(tickets), "tickets": tickets}
+ except Exception as e:
+ logger.error("Supabase fetch failed: {}", e)
+ return {"total": 0, "tickets": [], "error": str(e)}
+
+
+@router.get("/emails/recent", dependencies=[Depends(verify_token)])
+async def get_recent_emails(limit: int = 10) -> dict:
+ """Get the N most recent emails for the recent activity table."""
+ try:
+ response = (
+ supabase.table("tickets")
+ .select("*")
+ .order("created_at", desc=True)
+ .limit(limit)
+ .execute()
+ )
+ tickets = response.data
+ return {"total": len(tickets), "tickets": tickets}
+ except Exception as e:
+ logger.error("Supabase fetch failed: {}", e)
+ return {"total": 0, "tickets": []}
+
+
+@router.get("/emails/{ticket_id}", dependencies=[Depends(verify_token)])
+async def get_email_details(ticket_id: str) -> dict:
+ """Get full details of a specific processed email."""
+ try:
+ response = (
+ supabase.table("tickets")
+ .select("*")
+ .eq("ticket_id", ticket_id)
+ .single()
+ .execute()
+ )
+ if not response.data:
+ raise HTTPException(
+ status_code=404, detail=f"Ticket '{ticket_id}' not found"
+ )
+ return response.data
+ except Exception:
+ raise HTTPException(status_code=404, detail=f"Ticket '{ticket_id}' not found")
+
+
+@router.get("/kpis", dependencies=[Depends(verify_token)])
+async def get_kpis() -> dict:
+ """Calculate and return system KPIs using Supabase analytics."""
+ try:
+ # Fetch all for simple calculation (HF Spaces CPU is fast enough for low volume)
+ response = (
+ supabase.table("tickets").select("needs_escalation, status").execute()
+ )
+ tickets = response.data
+ total_emails = len(tickets)
+
+ escalated = sum(1 for t in tickets if t.get("needs_escalation"))
+ sent_auto = sum(
+ 1
+ for t in tickets
+ if not t.get("needs_escalation")
+ and t.get("status") in ("sent", "processing")
+ )
+
+ auto_draft_success_rate = (
+ (sent_auto / total_emails * 100) if total_emails > 0 else 0
+ )
+
+ return {
+ "kpis": {
+ "total_emails": {
+ "value": total_emails,
+ "change": "+12%",
+ "trend": "up",
+ },
+ "avg_resolution_time": {
+ "value": "1.2m",
+ "change": "-15%",
+ "trend": "down",
+ },
+ "auto_draft_success": {
+ "value": f"{auto_draft_success_rate:.1f}%",
+ "raw_value": auto_draft_success_rate,
+ "change": "+2.4%",
+ "trend": "up",
+ },
+ "manual_escalations": {
+ "value": escalated,
+ "change": "-5%",
+ "trend": "down",
+ },
+ },
+ "health": {
+ "classifier_confidence": 92.5,
+ "retriever_precision": 88.0,
+ "responder_quality": 95.2,
+ },
+ }
+ except Exception as e:
+ logger.error("KPI calculation failed: {}", e)
+ return {
+ "error": "Failed to load dynamic KPIs",
+ "kpis": {
+ "total_emails": {"value": 0, "change": "0%", "trend": "up"},
+ "avg_resolution_time": {
+ "value": "0m",
+ "change": "0%",
+ "trend": "down",
+ },
+ "auto_draft_success": {
+ "value": "0%",
+ "raw_value": 0,
+ "change": "0%",
+ "trend": "up",
+ },
+ "manual_escalations": {
+ "value": 0,
+ "change": "0%",
+ "trend": "down",
+ },
+ },
+ "health": {
+ "classifier_confidence": 0,
+ "retriever_precision": 0,
+ "responder_quality": 0,
+ },
+ }
+
+
+@router.get("/config", dependencies=[Depends(verify_token)])
+async def get_system_config() -> dict:
+ """Return mock system configurations for the UI."""
+ return {
+ "knowledge_base": [
+ {
+ "id": "KB-001",
+ "title": "Billing Policies",
+ "updated": "2026-04-10",
+ "type": "Markdown",
+ },
+ {
+ "id": "KB-002",
+ "title": "API Documentation",
+ "updated": "2026-04-12",
+ "type": "Markdown",
+ },
+ {
+ "id": "KB-003",
+ "title": "Account Management",
+ "updated": "2026-04-05",
+ "type": "Markdown",
+ },
+ ],
+ "prompts": {
+ "classifier": "You are a senior support routing agent. Output ONLY JSON...",
+ "retriever": "Using the following context chunks, extract the relevance...",
+ "responder": "Draft a professional response to the user based on the context.",
+ },
+ "settings": {
+ "top_k_results": 3,
+ "confidence_threshold": 0.85,
+ "model_selection": settings.LLM_MODEL,
+ },
+ }
+
+
+@router.post("/process-email-batch", dependencies=[Depends(verify_token)])
+async def process_email_batch() -> dict:
+ """
+ Fetch unread emails from the IMAP mailbox and process each.
+ """
+ logger.info("Starting batch email processing")
+
+ emails = await fetch_new_emails()
+ if not emails:
+ return {"processed": 0, "message": "No new emails found"}
+
+ results = []
+ for email in emails:
+ try:
+ initial_state = SupportState(email=email)
+ result = await workflow.ainvoke(initial_state)
+ ticket_record = await _persist_ticket(email, result)
+ results.append(
+ {
+ "ticket_id": ticket_record["ticket_id"],
+ "status": ticket_record["status"],
+ "category": ticket_record["category"],
+ "needs_escalation": ticket_record["needs_escalation"],
+ }
+ )
+ except Exception as e:
+ logger.error("Failed to process batch email: {}", e)
+ results.append({"status": "error", "error": str(e)})
+
+ return {"processed": len(results), "results": results}
+
+
+@router.get("/review", dependencies=[Depends(verify_token)])
+async def list_escalated_tickets() -> dict:
+ """List all tickets pending human review from Supabase."""
+ try:
+ response = (
+ supabase.table("tickets")
+ .select("*")
+ .eq("needs_escalation", True)
+ .eq("status", "pending_review")
+ .execute()
+ )
+ return {"pending_count": len(response.data), "tickets": response.data}
+ except Exception as e:
+ logger.error("Escalation fetch failed: {}", e)
+ return {"pending_count": 0, "tickets": []}
+
+
+@router.post("/review/{ticket_id}", dependencies=[Depends(verify_token)])
+async def review_ticket(
+ ticket_id: str, action: str, revised_response: Optional[str] = None
+) -> dict:
+ """
+ Human review endpoint for escalated tickets.
+ """
+ try:
+ response = (
+ supabase.table("tickets")
+ .select("*")
+ .eq("ticket_id", ticket_id)
+ .single()
+ .execute()
+ )
+ ticket = response.data
+ except Exception:
+ raise HTTPException(status_code=404, detail=f"Ticket '{ticket_id}' not found")
+
+ if not ticket:
+ raise HTTPException(status_code=404, detail=f"Ticket '{ticket_id}' not found")
+
+ if ticket["status"] != "pending_review":
+ raise HTTPException(status_code=400, detail=f"Already {ticket['status']}")
+
+ if action not in ("approve", "reject"):
+ raise HTTPException(
+ status_code=400, detail="Action must be 'approve' or 'reject'"
+ )
+
+ # In Supabase, the email body/sender are top-level or in 'metadata' if we changed it.
+ # Given my _persist_ticket, they are top-level.
+
+ if action == "approve":
+ response_text = revised_response or ticket["draft_response"]
+ else:
+ if not revised_response:
+ supabase.table("tickets").update({"status": "rejected"}).eq(
+ "ticket_id", ticket_id
+ ).execute()
+ return {
+ "ticket_id": ticket_id,
+ "status": "rejected",
+ "message": "Ticket rejected",
+ }
+ response_text = revised_response
+
+ outgoing = OutgoingEmail(
+ to=ticket["sender"],
+ subject=f"Re: {ticket['subject']}",
+ body=response_text,
+ in_reply_to=ticket.get("message_id"),
+ )
+
+ try:
+ sent = await send_reply(outgoing)
+ new_status = "sent" if sent else "approved"
+
+ supabase.table("tickets").update(
+ {
+ "status": new_status,
+ "final_response": response_text,
+ "reviewed_at": datetime.now(timezone.utc).isoformat(),
+ }
+ ).eq("ticket_id", ticket_id).execute()
+
+ return {
+ "ticket_id": ticket_id,
+ "status": new_status,
+ "message": f"Response {'sent' if sent else 'approved'}",
+ }
+ except Exception as e:
+ logger.error("Failed to send reviewed reply: {}", e)
+ raise HTTPException(status_code=500, detail="Failed to send email")
+
+
+@router.get("/follow-ups", dependencies=[Depends(verify_token)])
+async def list_follow_ups() -> dict:
+ """List all scheduled follow-ups from Supabase."""
+ try:
+ response = (
+ supabase.table("tickets")
+ .select("*")
+ .eq("follow_up_scheduled", True)
+ .execute()
+ )
+ return {"pending_count": len(response.data), "follow_ups": response.data}
+ except Exception as e:
+ logger.error("Follow-up fetch failed: {}", e)
+ return {"pending_count": 0, "follow_ups": []}
diff --git a/src/core/__init__.py b/src/core/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..97daee7e9963b7270bc282de97833b7db82523ff
--- /dev/null
+++ b/src/core/__init__.py
@@ -0,0 +1 @@
+# core package
diff --git a/src/core/config.py b/src/core/config.py
new file mode 100644
index 0000000000000000000000000000000000000000..299a9be3a16f55cdcd25d167555f0641f586db58
--- /dev/null
+++ b/src/core/config.py
@@ -0,0 +1,56 @@
+"""
+Application configuration loaded from environment variables.
+"""
+
+from pydantic import model_validator
+from pydantic_settings import BaseSettings, SettingsConfigDict
+
+
+class Settings(BaseSettings):
+ """Central application settings β loaded from .env file."""
+
+ model_config = SettingsConfigDict(
+ env_file=".env",
+ env_file_encoding="utf-8",
+ extra="ignore",
+ )
+
+ # --- LLM (OpenAI) ---
+ OPENAI_API_KEY: str = ""
+ LLM_BASE_URL: str = "https://api.openai.com/v1"
+ LLM_MODEL: str = "gpt-6-luna"
+ EMBEDDING_MODEL: str = "text-embedding-3-small"
+
+ # --- Email / IMAP ---
+ EMAIL_HOST: str = "imap.gmail.com"
+ EMAIL_PORT: int = 993
+ SMTP_HOST: str = "smtp.gmail.com"
+ SMTP_PORT: int = 587
+ EMAIL_USERNAME: str = ""
+ EMAIL_PASSWORD: str = ""
+
+ # --- Persistence (Supabase) ---
+ SUPABASE_URL: str = ""
+ SUPABASE_KEY: str = ""
+
+ # --- Security ---
+ # Secret token to protect the backend on public platforms (HF Spaces)
+ API_TOKEN: str = ""
+
+ # --- App ---
+ APP_ENV: str = "development"
+ LOG_LEVEL: str = "DEBUG"
+
+ @property
+ def DEBUG(self) -> bool:
+ return self.APP_ENV == "development"
+
+ @model_validator(mode="after")
+ def require_production_api_token(self) -> "Settings":
+ """Never start a production backend without an API token."""
+ if self.APP_ENV.lower() == "production" and not self.API_TOKEN.strip():
+ raise ValueError("API_TOKEN must be configured when APP_ENV=production")
+ return self
+
+
+settings = Settings()
diff --git a/src/core/logging.py b/src/core/logging.py
new file mode 100644
index 0000000000000000000000000000000000000000..4963cab818d52380fbbae60f090616df9a82a689
--- /dev/null
+++ b/src/core/logging.py
@@ -0,0 +1,20 @@
+"""
+Logging configuration using loguru.
+"""
+
+import sys
+
+from loguru import logger
+
+from src.core.config import settings
+
+
+def setup_logging() -> None:
+ """Configure loguru logger for the application."""
+ logger.remove() # Remove default handler
+ logger.add(
+ sys.stderr,
+ level=settings.LOG_LEVEL,
+ format="{time:YYYY-MM-DD HH:mm:ss} | {level:<8} | {name} :{function} - {message} ",
+ )
+ logger.info("Logging initialised (level={})", settings.LOG_LEVEL)
diff --git a/src/graph/__init__.py b/src/graph/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..26dd496c406325faf5f27fdfca9e2bdc20eaa92e
--- /dev/null
+++ b/src/graph/__init__.py
@@ -0,0 +1 @@
+# graph package
diff --git a/src/graph/workflow.py b/src/graph/workflow.py
new file mode 100644
index 0000000000000000000000000000000000000000..faf6b3d6514961f487cbd7286a97842b3e33463b
--- /dev/null
+++ b/src/graph/workflow.py
@@ -0,0 +1,78 @@
+"""
+LangGraph workflow definition for the Customer Support Email Agent.
+
+Flow:
+ classify β retrieve β respond β check_escalation
+ β
+ ββββββββββββ΄βββββββββββ
+ escalate send_reply
+ (β END) β
+ check_follow_up
+ β
+ END
+"""
+
+from langgraph.graph import END, StateGraph
+
+from src.nodes.classifier import classify_email
+from src.nodes.escalation import check_escalation
+from src.nodes.follow_up import check_follow_up
+from src.nodes.responder import generate_response
+from src.nodes.retriever import retrieve_context
+from src.nodes.send_reply import send_email_reply
+from src.schemas.state import SupportState
+
+
+def should_escalate(state: SupportState) -> str:
+ """Conditional edge: route to escalation (human review) or auto-send."""
+ return "escalate" if state.needs_escalation else "send_reply"
+
+
+def build_graph() -> StateGraph:
+ """
+ Construct and compile the support agent graph.
+
+ The graph implements the full pipeline:
+ 1. Classify the email intent
+ 2. Retrieve relevant knowledge base context
+ 3. Generate a draft response
+ 4. Check if human review is needed
+ - If yes: end (awaits human approval via API)
+ - If no: send the reply automatically
+ 5. Check if a follow-up should be scheduled
+ """
+ graph = StateGraph(SupportState)
+
+ # -- Add nodes --
+ graph.add_node("classify", classify_email)
+ graph.add_node("retrieve", retrieve_context)
+ graph.add_node("respond", generate_response)
+ graph.add_node("check_escalation", check_escalation)
+ graph.add_node("send_reply", send_email_reply)
+ graph.add_node("check_follow_up", check_follow_up)
+
+ # -- Define edges --
+ graph.set_entry_point("classify")
+ graph.add_edge("classify", "retrieve")
+ graph.add_edge("retrieve", "respond")
+ graph.add_edge("respond", "check_escalation")
+
+ # Conditional: escalate β END (human review), or auto-send
+ graph.add_conditional_edges(
+ "check_escalation",
+ should_escalate,
+ {
+ "escalate": END, # Stops here; human reviews via API
+ "send_reply": "send_reply",
+ },
+ )
+
+ # After sending, check for follow-up
+ graph.add_edge("send_reply", "check_follow_up")
+ graph.add_edge("check_follow_up", END)
+
+ return graph.compile()
+
+
+# Pre-built compiled graph instance
+workflow = build_graph()
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000000000000000000000000000000000000..b68627196c063c07a41bd21172ecc5df227b171d
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,57 @@
+"""
+Customer Support Email Agent β FastAPI Application Entry Point
+"""
+
+from pathlib import Path
+
+from fastapi import FastAPI
+from fastapi.staticfiles import StaticFiles
+from fastapi.responses import FileResponse
+
+from src.api.routes import router
+from src.core.config import settings
+from src.core.logging import setup_logging
+
+# Resolve static directory
+_STATIC_DIR = Path(__file__).resolve().parent.parent / "static"
+
+
+def create_app() -> FastAPI:
+ """Application factory."""
+ setup_logging()
+
+ app = FastAPI(
+ title="Customer Support Email Agent",
+ description="AI-powered email support agent using LangGraph",
+ version="0.1.0",
+ debug=settings.DEBUG,
+ )
+
+ from fastapi.middleware.cors import CORSMiddleware
+ app.add_middleware(
+ CORSMiddleware,
+ allow_origins=["*"], # For production, we can refine this to the Vercel URL
+ allow_credentials=True,
+ allow_methods=["*"],
+ allow_headers=["*"],
+ )
+
+ app.include_router(router, prefix="/api/v1")
+
+ # Serve static files (CSS, JS, images)
+ if _STATIC_DIR.exists():
+ app.mount("/static", StaticFiles(directory=str(_STATIC_DIR)), name="static")
+
+ @app.get("/health")
+ async def health_check():
+ return {"status": "ok"}
+
+ @app.get("/")
+ async def serve_dashboard():
+ """Serve the main dashboard UI."""
+ return FileResponse(str(_STATIC_DIR / "index.html"))
+
+ return app
+
+
+app = create_app()
diff --git a/src/nodes/__init__.py b/src/nodes/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..5b8c9eb963f9e87205e5a111a76387fcd821d541
--- /dev/null
+++ b/src/nodes/__init__.py
@@ -0,0 +1 @@
+# nodes package
diff --git a/src/nodes/classifier.py b/src/nodes/classifier.py
new file mode 100644
index 0000000000000000000000000000000000000000..5491f363d28c0906a8ce57dda9c27f2e80874327
--- /dev/null
+++ b/src/nodes/classifier.py
@@ -0,0 +1,55 @@
+"""
+Classifier node β categorises the incoming email using the LLM.
+"""
+
+from loguru import logger
+
+from src.prompts.templates import CLASSIFIER_PROMPT
+from src.schemas.state import EmailCategory, SupportState
+from src.services.llm_service import invoke_llm_json
+from src.utils.security import sanitize_input
+
+
+# Mapping of raw category strings to the EmailCategory enum
+_CATEGORY_MAP = {
+ "billing": EmailCategory.BILLING,
+ "technical": EmailCategory.TECHNICAL,
+ "account": EmailCategory.ACCOUNT,
+ "general": EmailCategory.GENERAL,
+}
+
+
+async def classify_email(state: SupportState) -> dict:
+ """
+ Classify the incoming email into a support category.
+
+ Uses the LLM to determine the intent of the customer email,
+ returning the category, confidence score, and reasoning.
+ """
+ logger.info("Classifying email: {}", state.email.subject)
+
+ prompt = CLASSIFIER_PROMPT.format(
+ subject=sanitize_input(state.email.subject),
+ body=sanitize_input(state.email.body),
+ )
+
+ result = await invoke_llm_json(prompt)
+
+ # Extract and map category
+ raw_category = result.get("category", "general").lower().strip()
+ category = _CATEGORY_MAP.get(raw_category, EmailCategory.UNKNOWN)
+ confidence = float(result.get("confidence", 0.5))
+ reasoning = result.get("reasoning", "")
+
+ logger.info(
+ "Classified as '{}' (confidence={:.2f}): {}",
+ category.value,
+ confidence,
+ reasoning,
+ )
+
+ return {
+ "category": category,
+ "confidence": confidence,
+ "metadata": {**state.metadata, "classification_reasoning": reasoning},
+ }
diff --git a/src/nodes/escalation.py b/src/nodes/escalation.py
new file mode 100644
index 0000000000000000000000000000000000000000..6fbfc9b09349bef3cab15ff0fe017c00f0a5dcbb
--- /dev/null
+++ b/src/nodes/escalation.py
@@ -0,0 +1,76 @@
+"""
+Escalation node β decides whether to escalate to a human agent.
+"""
+
+from loguru import logger
+
+from src.prompts.templates import ESCALATION_PROMPT
+from src.schemas.state import EmailCategory, SupportState, TicketStatus
+from src.services.llm_service import invoke_llm_json
+from src.utils.security import sanitize_input
+
+CONFIDENCE_THRESHOLD = 0.7
+
+# Categories that always get extra scrutiny
+_SENSITIVE_CATEGORIES = {EmailCategory.BILLING}
+
+
+async def check_escalation(state: SupportState) -> dict:
+ """
+ Determine if the email should be escalated to a human agent.
+
+ Uses a multi-layered approach:
+ 1. Hard rules β low confidence always escalates
+ 2. Category heuristics β billing disputes get extra scrutiny
+ 3. LLM review β borderline cases are evaluated by the LLM
+ """
+ logger.info("Checking escalation for ticket")
+
+ # --- Hard rule: very low confidence ---
+ if state.confidence < 0.4:
+ reason = f"Very low classification confidence ({state.confidence:.2f})"
+ logger.warning("Escalating ticket: {}", reason)
+ return {
+ "needs_escalation": True,
+ "escalation_reason": reason,
+ "status": TicketStatus.PENDING_REVIEW,
+ }
+
+ # --- LLM-based evaluation for borderline and sensitive cases ---
+ should_llm_check = (
+ state.confidence < CONFIDENCE_THRESHOLD
+ or state.category in _SENSITIVE_CATEGORIES
+ )
+
+ if should_llm_check:
+ prompt = ESCALATION_PROMPT.format(
+ subject=sanitize_input(state.email.subject),
+ body=sanitize_input(state.email.body),
+ category=state.category.value,
+ confidence=state.confidence,
+ draft_response=state.draft_response,
+ )
+ result = await invoke_llm_json(prompt)
+
+ # Fail closed: if the LLM response is missing or malformed,
+ # default to escalation so borderline tickets go to human review.
+ raw_escalation = result.get("needs_escalation")
+ if not isinstance(raw_escalation, bool):
+ logger.warning("LLM escalation response missing or malformed β defaulting to escalation")
+ needs_escalation = True
+ else:
+ needs_escalation = raw_escalation
+
+ reason = result.get("reason", "LLM escalation review")
+
+ if needs_escalation:
+ logger.warning("Escalating ticket: {}", reason)
+ return {
+ "needs_escalation": True,
+ "escalation_reason": reason,
+ "status": TicketStatus.PENDING_REVIEW,
+ }
+
+ # --- No escalation needed ---
+ logger.info("No escalation needed for ticket")
+ return {"needs_escalation": False}
diff --git a/src/nodes/follow_up.py b/src/nodes/follow_up.py
new file mode 100644
index 0000000000000000000000000000000000000000..ace797a5ff400d9db73a75c9b6bcdeb6ab15c2ae
--- /dev/null
+++ b/src/nodes/follow_up.py
@@ -0,0 +1,55 @@
+"""
+Follow-up node β evaluates whether a follow-up should be scheduled.
+"""
+
+from datetime import datetime, timedelta
+
+from loguru import logger
+
+from src.prompts.templates import FOLLOW_UP_PROMPT
+from src.schemas.state import SupportState, TicketStatus
+from src.services.llm_service import invoke_llm_json
+
+
+async def check_follow_up(state: SupportState) -> dict:
+ """
+ Determine if a follow-up check-in with the customer is appropriate.
+
+ Uses the LLM to evaluate whether the nature of the issue warrants
+ a scheduled follow-up, and if so, how many days out.
+ """
+ logger.info("Checking follow-up for: {}", state.email.subject)
+
+ prompt = FOLLOW_UP_PROMPT.format(
+ category=state.category.value,
+ body=state.email.body,
+ response=state.final_response or state.draft_response,
+ )
+
+ result = await invoke_llm_json(prompt)
+
+ needs_follow_up = result.get("needs_follow_up", False)
+ follow_up_days = int(result.get("follow_up_days", 7))
+ reason = result.get("reason", "")
+
+ if needs_follow_up:
+ follow_up_date = datetime.now() + timedelta(days=follow_up_days)
+ logger.info(
+ "Follow-up scheduled for '{}' in {} day(s): {}",
+ state.email.subject,
+ follow_up_days,
+ reason,
+ )
+ return {
+ "follow_up_scheduled": True,
+ "follow_up_date": follow_up_date,
+ "status": TicketStatus.FOLLOW_UP_SCHEDULED,
+ "metadata": {
+ **state.metadata,
+ "follow_up_reason": reason,
+ "follow_up_days": follow_up_days,
+ },
+ }
+
+ logger.info("No follow-up needed for '{}'", state.email.subject)
+ return {"follow_up_scheduled": False}
diff --git a/src/nodes/responder.py b/src/nodes/responder.py
new file mode 100644
index 0000000000000000000000000000000000000000..93e734b4f1f7d4fcd3648e612d39fbe65c1b5a8c
--- /dev/null
+++ b/src/nodes/responder.py
@@ -0,0 +1,42 @@
+"""
+Responder node β drafts a reply to the customer using the LLM.
+"""
+
+import re
+
+from loguru import logger
+
+from src.prompts.templates import RESPONDER_PROMPT
+from src.schemas.state import SupportState
+from src.services.llm_service import invoke_llm
+from src.utils.security import sanitize_input
+
+
+async def generate_response(state: SupportState) -> dict:
+ """
+ Generate a draft response using the LLM, the classified category,
+ and retrieved knowledge base context.
+ """
+ logger.info("Generating draft response for ticket")
+
+ # Combine context chunks into a single block
+ context_text = "\n\n---\n\n".join(state.context) if state.context else "No relevant context found."
+
+ # Sanitize user-controlled fields before prompt formatting
+ safe_sender = sanitize_input(state.email.sender)
+ safe_subject = sanitize_input(state.email.subject)
+ safe_body = sanitize_input(state.email.body)
+
+ prompt = RESPONDER_PROMPT.format(
+ category=state.category.value,
+ sender=safe_sender,
+ subject=safe_subject,
+ body=safe_body,
+ context=context_text,
+ )
+
+ draft = await invoke_llm(prompt)
+
+ logger.info("Draft response generated ({} chars)", len(draft))
+
+ return {"draft_response": draft}
diff --git a/src/nodes/retriever.py b/src/nodes/retriever.py
new file mode 100644
index 0000000000000000000000000000000000000000..2fb3616777a18ea21afaf683f2c509809c3db37b
--- /dev/null
+++ b/src/nodes/retriever.py
@@ -0,0 +1,32 @@
+"""
+Retriever node β fetches relevant context from the FAISS knowledge base.
+"""
+
+from loguru import logger
+
+from src.schemas.state import SupportState
+from src.services.kb_service import kb
+
+
+async def retrieve_context(state: SupportState) -> dict:
+ """
+ Retrieve relevant knowledge base articles based on the email
+ content and its classified category.
+
+ Uses FAISS vector similarity search with OpenAI embeddings for
+ semantic matching against the knowledge base documentation.
+ """
+ logger.info("Retrieving context for category: {}", state.category.value)
+
+ # Build a combined search query from subject + body
+ query = f"{state.email.subject} {state.email.body}"
+
+ context = kb.search(
+ query=query,
+ category=state.category.value,
+ top_k=3,
+ )
+
+ logger.info("Retrieved {} context chunk(s)", len(context))
+
+ return {"context": context}
diff --git a/src/nodes/send_reply.py b/src/nodes/send_reply.py
new file mode 100644
index 0000000000000000000000000000000000000000..5ed36d80b21e327437fa63a6fc23f95bebfbb49f
--- /dev/null
+++ b/src/nodes/send_reply.py
@@ -0,0 +1,57 @@
+"""
+Send-reply node β sends the final response to the customer via email.
+"""
+
+from loguru import logger
+
+from src.schemas.email import OutgoingEmail
+from src.schemas.state import SupportState, TicketStatus
+from src.services.email_service import send_reply
+
+
+async def send_email_reply(state: SupportState) -> dict:
+ """
+ Send the drafted response to the customer.
+
+ Builds an OutgoingEmail from the current state and dispatches
+ it through the email service. The draft becomes the final response.
+ """
+ logger.info("Attempting to send reply for ticket")
+
+ # The draft is promoted to the final response
+ final_response = state.draft_response
+
+ # Build the outgoing email
+ outgoing = OutgoingEmail(
+ to=state.email.sender,
+ subject=f"Re: {state.email.subject}",
+ body=final_response,
+ in_reply_to=state.email.message_id,
+ )
+
+ # Attempt to send
+ try:
+ sent = await send_reply(outgoing)
+ if sent:
+ logger.info("Reply sent successfully")
+ return {
+ "final_response": final_response,
+ "status": TicketStatus.SENT,
+ }
+ else:
+ # Credentials not configured β mark as approved but unsent
+ logger.info("Email sending skipped (credentials not configured)")
+ return {
+ "final_response": final_response,
+ "status": TicketStatus.APPROVED,
+ }
+ except Exception as e:
+ logger.error("Failed to send reply: {}", e)
+ return {
+ "final_response": final_response,
+ "status": TicketStatus.SEND_FAILED,
+ "metadata": {
+ **state.metadata,
+ "send_error": str(e),
+ },
+ }
diff --git a/src/prompts/__init__.py b/src/prompts/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..afb6d0402e93c1b3693c1cfbb2eaad51505af462
--- /dev/null
+++ b/src/prompts/__init__.py
@@ -0,0 +1 @@
+# prompts package
diff --git a/src/prompts/templates.py b/src/prompts/templates.py
new file mode 100644
index 0000000000000000000000000000000000000000..c356fcd81a1cc81a81645d8b75ccc6a0533cb8a1
--- /dev/null
+++ b/src/prompts/templates.py
@@ -0,0 +1,113 @@
+"""
+Prompt templates for the Customer Support Email Agent.
+"""
+
+CLASSIFIER_PROMPT = """\
+You are an email classifier for a customer support team.
+
+Classify the following email into exactly ONE of these categories:
+- billing (payments, refunds, invoices, subscriptions, charges)
+- technical (bugs, errors, API issues, integrations, performance)
+- account (password reset, profile, deletion, 2FA, team management)
+- general (feature requests, general enquiries, business hours, compliance)
+
+Also provide a confidence score between 0.0 and 1.0 indicating how certain you are,
+and a brief one-sentence reasoning for your classification.
+
+--- BEGIN USER EMAIL ---
+Email Subject: {subject}
+Email Body: {body}
+--- END USER EMAIL ---
+
+Respond in valid JSON with exactly these keys:
+{{"category": "", "confidence": , "reasoning": ""}}
+"""
+
+RESPONDER_PROMPT = """\
+You are a helpful, professional customer support agent for a software company.
+
+Write a polite, empathetic, and actionable reply to the following customer email.
+Use ONLY the provided knowledge base context to inform your response β do not make up
+information. If the context does not contain enough information to fully resolve the
+issue, acknowledge the concern and let the customer know a specialist will follow up.
+
+Category: {category}
+
+--- BEGIN USER EMAIL ---
+Customer Name: {sender}
+Customer Email Subject: {subject}
+Customer Email Body:
+{body}
+--- END USER EMAIL ---
+
+Relevant Knowledge Base Context:
+{context}
+
+Guidelines:
+- Address the customer by name if available
+- Be empathetic and acknowledge their frustration if applicable
+- Provide clear, step-by-step instructions when possible
+- Reference specific settings paths or links from the knowledge base
+- If the issue requires further investigation, set expectations for follow-up
+- Keep the response concise but thorough
+- End with an offer to help further
+- Sign off as "Customer Support Team"
+
+Draft Reply:
+"""
+
+ESCALATION_PROMPT = """\
+You are a support team lead reviewing a customer email and a drafted AI response.
+
+Determine whether this email should be escalated to a human agent for review.
+
+Escalate if ANY of these conditions are true:
+- The customer is expressing strong frustration, anger, or threatening to leave
+- The issue involves sensitive financial matters (large refunds, billing disputes)
+- The AI draft is generic, unhelpful, or potentially inaccurate
+- The customer is asking something that requires account-specific investigation
+- The issue involves legal, compliance, or security concerns
+- The customer has explicitly requested to speak with a human
+
+--- BEGIN USER EMAIL ---
+Subject: {subject}
+Body: {body}
+--- END USER EMAIL ---
+
+AI Category: {category}
+AI Confidence: {confidence}
+
+AI Draft Response:
+{draft_response}
+
+Respond in valid JSON with exactly these keys:
+{{"needs_escalation": , "reason": ""}}
+"""
+
+FOLLOW_UP_PROMPT = """\
+You are a customer support scheduling assistant.
+
+Based on the customer email and the response that was sent, determine whether a
+follow-up check-in with the customer would be appropriate.
+
+Schedule a follow-up if:
+- The issue involves a process that takes time (e.g., refund processing, account deletion)
+- The customer was given troubleshooting steps to try
+- A fix or feature was mentioned as "coming soon"
+- The issue was partially resolved but may need verification
+
+Do NOT schedule a follow-up if:
+- The issue was fully resolved with a direct answer
+- The customer asked a simple informational question
+- The email was general feedback or a feature request
+
+Category: {category}
+Customer Email:
+{body}
+
+Response Sent:
+{response}
+
+Respond in valid JSON with exactly these keys:
+{{"needs_follow_up": , "follow_up_days": , "reason": ""}}
+"""
diff --git a/src/schemas/__init__.py b/src/schemas/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..78ee4f2a60a5ef95da6ce3810e2f83bf960585da
--- /dev/null
+++ b/src/schemas/__init__.py
@@ -0,0 +1 @@
+# schemas package
diff --git a/src/schemas/email.py b/src/schemas/email.py
new file mode 100644
index 0000000000000000000000000000000000000000..fb1eca8fdf66afec8efa94a2cc57da73cdd6cb5f
--- /dev/null
+++ b/src/schemas/email.py
@@ -0,0 +1,30 @@
+"""
+Pydantic models for email data.
+"""
+
+from __future__ import annotations
+
+from datetime import datetime, timezone
+from typing import Optional
+
+from pydantic import BaseModel, Field
+
+
+class IncomingEmail(BaseModel):
+ """Represents an incoming customer support email."""
+
+ sender: str
+ subject: str
+ body: str
+ message_id: Optional[str] = None
+ received_at: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
+
+
+class OutgoingEmail(BaseModel):
+ """Represents a drafted reply to a customer."""
+
+ to: str
+ subject: str
+ body: str
+ in_reply_to: Optional[str] = None
+ priority: str = "normal" # "low", "normal", "high"
diff --git a/src/schemas/state.py b/src/schemas/state.py
new file mode 100644
index 0000000000000000000000000000000000000000..36378bcf0b43bd62b3227a5013b97200016acd89
--- /dev/null
+++ b/src/schemas/state.py
@@ -0,0 +1,54 @@
+"""
+LangGraph shared state schema.
+"""
+
+from __future__ import annotations
+
+from datetime import datetime
+from enum import Enum
+from typing import Any, List, Optional
+
+from pydantic import BaseModel, Field
+
+from src.schemas.email import IncomingEmail
+
+
+class EmailCategory(str, Enum):
+ """Supported email categories."""
+
+ BILLING = "billing"
+ TECHNICAL = "technical"
+ ACCOUNT = "account"
+ GENERAL = "general"
+ UNKNOWN = "unknown"
+
+
+class TicketStatus(str, Enum):
+ """Status of the support ticket as it flows through the pipeline."""
+
+ PROCESSING = "processing"
+ PENDING_REVIEW = "pending_review"
+ APPROVED = "approved"
+ SENT = "sent"
+ SEND_FAILED = "send_failed"
+ FOLLOW_UP_SCHEDULED = "follow_up_scheduled"
+
+
+class SupportState(BaseModel):
+ """
+ Shared state passed between LangGraph nodes.
+ This is the single state object that flows through the entire workflow.
+ """
+
+ email: IncomingEmail
+ category: EmailCategory = EmailCategory.UNKNOWN
+ context: List[str] = Field(default_factory=list)
+ draft_response: str = ""
+ final_response: str = ""
+ needs_escalation: bool = False
+ escalation_reason: str = ""
+ confidence: float = 0.0
+ status: TicketStatus = TicketStatus.PROCESSING
+ follow_up_scheduled: bool = False
+ follow_up_date: Optional[datetime] = None
+ metadata: dict[str, Any] = Field(default_factory=dict)
diff --git a/src/services/__init__.py b/src/services/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..0274469424a737c191c9463b127a308226e5d24c
--- /dev/null
+++ b/src/services/__init__.py
@@ -0,0 +1 @@
+# services package
diff --git a/src/services/email_service.py b/src/services/email_service.py
new file mode 100644
index 0000000000000000000000000000000000000000..bc4ea4318142d6fec1ef22787789202a425af006
--- /dev/null
+++ b/src/services/email_service.py
@@ -0,0 +1,185 @@
+"""
+Email service β fetches incoming emails via IMAP and sends replies via SMTP.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import email as email_lib
+import email.header
+from email.mime.text import MIMEText
+
+import aiosmtplib
+from imapclient import IMAPClient
+from loguru import logger
+
+from src.core.config import settings
+from src.schemas.email import IncomingEmail, OutgoingEmail
+
+
+def _decode_header(header_value: str) -> str:
+ """Decode an RFC 2047 encoded email header into a plain string."""
+ if header_value is None:
+ return ""
+ decoded_parts = email.header.decode_header(header_value)
+ parts = []
+ for part, charset in decoded_parts:
+ if isinstance(part, bytes):
+ parts.append(part.decode(charset or "utf-8", errors="replace"))
+ else:
+ parts.append(part)
+ return "".join(parts)
+
+
+def _is_attachment(part: email_lib.message.Message) -> bool:
+ """Check if a MIME part is an attachment (should be skipped for body extraction)."""
+ disposition = part.get_content_disposition()
+ if disposition == "attachment":
+ return True
+ if part.get_filename():
+ return True
+ return False
+
+
+def _extract_body(msg: email_lib.message.Message) -> str:
+ """Extract the plain-text body from an email message, skipping attachments."""
+ if msg.is_multipart():
+ for part in msg.walk():
+ if _is_attachment(part):
+ continue
+ content_type = part.get_content_type()
+ if content_type == "text/plain":
+ payload = part.get_payload(decode=True)
+ if payload:
+ charset = part.get_content_charset() or "utf-8"
+ return payload.decode(charset, errors="replace")
+ # Fallback: try text/html if no plain text found
+ for part in msg.walk():
+ if _is_attachment(part):
+ continue
+ if part.get_content_type() == "text/html":
+ payload = part.get_payload(decode=True)
+ if payload:
+ charset = part.get_content_charset() or "utf-8"
+ return payload.decode(charset, errors="replace")
+ else:
+ payload = msg.get_payload(decode=True)
+ if payload:
+ charset = msg.get_content_charset() or "utf-8"
+ return payload.decode(charset, errors="replace")
+ return ""
+
+
+def _fetch_new_emails_sync() -> list[IncomingEmail]:
+ """
+ Synchronous IMAP fetch β runs in a thread pool to avoid blocking
+ the async event loop.
+ """
+ emails: list[IncomingEmail] = []
+
+ with IMAPClient(
+ settings.EMAIL_HOST, port=settings.EMAIL_PORT, ssl=True
+ ) as client:
+ client.login(settings.EMAIL_USERNAME, settings.EMAIL_PASSWORD)
+ client.select_folder("INBOX")
+
+ # Search for unread messages
+ message_ids = client.search(["UNSEEN"])
+ if not message_ids:
+ logger.info("No new emails found")
+ return []
+
+ logger.info("Found {} unread email(s)", len(message_ids))
+
+ # Fetch messages
+ raw_messages = client.fetch(message_ids, ["RFC822"])
+
+ for uid, data in raw_messages.items():
+ raw_email = data[b"RFC822"]
+ msg = email_lib.message_from_bytes(raw_email)
+
+ sender = _decode_header(msg.get("From", ""))
+ subject = _decode_header(msg.get("Subject", ""))
+ message_id = msg.get("Message-ID", "")
+ body = _extract_body(msg)
+
+ incoming = IncomingEmail(
+ sender=sender,
+ subject=subject,
+ body=body,
+ message_id=message_id,
+ )
+ emails.append(incoming)
+
+ logger.info("Fetched and parsed {} email(s)", len(emails))
+
+ return emails
+
+
+async def fetch_new_emails() -> list[IncomingEmail]:
+ """
+ Fetch unread emails from the configured IMAP mailbox.
+
+ Connects to the IMAP server, searches for UNSEEN messages,
+ parses each into an IncomingEmail, and returns the list.
+ Runs blocking IMAP I/O in a thread pool to avoid starving the event loop.
+ """
+ _placeholder_markers = ("your-", "your_", "sk-your", "changeme", "placeholder")
+
+ def _is_placeholder(val: str) -> bool:
+ return not val or any(m in val.lower() for m in _placeholder_markers)
+
+ if _is_placeholder(settings.EMAIL_USERNAME) or _is_placeholder(
+ settings.EMAIL_PASSWORD
+ ):
+ logger.warning("Email credentials not configured β skipping IMAP fetch")
+ return []
+
+ try:
+ return await asyncio.to_thread(_fetch_new_emails_sync)
+ except Exception as e:
+ logger.error("IMAP fetch failed: {}", e)
+ raise
+
+
+async def send_reply(outgoing: OutgoingEmail) -> bool:
+ """
+ Send a reply email via SMTP with STARTTLS.
+ """
+ _placeholder_markers = ("your-", "your_", "sk-your", "changeme", "placeholder")
+
+ def _is_placeholder(val: str) -> bool:
+ return not val or any(m in val.lower() for m in _placeholder_markers)
+
+ if _is_placeholder(settings.EMAIL_USERNAME) or _is_placeholder(
+ settings.EMAIL_PASSWORD
+ ):
+ logger.warning("Email credentials not configured β skipping SMTP send")
+ return False
+
+ # Build the MIME message
+ msg = MIMEText(outgoing.body, "plain", "utf-8")
+ msg["From"] = settings.EMAIL_USERNAME
+ msg["To"] = outgoing.to
+ msg["Subject"] = outgoing.subject
+ if outgoing.in_reply_to:
+ msg["In-Reply-To"] = outgoing.in_reply_to
+ msg["References"] = outgoing.in_reply_to
+
+ try:
+ await aiosmtplib.send(
+ msg,
+ hostname=settings.SMTP_HOST,
+ port=settings.SMTP_PORT,
+ start_tls=True,
+ username=settings.EMAIL_USERNAME,
+ password=settings.EMAIL_PASSWORD,
+ )
+ logger.info("Reply sent successfully")
+ return True
+
+ except Exception as e:
+ logger.error("SMTP send failed: {}", e)
+ # Return False instead of raising, so the pipeline can gracefully
+ # mark the ticket as 'approved' without a physical email rather than crashing.
+ return False
diff --git a/src/services/kb_service.py b/src/services/kb_service.py
new file mode 100644
index 0000000000000000000000000000000000000000..3c38fed17b73c3d3a7ab29f8fef21b908f75defd
--- /dev/null
+++ b/src/services/kb_service.py
@@ -0,0 +1,239 @@
+"""
+Knowledge Base service β uses FAISS vector store with OpenAI embeddings
+for semantic search across support documentation.
+
+Usage:
+ 1. Run `python -m src.services.kb_service` to build/rebuild the FAISS index
+ from the markdown files in knowledge_base/.
+ 2. At runtime the retriever node loads the pre-built index and performs
+ similarity search against it.
+"""
+
+from __future__ import annotations
+
+import re
+from pathlib import Path
+from typing import List, Optional
+
+from langchain_community.vectorstores import FAISS
+from langchain_openai import OpenAIEmbeddings
+from langchain_text_splitters import RecursiveCharacterTextSplitter
+from loguru import logger
+
+from src.core.config import settings
+
+# ββ Paths ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+_PROJECT_ROOT = Path(__file__).resolve().parents[2]
+_KB_DIR = _PROJECT_ROOT / "knowledge_base"
+_FAISS_INDEX_DIR = _KB_DIR / "faiss_index"
+
+
+# ββ Helpers ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+def _get_embeddings() -> OpenAIEmbeddings:
+ """Return an embeddings instance using the configured OpenAI endpoint."""
+ return OpenAIEmbeddings(
+ model=settings.EMBEDDING_MODEL,
+ api_key=settings.OPENAI_API_KEY,
+ base_url=settings.LLM_BASE_URL,
+ )
+
+
+def _load_and_chunk_documents() -> list:
+ """
+ Load all .md files from the knowledge base directory, split them
+ into semantically meaningful chunks, and return LangChain Document
+ objects with metadata.
+ """
+ from langchain_core.documents import Document
+
+ if not _KB_DIR.exists():
+ logger.warning("Knowledge base directory not found: {}", _KB_DIR)
+ return []
+
+ splitter = RecursiveCharacterTextSplitter(
+ chunk_size=500,
+ chunk_overlap=80,
+ separators=["\n## ", "\n### ", "\n\n", "\n", " "],
+ )
+
+ documents: list[Document] = []
+
+ for filepath in sorted(_KB_DIR.glob("**/*.md")):
+ # Skip README and FAISS index directory
+ if filepath.name.lower() == "readme.md":
+ continue
+ if _FAISS_INDEX_DIR in filepath.parents or filepath.parent == _FAISS_INDEX_DIR:
+ continue
+
+ content = filepath.read_text(encoding="utf-8")
+ category = filepath.stem.lower()
+
+ # Split into chunks
+ chunks = splitter.split_text(content)
+
+ for i, chunk in enumerate(chunks):
+ documents.append(
+ Document(
+ page_content=chunk,
+ metadata={
+ "source": filepath.name,
+ "category": category,
+ "chunk_index": i,
+ },
+ )
+ )
+
+ logger.debug("Loaded KB document: {} β {} chunk(s)", filepath.name, len(chunks))
+
+ logger.info(
+ "Knowledge base: {} document(s), {} total chunk(s)",
+ len(set(d.metadata["source"] for d in documents)),
+ len(documents),
+ )
+ return documents
+
+
+# ββ Index builder ββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+def build_faiss_index() -> FAISS:
+ """
+ Build (or rebuild) the FAISS index from the knowledge base markdown
+ files and persist it to disk.
+
+ Returns the created FAISS vector store.
+ """
+ documents = _load_and_chunk_documents()
+ if not documents:
+ raise ValueError("No documents found in knowledge_base/ to index")
+
+ embeddings = _get_embeddings()
+
+ logger.info("Building FAISS index from {} chunk(s)β¦", len(documents))
+ vector_store = FAISS.from_documents(documents, embeddings)
+
+ # Persist to disk
+ vector_store.save_local(str(_FAISS_INDEX_DIR))
+ logger.info("FAISS index saved to {}", _FAISS_INDEX_DIR)
+
+ return vector_store
+
+
+# ββ Runtime search βββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+class KnowledgeBase:
+ """
+ FAISS-backed knowledge base with semantic search.
+
+ Loads a pre-built FAISS index from disk and performs similarity
+ search with optional category filtering.
+ """
+
+ def __init__(self) -> None:
+ self._store: Optional[FAISS] = None
+ self._loaded = False
+
+ def load(self) -> None:
+ """Load the FAISS index from disk."""
+ if self._loaded:
+ return
+
+ if not _FAISS_INDEX_DIR.exists():
+ logger.warning(
+ "FAISS index not found at {}. "
+ "Run `python -m src.services.kb_service` to build it.",
+ _FAISS_INDEX_DIR,
+ )
+ self._loaded = True
+ return
+
+ try:
+ embeddings = _get_embeddings()
+ self._store = FAISS.load_local(
+ str(_FAISS_INDEX_DIR),
+ embeddings,
+ allow_dangerous_deserialization=True,
+ )
+ logger.info("FAISS index loaded ({} vectors)", self._store.index.ntotal)
+ self._loaded = True
+ except Exception as e:
+ logger.error("Failed to load FAISS index: {}", e)
+
+ def search(
+ self,
+ query: str,
+ category: Optional[str] = None,
+ top_k: int = 3,
+ ) -> List[str]:
+ """
+ Perform semantic similarity search against the knowledge base.
+
+ Args:
+ query: The search query string.
+ category: If provided, a filter to prefer chunks from this
+ category (post-search filtering).
+ top_k: Maximum number of context chunks to return.
+
+ Returns:
+ A list of relevant text chunks from the FAISS index.
+ """
+ self.load()
+
+ if self._store is None or not query.strip():
+ return []
+
+ # Fetch more results than needed so we can filter by category
+ fetch_k = top_k * 3 if category else top_k
+
+ try:
+ results = self._store.similarity_search_with_score(query, k=fetch_k)
+ except Exception as e:
+ logger.error("FAISS search failed: {}", e)
+ return []
+
+ if not results:
+ return []
+
+ # If a category filter is specified, sort category-matched chunks first
+ if category:
+ cat_lower = category.lower()
+ results.sort(
+ key=lambda r: (
+ 0 if r[0].metadata.get("category") == cat_lower else 1,
+ r[1], # then by distance (lower = better)
+ )
+ )
+
+ # Take top_k and return just the text content
+ return [doc.page_content for doc, _score in results[:top_k]]
+
+
+# Singleton instance used by the retriever node
+kb = KnowledgeBase()
+
+
+# ββ CLI: build the index βββββββββββββββββββββββββββββββββββββββββββββ
+
+if __name__ == "__main__":
+ import sys
+
+ logger.remove()
+ logger.add(sys.stderr, level="DEBUG")
+
+ logger.info("Building FAISS index from knowledge_base/ β¦")
+ vs = build_faiss_index()
+ logger.info("Done! Index contains {} vectors", vs.index.ntotal)
+
+ # Quick sanity search
+ test_results = vs.similarity_search("refund policy", k=2)
+ logger.info("Sanity check β top 2 results for 'refund policy':")
+ for r in test_results:
+ logger.info(
+ " [{}/{}] {}",
+ r.metadata["category"],
+ r.metadata["source"],
+ r.page_content[:100].replace("\n", " "),
+ )
diff --git a/src/services/llm_service.py b/src/services/llm_service.py
new file mode 100644
index 0000000000000000000000000000000000000000..9478c9ff992f4a114f7dc93c17478a5189e230b4
--- /dev/null
+++ b/src/services/llm_service.py
@@ -0,0 +1,65 @@
+"""
+LLM service β initialises and exposes the LangChain ChatOpenAI model
+configured to use the OpenAI inference endpoint.
+"""
+
+import json
+
+from langchain_openai import ChatOpenAI
+from loguru import logger
+
+from src.core.config import settings
+
+
+def get_llm() -> ChatOpenAI:
+ """Return a ChatOpenAI instance using the configured OpenAI endpoint."""
+ return ChatOpenAI(
+ model=settings.LLM_MODEL,
+ api_key=settings.OPENAI_API_KEY,
+ base_url=settings.LLM_BASE_URL,
+ )
+
+
+async def invoke_llm(prompt: str) -> str:
+ """
+ Send a prompt to the LLM and return the raw text response.
+ """
+ try:
+ llm = get_llm()
+ response = await llm.ainvoke(prompt)
+ return response.content.strip()
+ except Exception as e:
+ logger.error("LLM invocation failed: {}", e)
+ # Safety Net: If the LLM call fails (e.g., Azure content filter blocked it),
+ # return a generic fallback string instead of crashing the server.
+ # - For 'invoke_llm_json', it will fail to parse this and return {}, which
+ # triggers the fail-closed defaults in classifier/escalation.
+ # - For 'invoke_llm' (responder), this becomes the draft response alerting the human.
+ return "System notice: Request blocked by safety filters or API error. Manual review required."
+
+
+async def invoke_llm_json(prompt: str) -> dict:
+ """
+ Send a prompt to the LLM and parse the response as JSON.
+
+ Falls back to an empty dict if parsing fails, logging the error
+ so the pipeline can continue gracefully.
+ """
+ raw = await invoke_llm(prompt)
+
+ # Strip markdown code fences if the LLM wraps its response
+ cleaned = raw.strip()
+ if cleaned.startswith("```"):
+ # Remove opening fence (possibly ```json)
+ cleaned = cleaned.split("\n", 1)[-1]
+ if cleaned.endswith("```"):
+ cleaned = cleaned.rsplit("```", 1)[0]
+ cleaned = cleaned.strip()
+
+ try:
+ return json.loads(cleaned)
+ except json.JSONDecodeError as e:
+ logger.warning(
+ "Failed to parse LLM response as JSON: {} β raw: {}", e, raw[:200]
+ )
+ return {}
diff --git a/src/utils/__init__.py b/src/utils/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..db3e3278dabf73020f4a939cd10bdded2bc377e8
--- /dev/null
+++ b/src/utils/__init__.py
@@ -0,0 +1 @@
+# utils package
diff --git a/src/utils/helpers.py b/src/utils/helpers.py
new file mode 100644
index 0000000000000000000000000000000000000000..4e0e2c361cae10fbf21fdb4e1a3a030df44a9d35
--- /dev/null
+++ b/src/utils/helpers.py
@@ -0,0 +1,22 @@
+"""
+General-purpose helper utilities.
+"""
+
+import re
+
+
+def clean_email_body(body: str) -> str:
+ """Strip quoted reply chains and excessive whitespace from an email body."""
+ # Remove lines starting with '>' (quoted replies)
+ lines = [line for line in body.splitlines() if not line.strip().startswith(">")]
+ cleaned = "\n".join(lines).strip()
+ # Collapse multiple blank lines
+ cleaned = re.sub(r"\n{3,}", "\n\n", cleaned)
+ return cleaned
+
+
+def truncate(text: str, max_length: int = 500) -> str:
+ """Truncate text to a maximum length, adding an ellipsis if trimmed."""
+ if len(text) <= max_length:
+ return text
+ return text[: max_length - 1] + "β¦"
diff --git a/src/utils/security.py b/src/utils/security.py
new file mode 100644
index 0000000000000000000000000000000000000000..1677b64d3fb8b305726f9a5fb69464fcec6f4487
--- /dev/null
+++ b/src/utils/security.py
@@ -0,0 +1,28 @@
+"""
+Security utilities for prompt sanitization and safety.
+"""
+
+import re
+
+# Patterns that may indicate prompt injection attempts
+_SUSPICIOUS_PATTERNS = re.compile(
+ r"(ignore\s+(all\s+)?previous\s+instructions|"
+ r"you\s+are\s+now\s+a|"
+ r"system\s*:\s*|"
+ r"ASSISTANT\s*:\s*|"
+ r"?(system|user|assistant)>)",
+ re.IGNORECASE,
+)
+
+def sanitize_input(text: str) -> str:
+ """
+ Sanitize user-controlled input before injecting into the LLM prompt.
+ Strips suspicious prompt-injection patterns and truncates to a safe length
+ to prevent token abuse and bypass native LLM provider jailbreak filters.
+ """
+ if not text:
+ return ""
+
+ sanitized = _SUSPICIOUS_PATTERNS.sub("[REDACTED]", text)
+ # Truncate excessively long inputs to prevent token abuse
+ return sanitized[:8000]
diff --git a/src/utils/supabase_client.py b/src/utils/supabase_client.py
new file mode 100644
index 0000000000000000000000000000000000000000..5e8869778925881138042d20594b4ebf83549b81
--- /dev/null
+++ b/src/utils/supabase_client.py
@@ -0,0 +1,21 @@
+"""
+Supabase client initialization.
+"""
+
+from supabase import Client, create_client
+from src.core.config import settings
+from loguru import logger
+
+def get_supabase() -> Client:
+ """
+ Initialize and return a Supabase client.
+ """
+ if not settings.SUPABASE_URL or not settings.SUPABASE_KEY:
+ logger.warning("Supabase credentials missing. Persistence will fail.")
+ # We don't crash here so the server can still start for local dev,
+ # but operations will fail.
+
+ return create_client(settings.SUPABASE_URL, settings.SUPABASE_KEY)
+
+# Singleton instance
+supabase: Client = get_supabase()
diff --git a/static/css/styles.css b/static/css/styles.css
new file mode 100644
index 0000000000000000000000000000000000000000..e6555429b12d8e009d0dda2621a59022d8fe71d7
--- /dev/null
+++ b/static/css/styles.css
@@ -0,0 +1,912 @@
+/* ================================================================
+ Customer Support Agent β Design System & Styles
+ Premium dark theme with glassmorphism and micro-animations
+ ================================================================ */
+
+/* ββ Fonts βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
+
+/* ββ CSS Variables βββββββββββββββββββββββββββββββββββββββββββββββββ */
+:root {
+ /* Background */
+ --bg-primary: #0a0e1a;
+ --bg-secondary: #111827;
+ --bg-card: rgba(17, 24, 39, 0.7);
+ --bg-card-hover: rgba(31, 41, 55, 0.8);
+ --bg-glass: rgba(255, 255, 255, 0.03);
+ --bg-input: rgba(255, 255, 255, 0.05);
+
+ /* Text */
+ --text-primary: #f1f5f9;
+ --text-secondary: #94a3b8;
+ --text-muted: #64748b;
+ --text-heading: #e2e8f0;
+
+ /* Accent / Brand */
+ --accent-primary: #6366f1;
+ --accent-primary-glow: rgba(99, 102, 241, 0.3);
+ --accent-hover: #818cf8;
+ --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
+
+ /* Status Colors */
+ --color-success: #10b981;
+ --color-success-bg: rgba(16, 185, 129, 0.12);
+ --color-warning: #f59e0b;
+ --color-warning-bg: rgba(245, 158, 11, 0.12);
+ --color-danger: #ef4444;
+ --color-danger-bg: rgba(239, 68, 68, 0.12);
+ --color-info: #3b82f6;
+ --color-info-bg: rgba(59, 130, 246, 0.12);
+
+ /* Category Colors */
+ --cat-billing: #f59e0b;
+ --cat-technical: #3b82f6;
+ --cat-account: #8b5cf6;
+ --cat-general: #6b7280;
+
+ /* Borders */
+ --border-subtle: rgba(255, 255, 255, 0.06);
+ --border-input: rgba(255, 255, 255, 0.1);
+ --border-focus: rgba(99, 102, 241, 0.5);
+
+ /* Misc */
+ --radius-sm: 8px;
+ --radius-md: 12px;
+ --radius-lg: 16px;
+ --radius-xl: 20px;
+ --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
+ --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
+ --transition-fast: 0.15s ease;
+ --transition-normal: 0.25s ease;
+ --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
+}
+
+/* ββ Reset & Base ββββββββββββββββββββββββββββββββββββββββββββββββββ */
+*, *::before, *::after {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+html {
+ font-size: 15px;
+ scroll-behavior: smooth;
+}
+
+body {
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
+ background: var(--bg-primary);
+ color: var(--text-primary);
+ min-height: 100vh;
+ overflow-x: hidden;
+ -webkit-font-smoothing: antialiased;
+}
+
+/* Background pattern */
+body::before {
+ content: '';
+ position: fixed;
+ inset: 0;
+ background:
+ radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99, 102, 241, 0.08), transparent),
+ radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.05), transparent);
+ pointer-events: none;
+ z-index: 0;
+}
+
+/* ββ Layout ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.app-container {
+ display: flex;
+ min-height: 100vh;
+ position: relative;
+ z-index: 1;
+}
+
+/* ββ Sidebar βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.sidebar {
+ width: 260px;
+ background: var(--bg-secondary);
+ border-right: 1px solid var(--border-subtle);
+ display: flex;
+ flex-direction: column;
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ z-index: 100;
+}
+
+.sidebar-header {
+ padding: 24px 20px;
+ border-bottom: 1px solid var(--border-subtle);
+}
+
+.sidebar-logo {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
+.logo-icon {
+ width: 36px;
+ height: 36px;
+ background: var(--accent-gradient);
+ border-radius: 10px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 18px;
+ box-shadow: var(--shadow-glow);
+}
+
+.logo-text {
+ font-size: 1rem;
+ font-weight: 700;
+ color: var(--text-heading);
+ line-height: 1.2;
+}
+
+.logo-text span {
+ font-size: 0.7rem;
+ font-weight: 400;
+ color: var(--text-muted);
+ display: block;
+ margin-top: 2px;
+}
+
+.sidebar-nav {
+ padding: 16px 12px;
+ flex: 1;
+}
+
+.nav-item {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ padding: 12px 16px;
+ border-radius: var(--radius-sm);
+ color: var(--text-secondary);
+ cursor: pointer;
+ transition: all var(--transition-fast);
+ font-size: 0.9rem;
+ font-weight: 500;
+ margin-bottom: 4px;
+ border: 1px solid transparent;
+}
+
+.nav-item:hover {
+ background: var(--bg-glass);
+ color: var(--text-primary);
+}
+
+.nav-item.active {
+ background: rgba(99, 102, 241, 0.1);
+ color: var(--accent-hover);
+ border-color: rgba(99, 102, 241, 0.2);
+}
+
+.nav-item .nav-icon {
+ font-size: 1.1rem;
+ width: 24px;
+ text-align: center;
+}
+
+.nav-badge {
+ margin-left: auto;
+ background: var(--accent-primary);
+ color: white;
+ font-size: 0.7rem;
+ font-weight: 600;
+ padding: 2px 8px;
+ border-radius: 99px;
+ min-width: 22px;
+ text-align: center;
+}
+
+.sidebar-footer {
+ padding: 16px 20px;
+ border-top: 1px solid var(--border-subtle);
+}
+
+.sidebar-status {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ font-size: 0.78rem;
+ color: var(--text-muted);
+}
+
+.status-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: var(--color-success);
+ animation: pulse-dot 2s ease-in-out infinite;
+}
+
+@keyframes pulse-dot {
+ 0%, 100% { opacity: 1; }
+ 50% { opacity: 0.4; }
+}
+
+/* ββ Main Content ββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.main-content {
+ flex: 1;
+ margin-left: 260px;
+ padding: 32px 40px;
+ min-height: 100vh;
+}
+
+.page-header {
+ margin-bottom: 32px;
+}
+
+.page-title {
+ font-size: 1.6rem;
+ font-weight: 700;
+ color: var(--text-heading);
+ margin-bottom: 6px;
+}
+
+.page-subtitle {
+ font-size: 0.88rem;
+ color: var(--text-muted);
+}
+
+/* ββ View toggling βββββββββββββββββββββββββββββββββββββββββββββββββ */
+.view {
+ display: none;
+ animation: fadeSlideIn 0.35s ease forwards;
+}
+
+.view.active {
+ display: block;
+}
+
+@keyframes fadeSlideIn {
+ from { opacity: 0; transform: translateY(12px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+/* ββ Cards βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.card {
+ background: var(--bg-card);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-lg);
+ backdrop-filter: blur(12px);
+ box-shadow: var(--shadow-card);
+}
+
+.card-header {
+ padding: 20px 24px;
+ border-bottom: 1px solid var(--border-subtle);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.card-title {
+ font-size: 1rem;
+ font-weight: 600;
+ color: var(--text-heading);
+}
+
+.card-body {
+ padding: 24px;
+}
+
+/* ββ Compose Form ββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.compose-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 20px;
+}
+
+.form-group {
+ margin-bottom: 0;
+}
+
+.form-group.full-width {
+ grid-column: 1 / -1;
+}
+
+.form-label {
+ display: block;
+ font-size: 0.8rem;
+ font-weight: 600;
+ color: var(--text-secondary);
+ margin-bottom: 8px;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+}
+
+.form-input,
+.form-textarea {
+ width: 100%;
+ padding: 12px 16px;
+ background: var(--bg-input);
+ border: 1px solid var(--border-input);
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ font-family: inherit;
+ font-size: 0.9rem;
+ transition: all var(--transition-fast);
+ outline: none;
+}
+
+.form-input:focus,
+.form-textarea:focus {
+ border-color: var(--border-focus);
+ box-shadow: 0 0 0 3px var(--accent-primary-glow);
+ background: rgba(255, 255, 255, 0.07);
+}
+
+.form-input::placeholder,
+.form-textarea::placeholder {
+ color: var(--text-muted);
+}
+
+.form-textarea {
+ resize: vertical;
+ min-height: 160px;
+ line-height: 1.6;
+}
+
+.form-actions {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ padding-top: 8px;
+}
+
+/* ββ Buttons βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ padding: 11px 24px;
+ border: none;
+ border-radius: var(--radius-sm);
+ font-family: inherit;
+ font-size: 0.88rem;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all var(--transition-normal);
+ outline: none;
+}
+
+.btn:focus-visible {
+ outline: 2px solid var(--accent-primary);
+ outline-offset: 2px;
+ box-shadow: 0 0 0 4px var(--accent-primary-glow);
+}
+
+.btn-primary {
+ background: var(--accent-gradient);
+ color: white;
+ box-shadow: 0 2px 12px var(--accent-primary-glow);
+}
+
+.btn-primary:hover:not(:disabled) {
+ transform: translateY(-1px);
+ box-shadow: 0 4px 20px var(--accent-primary-glow);
+}
+
+.btn-primary:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+.btn-secondary {
+ background: var(--bg-glass);
+ color: var(--text-secondary);
+ border: 1px solid var(--border-input);
+}
+
+.btn-secondary:hover {
+ background: rgba(255, 255, 255, 0.08);
+ color: var(--text-primary);
+}
+
+.btn-sm {
+ padding: 7px 14px;
+ font-size: 0.8rem;
+}
+
+.btn-success {
+ background: var(--color-success);
+ color: white;
+}
+
+.btn-danger {
+ background: transparent;
+ color: var(--color-danger);
+ border: 1px solid rgba(239, 68, 68, 0.3);
+}
+
+/* ββ Loading Spinner βββββββββββββββββββββββββββββββββββββββββββββββ */
+.spinner {
+ display: inline-block;
+ width: 18px;
+ height: 18px;
+ border: 2px solid rgba(255, 255, 255, 0.2);
+ border-top-color: white;
+ border-radius: 50%;
+ animation: spin 0.6s linear infinite;
+}
+
+@keyframes spin {
+ to { transform: rotate(360deg); }
+}
+
+/* ββ Pipeline Result βββββββββββββββββββββββββββββββββββββββββββββββ */
+.result-panel {
+ margin-top: 24px;
+ animation: fadeSlideIn 0.4s ease;
+}
+
+.pipeline-steps {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 12px;
+ margin-bottom: 24px;
+}
+
+.step-card {
+ background: var(--bg-glass);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-md);
+ padding: 16px;
+ transition: all var(--transition-fast);
+}
+
+.step-label {
+ font-size: 0.72rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--text-muted);
+ margin-bottom: 8px;
+}
+
+.step-value {
+ font-size: 0.95rem;
+ font-weight: 600;
+ color: var(--text-heading);
+}
+
+.step-value.category {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+}
+
+.category-dot {
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+}
+
+.draft-section {
+ background: var(--bg-glass);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-md);
+ padding: 20px 24px;
+}
+
+.draft-section h4 {
+ font-size: 0.8rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--text-muted);
+ margin-bottom: 12px;
+}
+
+.draft-text {
+ font-size: 0.88rem;
+ line-height: 1.7;
+ color: var(--text-secondary);
+ white-space: pre-wrap;
+}
+
+/* ββ Inbox βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.inbox-toolbar {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 20px;
+}
+
+.search-box {
+ position: relative;
+ width: 320px;
+}
+
+.search-box input {
+ width: 100%;
+ padding: 10px 16px 10px 40px;
+ background: var(--bg-input);
+ border: 1px solid var(--border-input);
+ border-radius: var(--radius-sm);
+ color: var(--text-primary);
+ font-family: inherit;
+ font-size: 0.85rem;
+ outline: none;
+ transition: all var(--transition-fast);
+}
+
+.search-box input:focus {
+ border-color: var(--border-focus);
+ box-shadow: 0 0 0 3px var(--accent-primary-glow);
+}
+
+.search-box .search-icon {
+ position: absolute;
+ left: 14px;
+ top: 50%;
+ transform: translateY(-50%);
+ color: var(--text-muted);
+ font-size: 0.9rem;
+}
+
+.inbox-stats {
+ display: flex;
+ gap: 24px;
+}
+
+.stat-item {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 0.82rem;
+ color: var(--text-muted);
+}
+
+.stat-number {
+ font-weight: 700;
+ color: var(--text-heading);
+}
+
+/* ββ Email List ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.email-list {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.email-item {
+ background: var(--bg-card);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-md);
+ padding: 18px 24px;
+ cursor: pointer;
+ transition: all var(--transition-normal);
+ display: grid;
+ grid-template-columns: 1fr auto;
+ align-items: center;
+ gap: 16px;
+}
+
+.email-item:hover {
+ background: var(--bg-card-hover);
+ border-color: rgba(99, 102, 241, 0.15);
+ transform: translateY(-1px);
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
+}
+
+.email-main {
+ overflow: hidden;
+}
+
+.email-sender {
+ font-size: 0.88rem;
+ font-weight: 600;
+ color: var(--text-heading);
+ margin-bottom: 4px;
+}
+
+.email-subject {
+ font-size: 0.82rem;
+ color: var(--text-secondary);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ margin-bottom: 6px;
+}
+
+.email-meta {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
+.email-time {
+ font-size: 0.75rem;
+ color: var(--text-muted);
+}
+
+.email-actions {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: 8px;
+}
+
+/* ββ Badges ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 5px;
+ padding: 4px 10px;
+ border-radius: 99px;
+ font-size: 0.72rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.04em;
+}
+
+.badge-billing { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
+.badge-technical { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
+.badge-account { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
+.badge-general { background: rgba(107, 114, 128, 0.12); color: #9ca3af; }
+.badge-unknown { background: rgba(107, 114, 128, 0.12); color: #6b7280; }
+
+.badge-sent { background: var(--color-success-bg); color: var(--color-success); }
+.badge-approved { background: var(--color-info-bg); color: var(--color-info); }
+.badge-pending_review { background: var(--color-warning-bg); color: var(--color-warning); }
+.badge-follow_up_scheduled { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
+.badge-processing { background: rgba(107, 114, 128, 0.12); color: #9ca3af; }
+.badge-rejected { background: var(--color-danger-bg); color: var(--color-danger); }
+
+/* ββ Detail Modal / Overlay ββββββββββββββββββββββββββββββββββββββββ */
+.detail-overlay {
+ position: fixed;
+ inset: 0;
+ background: rgba(0, 0, 0, 0.6);
+ backdrop-filter: blur(4px);
+ z-index: 500;
+ display: none;
+ align-items: flex-start;
+ justify-content: center;
+ padding: 40px;
+ overflow-y: auto;
+}
+
+.detail-overlay.active {
+ display: flex;
+ animation: fadeIn 0.2s ease;
+}
+
+@keyframes fadeIn {
+ from { opacity: 0; }
+ to { opacity: 1; }
+}
+
+.detail-panel {
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-xl);
+ width: 100%;
+ max-width: 780px;
+ box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
+ animation: slideUp 0.3s ease;
+}
+
+@keyframes slideUp {
+ from { opacity: 0; transform: translateY(20px); }
+ to { opacity: 1; transform: translateY(0); }
+}
+
+.detail-header {
+ padding: 24px 28px;
+ border-bottom: 1px solid var(--border-subtle);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+
+.detail-header h3 {
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: var(--text-heading);
+}
+
+.detail-close {
+ background: none;
+ border: none;
+ color: var(--text-muted);
+ font-size: 1.4rem;
+ cursor: pointer;
+ padding: 4px 8px;
+ border-radius: 6px;
+ transition: all var(--transition-fast);
+}
+
+.detail-close:hover {
+ background: rgba(255, 255, 255, 0.08);
+ color: var(--text-primary);
+}
+
+.detail-close:focus-visible {
+ outline: 2px solid var(--accent-primary);
+ outline-offset: 2px;
+ box-shadow: 0 0 0 4px var(--accent-primary-glow);
+}
+
+.detail-body {
+ padding: 28px;
+}
+
+.detail-section {
+ margin-bottom: 24px;
+}
+
+.detail-section:last-child {
+ margin-bottom: 0;
+}
+
+.detail-section-title {
+ font-size: 0.76rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--text-muted);
+ margin-bottom: 12px;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.detail-field {
+ display: grid;
+ grid-template-columns: 120px 1fr;
+ gap: 8px;
+ padding: 8px 0;
+ border-bottom: 1px solid var(--border-subtle);
+ font-size: 0.85rem;
+}
+
+.detail-field:last-child {
+ border-bottom: none;
+}
+
+.detail-field-label {
+ color: var(--text-muted);
+ font-weight: 500;
+}
+
+.detail-field-value {
+ color: var(--text-primary);
+}
+
+.detail-content-block {
+ background: var(--bg-glass);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-sm);
+ padding: 16px 20px;
+ font-size: 0.85rem;
+ line-height: 1.7;
+ color: var(--text-secondary);
+ white-space: pre-wrap;
+ max-height: 300px;
+ overflow-y: auto;
+}
+
+/* ββ Context Chips βββββββββββββββββββββββββββββββββββββββββββββββββ */
+.context-list {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.context-chunk {
+ background: var(--bg-glass);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-sm);
+ padding: 12px 16px;
+ font-size: 0.82rem;
+ line-height: 1.6;
+ color: var(--text-secondary);
+ max-height: 120px;
+ overflow-y: auto;
+}
+
+/* ββ Review Actions ββββββββββββββββββββββββββββββββββββββββββββββββ */
+.review-actions {
+ display: flex;
+ gap: 12px;
+ margin-top: 16px;
+}
+
+/* ββ Empty State βββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.empty-state {
+ text-align: center;
+ padding: 60px 20px;
+ color: var(--text-muted);
+}
+
+.empty-state .empty-icon {
+ font-size: 3rem;
+ margin-bottom: 16px;
+ opacity: 0.4;
+}
+
+.empty-state h3 {
+ font-size: 1.1rem;
+ font-weight: 600;
+ color: var(--text-secondary);
+ margin-bottom: 8px;
+}
+
+.empty-state p {
+ font-size: 0.85rem;
+}
+
+/* ββ Toast βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+.toast-container {
+ position: fixed;
+ bottom: 24px;
+ right: 24px;
+ z-index: 1000;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.toast {
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-subtle);
+ border-radius: var(--radius-sm);
+ padding: 14px 20px;
+ font-size: 0.85rem;
+ color: var(--text-primary);
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
+ animation: toastIn 0.3s ease;
+ display: flex;
+ align-items: center;
+ gap: 10px;
+ min-width: 280px;
+}
+
+.toast.success { border-left: 3px solid var(--color-success); }
+.toast.error { border-left: 3px solid var(--color-danger); }
+.toast.info { border-left: 3px solid var(--color-info); }
+
+@keyframes toastIn {
+ from { opacity: 0; transform: translateX(20px); }
+ to { opacity: 1; transform: translateX(0); }
+}
+
+/* ββ Scrollbar βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+::-webkit-scrollbar { width: 6px; }
+::-webkit-scrollbar-track { background: transparent; }
+::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
+::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
+
+/* ββ Responsive ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
+@media (max-width: 1024px) {
+ .sidebar { width: 72px; }
+ .sidebar-header { padding: 16px 12px; }
+ .logo-text, .nav-item span, .nav-badge, .sidebar-footer { display: none; }
+ .nav-item { justify-content: center; padding: 12px; }
+ .main-content { margin-left: 72px; padding: 24px; }
+ .compose-grid { grid-template-columns: 1fr; }
+ .pipeline-steps { grid-template-columns: 1fr 1fr; }
+}
+
+/* ββ Confidence bar ββββββββββββββββββββββββββββββββββββββββββββββββ */
+.confidence-bar {
+ width: 100%;
+ height: 6px;
+ background: rgba(255, 255, 255, 0.06);
+ border-radius: 3px;
+ overflow: hidden;
+ margin-top: 6px;
+}
+
+.confidence-fill {
+ height: 100%;
+ border-radius: 3px;
+ transition: width 0.6s ease;
+}
diff --git a/static/index.html b/static/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..5895805cafbd5c7c76c46590df91cb4c01c799ed
--- /dev/null
+++ b/static/index.html
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+ Support Agent β Dashboard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ From (sender)
+
+
+
+ Subject
+
+
+
+ Email Body
+
+
+
+
+
+ π Process Email
+ Processingβ¦
+
+ π Load Sample
+
+
+
+
+
+
+
+
+
+
+
+
+
π AI Draft Response
+
+
+
+
+
β οΈ Escalation Reason
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
π
+
No emails yet
+
Go to the Compose tab to process your first mock email.
+
+
+
+
+
+
+
+
+
+
+
β
+
All clear
+
No emails pending human review right now.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/js/app.js b/static/js/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..af64ccb6e9ef079a7374806e59de55a7f7d719ce
--- /dev/null
+++ b/static/js/app.js
@@ -0,0 +1,562 @@
+/**
+ * Customer Support Agent β Dashboard JavaScript
+ * Handles navigation, compose form, inbox list, detail modal, and review queue.
+ */
+
+const API_BASE = '/api/v1';
+
+// ββ Navigation ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+document.querySelectorAll('.nav-item').forEach(item => {
+ item.addEventListener('click', () => {
+ const viewId = item.dataset.view;
+ switchView(viewId);
+ });
+});
+
+function switchView(viewId) {
+ // Update nav
+ document.querySelectorAll('.nav-item').forEach(n => n.classList.remove('active'));
+ const navEl = document.querySelector(`[data-view="${viewId}"]`);
+ if (navEl) navEl.classList.add('active');
+
+ // Update views
+ document.querySelectorAll('.view').forEach(v => v.classList.remove('active'));
+ const viewEl = document.getElementById(`view-${viewId}`);
+ if (viewEl) viewEl.classList.add('active');
+
+ // Refresh data for target view
+ if (viewId === 'inbox') loadInbox();
+ if (viewId === 'review') loadReviewQueue();
+}
+
+// ββ Sample Emails βββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+const SAMPLES = [
+ {
+ sender: 'jane.smith@company.com',
+ subject: 'Double charge on my subscription',
+ body: 'Hi,\n\nI just checked my bank statement and it looks like I was charged twice for my Pro subscription this month β once on April 1st and again on April 3rd.\n\nThe amounts are $29.99 each. Can you please look into this and process a refund for the duplicate charge?\n\nThank you,\nJane'
+ },
+ {
+ sender: 'dev.team@startup.io',
+ subject: 'API returning 401 errors after key rotation',
+ body: 'Hello support,\n\nWe rotated our API keys yesterday following your documentation, but all our requests are now returning 401 Unauthorized errors.\n\nWe\'ve confirmed the new key is being sent in the Authorization header correctly. Our integration was working fine before the rotation.\n\nCan you help us debug this? It\'s blocking our production deployment.\n\nBest,\nMike from DevOps'
+ },
+ {
+ sender: 'alex.johnson@email.com',
+ subject: 'Cannot reset my password',
+ body: 'Hi there,\n\nI\'ve been trying to reset my password for the past hour but I never receive the reset email. I\'ve checked my spam folder and everything.\n\nMy account email is alex.johnson@email.com. I need to access my account urgently for a deadline.\n\nPlease help!\nAlex'
+ },
+ {
+ sender: 'sarah.miller@corp.net',
+ subject: 'What are your business hours?',
+ body: 'Hello,\n\nI wanted to know your customer support business hours and whether you offer support on weekends. Also, do you have a phone support line?\n\nThanks,\nSarah'
+ },
+];
+
+let sampleIndex = 0;
+
+document.getElementById('btn-sample').addEventListener('click', () => {
+ const sample = SAMPLES[sampleIndex % SAMPLES.length];
+ document.getElementById('email-sender').value = sample.sender;
+ document.getElementById('email-subject').value = sample.subject;
+ document.getElementById('email-body').value = sample.body;
+ sampleIndex++;
+ showToast('Sample email loaded', 'info');
+});
+
+// ββ Compose Form ββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+document.getElementById('compose-form').addEventListener('submit', async (e) => {
+ e.preventDefault();
+
+ const sender = document.getElementById('email-sender').value.trim();
+ const subject = document.getElementById('email-subject').value.trim();
+ const body = document.getElementById('email-body').value.trim();
+
+ if (!sender || !subject || !body) {
+ showToast('Please fill in all fields', 'error');
+ return;
+ }
+
+ // Toggle loading state
+ setLoading(true);
+
+ try {
+ const response = await fetch(`${API_BASE}/process-email`, {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ sender, subject, body }),
+ });
+
+ if (!response.ok) {
+ const err = await response.json().catch(() => ({}));
+ throw new Error(err.detail || `Server error (${response.status})`);
+ }
+
+ const data = await response.json();
+ showResult(data);
+ showToast(`Email processed β Ticket ${data.ticket_id}`, 'success');
+ updateBadges();
+
+ } catch (err) {
+ showToast(`Error: ${err.message}`, 'error');
+ console.error('Process email failed:', err);
+ } finally {
+ setLoading(false);
+ }
+});
+
+function setLoading(loading) {
+ const btn = document.getElementById('btn-send');
+ const text = document.getElementById('btn-send-text');
+ const spinner = document.getElementById('btn-send-spinner');
+ btn.disabled = loading;
+ text.style.display = loading ? 'none' : 'inline-flex';
+ spinner.style.display = loading ? 'inline-flex' : 'none';
+}
+
+// ββ Show Pipeline Result ββββββββββββββββββββββββββββββββββββββββββββ
+
+function showResult(data) {
+ const panel = document.getElementById('result-panel');
+ panel.style.display = 'block';
+
+ // Status badge
+ const statusBadge = document.getElementById('result-status-badge');
+ const statusText = formatStatus(data.status);
+ statusBadge.textContent = statusText;
+ statusBadge.className = `badge badge-${data.status}`;
+
+ // Pipeline steps
+ const stepsEl = document.getElementById('pipeline-steps');
+ const category = typeof data.category === 'object' ? data.category : data.category;
+ const catName = typeof category === 'string' ? category : (category?.value || category || 'unknown');
+ const confidence = (data.confidence * 100).toFixed(0);
+
+ const confColor = data.confidence >= 0.8 ? 'var(--color-success)' :
+ data.confidence >= 0.5 ? 'var(--color-warning)' : 'var(--color-danger)';
+
+ stepsEl.innerHTML = `
+
+
Ticket ID
+
#${data.ticket_id}
+
+
+
Category
+
+
+ ${capitalize(catName)}
+
+
+
+
Confidence
+
${confidence}%
+
+
+
+
Escalated
+
+ ${data.needs_escalation ? 'β οΈ Yes' : 'β
No'}
+
+
+ `;
+
+ // Draft response
+ document.getElementById('draft-response-text').textContent = data.draft_response || '(No draft generated)';
+
+ // Escalation info
+ const escInfo = document.getElementById('escalation-info');
+ if (data.needs_escalation && data.escalation_reason) {
+ escInfo.style.display = 'block';
+ document.getElementById('escalation-reason-text').textContent = data.escalation_reason;
+ } else {
+ escInfo.style.display = 'none';
+ }
+
+ // Smooth scroll to result
+ panel.scrollIntoView({ behavior: 'smooth', block: 'start' });
+}
+
+// ββ Inbox βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+async function loadInbox() {
+ try {
+ const response = await fetch(`${API_BASE}/emails`);
+ const data = await response.json();
+ renderInbox(data.tickets || []);
+ } catch (err) {
+ console.error('Failed to load inbox:', err);
+ showToast('Failed to load inbox', 'error');
+ }
+}
+
+function renderInbox(tickets) {
+ const listEl = document.getElementById('inbox-list');
+ const emptyEl = document.getElementById('inbox-empty');
+
+ // Stats
+ document.getElementById('stat-total').textContent = tickets.length;
+ document.getElementById('stat-escalated').textContent = tickets.filter(t => t.needs_escalation).length;
+ document.getElementById('stat-sent').textContent = tickets.filter(t => t.status === 'sent' || t.status === 'approved').length;
+
+ if (tickets.length === 0) {
+ listEl.innerHTML = '';
+ listEl.appendChild(emptyEl);
+ emptyEl.style.display = 'block';
+ return;
+ }
+
+ listEl.innerHTML = tickets.map(t => {
+ const catName = getCategoryName(t.category);
+ const timeStr = formatTime(t.created_at);
+ return `
+
+
+
${escapeHtml(t.email?.sender || 'Unknown')}
+
${escapeHtml(t.email?.subject || '(no subject)')}
+
+ ${capitalize(catName)}
+ ${formatStatus(t.status)}
+ ${timeStr}
+
+
+
+ #${t.ticket_id}
+
+
+ `;
+ }).join('');
+
+ // Click handlers
+ listEl.querySelectorAll('.email-item').forEach(el => {
+ el.addEventListener('click', () => {
+ const ticketId = el.dataset.ticketId;
+ const ticket = tickets.find(t => t.ticket_id === ticketId);
+ if (ticket) showDetail(ticket);
+ });
+ });
+}
+
+// ββ Search ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+let searchTimeout = null;
+document.getElementById('inbox-search')?.addEventListener('input', (e) => {
+ clearTimeout(searchTimeout);
+ searchTimeout = setTimeout(async () => {
+ const query = e.target.value.toLowerCase().trim();
+ const response = await fetch(`${API_BASE}/emails`);
+ const data = await response.json();
+ let tickets = data.tickets || [];
+
+ if (query) {
+ tickets = tickets.filter(t =>
+ (t.email?.sender || '').toLowerCase().includes(query) ||
+ (t.email?.subject || '').toLowerCase().includes(query) ||
+ getCategoryName(t.category).includes(query) ||
+ (t.status || '').toLowerCase().includes(query)
+ );
+ }
+
+ renderInbox(tickets);
+ }, 250);
+});
+
+// ββ Detail Overlay ββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+function showDetail(ticket) {
+ const overlay = document.getElementById('detail-overlay');
+ const body = document.getElementById('detail-body');
+ const title = document.getElementById('detail-title');
+
+ title.textContent = ticket.email?.subject || 'Email Details';
+
+ const catName = getCategoryName(ticket.category);
+ const confidence = (ticket.confidence * 100).toFixed(0);
+ const confColor = ticket.confidence >= 0.8 ? 'var(--color-success)' :
+ ticket.confidence >= 0.5 ? 'var(--color-warning)' : 'var(--color-danger)';
+
+ body.innerHTML = `
+
+
+
π§ Original Email
+
+
From
+
${escapeHtml(ticket.email?.sender || '')}
+
+
+
Subject
+
${escapeHtml(ticket.email?.subject || '')}
+
+
+
Received
+
${formatTime(ticket.created_at)}
+
+
+
${escapeHtml(ticket.email?.body || '')}
+
+
+
+
+
+
π·οΈ Classification
+
+
Category
+
${capitalize(catName)}
+
+
+
Confidence
+
${confidence}%
+
+
+
Status
+
${formatStatus(ticket.status)}
+
+
+
Ticket ID
+
#${ticket.ticket_id}
+
+
+
+
+ ${ticket.context && ticket.context.length > 0 ? `
+
+
π Retrieved Knowledge Base Context
+
+ ${ticket.context.map((chunk, i) => `
+
${escapeHtml(chunk)}
+ `).join('')}
+
+
+ ` : ''}
+
+
+
+
π AI Draft Response
+
${escapeHtml(ticket.draft_response || '(None)')}
+
+
+
+ ${ticket.final_response ? `
+
+
β
Final Response (Sent)
+
${escapeHtml(ticket.final_response)}
+
+ ` : ''}
+
+
+ ${ticket.needs_escalation ? `
+
+
β οΈ Escalation
+
${escapeHtml(ticket.escalation_reason || 'Escalated for human review')}
+
+ ` : ''}
+ `;
+
+ overlay.classList.add('active');
+}
+
+document.getElementById('detail-close').addEventListener('click', closeDetail);
+document.getElementById('detail-overlay').addEventListener('click', (e) => {
+ if (e.target === e.currentTarget) closeDetail();
+});
+document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape') closeDetail();
+});
+
+function closeDetail() {
+ document.getElementById('detail-overlay').classList.remove('active');
+}
+
+// ββ Review Queue ββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+async function loadReviewQueue() {
+ try {
+ const response = await fetch(`${API_BASE}/review`);
+ const data = await response.json();
+ renderReviewQueue(data.tickets || []);
+ } catch (err) {
+ console.error('Failed to load review queue:', err);
+ showToast('Failed to load review queue', 'error');
+ }
+}
+
+function renderReviewQueue(tickets) {
+ const listEl = document.getElementById('review-list');
+ const emptyEl = document.getElementById('review-empty');
+
+ if (tickets.length === 0) {
+ listEl.innerHTML = '';
+ listEl.appendChild(emptyEl);
+ emptyEl.style.display = 'block';
+ return;
+ }
+
+ listEl.innerHTML = tickets.map(t => `
+
+
+
+
+
From
+
${escapeHtml(t.email?.sender || '')}
+
+
+
Reason
+
${escapeHtml(t.escalation_reason || '')}
+
+
+
Draft Response
+
${escapeHtml(t.draft_response || '')}
+
+
+ β
Approve & Send
+ β Reject
+
+
+
+ `).join('');
+}
+
+async function reviewTicket(ticketId, action) {
+ try {
+ const response = await fetch(`${API_BASE}/review/${ticketId}?action=${action}`, {
+ method: 'POST',
+ });
+
+ if (!response.ok) {
+ const err = await response.json().catch(() => ({}));
+ throw new Error(err.detail || `Failed (${response.status})`);
+ }
+
+ const data = await response.json();
+ showToast(`Ticket #${ticketId}: ${data.message}`, 'success');
+ loadReviewQueue();
+ updateBadges();
+
+ } catch (err) {
+ showToast(`Error: ${err.message}`, 'error');
+ }
+}
+
+// ββ Badge Updates βββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+async function updateBadges() {
+ try {
+ const [emailsRes, reviewRes] = await Promise.all([
+ fetch(`${API_BASE}/emails`),
+ fetch(`${API_BASE}/review`),
+ ]);
+
+ const emails = await emailsRes.json();
+ const review = await reviewRes.json();
+
+ const inboxCount = emails.total || 0;
+ const reviewCount = review.pending_count || 0;
+
+ const inboxBadge = document.getElementById('inbox-badge');
+ const reviewBadge = document.getElementById('review-badge');
+
+ if (inboxCount > 0) {
+ inboxBadge.textContent = inboxCount;
+ inboxBadge.style.display = 'inline';
+ } else {
+ inboxBadge.style.display = 'none';
+ }
+
+ if (reviewCount > 0) {
+ reviewBadge.textContent = reviewCount;
+ reviewBadge.style.display = 'inline';
+ } else {
+ reviewBadge.style.display = 'none';
+ }
+ } catch (err) {
+ console.error('Failed to update badges:', err);
+ }
+}
+
+// ββ Toasts ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+function showToast(message, type = 'info') {
+ const container = document.getElementById('toast-container');
+ const icons = { success: 'β
', error: 'β', info: 'βΉοΈ' };
+
+ const toast = document.createElement('div');
+ toast.className = `toast ${type}`;
+ toast.innerHTML = `${icons[type] || ''} ${escapeHtml(message)} `;
+
+ container.appendChild(toast);
+
+ setTimeout(() => {
+ toast.style.opacity = '0';
+ toast.style.transform = 'translateX(20px)';
+ toast.style.transition = 'all 0.3s ease';
+ setTimeout(() => toast.remove(), 300);
+ }, 4000);
+}
+
+// ββ Utilities βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+function capitalize(str) {
+ if (!str) return '';
+ return str.charAt(0).toUpperCase() + str.slice(1);
+}
+
+function escapeHtml(str) {
+ if (!str) return '';
+ const div = document.createElement('div');
+ div.textContent = str;
+ return div.innerHTML;
+}
+
+function getCategoryName(category) {
+ if (!category) return 'unknown';
+ if (typeof category === 'string') return category.toLowerCase();
+ if (typeof category === 'object' && category.value) return category.value.toLowerCase();
+ return 'unknown';
+}
+
+function formatStatus(status) {
+ if (!status) return 'Unknown';
+ const map = {
+ 'processing': 'Processing',
+ 'sent': 'Sent',
+ 'approved': 'Approved',
+ 'pending_review': 'Pending Review',
+ 'follow_up_scheduled': 'Follow-up',
+ 'rejected': 'Rejected',
+ };
+ return map[status] || capitalize(String(status).replace(/_/g, ' '));
+}
+
+function formatTime(isoString) {
+ if (!isoString) return '';
+ try {
+ const date = new Date(isoString);
+ const now = new Date();
+ const diffMs = now - date;
+ const diffMins = Math.floor(diffMs / 60000);
+
+ if (diffMins < 1) return 'Just now';
+ if (diffMins < 60) return `${diffMins}m ago`;
+
+ const diffHours = Math.floor(diffMins / 60);
+ if (diffHours < 24) return `${diffHours}h ago`;
+
+ return date.toLocaleDateString('en-US', { month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' });
+ } catch {
+ return isoString;
+ }
+}
+
+// ββ Init ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+updateBadges();
diff --git a/test_insert.py b/test_insert.py
new file mode 100644
index 0000000000000000000000000000000000000000..5440c17c6f1faf8b35c7c6fc5b6c0b5b31ad738b
--- /dev/null
+++ b/test_insert.py
@@ -0,0 +1,17 @@
+import asyncio
+from httpx import AsyncClient
+import requests
+import json
+
+data = {
+ "sender": "test@test.com",
+ "subject": "test",
+ "body": "test output"
+}
+res = requests.post(
+ "https://mrmayankmathurorg-customer-email-agent.hf.space/api/v1/process-email",
+ json=data,
+ headers={"X-API-Token": "dev_token_change_me"}
+)
+print("Status:", res.status_code)
+print("Body:", res.text)
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..84629f053cdae6e4a2033cff9bd660249135abd3
--- /dev/null
+++ b/tests/__init__.py
@@ -0,0 +1,3 @@
+"""
+Pytest configuration.
+"""
diff --git a/tests/test_api.py b/tests/test_api.py
new file mode 100644
index 0000000000000000000000000000000000000000..050d7f1a53f235e2915ed76a216a7a4db7dd007e
--- /dev/null
+++ b/tests/test_api.py
@@ -0,0 +1,90 @@
+"""
+Smoke tests for the FastAPI application.
+"""
+
+from unittest.mock import AsyncMock, MagicMock, patch
+
+import pytest
+from httpx import ASGITransport, AsyncClient
+
+from src.api import routes
+from src.core.config import settings
+from src.main import app
+
+
+@pytest.fixture(autouse=True)
+def test_api_token(monkeypatch):
+ """Use an explicit test token for routes protected by verify_token."""
+ monkeypatch.setattr(settings, "API_TOKEN", "test-api-token")
+
+ table = MagicMock()
+ table.select.return_value = table
+ table.eq.return_value = table
+ table.order.return_value = table
+ table.limit.return_value = table
+ table.single.return_value = table
+ table.execute.return_value.data = []
+
+ supabase = MagicMock()
+ supabase.table.return_value = table
+ monkeypatch.setattr(routes, "supabase", supabase)
+
+
+def _auth_headers() -> dict[str, str]:
+ return {"x-api-token": settings.API_TOKEN}
+
+
+@pytest.mark.asyncio
+async def test_health_check():
+ """Health endpoint should return 200 with status ok."""
+ async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
+ response = await client.get("/health")
+ assert response.status_code == 200
+ assert response.json() == {"status": "ok"}
+
+
+@pytest.mark.asyncio
+async def test_list_escalated_tickets_empty():
+ """Review listing endpoint should return empty list initially."""
+ async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
+ response = await client.get("/api/v1/review", headers=_auth_headers())
+ assert response.status_code == 200
+ data = response.json()
+ assert data["pending_count"] == 0
+ assert data["tickets"] == []
+
+
+@pytest.mark.asyncio
+async def test_list_follow_ups_empty():
+ """Follow-ups endpoint should return empty list initially."""
+ async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
+ response = await client.get("/api/v1/follow-ups", headers=_auth_headers())
+ assert response.status_code == 200
+ data = response.json()
+ assert data["pending_count"] == 0
+
+
+@pytest.mark.asyncio
+async def test_review_nonexistent_ticket():
+ """Reviewing a non-existent ticket should return 404."""
+ async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
+ response = await client.post(
+ "/api/v1/review/nonexistent",
+ params={"action": "approve"},
+ headers=_auth_headers(),
+ )
+ assert response.status_code == 404
+
+
+@pytest.mark.asyncio
+@patch("src.api.routes.fetch_new_emails", new_callable=AsyncMock, return_value=[])
+async def test_process_email_batch_no_credentials(mock_fetch):
+ """Batch processing with no credentials should return 0 processed."""
+ async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client:
+ response = await client.post(
+ "/api/v1/process-email-batch", headers=_auth_headers()
+ )
+ assert response.status_code == 200
+ data = response.json()
+ assert data["processed"] == 0
+ mock_fetch.assert_awaited_once()
diff --git a/tests/test_kb_service.py b/tests/test_kb_service.py
new file mode 100644
index 0000000000000000000000000000000000000000..3be30ece14a82d6ce5dff8b721a0d68aa3f9ecab
--- /dev/null
+++ b/tests/test_kb_service.py
@@ -0,0 +1,221 @@
+"""
+Tests for the FAISS-backed Knowledge Base service.
+
+These tests cover:
+- Document loading and chunking (no API calls needed)
+- Search behavior (mocked FAISS store for unit tests)
+- Index building (integration test, requires OPENAI_API_KEY)
+"""
+
+from pathlib import Path
+from types import SimpleNamespace
+from unittest.mock import MagicMock, patch
+
+import pytest
+
+from src.services import kb_service
+from src.services.kb_service import (
+ KnowledgeBase,
+ _KB_DIR,
+ _FAISS_INDEX_DIR,
+ _load_and_chunk_documents,
+)
+
+
+# ββ OpenAI client configuration (no API calls) βββββββββββββββββββββββ
+
+
+def test_embeddings_use_openai_configuration(monkeypatch):
+ monkeypatch.setattr(
+ kb_service,
+ "settings",
+ SimpleNamespace(
+ OPENAI_API_KEY="test-openai-key",
+ LLM_BASE_URL="https://api.openai.com/v1",
+ EMBEDDING_MODEL="text-embedding-3-small",
+ ),
+ )
+ with patch.object(kb_service, "OpenAIEmbeddings") as mock_embeddings:
+ assert kb_service._get_embeddings() is mock_embeddings.return_value
+
+ mock_embeddings.assert_called_once_with(
+ model="text-embedding-3-small",
+ api_key="test-openai-key",
+ base_url="https://api.openai.com/v1",
+ )
+
+
+def test_load_existing_index_does_not_rebuild():
+ kb_instance = KnowledgeBase()
+ store = MagicMock()
+ store.index.ntotal = 3
+ with (
+ patch.object(kb_service, "_FAISS_INDEX_DIR") as index_dir,
+ patch.object(kb_service, "_get_embeddings") as embeddings,
+ patch.object(kb_service.FAISS, "load_local", return_value=store) as load,
+ patch.object(kb_service, "build_faiss_index") as build,
+ ):
+ index_dir.exists.return_value = True
+ kb_instance.load()
+ kb_instance.load()
+
+ load.assert_called_once_with(
+ str(index_dir), embeddings.return_value, allow_dangerous_deserialization=True
+ )
+ embeddings.assert_called_once_with()
+ build.assert_not_called()
+ assert kb_instance._store is store
+
+
+# ββ Document loading tests (no API calls) ββββββββββββββββββββββββββββ
+
+
+def test_load_and_chunk_documents():
+ """Should load and chunk all 4 KB markdown files."""
+ docs = _load_and_chunk_documents()
+ assert len(docs) > 0
+
+ # Check we got all 4 categories
+ categories = {d.metadata["category"] for d in docs}
+ assert "billing" in categories
+ assert "technical" in categories
+ assert "account" in categories
+ assert "general" in categories
+
+
+def test_chunks_have_metadata():
+ """Each chunk should have source, category, and chunk_index metadata."""
+ docs = _load_and_chunk_documents()
+ for doc in docs:
+ assert "source" in doc.metadata
+ assert "category" in doc.metadata
+ assert "chunk_index" in doc.metadata
+ assert doc.metadata["source"].endswith(".md")
+
+
+def test_chunk_sizes():
+ """Chunks should be within the configured size limits."""
+ docs = _load_and_chunk_documents()
+ for doc in docs:
+ # chunk_size=500 with some overlap margin
+ assert len(doc.page_content) <= 600, (
+ f"Chunk too large ({len(doc.page_content)} chars) from {doc.metadata['source']}"
+ )
+ assert len(doc.page_content) > 0
+
+
+def test_chunk_content_billing():
+ """Billing document chunks should contain billing-related content."""
+ docs = _load_and_chunk_documents()
+ billing_chunks = [d for d in docs if d.metadata["category"] == "billing"]
+ assert len(billing_chunks) > 0
+ all_text = " ".join(c.page_content.lower() for c in billing_chunks)
+ assert "refund" in all_text or "billing" in all_text or "subscription" in all_text
+
+
+def test_chunk_content_technical():
+ """Technical document chunks should contain technical content."""
+ docs = _load_and_chunk_documents()
+ tech_chunks = [d for d in docs if d.metadata["category"] == "technical"]
+ assert len(tech_chunks) > 0
+ all_text = " ".join(c.page_content.lower() for c in tech_chunks)
+ assert "api" in all_text or "error" in all_text or "login" in all_text
+
+
+# ββ KnowledgeBase search tests (mocked FAISS store) βββββββββββββββββ
+
+
+def _make_mock_doc(content: str, category: str, source: str = "test.md"):
+ """Create a mock LangChain Document."""
+ doc = MagicMock()
+ doc.page_content = content
+ doc.metadata = {"category": category, "source": source, "chunk_index": 0}
+ return doc
+
+
+def test_search_returns_results_when_store_initialized():
+ """Search should return page_content from FAISS results."""
+ kb_instance = KnowledgeBase()
+ kb_instance._loaded = True
+
+ mock_store = MagicMock()
+ mock_store.similarity_search_with_score.return_value = [
+ (_make_mock_doc("Refund policy is 30 days", "billing"), 0.1),
+ (_make_mock_doc("Contact support for help", "general"), 0.3),
+ ]
+ kb_instance._store = mock_store
+
+ results = kb_instance.search("refund policy", top_k=2)
+
+ assert len(results) == 2
+ assert "Refund policy is 30 days" in results[0]
+ mock_store.similarity_search_with_score.assert_called_once()
+
+
+def test_search_with_category_filter():
+ """Category filter should prioritize matching chunks."""
+ kb_instance = KnowledgeBase()
+ kb_instance._loaded = True
+
+ mock_store = MagicMock()
+ mock_store.similarity_search_with_score.return_value = [
+ (_make_mock_doc("General info about returns", "general"), 0.1),
+ (_make_mock_doc("Billing refund within 30 days", "billing"), 0.2),
+ (_make_mock_doc("More general FAQ", "general"), 0.3),
+ ]
+ kb_instance._store = mock_store
+
+ results = kb_instance.search("refund", category="billing", top_k=2)
+
+ assert len(results) == 2
+ # Billing chunk should come first despite higher distance score
+ assert "Billing refund" in results[0]
+
+
+def test_search_empty_query():
+ """An empty query should return no results."""
+ kb_instance = KnowledgeBase()
+ kb_instance._loaded = True
+ kb_instance._store = MagicMock()
+
+ results = kb_instance.search("")
+ assert results == []
+ results2 = kb_instance.search(" ")
+ assert results2 == []
+
+
+def test_search_no_store():
+ """Search without a loaded store should return empty list."""
+ kb_instance = KnowledgeBase()
+ kb_instance._loaded = True
+ kb_instance._store = None
+
+ results = kb_instance.search("test query")
+ assert results == []
+
+
+def test_search_top_k_limit():
+ """Results should be limited to top_k."""
+ kb_instance = KnowledgeBase()
+ kb_instance._loaded = True
+
+ mock_store = MagicMock()
+ mock_store.similarity_search_with_score.return_value = [
+ (_make_mock_doc(f"Result {i}", "general"), 0.1 * i)
+ for i in range(5)
+ ]
+ kb_instance._store = mock_store
+
+ results = kb_instance.search("test", top_k=2)
+ assert len(results) == 2
+
+
+def test_kb_idempotent_load():
+ """Loading the knowledge base multiple times should be idempotent."""
+ kb_instance = KnowledgeBase()
+ kb_instance._loaded = True
+ kb_instance._store = MagicMock()
+
+ # Second load should not overwrite
+ kb_instance.load()
+ assert kb_instance._store is not None
diff --git a/tests/test_llm_service.py b/tests/test_llm_service.py
new file mode 100644
index 0000000000000000000000000000000000000000..fba1b4bdd263da84d57ad041cc7fd2ead6fbe50a
--- /dev/null
+++ b/tests/test_llm_service.py
@@ -0,0 +1,94 @@
+"""
+Offline tests for the OpenAI chat client and existing response fallbacks.
+"""
+
+from types import SimpleNamespace
+from unittest.mock import AsyncMock, MagicMock, patch
+
+import pytest
+
+from src.services import llm_service
+
+
+@pytest.fixture(autouse=True)
+def isolated_settings(monkeypatch):
+ monkeypatch.setattr(
+ llm_service,
+ "settings",
+ SimpleNamespace(
+ OPENAI_API_KEY="test-openai-key",
+ LLM_BASE_URL="https://api.openai.com/v1",
+ LLM_MODEL="gpt-6-luna",
+ ),
+ )
+
+
+def test_get_llm_uses_openai_configuration():
+ with patch.object(llm_service, "ChatOpenAI") as mock_client:
+ assert llm_service.get_llm() is mock_client.return_value
+
+ mock_client.assert_called_once_with(
+ model="gpt-6-luna",
+ api_key="test-openai-key",
+ base_url="https://api.openai.com/v1",
+ )
+
+
+def test_get_llm_preserves_explicit_overrides(monkeypatch):
+ monkeypatch.setattr(llm_service.settings, "LLM_MODEL", "custom-model")
+ monkeypatch.setattr(llm_service.settings, "LLM_BASE_URL", "https://custom.example/v1")
+ with patch.object(llm_service, "ChatOpenAI") as mock_client:
+ llm_service.get_llm()
+
+ assert mock_client.call_args.kwargs["model"] == "custom-model"
+ assert mock_client.call_args.kwargs["base_url"] == "https://custom.example/v1"
+
+
+@pytest.mark.asyncio
+async def test_invoke_llm_returns_trimmed_text():
+ client = MagicMock()
+ client.ainvoke = AsyncMock(return_value=SimpleNamespace(content=" Draft response\n"))
+ with patch.object(llm_service, "get_llm", return_value=client):
+ assert await llm_service.invoke_llm("test prompt") == "Draft response"
+
+ client.ainvoke.assert_awaited_once_with("test prompt")
+
+
+@pytest.mark.asyncio
+@pytest.mark.parametrize("failure_stage", ["constructor", "request"])
+async def test_invoke_llm_returns_manual_review_on_errors(failure_stage):
+ client = MagicMock()
+ client.ainvoke = AsyncMock(side_effect=RuntimeError("test API error"))
+ with patch.object(llm_service, "get_llm", return_value=client) as factory:
+ if failure_stage == "constructor":
+ factory.side_effect = ValueError("test initialization error")
+ result = await llm_service.invoke_llm("test prompt")
+
+ assert result == (
+ "System notice: Request blocked by safety filters or API error. Manual review required."
+ )
+
+
+@pytest.mark.asyncio
+@pytest.mark.parametrize(
+ "raw",
+ ['{"category": "billing"}', '```json\n{"category": "billing"}\n```'],
+)
+async def test_invoke_llm_json_parses_plain_and_fenced_json(raw):
+ with patch.object(llm_service, "invoke_llm", new_callable=AsyncMock) as invoke:
+ invoke.return_value = raw
+ assert await llm_service.invoke_llm_json("classify") == {"category": "billing"}
+ invoke.assert_awaited_once_with("classify")
+
+
+@pytest.mark.asyncio
+async def test_invoke_llm_json_returns_empty_dict_for_invalid_json():
+ with patch.object(llm_service, "invoke_llm", new_callable=AsyncMock) as invoke:
+ invoke.return_value = "not JSON"
+ assert await llm_service.invoke_llm_json("classify") == {}
+
+
+@pytest.mark.asyncio
+async def test_invoke_llm_json_returns_empty_dict_for_initialization_error():
+ with patch.object(llm_service, "get_llm", side_effect=ValueError("test missing key")):
+ assert await llm_service.invoke_llm_json("classify") == {}
diff --git a/tests/test_nodes.py b/tests/test_nodes.py
new file mode 100644
index 0000000000000000000000000000000000000000..6f7eef32939e6c06fc15906ab10a96203136d389
--- /dev/null
+++ b/tests/test_nodes.py
@@ -0,0 +1,266 @@
+"""
+Unit tests for graph nodes with mocked LLM calls.
+"""
+
+from unittest.mock import AsyncMock, patch
+
+import pytest
+
+from src.schemas.email import IncomingEmail
+from src.schemas.state import EmailCategory, SupportState, TicketStatus
+
+
+def _make_state(**overrides) -> SupportState:
+ """Create a SupportState with sensible defaults for testing."""
+ defaults = {
+ "email": IncomingEmail(
+ sender="customer@example.com",
+ subject="Help with billing",
+ body="I was charged twice for my subscription last month.",
+ ),
+ }
+ defaults.update(overrides)
+ return SupportState(**defaults)
+
+
+# ββ Classifier ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.classifier.invoke_llm_json", new_callable=AsyncMock)
+async def test_classify_billing(mock_llm):
+ """Classifier should map a billing email correctly."""
+ mock_llm.return_value = {
+ "category": "billing",
+ "confidence": 0.95,
+ "reasoning": "Customer mentions being charged twice.",
+ }
+
+ from src.nodes.classifier import classify_email
+
+ state = _make_state()
+ result = await classify_email(state)
+
+ assert result["category"] == EmailCategory.BILLING
+ assert result["confidence"] == 0.95
+ assert "classification_reasoning" in result["metadata"]
+ mock_llm.assert_called_once()
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.classifier.invoke_llm_json", new_callable=AsyncMock)
+async def test_classify_unknown_category(mock_llm):
+ """Classifier should fall back to UNKNOWN for unrecognised categories."""
+ mock_llm.return_value = {
+ "category": "something_weird",
+ "confidence": 0.3,
+ "reasoning": "Unclear intent.",
+ }
+
+ from src.nodes.classifier import classify_email
+
+ state = _make_state()
+ result = await classify_email(state)
+
+ assert result["category"] == EmailCategory.UNKNOWN
+ assert result["confidence"] == 0.3
+
+
+# ββ Retriever βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.retriever.kb")
+async def test_retrieve_context_billing(mock_kb):
+ """Retriever should return relevant context for a billing query."""
+ mock_kb.search.return_value = [
+ "Refund policy: 30 days full refund",
+ "Double charge resolution process",
+ ]
+
+ from src.nodes.retriever import retrieve_context
+
+ state = _make_state(category=EmailCategory.BILLING)
+ result = await retrieve_context(state)
+
+ assert isinstance(result["context"], list)
+ assert len(result["context"]) == 2
+ assert "Refund policy" in result["context"][0]
+ mock_kb.search.assert_called_once()
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.retriever.kb")
+async def test_retrieve_context_empty_query(mock_kb):
+ """Retriever should handle emails with minimal content gracefully."""
+ mock_kb.search.return_value = []
+
+ from src.nodes.retriever import retrieve_context
+
+ state = _make_state(
+ email=IncomingEmail(
+ sender="test@test.com",
+ subject="",
+ body="",
+ ),
+ category=EmailCategory.GENERAL,
+ )
+ result = await retrieve_context(state)
+ assert isinstance(result["context"], list)
+ assert len(result["context"]) == 0
+
+
+# ββ Responder βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.responder.invoke_llm", new_callable=AsyncMock)
+async def test_generate_response(mock_llm):
+ """Responder should invoke the LLM with context and return a draft."""
+ mock_llm.return_value = "Dear customer, we apologize for the double charge..."
+
+ from src.nodes.responder import generate_response
+
+ state = _make_state(
+ category=EmailCategory.BILLING,
+ context=["Refund policy: 30 days full refund"],
+ )
+ result = await generate_response(state)
+
+ assert "double charge" in result["draft_response"].lower()
+ mock_llm.assert_called_once()
+
+
+# ββ Escalation ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+@pytest.mark.asyncio
+async def test_escalation_low_confidence():
+ """Very low confidence should trigger automatic escalation."""
+ from src.nodes.escalation import check_escalation
+
+ state = _make_state(confidence=0.2, draft_response="Some draft")
+ result = await check_escalation(state)
+
+ assert result["needs_escalation"] is True
+ assert result["status"] == TicketStatus.PENDING_REVIEW
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.escalation.invoke_llm_json", new_callable=AsyncMock)
+async def test_escalation_high_confidence_no_escalation(mock_llm):
+ """High confidence non-billing emails should not escalate."""
+ from src.nodes.escalation import check_escalation
+
+ state = _make_state(
+ category=EmailCategory.GENERAL,
+ confidence=0.95,
+ draft_response="Here is the answer...",
+ )
+ result = await check_escalation(state)
+
+ assert result["needs_escalation"] is False
+ # LLM should NOT be called for high-confidence non-sensitive categories
+ mock_llm.assert_not_called()
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.escalation.invoke_llm_json", new_callable=AsyncMock)
+async def test_escalation_billing_triggers_llm_check(mock_llm):
+ """Billing emails should always trigger the LLM escalation check."""
+ mock_llm.return_value = {
+ "needs_escalation": False,
+ "reason": "Issue seems straightforward.",
+ }
+
+ from src.nodes.escalation import check_escalation
+
+ state = _make_state(
+ category=EmailCategory.BILLING,
+ confidence=0.85,
+ draft_response="We will process your refund...",
+ )
+ result = await check_escalation(state)
+
+ assert result["needs_escalation"] is False
+ # LLM SHOULD be called because billing is a sensitive category
+ mock_llm.assert_called_once()
+
+
+# ββ Send Reply ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.send_reply.send_reply", new_callable=AsyncMock)
+async def test_send_reply_success(mock_send):
+ """Successful send should mark ticket as SENT."""
+ mock_send.return_value = True
+
+ from src.nodes.send_reply import send_email_reply
+
+ state = _make_state(draft_response="Thank you for contacting us...")
+ result = await send_email_reply(state)
+
+ assert result["status"] == TicketStatus.SENT
+ assert result["final_response"] == "Thank you for contacting us..."
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.send_reply.send_reply", new_callable=AsyncMock)
+async def test_send_reply_no_credentials(mock_send):
+ """When credentials are missing, mark as APPROVED (unsent)."""
+ mock_send.return_value = False
+
+ from src.nodes.send_reply import send_email_reply
+
+ state = _make_state(draft_response="Thank you for contacting us...")
+ result = await send_email_reply(state)
+
+ assert result["status"] == TicketStatus.APPROVED
+
+
+# ββ Follow-up βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.follow_up.invoke_llm_json", new_callable=AsyncMock)
+async def test_follow_up_scheduled(mock_llm):
+ """Follow-up should be scheduled when the LLM says so."""
+ mock_llm.return_value = {
+ "needs_follow_up": True,
+ "follow_up_days": 3,
+ "reason": "Refund processing takes time.",
+ }
+
+ from src.nodes.follow_up import check_follow_up
+
+ state = _make_state(
+ category=EmailCategory.BILLING,
+ final_response="Your refund will be processed in 5-10 days.",
+ )
+ result = await check_follow_up(state)
+
+ assert result["follow_up_scheduled"] is True
+ assert result["follow_up_date"] is not None
+ assert result["status"] == TicketStatus.FOLLOW_UP_SCHEDULED
+
+
+@pytest.mark.asyncio
+@patch("src.nodes.follow_up.invoke_llm_json", new_callable=AsyncMock)
+async def test_follow_up_not_needed(mock_llm):
+ """Follow-up should not be scheduled for simple questions."""
+ mock_llm.return_value = {
+ "needs_follow_up": False,
+ "follow_up_days": 0,
+ "reason": "Issue fully resolved.",
+ }
+
+ from src.nodes.follow_up import check_follow_up
+
+ state = _make_state(
+ category=EmailCategory.GENERAL,
+ final_response="Our business hours are 9-6 EST.",
+ )
+ result = await check_follow_up(state)
+
+ assert result["follow_up_scheduled"] is False
diff --git a/tests/test_provider_config.py b/tests/test_provider_config.py
new file mode 100644
index 0000000000000000000000000000000000000000..489087288ebfc8efbe3776565658a52e5973bb55
--- /dev/null
+++ b/tests/test_provider_config.py
@@ -0,0 +1,112 @@
+"""
+Offline tests for OpenAI settings and the model displayed by the API.
+"""
+
+import importlib.util
+import os
+import sys
+from pathlib import Path
+from types import ModuleType
+from unittest.mock import MagicMock
+
+import pytest
+from fastapi import FastAPI
+from fastapi.testclient import TestClient
+
+from src.core.config import Settings
+
+
+@pytest.fixture(autouse=True)
+def isolated_environment(monkeypatch):
+ """Do not let local credentials or provider overrides influence tests."""
+ names = set(Settings.model_fields) | {"GITHUB_TOKEN"}
+ for name in tuple(os.environ):
+ if name.upper() in names:
+ monkeypatch.delenv(name)
+
+
+def test_openai_defaults():
+ settings = Settings(_env_file=None)
+
+ assert settings.OPENAI_API_KEY == ""
+ assert settings.LLM_BASE_URL == "https://api.openai.com/v1"
+ assert settings.LLM_MODEL == "gpt-6-luna"
+ assert settings.EMBEDDING_MODEL == "text-embedding-3-small"
+ assert "GITHUB_TOKEN" not in Settings.model_fields
+
+
+def test_environment_overrides_file_and_defaults(monkeypatch, tmp_path):
+ env_file = tmp_path / ".env"
+ env_file.write_text(
+ "OPENAI_API_KEY=file-test-key\n"
+ "LLM_BASE_URL=https://file.example/v1\n"
+ "LLM_MODEL=file-model\n"
+ "EMBEDDING_MODEL=file-embedding\n"
+ "GITHUB_TOKEN=unused-test-token\n",
+ encoding="utf-8",
+ )
+ from_file = Settings(_env_file=env_file)
+ assert from_file.OPENAI_API_KEY == "file-test-key"
+ assert from_file.LLM_BASE_URL == "https://file.example/v1"
+ assert from_file.LLM_MODEL == "file-model"
+ assert from_file.EMBEDDING_MODEL == "file-embedding"
+ assert not hasattr(from_file, "GITHUB_TOKEN")
+
+ monkeypatch.setenv("OPENAI_API_KEY", "env-test-key")
+ monkeypatch.setenv("LLM_BASE_URL", "https://env.example/v1")
+ monkeypatch.setenv("LLM_MODEL", "env-model")
+ monkeypatch.setenv("EMBEDDING_MODEL", "env-embedding")
+ from_env = Settings(_env_file=env_file)
+ assert from_env.OPENAI_API_KEY == "env-test-key"
+ assert from_env.LLM_BASE_URL == "https://env.example/v1"
+ assert from_env.LLM_MODEL == "env-model"
+ assert from_env.EMBEDDING_MODEL == "env-embedding"
+
+
+def test_legacy_github_token_is_not_an_openai_key(monkeypatch):
+ monkeypatch.setenv("GITHUB_TOKEN", "unused-test-token")
+
+ assert Settings(_env_file=None).OPENAI_API_KEY == ""
+
+
+def test_production_requires_api_token():
+ with pytest.raises(ValueError, match="API_TOKEN must be configured"):
+ Settings(_env_file=None, APP_ENV="production", API_TOKEN="")
+
+
+def test_config_reports_runtime_model_without_secrets(monkeypatch):
+ """Load routes with external services stubbed before importing them."""
+ workflow_module = ModuleType("src.graph.workflow")
+ workflow_module.workflow = MagicMock()
+ supabase_module = ModuleType("src.utils.supabase_client")
+ supabase_module.supabase = MagicMock()
+ monkeypatch.setitem(sys.modules, "src.graph.workflow", workflow_module)
+ monkeypatch.setitem(sys.modules, "src.utils.supabase_client", supabase_module)
+
+ path = Path(__file__).resolve().parents[1] / "src/api/routes.py"
+ spec = importlib.util.spec_from_file_location("_offline_support_routes", path)
+ routes = importlib.util.module_from_spec(spec)
+ spec.loader.exec_module(routes)
+ monkeypatch.setattr(
+ routes,
+ "settings",
+ Settings(
+ _env_file=None,
+ OPENAI_API_KEY="private-test-key",
+ API_TOKEN="test-api-token",
+ LLM_MODEL="runtime-model",
+ ),
+ )
+ app = FastAPI()
+ app.include_router(routes.router)
+
+ with TestClient(app) as client:
+ response = client.get("/config", headers={"x-api-token": "test-api-token"})
+ assert response.status_code == 200
+ assert response.json()["settings"]["model_selection"] == "runtime-model"
+ assert "private-test-key" not in response.text
+ assert "OPENAI_API_KEY" not in response.text
+ assert client.get("/config", headers={"x-api-token": "wrong"}).status_code == 403
+
+ supabase_module.supabase.assert_not_called()
+ workflow_module.workflow.ainvoke.assert_not_called()
diff --git a/vercel.json b/vercel.json
new file mode 100644
index 0000000000000000000000000000000000000000..1323cdac34c6ae8f7e1f8a2f3adc299eae7bdcea
--- /dev/null
+++ b/vercel.json
@@ -0,0 +1,8 @@
+{
+ "rewrites": [
+ {
+ "source": "/(.*)",
+ "destination": "/index.html"
+ }
+ ]
+}